1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-24 01:21:13 +01:00

Class ToolFrame is defined in a header, methods out of line

This commit is contained in:
Paul Licameli
2016-06-28 19:56:16 -04:00
parent f2a262e9d6
commit b29cc8ae48
2 changed files with 213 additions and 186 deletions

View File

@@ -125,4 +125,61 @@ class ToolManager final : public wxEvtHandler
DECLARE_EVENT_TABLE();
};
////////////////////////////////////////////////////////////
/// class ToolFrame
////////////////////////////////////////////////////////////
class ToolFrame final : public wxFrame
{
public:
ToolFrame( wxWindow *parent, ToolManager *manager, ToolBar *bar, wxPoint pos );
~ToolFrame();
//
// Transition a toolbar from float to dragging
//
void OnGrabber( GrabberEvent & event );
//
// Handle toolbar updates
//
void OnToolBarUpdate( wxCommandEvent & event );
//
// Handle frame paint events
//
void OnPaint( wxPaintEvent & WXUNUSED(event) );
void OnMotion( wxMouseEvent & event );
void OnCaptureLost( wxMouseCaptureLostEvent & WXUNUSED(event) );
//
// Do not allow the window to close through keyboard accelerators
// (like ALT+F4 on Windows)
//
void OnClose( wxCloseEvent & event );
void OnKeyDown( wxKeyEvent &event );
void Resize( const wxSize &size );
private:
wxWindow *mParent;
ToolManager *mManager;
ToolBar *mBar;
wxSize mMinSize;
wxSize mOrigSize;
public:
DECLARE_CLASS( ToolFrame );
DECLARE_EVENT_TABLE();
};
#endif