Skip to content

RMdiChildQt

Class in GUI Module
Header: #include <src/gui/RMdiChildQt.h>
Inherits: QMdiSubWindow, RModifiedListener

MDI child window.

Scriptable: This class is available in script environments.

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.
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.
bool closeEventAccepted
RDocumentInterface * documentInterface
static RDocumentInterface * diLast
void closeAccepted(RMdiChildQt *mdiChild)
void closeRequested(RMdiChildQt *mdiChild)
void modifiedStatusChanged(RMdiChildQt *mdiChild)

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.

virtual RMdiChildQt::~RMdiChildQt()

virtual

RDocument * RMdiChildQt::getDocument()

RDocumentInterface * RMdiChildQt::getDocumentInterface()

RGraphicsViewImage * RMdiChildQt::getLastKnownViewWithFocus()

bool RMdiChildQt::isCloseEventAccepted()

inline

void RMdiChildQt::setCloseEventAccepted()

inline

void RMdiChildQt::setCloseEventRejected()

inline

void RMdiChildQt::setDocumentInterface(RDocumentInterface *di)

virtual QSize RMdiChildQt::sizeHint() const

virtual const

virtual void RMdiChildQt::updateModifiedListener(const RStorage *storage)

virtual

Called by the document whenever the current transaction stack changes.

Reimplemented from updateModifiedListener.

virtual void RMdiChildQt::closeEvent(QCloseEvent *closeEvent)

virtual protected

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.

bool RMdiChildQt::closeEventAccepted

private

RDocumentInterface* RMdiChildQt::documentInterface

private

static RDocumentInterface * RMdiChildQt::diLast = NULL

static 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.

void RMdiChildQt::closeAccepted(RMdiChildQt *mdiChild)

void RMdiChildQt::closeRequested(RMdiChildQt *mdiChild)

void RMdiChildQt::modifiedStatusChanged(RMdiChildQt *mdiChild)