]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/tab/test.h
1. Implemented support for different icons for different states (expanded,
[wxWidgets.git] / samples / tab / test.h
index 2cbdeb60a1514f557798871719b07387dc123a56..adb13a16fc32d1c0a3202b71f024ca3efe54022b 100644 (file)
@@ -14,8 +14,15 @@ class MyApp: public wxApp
 {
 public:
     bool OnInit(void);
+    void InitTabView(wxPanelTabView* view, wxWindow* window);
+
+    wxButton*   m_okButton;
+    wxButton*   m_cancelButton;
+    wxButton*   m_helpButton;
 };
 
+DECLARE_APP(MyApp)
+
 class MyDialog: public wxTabbedDialog
 {
 public:
@@ -24,6 +31,37 @@ public:
 
     void OnOK(wxCommandEvent& event);
     void OnCloseWindow(wxCloseEvent& event);
+    void Init(void);
+
+DECLARE_EVENT_TABLE()
+};
+
+class MyFrame: public wxFrame
+{
+public:
+    MyFrame(wxFrame* parent, const wxWindowID id, const wxString& title,
+        const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_FRAME_STYLE);
+
+    void OnOK(wxCommandEvent& event);
+    void OnCloseWindow(wxCloseEvent& event);
+    void OnSize(wxSizeEvent& event);
+    void Init(void);
+protected:
+    wxTabbedPanel*      m_panel;
+    wxPanelTabView*     m_view;
+
+DECLARE_EVENT_TABLE()
+};
+
+
+class MyTabbedPanel: public wxTabbedPanel
+{
+public:
+    MyTabbedPanel(wxWindow* parent, const wxWindowID id,
+        const wxPoint& pos, const wxSize& size, const long windowStyle = 0);
+
+    void OnOK(wxCommandEvent& event);
+    void OnCloseWindow(wxCloseEvent& event);
 //    void OnAbout(wxCommandEvent& event);
     void Init(void);