summaryrefslogtreecommitdiff
path: root/src/frontend/cmdiarea.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/cmdiarea.h')
-rw-r--r--src/frontend/cmdiarea.h39
1 files changed, 31 insertions, 8 deletions
diff --git a/src/frontend/cmdiarea.h b/src/frontend/cmdiarea.h
index 1fb1c7f..858d0d4 100644
--- a/src/frontend/cmdiarea.h
+++ b/src/frontend/cmdiarea.h
@@ -32,7 +32,8 @@ class CMDIArea: public QMdiArea {
ArrangementModeTileVertical = 1,
ArrangementModeTileHorizontal = 2,
ArrangementModeCascade = 3,
- ArrangementModeManual = 4
+ ArrangementModeManual = 4,
+ ArrangementModeTile = 5
};
/**
@@ -68,22 +69,43 @@ class CMDIArea: public QMdiArea {
*/
QList<QMdiSubWindow*> usableWindowList();
+ /**
+ Show or hide the sub-window min/max buttons.
+ */
+ void enableWindowMinMaxFlags(bool enable);
+
public slots:
/**
- Our own cascade version which, if only one window is left, shows this
- maximized. Also necessary for autoCascade feature.
+ Uses Qt's tileSubWindows function.
+ \note This not set an automatic arrangement mode, it just arranges the
+ subwindows once. However, this method is also used when
+ arranging the subwindows into a tile automatically.
+ */
+ void myTile();
+ /**
+ Our own cascade version which, if only one subwindow is left, shows it
+ maximized.
+ \note This not set an automatic arrangement mode, it just arranges the
+ subwindows once. However, this method is also used when
+ arranging the subwindows into a cascade automatically.
*/
void myCascade();
/**
- Our own cascade version which, if only one window is left, shows this
- maximized. Also necessary for autoTile feature.
+ Our own vertical tile version which, if only one subwindow is left,
+ shows it maximized.
+ \note This not set an automatic arrangement mode, it just arranges the
+ subwindows once. However, this method is also used when
+ arranging the subwindows into a vertical tiling automatically.
*/
void myTileVertical();
/**
- Horizontal tile function. This function was taken from Qt's MDI
- example.
+ Our own horizontal tile version which, if only one subwindow is left,
+ shows it maximized.
+ \note This not set an automatic arrangement mode, it just arranges the
+ subwindows once. However, this method is also used when
+ arranging the subwindows into a horizontal tiling automatically.
*/
void myTileHorizontal();
@@ -95,7 +117,8 @@ class CMDIArea: public QMdiArea {
protected:
/**
- * Reimplementation of QWidget::resizeEvent().
+ Reimplementation of QWidget::resizeEvent() to handle our automatic
+ tiling properly.
*/
void resizeEvent(QResizeEvent *e);