RMdiChildQt
Class in GUI Module
Header: #include <src/gui/RMdiChildQt.h>
Inherits: QMdiSubWindow, RModifiedListener
Description
Section titled “Description”MDI child window.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RMdiChildQt(QWidget *parent=NULL)Creates a new MDI child window for interaction with the given document. |
|
| virtual | ~RMdiChildQt() |
| RDocument * | getDocument() |
| RDocumentInterface * | getDocumentInterface() |
| RGraphicsViewImage * | getLastKnownViewWithFocus() |
| bool | isCloseEventAccepted() |
| void | setCloseEventAccepted() |
| void | setCloseEventRejected() |
| void | setDocumentInterface(RDocumentInterface *di) |
| virtual QSize | sizeHint() const |
| virtual void | updateModifiedListener(const RStorage *storage)Called by the document whenever the current transaction stack changes. |
Protected Functions
Section titled “Protected Functions”| virtual void | closeEvent(QCloseEvent *closeEvent) |
| virtual bool | focusNextPrevChild(bool next)Tab / Shift+Tab with the keyboard focus in a widget of this MDI child which does not handle the focus chain itself (e.g. |
Private Attributes
Section titled “Private Attributes”| bool | closeEventAccepted |
| RDocumentInterface * | documentInterface |
Static Private Attributes
Section titled “Static Private Attributes”| static RDocumentInterface * | diLast |
Signals
Section titled “Signals”| void | closeAccepted(RMdiChildQt *mdiChild) |
| void | closeRequested(RMdiChildQt *mdiChild) |
| void | modifiedStatusChanged(RMdiChildQt *mdiChild) |
Member Documentation
Section titled “Member Documentation”RMdiChildQt
Section titled “RMdiChildQt”RMdiChildQt::RMdiChildQt(QWidget *parent=NULL)Creates a new MDI child window for interaction with the given document.
The MDI window takes ownership of the document.
~RMdiChildQt
Section titled “~RMdiChildQt”virtual RMdiChildQt::~RMdiChildQt()virtual
getDocument
Section titled “getDocument”RDocument * RMdiChildQt::getDocument()getDocumentInterface
Section titled “getDocumentInterface”RDocumentInterface * RMdiChildQt::getDocumentInterface()getLastKnownViewWithFocus
Section titled “getLastKnownViewWithFocus”RGraphicsViewImage * RMdiChildQt::getLastKnownViewWithFocus()isCloseEventAccepted
Section titled “isCloseEventAccepted”bool RMdiChildQt::isCloseEventAccepted()inline
setCloseEventAccepted
Section titled “setCloseEventAccepted”void RMdiChildQt::setCloseEventAccepted()inline
setCloseEventRejected
Section titled “setCloseEventRejected”void RMdiChildQt::setCloseEventRejected()inline
setDocumentInterface
Section titled “setDocumentInterface”void RMdiChildQt::setDocumentInterface(RDocumentInterface *di)sizeHint
Section titled “sizeHint”virtual QSize RMdiChildQt::sizeHint() constvirtual const
updateModifiedListener
Section titled “updateModifiedListener”virtual void RMdiChildQt::updateModifiedListener(const RStorage *storage)virtual
Called by the document whenever the current transaction stack changes.
Reimplemented from updateModifiedListener.
closeEvent
Section titled “closeEvent”virtual void RMdiChildQt::closeEvent(QCloseEvent *closeEvent)virtual protected
focusNextPrevChild
Section titled “focusNextPrevChild”virtual bool RMdiChildQt::focusNextPrevChild(bool next)virtual protected
Tab / Shift+Tab with the keyboard focus in a widget of this MDI child which does not handle the focus chain itself (e.g.
the layout tab bar below the drawing area): moves the focus to the next / previous widget of the main window.
QWidget::focusNextPrevChild delegates up the parent chain to the first window or sub window, i.e. to this QMdiSubWindow, and from there Qt only considers widgets inside the sub window. Without this override, the focus is trapped between the widgets of the MDI child (the layout tab bar and the graphics view), which cannot be left with the keyboard or a screen reader.
closeEventAccepted
Section titled “closeEventAccepted”bool RMdiChildQt::closeEventAcceptedprivate
documentInterface
Section titled “documentInterface”RDocumentInterface* RMdiChildQt::documentInterfaceprivate
diLast
Section titled “diLast”static RDocumentInterface * RMdiChildQt::diLast = NULLstatic private
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
closeAccepted
Section titled “closeAccepted”void RMdiChildQt::closeAccepted(RMdiChildQt *mdiChild)closeRequested
Section titled “closeRequested”void RMdiChildQt::closeRequested(RMdiChildQt *mdiChild)modifiedStatusChanged
Section titled “modifiedStatusChanged”void RMdiChildQt::modifiedStatusChanged(RMdiChildQt *mdiChild)