- // quasi ctor
- bool Create(wxWindow *parent,
- wxWindowID id,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = 0,
- const wxString& name = wxNOTEBOOK_NAME);
-
- // dtor
- virtual ~wxNotebookBase();
-
- // accessors
- // ---------
-
- // get number of pages in the dialog
- int GetPageCount() const { return m_pages.GetCount(); }
-
- // get the panel which represents the given page
- wxNotebookPage *GetPage(int nPage) { return m_pages[nPage]; }
-
- // get the currently selected page
- virtual int GetSelection() const = 0;
-
- // set/get the title of a page
- virtual bool SetPageText(int nPage, const wxString& strText) = 0;
- virtual wxString GetPageText(int nPage) const = 0;
-
- // image list stuff: each page may have an image associated with it (all
- // images belong to the same image list)
- virtual void SetImageList(wxImageList* imageList);
-
- // as SetImageList() but we will delete the image list ourselves
- void AssignImageList(wxImageList* imageList);
-
- // get pointer (may be NULL) to the associated image list
- wxImageList* GetImageList() const { return m_imageList; }