Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineStateHandleAbstract.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GUIDELINE_STATE_HANDLE_ABSTRACT_H
8#define GUIDELINE_STATE_HANDLE_ABSTRACT_H
9
11
20{
21public:
25
26 virtual bool doPaint () const;
27 virtual void handleActiveChange (bool active);
28 virtual void handleGuidelineMode (bool visible,
29 bool locked);
30 virtual void handleHoverEnterEvent ();
31 virtual void handleHoverLeaveEvent ();
32 virtual void handleMousePress (const QPointF &posScene);
33 virtual void handleTimeout ();
34 virtual void updateWithLatestTransformation ();
35
36protected:
37 void beginCommon ();
38
39};
40
41#endif // GUIDELINE_STATE_HANDLE_ABSTRACT_H
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.
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
virtual void handleHoverEnterEvent()
If transparent then make visible when hover starts.
virtual void handleTimeout()
Handle timeout from Appearing state.
virtual void handleHoverLeaveEvent()
If previously transparent before hover enter then make transparent again.
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
virtual void handleGuidelineMode(bool visible, bool locked)
User toggled Guideline visibility and/or locked mode.
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.
virtual void handleMousePress(const QPointF &posScene)
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed ...