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
10#include "GuidelineFormat.h"
12#include <QPointF>
13
16{
17public:
21
22 virtual void end ();
23 virtual void handleMouseRelease (const QPointF &posScene);
24 virtual void handleTimeout ();
25
26protected:
27
30 bool locked);
31
32};
33
34#endif // GUIDELINE_STATE_DEPLOYED_ABSTRACT_H
const int INNER_RADIUS_MIN
HoverOption
Public enum.
This class maintains deployed horizontal/vertical state behaviors for the Guideline class.
GuidelineStateContext & context() const
Context in charge of the state classes.
Context class for state machine that belongs to the Guideline class.
Abstract class for deployed states.
virtual void handleTimeout()
Handle timeout from Appearing state.
GuidelineStateDeployedAbstract(GuidelineStateContext &context)
Single constructor.
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.
void beginCommon(GuidelineFormat::HoverOption hoverOption, bool locked)
Initialization common to all states.