Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore editing of dimensions by dragging
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_ViewPort.h
diff --git
a/src/XGUI/XGUI_ViewPort.h
b/src/XGUI/XGUI_ViewPort.h
index fa4104508146186d34225fd27926d5dbb23209c7..f22cc9d92808d6a4a1cdb951bf4e5f11e57d5793 100644
(file)
--- a/
src/XGUI/XGUI_ViewPort.h
+++ b/
src/XGUI/XGUI_ViewPort.h
@@
-2,7
+2,8
@@
#define XGUI_ViewPort_H
#include "XGUI.h"
#define XGUI_ViewPort_H
#include "XGUI.h"
-#include "XGUI_ViewBackground.h"
+
+#include <Qtx.h>
#include <QWidget>
#include <V3d_Viewer.hxx>
#include <QWidget>
#include <V3d_Viewer.hxx>
@@
-11,20
+12,20
@@
class XGUI_ViewWindow;
class XGUI_ViewWindow;
-class XGUI_EXPORT XGUI_ViewPort: public QWidget
+class XGUI_EXPORT XGUI_ViewPort
: public QWidget
{
Q_OBJECT
{
Q_OBJECT
-public:
+
public:
XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer,
V3d_TypeOfView theType = V3d_ORTHOGRAPHIC);
XGUI_ViewPort(XGUI_ViewWindow* theParent, const Handle(V3d_Viewer)& theViewer,
V3d_TypeOfView theType = V3d_ORTHOGRAPHIC);
- ~XGUI_ViewPort();
+
virtual
~XGUI_ViewPort();
virtual QPaintEngine* paintEngine() const
{
return 0;
}
virtual QPaintEngine* paintEngine() const
{
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
{
Handle(V3d_View) getView() const
{
@@
-52,28
+53,28
@@
public:
return myIsAdvancedZoomingEnabled;
}
return myIsAdvancedZoomingEnabled;
}
-
XGUI_ViewBackground
background() const
+
Qtx::BackgroundData
background() const
{
return myBackground;
}
{
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:
signals:
- void vpChangeBackground(const
XGUI_ViewBackground
&);
+ void vpChangeBackground(const
Qtx::BackgroundData
&);
void vpClosed();
void vpMapped();
void vpTransformed();
void vpUpdated();
void resized();
void vpClosed();
void vpMapped();
void vpTransformed();
void vpUpdated();
void resized();
-protected:
+
protected:
virtual void paintEvent(QPaintEvent*);
virtual void resizeEvent(QResizeEvent*);
virtual void paintEvent(QPaintEvent*);
virtual void resizeEvent(QResizeEvent*);
-private:
+
private:
Handle(V3d_View) activeView() const
{
return myActiveView;
Handle(V3d_View) activeView() const
{
return myActiveView;
@@
-94,7
+95,7
@@
private:
double myScale;
double myScale;
-
XGUI_ViewBackground
myBackground;
+
Qtx::BackgroundData
myBackground;
int myBgImgHeight;
int myBgImgWidth;
};
int myBgImgHeight;
int myBgImgWidth;
};