-// Define a new frame
-class MyCanvas;
-class MyFrame: public wxDocParentFrame
-{
- DECLARE_CLASS(MyFrame)
- public:
- wxMenu *editMenu;
-
- // This pointer only needed if in single window mode
- MyCanvas *canvas;
-
- MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size,
- const long type);
-
- void OnAbout(wxCommandEvent& event);
- MyCanvas *CreateCanvas(wxView *view, wxFrame *parent);
-
-DECLARE_EVENT_TABLE()
-};
+ // create the edit menu for drawing documents
+ wxMenu *CreateDrawingEditMenu();
+
+ // create and associate with the given frame the menu bar containing the
+ // given file and edit (possibly NULL) menus as well as the standard help
+ // one
+ void CreateMenuBarForFrame(wxFrame *frame, wxMenu *file, wxMenu *edit);
+
+
+ // show the about box: as we can have different frames it's more
+ // convenient, even if somewhat less usual, to handle this in the
+ // application object itself
+ void OnAbout(wxCommandEvent& event);