From 648d7ddb73f5d83a2051c9971efc06cb5c2961b7 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 2 Nov 2018 23:51:51 -0400 Subject: [PATCH] Move declarations in CellularPanel, keep abstract functions together --- src/CellularPanel.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/CellularPanel.h b/src/CellularPanel.h index f57cd6acd..f4c57eeab 100644 --- a/src/CellularPanel.h +++ b/src/CellularPanel.h @@ -48,6 +48,20 @@ public: // area into cells virtual std::shared_ptr Root() = 0; + virtual TrackPanelCell *GetFocusedCell() = 0; + virtual void SetFocusedCell() = 0; + + virtual void ProcessUIHandleResult + (TrackPanelCell *pClickedCell, TrackPanelCell *pLatestCell, + unsigned refreshResult) = 0; + + virtual void UpdateStatusMessage( const wxString & ) = 0; + + // Whether this panel keeps focus after a click and drag, or only borrows + // it. + virtual bool TakesFocus() const = 0; + +public: // Structure and functions for generalized visitation of the subdivision struct Visitor { virtual ~Visitor(); @@ -70,20 +84,6 @@ public: void VisitPreorder( const SimpleNodeVisitor &visitor ); void VisitPostorder( const SimpleNodeVisitor &visitor ); - virtual TrackPanelCell *GetFocusedCell() = 0; - virtual void SetFocusedCell() = 0; - - virtual void ProcessUIHandleResult - (TrackPanelCell *pClickedCell, TrackPanelCell *pLatestCell, - unsigned refreshResult) = 0; - - virtual void UpdateStatusMessage( const wxString & ) = 0; - - // Whether this panel keeps focus after a click and drag, or only borrows - // it. - virtual bool TakesFocus() const = 0; - -public: // Find cell by coordinate struct FoundCell { std::shared_ptr< TrackPanelCell > pCell;