Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineStateDeployedAbstract.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_ABSTRACT_H
8#define GUIDELINE_STATE_DEPLOYED_ABSTRACT_H
9
11#include <QPointF>
12
15{
16public:
20
21 virtual void end ();
22 virtual void handleMouseRelease (const QPointF &posScene);
23 virtual void handleTimeout ();
24
25protected:
26
28 void beginCommon (bool hovering,
29 bool locked);
30
31};
32
33#endif // GUIDELINE_STATE_DEPLOYED_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 handleTimeout()
Handle timeout from Appearing state.
GuidelineStateDeployedAbstract(GuidelineStateContext &context)
Single constructor.
void beginCommon(bool hovering, bool locked)
Initialization common to all states.
virtual void handleMouseRelease(const QPointF &posScene)
At the end of dragging, clone the Guideline that owns the state machine where these states live.
virtual void end()
Transition out of state.