Salome HOME
Restore editing of dimensions by dragging
[modules/shaper.git] / src / XGUI / XGUI_MainWindow.h
index a8a067cf6b17930e057a47bb0e1431cec987a00c..3294f58ac5fd276945c1cd31e6a1b36c9c9c807b 100644 (file)
@@ -51,6 +51,17 @@ Q_OBJECT
 
   void createSubWindow();
 
+  /// Add name of current directory into title of desktop window
+  void setCurrentDir(const QString& theDir, bool toUpdate = true);
+
+  /// 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);
@@ -69,6 +80,10 @@ signals:
   XGUI_MainMenu* myMenuBar;
   XGUI_Viewer* myViewer;
 
+  QString myTitle;
+  QString myCurrentDir;
+  bool myIsModified;
+
   PyConsole_EnhConsole* myPythonConsole;
 };