Salome HOME
Handle Alt+F4 as regular exit action. Do not exit on exit->save->cancel. Fixes #43
[modules/shaper.git] / src / XGUI / XGUI_MainWindow.h
index 9b29ec3ea17d48f77809ee283684e1e94e2b1b76..010f9e309530b3cb12289015b259a85908bfdcee 100644 (file)
@@ -11,6 +11,7 @@ class XGUI_ViewWindow;
 class QMdiArea;
 class QMdiSubWindow;
 class PyConsole_EnhConsole;
+class QCloseEvent;
 
 /**\class XGUI_MainWindow
  * \ingroup GUI
@@ -53,6 +54,12 @@ private slots:
   void activateView();
   void onViewActivated(QMdiSubWindow* theSubWnd);
 
+signals:
+  void exitKeySequence();
+
+protected:
+  void closeEvent(QCloseEvent* event);
+
 private:
   XGUI_MainMenu* myMenuBar;
   XGUI_Viewer* myViewer;