Salome HOME
Restore editing of dimensions by dragging
[modules/shaper.git] / src / XGUI / XGUI_ViewPort.h
index 2988e8fed69494726b90a7480fe725a7e605656d..f22cc9d92808d6a4a1cdb951bf4e5f11e57d5793 100644 (file)
 
 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();
@@ -25,7 +25,7 @@ public:
     return 0;
   }
 
-  QImage dumpView(QRect theRect = QRect(), bool toUpdate = true);
+  QImage dumpView(unsigned char*& theData, QRect theRect = QRect(), bool toUpdate = true);
 
   Handle(V3d_View) getView() const
   {
@@ -60,7 +60,7 @@ public:
 
   void setBackground(const Qtx::BackgroundData& bgData);
 
-  void syncronizeWith( const XGUI_ViewPort* ref );
+  void syncronizeWith(const XGUI_ViewPort* ref);
 
 signals:
   void vpChangeBackground(const Qtx::BackgroundData&);
@@ -70,11 +70,11 @@ signals:
   void vpUpdated();
   void resized();
 
-protected:
+ protected:
   virtual void paintEvent(QPaintEvent*);
   virtual void resizeEvent(QResizeEvent*);
 
-private:
+ private:
   Handle(V3d_View) activeView() const
   {
     return myActiveView;