Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineStateDeployedConstantTSelectHide.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_T_SELECT_HIDE_H
8#define GUIDELINE_STATE_DEPLOYED_CONSTANT_T_SELECT_HIDE_H
9
11
14{
15public:
19
20 virtual void begin ();
21 virtual bool doPaint () const;
22 virtual void end ();
23 virtual void handleActiveChange (bool active);
24 virtual void handleGuidelineMode (bool visible,
25 bool locked);
26 virtual void handleHoverEnterEvent ();
27 virtual void handleHoverLeaveEvent ();
28 virtual void handleMousePress (const QPointF &posScene);
29 virtual QString stateName () const;
30
31private:
33
34};
35
36#endif // GUIDELINE_STATE_DEPLOYED_CONSTANT_T_SELECT_HIDE_H
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
GuidelineStateDeployedConstantTAbstract(GuidelineStateContext &context)
Single constructor.
virtual void handleMousePress(const QPointF &posScene)
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed ...
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.
virtual void handleActiveChange(bool active)
DigitizeState change so active status may (or may not) be toggled.
GuidelineStateDeployedConstantTSelectHide(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.