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.
22 class PanelStack : public QWidget
26 PanelStack(QWidget * parent = 0, const char * name = "panelstack");
28 /// add a category with no associated panel
29 void addCategory(std::string const & name, std::string const & parent = std::string());
31 /// add a widget panel with a given name, under the given parent
32 void addPanel(QWidget * panel, std::string const & name, std::string const & parent = std::string());
34 /// set current panel by logical name
35 void setCurrentPanel(std::string const &);
38 /// set current panel from an item
39 void switchPanel(QListViewItem * i);
42 typedef std::map<std::string, QListViewItem *> PanelMap;
46 typedef std::map<QListViewItem *, QWidget *> WidgetMap;
48 WidgetMap widget_map_;
50 /// contains the items
53 /// contains the panes
54 QWidgetStack * stack_;
57 #endif // PANELSTACK_H