- // accessors
- // ---------
-
- // get number of pages in the dialog
- int GetPageCount() const { return (int) 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; }
-
- // sets/returns item's image index in the current image list
- virtual int GetPageImage(int nPage) const = 0;
- virtual bool SetPageImage(int nPage, int nImage) = 0;