Salome HOME
Added reset command and removed extra icons
[modules/shaper.git] / src / XGUI / XGUI_ViewWindow.h
index de6837a5a4e0770c84aad9f4e434a5ff80162cc2..cd3db6862e6be1cd778aac4674634a8495b61460 100644 (file)
@@ -64,48 +64,51 @@ public:
   XGUI_ViewBackground background() const;
   void setBackground(const XGUI_ViewBackground& theBackground);
 
-    bool closable() const { return myClosable; }
-    void setClosable( const bool isClosable ) { myClosable = isClosable; }
+  bool closable() const { return myClosable; }
+  void setClosable( const bool isClosable ) { myClosable = isClosable; }
 
 signals:
-  void vpTransformationStarted(XGUI_ViewWindow::OperationType type);
-  void vpTransformationFinished(XGUI_ViewWindow::OperationType type);
+    void vpTransformationStarted(XGUI_ViewWindow::OperationType type);
+    void vpTransformationFinished(XGUI_ViewWindow::OperationType type);
 
-  void Show(QShowEvent *);
-  void Hide(QHideEvent *);
-  void maximized(XGUI_ViewWindow*, bool);
-  void returnedTo3d();
+    void Show(QShowEvent *);
+    void Hide(QHideEvent *);
+    void maximized(XGUI_ViewWindow*, bool);
+    void returnedTo3d();
 
-  void tryClosing(XGUI_ViewWindow*);
+    void tryClosing(XGUI_ViewWindow*);
     void closed( QMdiSubWindow* );
-  void mousePressed(XGUI_ViewWindow*, QMouseEvent*);
-  void mouseReleased(XGUI_ViewWindow*, QMouseEvent*);
-  void mouseDoubleClicked(XGUI_ViewWindow*, QMouseEvent*);
-  void mouseMoving(XGUI_ViewWindow*, QMouseEvent*);
-  void keyPressed(XGUI_ViewWindow*, QKeyEvent*);
-  void keyReleased(XGUI_ViewWindow*, QKeyEvent*);
-  void contextMenuRequested(QContextMenuEvent *e);
-
-  void viewModified(XGUI_ViewWindow*);
+    void mousePressed(XGUI_ViewWindow*, QMouseEvent*);
+    void mouseReleased(XGUI_ViewWindow*, QMouseEvent*);
+    void mouseDoubleClicked(XGUI_ViewWindow*, QMouseEvent*);
+    void mouseMoving(XGUI_ViewWindow*, QMouseEvent*);
+    void keyPressed(XGUI_ViewWindow*, QKeyEvent*);
+    void keyReleased(XGUI_ViewWindow*, QKeyEvent*);
+    void contextMenuRequested(QContextMenuEvent *e);
+
+    void viewModified(XGUI_ViewWindow*);
     void viewCloned( QMdiSubWindow* theView );
 
 public slots:
   void activateZoom();
   void activateRotation();
   void activatePanning();
-    void activateWindowFit();
-    void activateGlobalPanning();
-
-    void cloneView();
-    void dumpView();
-    void fitAll();
-    
-    void frontView();
-    void backView();
-    void topView();
-    void bottomView();
-    void leftView();
-    void rightView();
+  void activateWindowFit();
+  void activateGlobalPanning();
+
+  void cloneView();
+  void dumpView();
+  void fitAll();
+
+  void frontView();
+  void backView();
+  void topView();
+  void bottomView();
+  void leftView();
+  void rightView();
+
+  void reset();
+
 
 protected:
   virtual void resizeEvent(QResizeEvent* theEvent);
@@ -122,6 +125,9 @@ private slots:
   void onMinimize();
   void onMaximize();
 
+  void updateToolBar();
+  //void repaintToolBar();
+
 private:
   enum WindowState
   {
@@ -191,7 +197,7 @@ private:
   bool myCursorIsHand;
   bool myIsKeyFree;
   bool myEventStarted;       // set when transformation is in process 
-    bool myClosable;
+  bool myClosable;
 
   QCursor myCursor;
 
@@ -218,6 +224,8 @@ public:
   {
   }
 
+  void repaintBackground();
+
 protected:
   virtual void paintEvent(QPaintEvent* theEvent);
 
@@ -235,6 +243,8 @@ public:
   {
   }
 
+  void repaintBackground();
+
 protected:
   virtual void paintEvent(QPaintEvent* theEvent);