52 if (visible || locked) {
QString guidelineStateAsString(GuidelineState state)
@ GUIDELINE_STATE_DEPLOYED_CONSTANT_X_UNSELECT_EDIT
@ GUIDELINE_STATE_DEPLOYED_CONSTANT_X_UNSELECT_LOCK
log4cpp::Category * mainCat
virtual QString identifier() const =0
Unique identifier from QGraphicsItem.
virtual void setGraphicsItemVisible(bool visible)=0
Wrapper for QGraphicsItem::setVisible.
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
GuidelineAbstract & guideline()
Guideline that owns this context class.
void requestStateTransition(GuidelineState guidelineState)
Request a state transition.
void beginCommon(bool hovering, bool locked)
Initialization common to all states.
GuidelineStateDeployedConstantXAbstract(GuidelineStateContext &context)
Single constructor.
virtual void handleHoverEnterEvent()
If transparent then make visible when hover starts.
virtual void begin()
Transition into state.
virtual QString stateName() const
Name of state as a string for debugging only.
virtual void end()
Transition out of state.
virtual void handleMousePress(const QPointF &posScene)
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed ...
virtual ~GuidelineStateDeployedConstantXUnselectEdit()
virtual void handleHoverLeaveEvent()
If previously transparent before hover enter then make transparent again.
virtual void handleGuidelineMode(bool visible, bool locked)
User toggled Guideline visibility and/or locked mode.
GuidelineStateDeployedConstantXUnselectEdit(GuidelineStateContext &context)
Single constructor.
virtual void handleActiveChange(bool active)
DigitizeState change so active status may (or may not) be toggled.
virtual bool doPaint() const
Allow/skip painting of the owner Guideline.
#define LOG4CPP_INFO_S(logger)