25 #ifndef OST_GUI_MAIN_WINDOW_HH
26 #define OST_GUI_MAIN_WINDOW_HH
35 #include <QMainWindow>
38 namespace ost {
namespace gui {
44 typedef std::map<QWidget*,QDockWidget*> DockWidgetMap;
46 MainWindow(QWidget* parent=0, Qt::WindowFlags flags=0);
49 void AddDockWidget(QWidget* w,
const QString& name,
bool show=
true,
int area=2);
51 void RemoveDockWidget(QWidget* w);
54 void OnDockMenu(QAction* a);
55 void OnDockClose(QDockWidget* dock);
59 const QMenu* WindowMenu()
const;
63 DockWidgetMap dock_widget_map_;