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.
23 class PanelStack : public QWidget
27 PanelStack(QWidget * parent = 0, const char * name = "panelstack");
29 /// add a category with no associated panel
30 void addCategory(std::string const & name, std::string const & parent = std::string());
32 /// add a widget panel with a given name, under the given parent
33 void addPanel(QWidget * panel, std::string const & name, std::string const & parent = std::string());
35 /// set current panel by logical name
36 void setCurrentPanel(std::string const &);
39 /// set current panel from an item
40 void switchPanel(QListViewItem * i);
43 typedef std::map<std::string, QListViewItem *> PanelMap;
47 typedef std::map<QListViewItem *, QWidget *> WidgetMap;
49 WidgetMap widget_map_;
51 /// contains the items
54 /// contains the panes
55 QWidgetStack * stack_;
58 #endif // PANELSTACK_H