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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user