4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
25 class PanelStack : public QWidget
29 PanelStack(QWidget * parent = 0, const char * name = "panelstack");
31 /// add a category with no associated panel
32 void addCategory(string const & name, string const & parent = string());
34 /// add a widget panel with a given name, under the given parent
35 void addPanel(QWidget * panel, string const & name, string const & parent = string());
37 /// set current panel by logical name
38 void setCurrentPanel(string const &);
41 /// set current panel from an item
42 void switchPanel(QListViewItem * i);
45 typedef std::map<string, QListViewItem *> PanelMap;
49 typedef std::map<QListViewItem *, QWidget *> WidgetMap;
51 WidgetMap widget_map_;
53 /// contains the items
56 /// contains the panes
57 QWidgetStack * stack_;
60 #endif // PANELSTACK_H