34 context ().modelGuideline ().lineWidthInactive ());
40 <<
"should not be called";
44 return QPointF (0, 0);
116 return QLineF (0, 0, 0, 0);
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
QString guidelineStateAsString(GuidelineState state)
@ GUIDELINE_STATE_DISCARDED
log4cpp::Category * mainCat
const int Z_VALUE_GUIDELINE_DISCARDED
Parameters that define an ellipse about the specified center, at the specified angle from alignment w...
virtual QString identifier() const =0
Unique identifier from QGraphicsItem.
virtual void setGraphicsItemVisible(bool visible)=0
Wrapper for QGraphicsItem::setVisible.
virtual void setGraphicsItemAcceptHoverEvents(bool accept)=0
Wrapper for QGraphicsItem::setAcceptHoverEvents.
virtual void setGraphicsItemZValue(double z)=0
Wrapper for QGraphicsItem::setZValue.
virtual void setGraphicsItemPen(const QColor &color, double lineWidth)=0
Wrapper for QGraphicsItem::setPen.
GuidelineStateContext & context() const
Context in charge of the state classes.
GuidelineStateAbstractBase(GuidelineStateContext &context)
Single constructor.
Context class for state machine that belongs to the Guideline class.
GuidelineAbstract & guideline()
Guideline that owns this context class.
virtual void handleTimeout()
Handle timeout from Appearing state.
virtual QString stateName() const
Name of state as a string for debugging only.
virtual void handleHoverEnterEvent()
If transparent then make visible when hover starts.
GuidelineStateDiscarded(GuidelineStateContext &context)
Single constructor.
virtual void handleHoverLeaveEvent()
If previously transparent before hover enter then make transparent again.
virtual bool doPaint() const
Allow/skip painting of the owner Guideline.
virtual void handleGuidelineMode(bool visible, bool locked)
User toggled Guideline visibility and/or locked mode.
virtual QLineF pointToLine(const QPointF &posScreen) const
Return line parallel to an axis line, that passes through the specified point.
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
virtual void handleMouseRelease(const QPointF &posScene)
At the end of dragging, clone the Guideline that owns the state machine where these states live.
virtual double convertScreenPointToGraphCoordinate(const QPointF &posScreen) const
Convert screen point pair into single graph coordinate.
virtual EllipseParameters pointToEllipse(const QPointF &posScreen) const
Return ellipse representing constant range, that passes through the specified point.
virtual void handleState()
virtual QPointF convertGraphCoordinateToScreenPoint(double valueGraph) const
Convert single graph coordinate into screen point pair.
virtual ~GuidelineStateDiscarded()
virtual void handleMousePress(const QPointF &posScene)
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed ...
virtual void handleActiveChange(bool active)
DigitizeState change so active status may (or may not) be toggled.
virtual void end()
Transition out of state.
virtual void begin()
Transition into state.
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_DEBUG_S(logger)
#define LOG4CPP_ERROR_S(logger)