|
QCAD Application Framework
CAD Application Development and Automation.
|
Base class for a Qt based MDI main application window. More...
#include <RMainWindowQt.h>
Public Slots | |
| void | currentTabChanged (int index) |
| Part of the workaround for QMdiArea bug with events filtering through all stacked windows: | |
| void | objectDestroyed (QObject *obj) |
| void | subWindowActivated (QMdiSubWindow *sw) |
Signals | |
| void | commandPrompt (const QString &text) |
| Emmitted when the command prompt is requested to change. | |
| void | dragEnter (QDragEnterEvent *event) |
| void | drop (QDropEvent *event) |
| void | escape () |
| void | leftMouseTip (const QString &message) |
| Emmitted when the left mouse button tip is requested to change. | |
| void | progress (int value) |
| void | progressCanceled () |
| void | progressEnd () |
| void | progressText (const QString &label) |
| void | resumedTab (RMdiChildQt *mdiChild) |
| void | rightMouseTip (const QString &message) |
| Emmitted when the right mouse button tip is requested to change. | |
| void | userCommand (const QString &message) |
| void | userInfo (const QString &message) |
| void | userMessage (const QString &message) |
| void | userWarning (const QString &message, bool messageBox) |
Public Member Functions | |
| virtual void | cancelProgress () |
| virtual void | close () |
| Closes the application window. | |
| virtual void | escapeEvent () |
| virtual RDocument * | getDocument () |
| virtual RDocumentInterface * | getDocumentInterface () |
| virtual int | getHeight () |
| QMdiArea * | getMdiArea () |
| RMdiChildQt * | getMdiChild () |
| virtual int | getPositionX () |
| virtual int | getPositionY () |
| QTabBar * | getTabBar () |
| virtual int | getWidth () |
| virtual void | handleUserCommand (const QString &message) |
| virtual void | handleUserInfo (const QString &message) |
| virtual void | handleUserMessage (const QString &message) |
| virtual void | handleUserWarning (const QString &message, bool messageBox=false) |
| virtual void | move (int x, int y) |
Moves the application window to the given x / y position. | |
| virtual void | postCloseEvent () |
| virtual void | postSelectionChangedEvent () |
| virtual void | postTransactionEvent (bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityAll) |
| virtual bool | readSettings () |
| Restores the application window settings (size, position, ...). | |
| virtual void | resize (int width, int height) |
Resizes the application window to the given width and height. | |
| RMainWindowQt (QWidget *parent=0, bool hasMdiArea=true) | |
| virtual void | setCommandPrompt (const QString &text="") |
| virtual void | setGraphicsViewCursor (const QCursor &cursor) |
| Sets the cursor of all graphics views in all MDI children. | |
| virtual void | setLeftMouseTip (const QString &text="") |
| virtual void | setProgress (int value) |
| virtual void | setProgressEnd () |
| virtual void | setProgressText (const QString &text="") |
| virtual void | setRightMouseTip (const QString &text="") |
| virtual void | writeSettings () |
| Stores the application window settings (size, position, ...). | |
Public Member Functions inherited from RMainWindow | |
| void | addBlockListener (RBlockListener *l) |
| Adds a listener for block change / add / remove events. | |
| void | addCoordinateListener (RCoordinateListener *l) |
| Adds a listener for coordinate events. | |
| void | addFocusListener (RFocusListener *l) |
| Adds a listener for focus changes. | |
| void | addLayerListener (RLayerListener *l) |
| Adds a listener for layer change / add / remove events. | |
| void | addPenListener (RPenListener *l) |
| Adds a listener for pen change events. | |
| void | addPropertyListener (RPropertyListener *l) |
| Adds a listener for property events. | |
| void | addSelectionListener (RSelectionListener *l) |
| Adds a listener for selection events. | |
| void | addSnapListener (RSnapListener *l) |
| Adds a listener for snap mode changes. | |
| void | addTransactionListener (RTransactionListener *l) |
| Adds a listener for transaction events. | |
| void | addUcsListener (RUcsListener *l) |
| Adds a listener for UCS change / add / remove events. | |
| void | addViewListener (RViewListener *l) |
| Adds a listener for view change / add / remove events. | |
| void | notifyBlockListeners (RDocumentInterface *documentInterface) |
| Notifies all block listeners that at least one block object has changed. | |
| void | notifyCoordinateListeners (RDocumentInterface *documentInterface) |
Notifies all coordinate listeners that the coordinate has changed to position. | |
| void | notifyFocusListeners (RDocumentInterface *documentInterface) |
| Notifies all focus listeners. | |
| void | notifyLayerListeners (RDocumentInterface *documentInterface) |
| Notifies all layer listeners that at least one layer object has changed. | |
| void | notifyListeners (bool withNull=false) |
| void | notifyPenListeners (RDocumentInterface *documentInterface) |
| Notifies all pen listeners that the current pen has changed. | |
| void | notifyPropertyListeners (RDocument *document, bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityAll) |
| Notifies all property listeners that the current property has changed. | |
| void | notifyPropertyListeners (RDocument &document, REntity &entity) |
| Notifies all property listeners that the current property is the given entity. | |
| void | notifyPropertyListeners () |
| Notifies all property listeners that no properties are currently relevant. | |
| void | notifySelectionListeners (RDocumentInterface *documentInterface) |
| Notifies all selection listeners that the current selection has changed. | |
| void | notifySnapListeners (RDocumentInterface *documentInterface) |
| Notifies all snap mode listeners. | |
| void | notifyTransactionListeners (RDocument *document) |
| Notifies all transaction listeners. | |
| void | notifyUcsListeners (RDocumentInterface *documentInterface) |
| Notifies all UCS listeners that at least one UCS object has changed. | |
| void | notifyViewListeners (RDocumentInterface *documentInterface) |
| Notifies all view listeners that at least one view object has changed. | |
| void | propertyChangeEvent (RPropertyEvent &event) |
| RMainWindow () | |
| void | ucsSetEvent (const QString &ucsName) |
| Called immediately after the user has activated a new UCS to be used as current UCS. | |
| virtual | ~RMainWindow () |
Public Member Functions inherited from RProgressHandler | |
| RProgressHandler () | |
| virtual void | setProgressEnabled (bool on) |
Static Public Member Functions | |
| static RMainWindowQt * | getMainWindow () |
Static Public Member Functions inherited from RMainWindow | |
| static RDocumentInterface * | getDocumentInterfaceStatic () |
| static bool | hasMainWindow () |
| static void | installMessageHandler () |
| static void | messageHandler (QtMsgType type, const char *msg) |
Protected Slots | |
| void | notifyListenersSlot (QMdiSubWindow *mdiChild) |
| void | suspendAndResume (QMdiSubWindow *mdiChild) |
| void | updateGuiActions (QMdiSubWindow *mdiChild=NULL) |
| void | updateScenes (QMdiSubWindow *mdiChild) |
Protected Member Functions | |
| virtual void | closeEvent (QCloseEvent *e) |
| virtual void | dragEnterEvent (QDragEnterEvent *event) |
| virtual void | dropEvent (QDropEvent *event) |
| virtual bool | event (QEvent *e) |
Protected Attributes | |
| QMdiArea * | mdiArea |
Protected Attributes inherited from RMainWindow | |
| QList< RBlockListener * > | blockListeners |
| QList< RCoordinateListener * > | coordinateListeners |
| QList< RFocusListener * > | focusListeners |
| QList< RLayerListener * > | layerListeners |
| QMutex | mutex |
| QList< RPenListener * > | penListeners |
| QList< RPropertyListener * > | propertyListeners |
| QList< RSelectionListener * > | selectionListeners |
| QList< RSnapListener * > | snapListeners |
| QList< RTransactionListener * > | transactionListeners |
| QList< RUcsListener * > | ucsListeners |
| QList< RViewListener * > | viewListeners |
Protected Attributes inherited from RProgressHandler | |
| bool | progressEnabled |
Private Attributes | |
| bool | objectWasDestroyed |
Additional Inherited Members | |
Static Protected Attributes inherited from RMainWindow | |
| static RMainWindow * | mainWindow = NULL |
Base class for a Qt based MDI main application window.
| RMainWindowQt::RMainWindowQt | ( | QWidget * | parent = 0, |
| bool | hasMdiArea = true |
||
| ) |
|
virtual |
|
virtual |
Closes the application window.
Implements RMainWindow.
|
protectedvirtual |
|
signal |
Emmitted when the command prompt is requested to change.
|
slot |
Part of the workaround for QMdiArea bug with events filtering through all stacked windows:
|
signal |
|
protectedvirtual |
|
signal |
|
protectedvirtual |
|
signal |
|
virtual |
Implements RMainWindow.
|
protectedvirtual |
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RMainWindow.
|
static |
Reimplemented from RMainWindow.
| QMdiArea * RMainWindowQt::getMdiArea | ( | ) |
| RMdiChildQt * RMainWindowQt::getMdiChild | ( | ) |
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RMainWindow.
| QTabBar * RMainWindowQt::getTabBar | ( | ) |
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RMessageHandler.
|
virtual |
Implements RMessageHandler.
|
virtual |
Implements RMessageHandler.
|
virtual |
Implements RMessageHandler.
|
signal |
Emmitted when the left mouse button tip is requested to change.
|
virtual |
Moves the application window to the given x / y position.
Implements RMainWindow.
|
protectedslot |
|
slot |
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RMainWindow.
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Restores the application window settings (size, position, ...).
Reimplemented from RMainWindow.
|
virtual |
Resizes the application window to the given width and height.
Implements RMainWindow.
|
signal |
|
signal |
Emmitted when the right mouse button tip is requested to change.
|
virtual |
Implements RMainWindow.
|
virtual |
Sets the cursor of all graphics views in all MDI children.
Necessary as workaround for Qt cursor bug (cursor inconsistent with multiple widgets on top of each otehr in MDI area).
Implements RMainWindow.
|
virtual |
Implements RMainWindow.
|
virtual |
Implements RProgressHandler.
|
virtual |
Implements RProgressHandler.
|
virtual |
Implements RProgressHandler.
|
virtual |
Implements RMainWindow.
|
slot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
signal |
|
signal |
|
signal |
|
signal |
|
virtual |
Stores the application window settings (size, position, ...).
Reimplemented from RMainWindow.
|
protected |
|
private |