QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RMdiChildQt Class Reference

MDI child window. More...

#include <RMdiChildQt.h>

Inheritance diagram for RMdiChildQt:
RModifiedListener

Signals

void closeAccepted (RMdiChildQt *mdiChild)
 
void closeRequested (RMdiChildQt *mdiChild)
 
void modifiedStatusChanged (RMdiChildQt *mdiChild)
 

Public Member Functions

RDocumentgetDocument ()
 
RDocumentInterfacegetDocumentInterface ()
 
RGraphicsViewImagegetLastKnownViewWithFocus ()
 
bool isCloseEventAccepted ()
 
 RMdiChildQt (QWidget *parent=NULL)
 Creates a new MDI child window for interaction with the given document.
 
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 ~RMdiChildQt ()
 
- Public Member Functions inherited from RModifiedListener
virtual ~RModifiedListener ()
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *closeEvent)
 

Private Attributes

bool closeEventAccepted
 
RDocumentInterfacedocumentInterface
 

Static Private Attributes

static RDocumentInterfacediLast = NULL
 Copyright (c) 2011-2018 by Andrew Mustun.
 

Detailed Description

MDI child window.

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ 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()

RMdiChildQt::~RMdiChildQt ( )
virtual

Member Function Documentation

◆ closeAccepted

void RMdiChildQt::closeAccepted ( RMdiChildQt * mdiChild)
signal

◆ closeEvent()

void RMdiChildQt::closeEvent ( QCloseEvent * closeEvent)
protectedvirtual

◆ closeRequested

void RMdiChildQt::closeRequested ( RMdiChildQt * mdiChild)
signal

◆ getDocument()

RDocument * RMdiChildQt::getDocument ( )

◆ getDocumentInterface()

RDocumentInterface * RMdiChildQt::getDocumentInterface ( )

◆ getLastKnownViewWithFocus()

RGraphicsViewImage * RMdiChildQt::getLastKnownViewWithFocus ( )

◆ isCloseEventAccepted()

bool RMdiChildQt::isCloseEventAccepted ( )
inline

◆ modifiedStatusChanged

void RMdiChildQt::modifiedStatusChanged ( RMdiChildQt * mdiChild)
signal

◆ setCloseEventAccepted()

void RMdiChildQt::setCloseEventAccepted ( )
inline

◆ setCloseEventRejected()

void RMdiChildQt::setCloseEventRejected ( )
inline

◆ setDocumentInterface()

void RMdiChildQt::setDocumentInterface ( RDocumentInterface * di)

◆ sizeHint()

QSize RMdiChildQt::sizeHint ( ) const
virtual

◆ updateModifiedListener()

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

Called by the document whenever the current transaction stack changes.

Implements RModifiedListener.

Member Data Documentation

◆ closeEventAccepted

bool RMdiChildQt::closeEventAccepted
private

◆ diLast

RDocumentInterface * RMdiChildQt::diLast = NULL
staticprivate

Copyright (c) 2011-2018 by Andrew Mustun.

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.

◆ documentInterface

RDocumentInterface* RMdiChildQt::documentInterface
private

The documentation for this class was generated from the following files: