QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RMdiChildQt Class Reference

MDI child window. More...

#include <RMdiChildQt.h>

Inheritance diagram for RMdiChildQt:
RModifiedListener

List of all members.

Signals

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

Public Member Functions

RDocumentgetDocument ()
RDocumentInterfacegetDocumentInterface ()
RGraphicsViewQtgetLastKnownViewWithFocus ()
 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 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)
virtual QSize sizeHint () const

Private Attributes

bool closeEventAccepted
RDocumentInterfacedocumentInterface

Static Private Attributes

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

Detailed Description

MDI child window.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

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

Member Function Documentation

void RMdiChildQt::closeEvent ( QCloseEvent *  closeEvent)
protectedvirtual
void RMdiChildQt::closeRequested ( RMdiChildQt mdiChild)
signal
RDocument * RMdiChildQt::getDocument ( )
RDocumentInterface * RMdiChildQt::getDocumentInterface ( )
RGraphicsViewQt * RMdiChildQt::getLastKnownViewWithFocus ( )
void RMdiChildQt::modifiedStatusChanged ( RMdiChildQt mdiChild)
signal
void RMdiChildQt::setCloseEventAccepted ( )
inline
void RMdiChildQt::setCloseEventRejected ( )
inline
void RMdiChildQt::setDocumentInterface ( RDocumentInterface di)
QSize RMdiChildQt::sizeHint ( ) const
protectedvirtual
void RMdiChildQt::updateModifiedListener ( const RStorage storage)
virtual

Called by the document whenever the current transaction stack changes.

Implements RModifiedListener.


Member Data Documentation

bool RMdiChildQt::closeEventAccepted
private
RDocumentInterface * RMdiChildQt::diLast = NULL
staticprivate

Copyright (c) 2011-2013 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.

RDocumentInterface* RMdiChildQt::documentInterface
private

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