Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineStateDeployedConstantXSelectEditAppearing.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_DEPLOYED_CONSTANT_X_SELECT_EDIT_APPEARING_H
8#define GUIDELINE_STATE_DEPLOYED_CONSTANT_X_SELECT_EDIT_APPEARING_H
9
11
12class QTimer;
13
18{
19public:
23
24 virtual void begin ();
25 virtual bool doPaint () const;
26 virtual void end ();
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 QString stateName () const;
35
36private:
38
39 QTimer *m_timer;
40};
41
42#endif // GUIDELINE_STATE_DEPLOYED_CONSTANT_X_SELECT_EDIT_APPEARING_H
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
GuidelineStateDeployedConstantXAbstract(GuidelineStateContext &context)
Single constructor.
virtual void handleHoverLeaveEvent()
If previously transparent before hover enter then make transparent again.
virtual void handleMousePress(const QPointF &posScene)
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed ...
GuidelineStateDeployedConstantXSelectEditAppearing(GuidelineStateContext &context)
Single constructor.
virtual bool doPaint() const
Allow/skip painting of the owner Guideline.
virtual QString stateName() const
Name of state as a string for debugging only.
virtual void handleHoverEnterEvent()
If transparent then make visible when hover starts.
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.