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.
14 #include "support/std_string.h"
24 class PanelStack : public QWidget
28 PanelStack(QWidget * parent = 0, const char * name = "panelstack");
30 /// add a category with no associated panel
31 void addCategory(string const & name, string const & parent = string());
33 /// add a widget panel with a given name, under the given parent
34 void addPanel(QWidget * panel, string const & name, string const & parent = string());
36 /// set current panel by logical name
37 void setCurrentPanel(string const &);
40 /// set current panel from an item
41 void switchPanel(QListViewItem * i);
44 typedef std::map<string, QListViewItem *> PanelMap;
48 typedef std::map<QListViewItem *, QWidget *> WidgetMap;
50 WidgetMap widget_map_;
52 /// contains the items
55 /// contains the panes
56 QWidgetStack * stack_;
59 #endif // PANELSTACK_H