]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/ogl/studio/mainfrm.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Studio main window class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _STUDIO_MAINFRM_H_
13 #define _STUDIO_MAINFRM_H_
15 #include <wx/docmdi.h>
17 class wxSashLayoutWindow
;
20 class csFrame
: public wxDocMDIParentFrame
23 csFrame(wxDocManager
*manager
, wxFrame
*parent
, wxWindowID id
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, long style
);
25 void OnCloseWindow(wxCloseEvent
& event
);
26 void OnSize(wxSizeEvent
& event
);
27 void OnAbout(wxCommandEvent
& event
);
28 void OnNewWindow(wxCommandEvent
& event
);
29 void OnQuit(wxCommandEvent
& event
);
30 void OnSashDragPaletteWindow(wxSashEvent
& event
);
31 void OnSashDragProjectWindow(wxSashEvent
& event
);
32 void OnIdle(wxIdleEvent
& event
);
33 void OnHelp(wxCommandEvent
& event
);
34 void OnSettings(wxCommandEvent
& event
);
36 // General handler for disabling items
37 void OnUpdateDisable(wxUpdateUIEvent
& event
);
38 void OnSaveUpdate(wxUpdateUIEvent
& event
);
43 class csMDIChildFrame
: public wxDocMDIChildFrame
46 csMDIChildFrame(wxDocument
* doc
, wxView
* view
, wxMDIParentFrame
*parent
, wxWindowID id
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, long style
);
48 void OnActivate(wxActivateEvent
& event
);