X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ViewPort.h;h=fa4104508146186d34225fd27926d5dbb23209c7;hb=d86c77d1c6210bbe04fbc3e5b00f9e212e1ec930;hp=e03dad5d06e56bc7465f5fd1b303b94fa0b9161b;hpb=2a0dd5ede9110d423fbd6b038c0445cb819163a9;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ViewPort.h b/src/XGUI/XGUI_ViewPort.h index e03dad5d0..fa4104508 100644 --- a/src/XGUI/XGUI_ViewPort.h +++ b/src/XGUI/XGUI_ViewPort.h @@ -1,6 +1,7 @@ #ifndef XGUI_ViewPort_H #define XGUI_ViewPort_H +#include "XGUI.h" #include "XGUI_ViewBackground.h" #include @@ -10,7 +11,7 @@ class XGUI_ViewWindow; -class XGUI_ViewPort: public QWidget +class XGUI_EXPORT XGUI_ViewPort: public QWidget { Q_OBJECT public: @@ -40,6 +41,7 @@ public: void fitRect(const QRect& rect); void startZoomAtPoint(int x, int y); void zoom(int x0, int y0, int x, int y); + void fitAll(bool theKeepScale = false, bool theWithZ = true, bool theUpd = true); void setAdvancedZoomingEnabled(const bool theState) { @@ -54,14 +56,18 @@ public: { return myBackground; } + void setBackground(const XGUI_ViewBackground& bgData); + void syncronizeWith( const XGUI_ViewPort* ref ); + signals: void vpChangeBackground(const XGUI_ViewBackground&); void vpClosed(); void vpMapped(); void vpTransformed(); void vpUpdated(); + void resized(); protected: virtual void paintEvent(QPaintEvent*);