|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
20 #ifndef RMAINWINDOWQT_H
21 #define RMAINWINDOWQT_H
25 #include <QDockWidget>
26 #include <QMainWindow>
76 virtual void resize(
int width,
int height);
77 virtual void move(
int x,
int y);
84 virtual void handleUserInfo(
const QString& message,
bool escape =
true);
85 virtual void handleUserWarning(
const QString& message,
bool messageBox =
false,
bool escape =
true);
91 bool onlyChanges=
false,
95 const QVariant& value,
101 QTabBar* getTabBar();
104 virtual void cancelProgress();
121 virtual QMenu* createPopupMenu();
126 return findChildren<QDockWidget*>();
129 return findChildren<QToolBar*>();
140 void currentTabChanged(
int index);
141 void subWindowActivated(QMdiSubWindow* sw);
166 void userInfo(
const QString& message,
bool escape);
167 void userWarning(
const QString& message,
bool messageBox,
bool escape);
186 virtual void closeEvent(QCloseEvent* e);
187 virtual void dropEvent(QDropEvent* event);
188 virtual void dragEnterEvent(QDragEnterEvent* event);
190 virtual bool event(QEvent* e);
193 void updateGuiActions(QMdiSubWindow* mdiChild = NULL);
194 void initGuiActions();
195 void updateScenes(QMdiSubWindow* mdiChild);
196 void notifyListenersSlot(QMdiSubWindow* mdiChild);
197 void suspendAndResume(QMdiSubWindow* mdiChild);
virtual void setProgressEnd()=0
void drop(QDropEvent *event)
virtual void setCommandPrompt(const QString &text="")=0
Abstract base class for classes that are interested in properties of the current selection or the cur...
Definition: RPropertyListener.h:43
RMdiArea * mdiArea
Definition: RMainWindowQt.h:200
virtual void handleUserCommand(const QString &message, bool escape=true)
Definition: RMainWindow.h:272
void commandPrompt(const QString &text)
Emitted when the command prompt is requested to change.
virtual void resize(int width, int height)=0
Resizes the application window to the given width and height.
virtual void escapeEvent()=0
virtual void postSelectionChangedEvent()=0
MDI area with tabbar that features add tab button.
Definition: RMdiArea.h:38
void userWarning(const QString &message, bool messageBox, bool escape)
Abstract base class for classes that are interested in being notified whenever a layer has been added...
Definition: RLayerListener.h:39
Abstract base class for classes that are interested in being notified whenever a block has been added...
Definition: RBlockListener.h:37
Abstract base class for classes that are interested in the current focus.
Definition: RFocusListener.h:36
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
virtual void setLeftMouseTip(const QString &text="")=0
virtual void setGraphicsViewCursor(const QCursor &cursor)=0
Sets the cursor of all graphics views in all MDI children.
virtual void enable()
Definition: RMainWindow.h:89
Abstract base class for classes that are interested in the current snap mode.
Definition: RSnapListener.h:39
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:125
virtual void handleUserMessage(const QString &message, bool escape=true)
Definition: RMainWindow.h:253
virtual void setProgress(int value)=0
virtual void quit()=0
Closes the application window.
QString keyLog
Definition: RMainWindowQt.h:204
void contextMenu(int entityId, const RVector &pos)
Emitted when a context menu is requested on top of the given entity.
Base class for a Qt based MDI main application window.
Definition: RMainWindowQt.h:65
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPaletteListener.h:33
virtual void postCloseEvent()=0
void leftMouseTip(const QString &message)
Emitted when the left mouse button tip is requested to change.
QTime keyTimeOut
Definition: RMainWindowQt.h:205
static RMainWindow * getMainWindow()
Definition: RMainWindow.cpp:63
Abstract base class for classes that are interested in being notified whenever the current pen change...
Definition: RPenListener.h:37
Abstract base class for classes that are interested in being notified whenever a view has been added ...
Definition: RViewListener.h:37
Graphics view.
Definition: RGraphicsView.h:58
QString getKeyLog() const
Definition: RMainWindowQt.h:134
Q_DECLARE_METATYPE(RMath *)
virtual void disable()
Definition: RMainWindow.h:88
virtual void setProgressText(const QString &text="")=0
virtual bool readSettings()
Restores the application window settings (size, position, ...).
Definition: RMainWindow.cpp:771
void userInfo(const QString &message, bool escape)
MDI child window.
Definition: RMdiChildQt.h:41
void rightMouseTip(const QString &message)
Emitted when the right mouse button tip is requested to change.
void progressText(const QString &label)
Abstract base class for classes that are interested in being notified when a new document is created.
Definition: RNewDocumentListener.h:37
QList< QToolBar * > getToolBars()
Definition: RMainWindowQt.h:128
@ EntityAll
All entities (for filters)
Definition: RS.h:138
virtual int getPositionY()=0
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPropertyTypeId.h:59
int Id
Definition: RObject.h:66
QList< QDockWidget * > getDockWidgets()
Definition: RMainWindowQt.h:125
virtual void handleUserInfo(const QString &message, bool escape=true)
Definition: RMainWindow.h:259
virtual int getHeight()=0
void userCommand(const QString &message, bool escape)
void toolBarContextMenu(QMenu *menu)
virtual void writeSettings()
Stores the application window settings (size, position, ...).
Definition: RMainWindow.cpp:805
int disableCounter
Definition: RMainWindowQt.h:202
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
Abstract base class for classes that are interested in key events.
Definition: RKeyListener.h:33
#define QCADGUI_EXPORT
Definition: gui_global.h:10
void resumedTab(RMdiChildQt *mdiChild)
Abstract base class for classes that are interested in being notified whenever a UCS has been added o...
Definition: RUcsListener.h:36
virtual void handleUserWarning(const QString &message, bool messageBox=false, bool escape=true)
Definition: RMainWindow.h:265
Abstract base class for classes that are interested in the current view focus.
Definition: RViewFocusListener.h:36
virtual int getPositionX()=0
virtual void postPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)=0
Abstract base class for classes that are interested in changes in drawing or application preferences.
Definition: RPreferencesListener.h:36
void userMessage(const QString &message, bool escape)
Transaction implementation.
Definition: RTransaction.h:74
Base class for an MDI main application window.
Definition: RMainWindow.h:70
virtual void postTransactionEvent(RTransaction &t, bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityAll)=0
virtual RDocument * getDocument()=0
virtual void setRightMouseTip(const QString &text="")=0
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
virtual QWidget * getChildWidget(const QString &name)=0
Abstract base class for classes that are interested in the current coordinate of the mouse cursor.
Definition: RCoordinateListener.h:38
virtual void move(int x, int y)=0
Moves the application window to the given x / y position.
Abstract base class for classes that are interested in the current selection and want to be notified ...
Definition: RSelectionListener.h:36
virtual RDocumentInterface * getDocumentInterface()=0
void dragEnter(QDragEnterEvent *event)