X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_RubberBand.h;h=e31eafdee1a4fd9ab509fe594ec27b865815e907;hb=4fcd5da2d972334e887716499b0ea75d9d6c51c2;hp=7d9fc43b40f930feef42823a949205fcd1b1b961;hpb=e1f8fb3cfc1ee565db16fbbd9fe6f65121c4577c;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_RubberBand.h b/src/XGUI/XGUI_RubberBand.h index 7d9fc43b4..e31eafdee 100644 --- a/src/XGUI/XGUI_RubberBand.h +++ b/src/XGUI/XGUI_RubberBand.h @@ -1,22 +1,30 @@ #ifndef XGUI_RubberBand_H #define XGUI_RubberBand_H +#include "XGUI.h" #include -class XGUI_AbstractRubberBand: public QWidget +/*! + \class XGUI_AbstractRubberBand + \ingroup GUI + \brief Analog of class QRubberBand with possibility of creation non-rectangular contour for selection. + + Currently this class does not support Style functionality in full. + */ +class XGUI_EXPORT XGUI_AbstractRubberBand : public QWidget { Q_OBJECT -protected: + protected: XGUI_AbstractRubberBand(QWidget*); -public: + public: virtual ~XGUI_AbstractRubberBand(); virtual void clearGeometry(); bool isClosed(); -protected: + protected: virtual void paintEvent(QPaintEvent*); virtual void showEvent(QShowEvent*); virtual void moveEvent(QMoveEvent*); @@ -26,17 +34,24 @@ protected: virtual void updateMask(); -protected: + protected: QPolygon myPoints; bool myIsClosed; }; -class XGUI_RectRubberBand: public XGUI_AbstractRubberBand +/*! + \class XGUI_RectRubberBand + \ingroup GUI + \brief Analog of class QRubberBand with possibility of creation non-rectangular contour for selection. + + Redefinition for rectangular rubber band + */ +class XGUI_RectRubberBand : public XGUI_AbstractRubberBand { Q_OBJECT -public: + public: XGUI_RectRubberBand(QWidget*); virtual ~XGUI_RectRubberBand(); @@ -47,11 +62,11 @@ public: virtual void clearGeometry(); }; -class XGUI_PolyRubberBand: public XGUI_AbstractRubberBand +class XGUI_PolyRubberBand : public XGUI_AbstractRubberBand { Q_OBJECT -public: + public: XGUI_PolyRubberBand(QWidget*); virtual ~XGUI_PolyRubberBand();