#ifndef BASIC_H #define BASIC_H enum{ MENU_FILE_QUIT, MENU_FILE_ADD, MENU_FILE_INSERT, MENU_FILE_DELETE, wxID_Button1, wxID_Button2, wxID_Button3 }; class wxNotebookApp : public wxApp{ public: virtual bool OnInit(); }; class BasicFrame : public wxFrame{ private: wxMenuBar* menubar; wxMenu* exmenu; wxNotebook* notebook; DECLARE_EVENT_TABLE() public: BasicFrame(const wxChar* title, int xpos, int ypos, int width, int height); ~BasicFrame(); // Methoden die auf Ereignisse warten .. void OnMenuFileQuit(wxCommandEvent& event); void OnMenuFileAddPage(wxCommandEvent& event); void OnMenuFileInsertPage(wxCommandEvent& event); void OnMenuFileDeletePage(wxCommandEvent& event); void OnButton1(wxCommandEvent& event); void OnButton2(wxCommandEvent& event); void OnButton3(wxCommandEvent& event); }; // Globale Funktionen wxPanel* CreatePanelWithButton(wxNotebook* parent); wxPanel* CreatePanelWithTwoButton(wxNotebook* parent); #endif