RMainWindow
Class in Core Module
Header: #include <src/core/RMainWindow.h>
Inherits: RProgressHandler, RMessageHandler
Inherited by: RMainWindowQt
Description
Section titled “Description”Base class for an MDI main application window.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RMainWindow() |
|
| virtual | ~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 | addEntityExportListener(REntityExportListener *l) |
| void | addExportListener(RExportListener *l)Adds a listener for export events. |
| void | addFocusListener(RFocusListener *l)Adds a listener for focus changes. |
| void | addImportListener(RImportListener *l)Adds a listener for import events. |
| void | addInterTransactionListener(RInterTransactionListener *l)Adds a listener for transaction in progress events. |
| void | addKeyListener(RKeyListener *l)Adds a listener for key changes. |
| void | addLayerListener(RLayerListener *l)Adds a listener for layer change / add / remove events. |
| void | addNewDocumentListener(RNewDocumentListener *l)Adds a listener for transaction in progress events. |
| void | addPaletteListener(RPaletteListener *l)Adds a listener for palette change events. |
| void | addPenListener(RPenListener *l)Adds a listener for pen change events. |
| void | addPreferencesListener(RPreferencesListener *l)Adds a listener for preferences changes. |
| 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 | addViewFocusListener(RViewFocusListener *l)Adds a listener for view focus changes. |
| void | addViewListener(RViewListener *l)Adds a listener for view change / add / remove events. |
| virtual void | disable() |
| virtual void | enable() |
| virtual void | escapeEvent()=0 = 0 |
| QVariant | eval(const QString &ext, const QString &script) |
| virtual QWidget * | getChildWidget(const QString &name)=0 = 0 |
| virtual RDocument * | getDocument()=0 = 0 |
| virtual RDocumentInterface * | getDocumentInterface()=0 = 0 |
| virtual int | getHeight()=0 = 0 |
| virtual int | getPositionX()=0 = 0 |
| virtual int | getPositionY()=0 = 0 |
| virtual int | getWidth()=0 = 0 |
| virtual void | handleUserCommand(const QString &message, bool escape=true) |
| virtual void | handleUserInfo(const QString &message, bool escape=true) |
| virtual void | handleUserMessage(const QString &message, bool escape=true) |
| virtual void | handleUserWarning(const QString &message, bool messageBox=false, bool escape=true) |
| virtual void | move(int x, int y)=0 = 0Moves the application window to the given x / y position. |
| void | notifyBlockListeners(RDocumentInterface *documentInterface)Notifies all block listeners that at least one block object has changed. |
| void | notifyBlockListenersCurrentBlock(RDocumentInterface *documentInterface) |
| void | notifyBlockListenersXRef() |
| void | notifyCoordinateListeners(RDocumentInterface *documentInterface)Notifies all coordinate listeners that the coordinate has changed to position. |
| void | notifyEntityExportListeners(RExporter *exporter, REntity *entity) |
| void | notifyExportListenersEnd(RExporter *exporter)Notifies all Export listeners about end of export event (in reverse order, see addExportListener). |
| void | notifyExportListenersPost(RDocumentInterface *documentInterface)Notifies all Export listeners about post export event (in reverse order, see addExportListener). |
| void | notifyExportListenersPre(RDocumentInterface *documentInterface)Notifies all Export listeners about pre export event. |
| void | notifyFocusListeners(RDocumentInterface *documentInterface)Notifies all focus listeners. |
| void | notifyImportListenersPost(RDocumentInterface *documentInterface)Notifies all import listeners about post import event. |
| void | notifyImportListenersPre(RDocumentInterface *documentInterface)Notifies all import listeners about pre import event. |
| void | notifyInterTransactionListeners(RDocument *document, RTransaction *transaction=NULL)Notifies all transaction in progress listeners. |
| void | notifyKeyListeners(QKeyEvent *event)Notifies all key listeners. |
| void | notifyLayerListeners(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)Notifies all layer listeners that at least one layer object has changed. |
| void | notifyLayerListenersCurrentLayer(RDocumentInterface *documentInterface, RObject::Id previousLayerId) |
| void | notifyListeners(bool withNull=false) |
| void | notifyNewDocumentListeners(RDocument *document, RTransaction *transaction, bool beforeLoad)Notifies all transaction in progress listeners. |
| void | notifyPaletteListeners()Notifies all palette listeners that the current palette has changed. |
| void | notifyPenListeners(RDocumentInterface *documentInterface)Notifies all pen listeners that the current pen has changed. |
| void | notifyPreferencesListeners(RDocumentInterface *documentInterface)Notifies all preferences listeners. |
| void | notifyPropertyListeners()Notifies all property listeners that no properties are currently relevant. |
| void | notifyPropertyListeners(RDocument &document, REntity &entity)Notifies all property listeners that the current property is the given entity. |
| void | notifyPropertyListeners(RDocument *document, bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityUnknown)Notifies all property listeners that the current property has changed. |
| 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, RTransaction *transaction=NULL)Notifies all transaction listeners. |
| void | notifyUcsListeners(RDocumentInterface *documentInterface)Notifies all UCS listeners that at least one UCS object has changed. |
| void | notifyViewFocusListeners(RGraphicsView *view)Notifies all view focus listeners. |
| void | notifyViewListeners(RDocumentInterface *documentInterface)Notifies all view listeners that at least one view object has changed. |
| virtual void | postCloseEvent()=0 = 0 |
| virtual void | postPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)=0 = 0 |
| virtual void | postSelectionChangedEvent()=0 = 0 |
| virtual void | postTransactionEvent(RTransaction &t, bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityAll)=0 = 0 |
| void | prependExportListener(RExportListener *l)Adds a listener for export events which is notified before all listeners added so far (pre export event) and after them (post export and end of export events), see addExportListener. |
| void | propertyChangeEvent(RPropertyEvent &event) |
| virtual void | quit()=0 = 0Closes the application window. |
| virtual void | reloadXRefs(RDocumentInterface *di, const QSet< QString > &dirtyXRefPaths) |
| void | removeBlockListener(RBlockListener *l) |
| void | removeCoordinateListener(RCoordinateListener *l) |
| void | removeEntityExportListener(REntityExportListener *l) |
| void | removeExportListener(RExportListener *l) |
| void | removeFocusListener(RFocusListener *l) |
| void | removeImportListener(RImportListener *l) |
| void | removeInterTransactionListener(RInterTransactionListener *l) |
| void | removeKeyListener(RKeyListener *l) |
| void | removeLayerListener(RLayerListener *l) |
| void | removeNewDocumentListener(RNewDocumentListener *l) |
| void | removePaletteListener(RPaletteListener *l) |
| void | removePenListener(RPenListener *l) |
| void | removePreferencesListener(RPreferencesListener *l) |
| void | removePropertyListener(RPropertyListener *l) |
| void | removeSelectionListener(RSelectionListener *l) |
| void | removeSnapListener(RSnapListener *l) |
| void | removeTransactionListener(RTransactionListener *l) |
| void | removeUcsListener(RUcsListener *l) |
| void | removeViewFocusListener(RViewFocusListener *l) |
| void | removeViewListener(RViewListener *l) |
| virtual void | resize(int width, int height)=0 = 0Resizes the application window to the given width and height. |
| virtual void | setCommandPrompt(const QString &text=“”)=0 = 0 |
| virtual void | setGraphicsViewCursor(const QCursor &cursor)=0 = 0Sets the cursor of all graphics views in all MDI children. |
| virtual void | setLeftMouseTip(const QString &text=“”)=0 = 0 |
| virtual void | setRightMouseTip(const QString &text=“”)=0 = 0 |
| void | ucsSetEvent(const QString &ucsName)Called immediately after the user has activated a new UCS to be used as current UCS. |
Static Public Functions
Section titled “Static Public Functions”| static RDocumentInterface * | getDocumentInterfaceStatic() |
| static RMainWindow * | getMainWindow() |
| static RMainWindowProxy * | getMainWindowProxy() |
| static bool | hasMainWindow() |
| static bool | hasProxy() |
| static void | installMessageHandler() |
| static void | messageHandler(QtMsgType type, const char *msg) |
| static void | setMainWindowProxy(RMainWindowProxy *p) |
Protected Functions
Section titled “Protected Functions”| virtual bool | readSettings()Restores the application window settings (size, position, …). |
| virtual void | writeSettings()Stores the application window settings (size, position, …). |
Protected Attributes
Section titled “Protected Attributes”| QList< RBlockListener * > | blockListeners |
| QList< RCoordinateListener * > | coordinateListeners |
| QList< REntityExportListener * > | entityExportListeners |
| QList< RExportListener * > | exportListeners |
| QList< RFocusListener * > | focusListeners |
| QList< RImportListener * > | importListeners |
| QList< RInterTransactionListener * > | interTransactionListeners |
| QList< RKeyListener * > | keyListeners |
| QList< RLayerListener * > | layerListeners |
| QMutex | mutex |
| QList< RNewDocumentListener * > | newDocumentListeners |
| QList< RPaletteListener * > | paletteListeners |
| QList< RPenListener * > | penListeners |
| QList< RPreferencesListener * > | preferencesListeners |
| QList< RPropertyListener * > | propertyListeners |
| QList< RSelectionListener * > | selectionListeners |
| QList< RSnapListener * > | snapListeners |
| QList< RTransactionListener * > | transactionListeners |
| QList< RUcsListener * > | ucsListeners |
| QList< RViewFocusListener * > | viewFocusListeners |
| QList< RViewListener * > | viewListeners |
Static Protected Attributes
Section titled “Static Protected Attributes”| static RMainWindow * | mainWindow |
| static RMainWindowProxy * | mainWindowProxy |
Member Documentation
Section titled “Member Documentation”RMainWindow
Section titled “RMainWindow”RMainWindow::RMainWindow()~RMainWindow
Section titled “~RMainWindow”virtual RMainWindow::~RMainWindow()virtual
addBlockListener
Section titled “addBlockListener”void RMainWindow::addBlockListener(RBlockListener *l)Adds a listener for block change / add / remove events.
addCoordinateListener
Section titled “addCoordinateListener”void RMainWindow::addCoordinateListener(RCoordinateListener *l)Adds a listener for coordinate events.
This can for example be a widget that displays the current coordinate.
addEntityExportListener
Section titled “addEntityExportListener”void RMainWindow::addEntityExportListener(REntityExportListener *l)addExportListener
Section titled “addExportListener”void RMainWindow::addExportListener(RExportListener *l)Adds a listener for export events.
Listeners are notified about pre export events in the order in which they were added and about post export and end of export events in reverse order, so that a listener which prepares the document before another listener (see prependExportListener) restores it after that listener has restored its own changes.
addFocusListener
Section titled “addFocusListener”void RMainWindow::addFocusListener(RFocusListener *l)Adds a listener for focus changes.
addImportListener
Section titled “addImportListener”void RMainWindow::addImportListener(RImportListener *l)Adds a listener for import events.
addInterTransactionListener
Section titled “addInterTransactionListener”void RMainWindow::addInterTransactionListener(RInterTransactionListener *l)Adds a listener for transaction in progress events.
addKeyListener
Section titled “addKeyListener”void RMainWindow::addKeyListener(RKeyListener *l)Adds a listener for key changes.
addLayerListener
Section titled “addLayerListener”void RMainWindow::addLayerListener(RLayerListener *l)Adds a listener for layer change / add / remove events.
addNewDocumentListener
Section titled “addNewDocumentListener”void RMainWindow::addNewDocumentListener(RNewDocumentListener *l)Adds a listener for transaction in progress events.
addPaletteListener
Section titled “addPaletteListener”void RMainWindow::addPaletteListener(RPaletteListener *l)Adds a listener for palette change events.
addPenListener
Section titled “addPenListener”void RMainWindow::addPenListener(RPenListener *l)Adds a listener for pen change events.
addPreferencesListener
Section titled “addPreferencesListener”void RMainWindow::addPreferencesListener(RPreferencesListener *l)Adds a listener for preferences changes.
addPropertyListener
Section titled “addPropertyListener”void RMainWindow::addPropertyListener(RPropertyListener *l)Adds a listener for property events.
This can for example be a widget that displays the properties of selected entities or the current action.
addSelectionListener
Section titled “addSelectionListener”void RMainWindow::addSelectionListener(RSelectionListener *l)Adds a listener for selection events.
This can for example be a widget that displays the number of selected entities.
addSnapListener
Section titled “addSnapListener”void RMainWindow::addSnapListener(RSnapListener *l)Adds a listener for snap mode changes.
This can for example be a snap status widget.
addTransactionListener
Section titled “addTransactionListener”void RMainWindow::addTransactionListener(RTransactionListener *l)Adds a listener for transaction events.
This can for example be an undo or redo button.
addUcsListener
Section titled “addUcsListener”void RMainWindow::addUcsListener(RUcsListener *l)Adds a listener for UCS change / add / remove events.
This can for example be a widget that displays all UCS objects.
addViewFocusListener
Section titled “addViewFocusListener”void RMainWindow::addViewFocusListener(RViewFocusListener *l)Adds a listener for view focus changes.
addViewListener
Section titled “addViewListener”void RMainWindow::addViewListener(RViewListener *l)Adds a listener for view change / add / remove events.
disable
Section titled “disable”virtual void RMainWindow::disable()virtual inline
Reimplemented in disable.
enable
Section titled “enable”virtual void RMainWindow::enable()virtual inline
Reimplemented in enable.
escapeEvent
Section titled “escapeEvent”virtual void RMainWindow::escapeEvent()=0 = 0pure virtual
Reimplemented in escapeEvent.
QVariant RMainWindow::eval(const QString &ext, const QString &script)getChildWidget
Section titled “getChildWidget”virtual QWidget * RMainWindow::getChildWidget(const QString &name)=0 = 0pure virtual
Reimplemented in getChildWidget.
getDocument
Section titled “getDocument”virtual RDocument * RMainWindow::getDocument()=0 = 0pure virtual
Returns: Pointer to the document that is currently open and has the focus or NULL if no document is open.
Reimplemented in getDocument.
getDocumentInterface
Section titled “getDocumentInterface”virtual RDocumentInterface * RMainWindow::getDocumentInterface()=0 = 0pure virtual
Returns: Pointer to the document interface of the document that is currently open and has the focus or NULL if no document is open.
Reimplemented in getDocumentInterface.
getHeight
Section titled “getHeight”virtual int RMainWindow::getHeight()=0 = 0pure virtual
Returns: Height of the main application window.
Reimplemented in getHeight.
getPositionX
Section titled “getPositionX”virtual int RMainWindow::getPositionX()=0 = 0pure virtual
Returns: X position of the main application window (distance from left of screen).
Reimplemented in getPositionX.
getPositionY
Section titled “getPositionY”virtual int RMainWindow::getPositionY()=0 = 0pure virtual
Returns: Y position of the main application window (distance from top of screen).
Reimplemented in getPositionY.
getWidth
Section titled “getWidth”virtual int RMainWindow::getWidth()=0 = 0pure virtual
Returns: Width of the main application window.
Reimplemented in getWidth.
handleUserCommand
Section titled “handleUserCommand”virtual void RMainWindow::handleUserCommand(const QString &message, bool escape=true)virtual inline
Reimplemented from handleUserCommand.
Reimplemented in handleUserCommand.
handleUserInfo
Section titled “handleUserInfo”virtual void RMainWindow::handleUserInfo(const QString &message, bool escape=true)virtual inline
Reimplemented from handleUserInfo.
Reimplemented in handleUserInfo.
handleUserMessage
Section titled “handleUserMessage”virtual void RMainWindow::handleUserMessage(const QString &message, bool escape=true)virtual inline
Reimplemented from handleUserMessage.
Reimplemented in handleUserMessage.
handleUserWarning
Section titled “handleUserWarning”virtual void RMainWindow::handleUserWarning(const QString &message, bool messageBox=false, bool escape=true)virtual inline
Reimplemented from handleUserWarning.
Reimplemented in handleUserWarning.
virtual void RMainWindow::move(int x, int y)=0 = 0pure virtual
Moves the application window to the given x / y position.
Reimplemented in move.
notifyBlockListeners
Section titled “notifyBlockListeners”void RMainWindow::notifyBlockListeners(RDocumentInterface *documentInterface)Notifies all block listeners that at least one block object has changed.
notifyBlockListenersCurrentBlock
Section titled “notifyBlockListenersCurrentBlock”void RMainWindow::notifyBlockListenersCurrentBlock(RDocumentInterface *documentInterface)notifyBlockListenersXRef
Section titled “notifyBlockListenersXRef”void RMainWindow::notifyBlockListenersXRef()notifyCoordinateListeners
Section titled “notifyCoordinateListeners”void RMainWindow::notifyCoordinateListeners(RDocumentInterface *documentInterface)Notifies all coordinate listeners that the coordinate has changed to position.
notifyEntityExportListeners
Section titled “notifyEntityExportListeners”void RMainWindow::notifyEntityExportListeners(RExporter *exporter, REntity *entity)notifyExportListenersEnd
Section titled “notifyExportListenersEnd”void RMainWindow::notifyExportListenersEnd(RExporter *exporter)Notifies all Export listeners about end of export event (in reverse order, see addExportListener).
notifyExportListenersPost
Section titled “notifyExportListenersPost”void RMainWindow::notifyExportListenersPost(RDocumentInterface *documentInterface)Notifies all Export listeners about post export event (in reverse order, see addExportListener).
notifyExportListenersPre
Section titled “notifyExportListenersPre”void RMainWindow::notifyExportListenersPre(RDocumentInterface *documentInterface)Notifies all Export listeners about pre export event.
notifyFocusListeners
Section titled “notifyFocusListeners”void RMainWindow::notifyFocusListeners(RDocumentInterface *documentInterface)Notifies all focus listeners.
notifyImportListenersPost
Section titled “notifyImportListenersPost”void RMainWindow::notifyImportListenersPost(RDocumentInterface *documentInterface)Notifies all import listeners about post import event.
notifyImportListenersPre
Section titled “notifyImportListenersPre”void RMainWindow::notifyImportListenersPre(RDocumentInterface *documentInterface)Notifies all import listeners about pre import event.
notifyInterTransactionListeners
Section titled “notifyInterTransactionListeners”void RMainWindow::notifyInterTransactionListeners(RDocument *document, RTransaction *transaction=NULL)Notifies all transaction in progress listeners.
notifyKeyListeners
Section titled “notifyKeyListeners”void RMainWindow::notifyKeyListeners(QKeyEvent *event)Notifies all key listeners.
notifyLayerListeners
Section titled “notifyLayerListeners”void RMainWindow::notifyLayerListeners(RDocumentInterface *documentInterface, QList< RObject::Id > &layerIds)Notifies all layer listeners that at least one layer object has changed.
notifyLayerListenersCurrentLayer
Section titled “notifyLayerListenersCurrentLayer”void RMainWindow::notifyLayerListenersCurrentLayer(RDocumentInterface *documentInterface, RObject::Id previousLayerId)notifyListeners
Section titled “notifyListeners”void RMainWindow::notifyListeners(bool withNull=false)notifyNewDocumentListeners
Section titled “notifyNewDocumentListeners”void RMainWindow::notifyNewDocumentListeners(RDocument *document, RTransaction *transaction, bool beforeLoad)Notifies all transaction in progress listeners.
notifyPaletteListeners
Section titled “notifyPaletteListeners”void RMainWindow::notifyPaletteListeners()Notifies all palette listeners that the current palette has changed.
notifyPenListeners
Section titled “notifyPenListeners”void RMainWindow::notifyPenListeners(RDocumentInterface *documentInterface)Notifies all pen listeners that the current pen has changed.
notifyPreferencesListeners
Section titled “notifyPreferencesListeners”void RMainWindow::notifyPreferencesListeners(RDocumentInterface *documentInterface)Notifies all preferences listeners.
notifyPropertyListeners
Section titled “notifyPropertyListeners”void RMainWindow::notifyPropertyListeners()Notifies all property listeners that no properties are currently relevant.
notifyPropertyListeners
Section titled “notifyPropertyListeners”void RMainWindow::notifyPropertyListeners(RDocument &document, REntity &entity)Notifies all property listeners that the current property is the given entity.
notifyPropertyListeners
Section titled “notifyPropertyListeners”void RMainWindow::notifyPropertyListeners(RDocument *document, bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityUnknown)Notifies all property listeners that the current property has changed.
notifySelectionListeners
Section titled “notifySelectionListeners”void RMainWindow::notifySelectionListeners(RDocumentInterface *documentInterface)Notifies all selection listeners that the current selection has changed.
notifySnapListeners
Section titled “notifySnapListeners”void RMainWindow::notifySnapListeners(RDocumentInterface *documentInterface)Notifies all snap mode listeners.
notifyTransactionListeners
Section titled “notifyTransactionListeners”void RMainWindow::notifyTransactionListeners(RDocument *document, RTransaction *transaction=NULL)Notifies all transaction listeners.
notifyUcsListeners
Section titled “notifyUcsListeners”void RMainWindow::notifyUcsListeners(RDocumentInterface *documentInterface)Notifies all UCS listeners that at least one UCS object has changed.
notifyViewFocusListeners
Section titled “notifyViewFocusListeners”void RMainWindow::notifyViewFocusListeners(RGraphicsView *view)Notifies all view focus listeners.
notifyViewListeners
Section titled “notifyViewListeners”void RMainWindow::notifyViewListeners(RDocumentInterface *documentInterface)Notifies all view listeners that at least one view object has changed.
postCloseEvent
Section titled “postCloseEvent”virtual void RMainWindow::postCloseEvent()=0 = 0pure virtual
Reimplemented in postCloseEvent.
postPropertyEvent
Section titled “postPropertyEvent”virtual void RMainWindow::postPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)=0 = 0pure virtual
Reimplemented in postPropertyEvent.
postSelectionChangedEvent
Section titled “postSelectionChangedEvent”virtual void RMainWindow::postSelectionChangedEvent()=0 = 0pure virtual
Reimplemented in postSelectionChangedEvent.
postTransactionEvent
Section titled “postTransactionEvent”virtual void RMainWindow::postTransactionEvent(RTransaction &t, bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityAll)=0 = 0pure virtual
Reimplemented in postTransactionEvent.
prependExportListener
Section titled “prependExportListener”void RMainWindow::prependExportListener(RExportListener *l)Adds a listener for export events which is notified before all listeners added so far (pre export event) and after them (post export and end of export events), see addExportListener.
propertyChangeEvent
Section titled “propertyChangeEvent”void RMainWindow::propertyChangeEvent(RPropertyEvent &event)virtual void RMainWindow::quit()=0 = 0pure virtual
Closes the application window.
reloadXRefs
Section titled “reloadXRefs”virtual void RMainWindow::reloadXRefs(RDocumentInterface *di, const QSet< QString > &dirtyXRefPaths)virtual inline
Reimplemented in reloadXRefs.
removeBlockListener
Section titled “removeBlockListener”void RMainWindow::removeBlockListener(RBlockListener *l)removeCoordinateListener
Section titled “removeCoordinateListener”void RMainWindow::removeCoordinateListener(RCoordinateListener *l)removeEntityExportListener
Section titled “removeEntityExportListener”void RMainWindow::removeEntityExportListener(REntityExportListener *l)removeExportListener
Section titled “removeExportListener”void RMainWindow::removeExportListener(RExportListener *l)removeFocusListener
Section titled “removeFocusListener”void RMainWindow::removeFocusListener(RFocusListener *l)removeImportListener
Section titled “removeImportListener”void RMainWindow::removeImportListener(RImportListener *l)removeInterTransactionListener
Section titled “removeInterTransactionListener”void RMainWindow::removeInterTransactionListener(RInterTransactionListener *l)removeKeyListener
Section titled “removeKeyListener”void RMainWindow::removeKeyListener(RKeyListener *l)removeLayerListener
Section titled “removeLayerListener”void RMainWindow::removeLayerListener(RLayerListener *l)removeNewDocumentListener
Section titled “removeNewDocumentListener”void RMainWindow::removeNewDocumentListener(RNewDocumentListener *l)removePaletteListener
Section titled “removePaletteListener”void RMainWindow::removePaletteListener(RPaletteListener *l)removePenListener
Section titled “removePenListener”void RMainWindow::removePenListener(RPenListener *l)removePreferencesListener
Section titled “removePreferencesListener”void RMainWindow::removePreferencesListener(RPreferencesListener *l)removePropertyListener
Section titled “removePropertyListener”void RMainWindow::removePropertyListener(RPropertyListener *l)removeSelectionListener
Section titled “removeSelectionListener”void RMainWindow::removeSelectionListener(RSelectionListener *l)removeSnapListener
Section titled “removeSnapListener”void RMainWindow::removeSnapListener(RSnapListener *l)removeTransactionListener
Section titled “removeTransactionListener”void RMainWindow::removeTransactionListener(RTransactionListener *l)removeUcsListener
Section titled “removeUcsListener”void RMainWindow::removeUcsListener(RUcsListener *l)removeViewFocusListener
Section titled “removeViewFocusListener”void RMainWindow::removeViewFocusListener(RViewFocusListener *l)removeViewListener
Section titled “removeViewListener”void RMainWindow::removeViewListener(RViewListener *l)resize
Section titled “resize”virtual void RMainWindow::resize(int width, int height)=0 = 0pure virtual
Resizes the application window to the given width and height.
Reimplemented in resize.
setCommandPrompt
Section titled “setCommandPrompt”virtual void RMainWindow::setCommandPrompt(const QString &text="")=0 = 0pure virtual
Reimplemented in setCommandPrompt.
setGraphicsViewCursor
Section titled “setGraphicsViewCursor”virtual void RMainWindow::setGraphicsViewCursor(const QCursor &cursor)=0 = 0pure 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 other in MDI area).
Reimplemented in setGraphicsViewCursor.
setLeftMouseTip
Section titled “setLeftMouseTip”virtual void RMainWindow::setLeftMouseTip(const QString &text="")=0 = 0pure virtual
Reimplemented in setLeftMouseTip.
setRightMouseTip
Section titled “setRightMouseTip”virtual void RMainWindow::setRightMouseTip(const QString &text="")=0 = 0pure virtual
Reimplemented in setRightMouseTip.
ucsSetEvent
Section titled “ucsSetEvent”void RMainWindow::ucsSetEvent(const QString &ucsName)Called immediately after the user has activated a new UCS to be used as current UCS.
getDocumentInterfaceStatic
Section titled “getDocumentInterfaceStatic”static RDocumentInterface * RMainWindow::getDocumentInterfaceStatic()static
Returns: Pointer to the document interface of the current document (e.g. the active MDI window) or NULL if no document is open.
getMainWindow
Section titled “getMainWindow”static RMainWindow * RMainWindow::getMainWindow()static
getMainWindowProxy
Section titled “getMainWindowProxy”static RMainWindowProxy * RMainWindow::getMainWindowProxy()static inline
Non-Scriptable: This function is not available in script environments.
hasMainWindow
Section titled “hasMainWindow”static bool RMainWindow::hasMainWindow()static
hasProxy
Section titled “hasProxy”static bool RMainWindow::hasProxy()static inline
installMessageHandler
Section titled “installMessageHandler”static void RMainWindow::installMessageHandler()static
messageHandler
Section titled “messageHandler”static void RMainWindow::messageHandler(QtMsgType type, const char *msg)static
Non-Scriptable: This function is not available in script environments.
setMainWindowProxy
Section titled “setMainWindowProxy”static void RMainWindow::setMainWindowProxy(RMainWindowProxy *p)static inline
Non-Scriptable: This function is not available in script environments.
readSettings
Section titled “readSettings”virtual bool RMainWindow::readSettings()virtual protected
Restores the application window settings (size, position, …).
Reimplemented in readSettings.
writeSettings
Section titled “writeSettings”virtual void RMainWindow::writeSettings()virtual protected
Stores the application window settings (size, position, …).
Reimplemented in writeSettings.
blockListeners
Section titled “blockListeners”QList<RBlockListener*> RMainWindow::blockListenersprotected
coordinateListeners
Section titled “coordinateListeners”QList<RCoordinateListener*> RMainWindow::coordinateListenersprotected
entityExportListeners
Section titled “entityExportListeners”QList<REntityExportListener*> RMainWindow::entityExportListenersprotected
exportListeners
Section titled “exportListeners”QList<RExportListener*> RMainWindow::exportListenersprotected
focusListeners
Section titled “focusListeners”QList<RFocusListener*> RMainWindow::focusListenersprotected
importListeners
Section titled “importListeners”QList<RImportListener*> RMainWindow::importListenersprotected
interTransactionListeners
Section titled “interTransactionListeners”QList<RInterTransactionListener*> RMainWindow::interTransactionListenersprotected
keyListeners
Section titled “keyListeners”QList<RKeyListener*> RMainWindow::keyListenersprotected
layerListeners
Section titled “layerListeners”QList<RLayerListener*> RMainWindow::layerListenersprotected
QMutex RMainWindow::mutexprotected
newDocumentListeners
Section titled “newDocumentListeners”QList<RNewDocumentListener*> RMainWindow::newDocumentListenersprotected
paletteListeners
Section titled “paletteListeners”QList<RPaletteListener*> RMainWindow::paletteListenersprotected
penListeners
Section titled “penListeners”QList<RPenListener*> RMainWindow::penListenersprotected
preferencesListeners
Section titled “preferencesListeners”QList<RPreferencesListener*> RMainWindow::preferencesListenersprotected
propertyListeners
Section titled “propertyListeners”QList<RPropertyListener*> RMainWindow::propertyListenersprotected
selectionListeners
Section titled “selectionListeners”QList<RSelectionListener*> RMainWindow::selectionListenersprotected
snapListeners
Section titled “snapListeners”QList<RSnapListener*> RMainWindow::snapListenersprotected
transactionListeners
Section titled “transactionListeners”QList<RTransactionListener*> RMainWindow::transactionListenersprotected
ucsListeners
Section titled “ucsListeners”QList<RUcsListener*> RMainWindow::ucsListenersprotected
viewFocusListeners
Section titled “viewFocusListeners”QList<RViewFocusListener*> RMainWindow::viewFocusListenersprotected
viewListeners
Section titled “viewListeners”QList<RViewListener*> RMainWindow::viewListenersprotected
mainWindow
Section titled “mainWindow”static RMainWindow * RMainWindow::mainWindow = NULLstatic protected
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.
mainWindowProxy
Section titled “mainWindowProxy”static RMainWindowProxy * RMainWindow::mainWindowProxy = NULLstatic protected