diff options
author | Florian Jung <flo@windfisch.org> | 2011-08-14 20:55:27 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-08-14 20:55:27 +0000 |
commit | 078e927639369928a6fa0483c82867dae6cbf9a2 (patch) | |
tree | a4a2ede9fab58a3a284af9ec1ca1096de64995f2 /muse2/muse/cobject.h | |
parent | 01d2680f0d18f7783ca1e1f48098590cd0317284 (diff) |
added "As subwindow" menu entries and made them work
Diffstat (limited to 'muse2/muse/cobject.h')
-rw-r--r-- | muse2/muse/cobject.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/muse2/muse/cobject.h b/muse2/muse/cobject.h index 48653f4b..f02aa4dc 100644 --- a/muse2/muse/cobject.h +++ b/muse2/muse/cobject.h @@ -18,6 +18,7 @@ class QMdiSubWindow; class QFocusEvent; class QToolBar; class Xml; +class QAction; //--------------------------------------------------------- // TopWin @@ -31,9 +32,7 @@ class TopWin : public QMainWindow virtual void readStatus(Xml&); virtual void writeStatus(int, Xml&) const; - virtual QMdiSubWindow* createMdiWrapper(); bool isMdiWin(); - void setFree(); TopWin(QWidget* parent=0, const char* name=0, Qt::WindowFlags f = Qt::Window); @@ -49,17 +48,23 @@ class TopWin : public QMainWindow QMdiSubWindow* mdisubwin; bool _sharesToolsAndMenu; std::list<QToolBar*> _toolbars; - + void insertToolBar(QToolBar*, QToolBar*); void insertToolBarBreak(QToolBar*); void removeToolBar(QToolBar*); void removeToolBarBreak(QToolBar*); void addToolBar(Qt::ToolBarArea, QToolBar*); + virtual QMdiSubWindow* createMdiWrapper(); + + protected: + QAction* subwinAction; + public slots: virtual void hide(); virtual void show(); virtual void setVisible(bool); + void setIsMdiWin(bool); signals: void toolsAndMenuSharingChanged(bool); |