BibleTime
|
#include <cmdiarea.h>
Public Types | |
enum | MDIArrangementMode { ArrangementModeTileVertical = 1 , ArrangementModeTileHorizontal = 2 , ArrangementModeCascade = 3 , ArrangementModeManual = 4 , ArrangementModeTile = 5 , ArrangementModeTabbed = 6 } |
Public Slots | |
void | findNextTextInActiveWindow () |
void | findPreviousTextInActiveWindow () |
void | highlightTextInActiveWindow (const QString &text, bool caseSensitive) |
void | myCascade () |
void | myTile () |
void | myTileHorizontal () |
void | myTileVertical () |
Signals | |
void | sigSetToplevelCaption (const QString &) |
Public Member Functions | |
QMdiSubWindow * | addDisplayWindow (CDisplayWindow *displayWindow) |
BibleTime * | bibleTimeWindow () |
CMDIArea (BibleTime *parent) | |
void | enableWindowMinMaxFlags (bool enable) |
MDIArrangementMode | getMDIArrangementMode () const |
void | setMDIArrangementMode (const MDIArrangementMode mode) |
void | triggerWindowUpdate () |
QList< QMdiSubWindow * > | usableWindowList () const |
Protected Member Functions | |
void | emitWindowCaptionChanged () |
bool | eventFilter (QObject *o, QEvent *e) override |
void | findTextInActiveWindow (bool const backward) |
void | resizeEvent (QResizeEvent *e) override |
Properties | |
MDIArrangementMode | m_mdiArrangementMode |
Private Attributes | |
CDisplayWindow * | m_activeWindow |
BibleTime * | m_bibleTime |
A custom MDI area widget.
Definition at line 31 of file cmdiarea.h.
Possible MDI subwindow arrangement modes.
Enumerator | |
---|---|
ArrangementModeTileVertical | |
ArrangementModeTileHorizontal | |
ArrangementModeCascade | |
ArrangementModeManual | |
ArrangementModeTile | |
ArrangementModeTabbed |
Definition at line 41 of file cmdiarea.h.
CMDIArea::CMDIArea | ( | BibleTime * | parent | ) |
[in] | parent | BibleTime main window used for parent widget. |
Definition at line 44 of file cmdiarea.cpp.
References BT_CONNECT, BibleTime::clearMdiToolBars(), anonymous_namespace{cmdiarea.cpp}::getDisplayWindow(), if(), m_activeWindow, m_bibleTime, sigSetToplevelCaption(), and CDisplayWindow::windowActivated().
QMdiSubWindow * CMDIArea::addDisplayWindow | ( | CDisplayWindow * | displayWindow | ) |
Definition at line 85 of file cmdiarea.cpp.
References ArrangementModeManual, BT_CONNECT, enableWindowMinMaxFlags(), m_mdiArrangementMode, and triggerWindowUpdate().
Referenced by BibleTime::createReadDisplayWindow().
|
inline |
|
protected |
Definition at line 323 of file cmdiarea.cpp.
References sigSetToplevelCaption().
Referenced by myCascade(), myTile(), myTileHorizontal(), and myTileVertical().
void CMDIArea::enableWindowMinMaxFlags | ( | bool | enable | ) |
Show or hide the sub-window min/max buttons.
Definition at line 438 of file cmdiarea.cpp.
Referenced by addDisplayWindow(), and BibleTime::slotUpdateWindowArrangementActions().
|
overrideprotected |
Reimplementation of QObject::eventFilter() used to handle some MDI subwindow events.
Definition at line 371 of file cmdiarea.cpp.
References sigSetToplevelCaption(), and triggerWindowUpdate().
|
slot |
Definition at line 342 of file cmdiarea.cpp.
References findTextInActiveWindow().
Referenced by BibleTime::createCentralWidget().
|
slot |
Definition at line 344 of file cmdiarea.cpp.
References findTextInActiveWindow().
Referenced by BibleTime::createCentralWidget().
|
protected |
Definition at line 351 of file cmdiarea.cpp.
References CDisplayWindow::displayWidget(), BtModelViewReadDisplay::findText(), and anonymous_namespace{cmdiarea.cpp}::getDisplayWindow().
Referenced by findNextTextInActiveWindow(), and findPreviousTextInActiveWindow().
|
inline |
Returns the current MDI arrangement mode.
Definition at line 75 of file cmdiarea.h.
References m_mdiArrangementMode.
Referenced by BibleTime::saveProfile().
|
slot |
Definition at line 346 of file cmdiarea.cpp.
References CDisplayWindow::displayWidget(), anonymous_namespace{cmdiarea.cpp}::getDisplayWindow(), and BtModelViewReadDisplay::highlightText().
Referenced by BibleTime::createCentralWidget().
|
slot |
Our own cascade version which, if only one subwindow is left, shows it maximized.
Definition at line 277 of file cmdiarea.cpp.
References emitWindowCaptionChanged(), and usableWindowList().
Referenced by BibleTime::slotUpdateWindowArrangementActions(), and triggerWindowUpdate().
|
slot |
Our own auto tile version which, if only one subwindow is left, shows it
Definition at line 222 of file cmdiarea.cpp.
References emitWindowCaptionChanged(), and usableWindowList().
Referenced by setMDIArrangementMode(), BibleTime::slotUpdateWindowArrangementActions(), and triggerWindowUpdate().
|
slot |
Our own horizontal tile version which, if only one subwindow is left, shows it maximized.
Definition at line 188 of file cmdiarea.cpp.
References emitWindowCaptionChanged(), and usableWindowList().
Referenced by BibleTime::slotUpdateWindowArrangementActions(), and triggerWindowUpdate().
|
slot |
Our own vertical tile version which, if only one subwindow is left, shows it maximized.
Definition at line 154 of file cmdiarea.cpp.
References emitWindowCaptionChanged(), and usableWindowList().
Referenced by BibleTime::processCommandline(), BibleTime::slotUpdateWindowArrangementActions(), and triggerWindowUpdate().
|
overrideprotected |
Reimplementation of QWidget::resizeEvent() to handle our automatic tiling properly.
Definition at line 354 of file cmdiarea.cpp.
References ArrangementModeTabbed, m_mdiArrangementMode, and triggerWindowUpdate().
void CMDIArea::setMDIArrangementMode | ( | const MDIArrangementMode | mode | ) |
Resets the MDI arrangement mode and arranges the windows.
[in] | mode | new MDI arrangement mode. |
Definition at line 134 of file cmdiarea.cpp.
References ArrangementModeManual, ArrangementModeTabbed, ArrangementModeTile, m_mdiArrangementMode, myTile(), and triggerWindowUpdate().
Referenced by BibleTime::reloadProfile(), and BibleTime::slotUpdateWindowArrangementActions().
|
signal |
Emits a signal to set the caption of the toplevel widget.
Referenced by CMDIArea(), emitWindowCaptionChanged(), and eventFilter().
void CMDIArea::triggerWindowUpdate | ( | ) |
Forces an update of the currently chosen window arrangement.
Definition at line 417 of file cmdiarea.cpp.
References ArrangementModeCascade, ArrangementModeTile, ArrangementModeTileHorizontal, ArrangementModeTileVertical, m_mdiArrangementMode, myCascade(), myTile(), myTileHorizontal(), and myTileVertical().
Referenced by addDisplayWindow(), eventFilter(), BibleTime::reloadProfile(), resizeEvent(), setMDIArrangementMode(), and BibleTime::toggleFullscreen().
QList< QMdiSubWindow * > CMDIArea::usableWindowList | ( | ) | const |
Definition at line 332 of file cmdiarea.cpp.
Referenced by myCascade(), myTile(), myTileHorizontal(), myTileVertical(), and BibleTime::slotOpenWindowsMenuAboutToShow().
|
private |
Definition at line 167 of file cmdiarea.h.
Referenced by CMDIArea().
|
private |
Definition at line 168 of file cmdiarea.h.
Referenced by bibleTimeWindow(), and CMDIArea().
|
readwrite |
Definition at line 1 of file cmdiarea.h.
Referenced by addDisplayWindow(), getMDIArrangementMode(), resizeEvent(), setMDIArrangementMode(), and triggerWindowUpdate().