Graphic tracing improvements
This commit is contained in:
@@ -182,6 +182,7 @@ public:
|
||||
bool gesturesNavigation() const {return gestures;}
|
||||
bool isAutofitted() const {return isFit;}
|
||||
int currentGraphic() const {return curGraphic;}
|
||||
int currentTraceGraphic() const {return curTrace;}
|
||||
int graphicsCount() const {return graphics.size();}
|
||||
Graphic::Buttons buttons() const {return buttons_;}
|
||||
Graphic::Alignment buttonsPosition() const {return align;}
|
||||
@@ -317,6 +318,7 @@ public slots:
|
||||
void update(bool force = false);
|
||||
void updateGraphics() {findGraphicsRect(); update();}
|
||||
void setCurrentGraphic(int arg) {if (arg < 0 || arg >= graphics.size()) return; curGraphic = arg;}
|
||||
void setTraceGraphic(int arg) {if (arg < 0 || arg >= graphics.size()) return; curTrace = arg;}
|
||||
void setGraphicsCount(int arg, bool update = true);
|
||||
void removeGraphic(int arg, bool update = true);
|
||||
|
||||
@@ -371,7 +373,7 @@ protected:
|
||||
QPen grid_pen, selpen;
|
||||
QColor back_color, text_color;
|
||||
QVector<GraphicType> graphics;
|
||||
int curGraphic;
|
||||
int curGraphic, curTrace;
|
||||
GraphicAction curaction, prevaction;
|
||||
QRectF grect, selrect, limit_, def_rect;
|
||||
QRect margins_;
|
||||
@@ -437,6 +439,7 @@ signals:
|
||||
void graphicMousePressEvent(QPointF point, int buttons);
|
||||
void graphicMouseReleaseEvent(QPointF point, int buttons);
|
||||
void graphicWheelEvent(QPointF point, int delta);
|
||||
void graphicTraceEvent(int graphic, QPointF point);
|
||||
void closeRequest(QWidget * );
|
||||
void cleared();
|
||||
void visualRectChanged();
|
||||
|
||||
Reference in New Issue
Block a user