+ /// Add asterisk to a title of the window
+ void setModifiedState(bool isModified, bool toUpdate = true);
+
+ /// Returns current state of modification
+ bool isModifiedState() const { return myIsModified; }
+
+ void updateTitle();
+
+ private slots:
+ void cascadeWindows();
+ void onViewCreated(XGUI_ViewWindow* theWindow);
+ void onDeleteView(XGUI_ViewWindow* theWindow);
+ void activateView();
+ void onViewActivated(QMdiSubWindow* theSubWnd);
+
+signals:
+ void exitKeySequence();
+
+ protected:
+ void closeEvent(QCloseEvent* event);
+ void createMainMenu();
+
+ private:
+ XGUI_MainMenu* myMenuBar;
+ XGUI_Viewer* myViewer;
+
+ QString myTitle;
+ QString myCurrentDir;
+ bool myIsModified;
+
+ PyConsole_EnhConsole* myPythonConsole;
+};
+
+class XGUI_EXPORT CloseEventWatcher : public QObject
+{
+Q_OBJECT
+
+ public:
+ CloseEventWatcher(QObject* theParent);
+
+signals:
+ void widgetClosed();
+
+ protected:
+ bool eventFilter(QObject *obj, QEvent *);