Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / XGUI / XGUI_ViewPort.h
index a0f9be0db84e93569d12157641528f1e399f725e..7c2ad4b22182b3b0e9c068cc523885555be30ebe 100644 (file)
@@ -2,7 +2,8 @@
 #define XGUI_ViewPort_H
 
 #include "XGUI.h"
-#include "XGUI_ViewBackground.h"
+
+#include <Qtx.h>
 
 #include <QWidget>
 #include <V3d_Viewer.hxx>
 
 class XGUI_ViewWindow;
 
-class XGUI_EXPORT XGUI_ViewPort: public QWidget
+class XGUI_EXPORT XGUI_ViewPort : public QWidget
 {
 Q_OBJECT
-public:
+ public:
   XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer,
                 V3d_TypeOfView theType = V3d_ORTHOGRAPHIC);
   virtual ~XGUI_ViewPort();
@@ -52,28 +53,28 @@ public:
     return myIsAdvancedZoomingEnabled;
   }
 
-  XGUI_ViewBackground background() const
+  Qtx::BackgroundData background() const
   {
     return myBackground;
   }
 
-  void setBackground(const XGUI_ViewBackground& bgData);
+  void setBackground(const Qtx::BackgroundData& bgData);
 
-  void syncronizeWith( const XGUI_ViewPort* ref );
+  void syncronizeWith(const XGUI_ViewPort* ref);
 
 signals:
-  void vpChangeBackground(const XGUI_ViewBackground&);
+  void vpChangeBackground(const Qtx::BackgroundData&);
   void vpClosed();
   void vpMapped();
   void vpTransformed();
   void vpUpdated();
   void resized();
 
-protected:
+ protected:
   virtual void paintEvent(QPaintEvent*);
   virtual void resizeEvent(QResizeEvent*);
 
-private:
+ private:
   Handle(V3d_View) activeView() const
   {
     return myActiveView;
@@ -94,7 +95,7 @@ private:
 
   double myScale;
 
-  XGUI_ViewBackground myBackground;
+  Qtx::BackgroundData myBackground;
   int myBgImgHeight;
   int myBgImgWidth;
 };