+
+ // common part of all ctors
+ void Init();
+
+ // Called by GTK event handler when the current page is definitely changed.
+ void GTKOnPageChanged();
+
+ // helper function
+ wxGtkNotebookPage* GetNotebookPage(int page) const;
+
+ // the additional page data (the pages themselves are in m_pages array)
+ wxGtkNotebookPagesList m_pagesData;
+
+ // we need to store the old selection since there
+ // is no other way to know about it at the time
+ // of the change selection event
+ int m_oldSelection;
+
+protected:
+ // set all page's attributes
+ virtual void DoApplyWidgetStyle(GtkRcStyle *style);
+ virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
+
+ // remove one page from the notebook but do not destroy it
+ virtual wxNotebookPage *DoRemovePage(size_t nPage);
+
+ int DoSetSelection(size_t nPage, int flags = 0);
+
+private:
+ // the padding set by SetPadding()
+ int m_padding;
+
+ virtual void AddChildGTK(wxWindowGTK* child);
+
+ DECLARE_DYNAMIC_CLASS(wxNotebook)
+ DECLARE_EVENT_TABLE()
+};
+
+#endif // _WX_GTKNOTEBOOK_H_