00001 00007 /* 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2.1 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 #ifndef OMGUI_GTK2_NOTEBOOK_H 00024 #define OMGUI_GTK2_NOTEBOOK_H 00025 00026 #include <omgui/gtk2/panel.h> 00027 #include <omgui/common/notebook.h> 00028 #include <omgui/notebook.h> 00029 00030 namespace omgui { 00031 namespace gtk2 { 00032 00033 class Notebook : public virtual omgui::gtk2::Panel, public virtual omgui::common::Notebook 00034 { 00035 public: 00036 Notebook(omgui::Notebook *wrapper = 0); 00037 00038 void create(const omgui::initializer::NotebookData ¶ms); 00039 00040 void append_page(NotebookPage page, const string &name); 00041 void insert_page(int where, NotebookPage page, const string &name); 00042 NotebookPage remove_page(NotebookPage page); 00043 NotebookPage get_selected_page() const; 00044 bool set_selected_page(NotebookPage page); 00045 bool select_next_page(); 00046 bool select_previous_page(); 00047 void set_page_name(NotebookPage page, const string &name); 00048 string get_page_name(NotebookPage page) const; 00049 int get_page_index(NotebookPage page) const; 00050 NotebookPage get_page(int index) const; 00051 int get_page_count() const; 00052 }; 00053 00054 } // gtk2 00055 } // omgui 00056 00057 #endif // OMGUI_GTK2_NOTEBOOK_H