- bool AddPage(wxWindow *pPage,
- const wxString& strText,
- bool select = FALSE,
- int imageId = -1);
- // @@@@ VZ: I don't know how to implement InsertPage()
-
- // get the panel which represents the given page
- wxWindow *GetPage(int nPage) const;
-
- void OnNavigationKey(wxNavigationKeyEvent& event);
-
- // implementation
-
- void SetConstraintSizes(bool recurse);
- bool DoPhase(int phase);
- void ApplyWidgetStyle();
-
- // common part of all ctors
- void Init();
-
- // helper function
- wxNotebookPage* GetNotebookPage(int page) const;
-
- wxImageList* m_imageList;
- wxList m_pages;
- size_t m_idHandler; // the change page handler id
-
- DECLARE_DYNAMIC_CLASS(wxNotebook)
- DECLARE_EVENT_TABLE()
-};
+ // the same as AddPage(), but adds it at the specified position
+ bool InsertPage( int position,
+ wxNotebookPage *win,
+ const wxString& strText,
+ bool bSelect = FALSE,
+ int imageId = -1 );
+
+ // handler for tab navigation
+ // --------------------------
+ void OnNavigationKey(wxNavigationKeyEvent& event);
+
+ // implementation
+ // --------------
+
+#if wxUSE_CONSTRAINTS
+ void SetConstraintSizes(bool recurse);
+ bool DoPhase(int phase);
+#endif
+
+ void ApplyWidgetStyle();
+
+ // report if window belongs to notebook
+ bool IsOwnGtkWindow( GdkWindow *window );
+
+ // common part of all ctors
+ void Init();