Engauge Digitizer
2
Loading...
Searching...
No Matches
Guideline
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
10
#include "
GuidelineStateAbstractBase.h
"
11
19
class
GuidelineStateHandleAbstract
:
public
GuidelineStateAbstractBase
20
{
21
public
:
23
GuidelineStateHandleAbstract
(
GuidelineStateContext
&
context
);
24
virtual
~GuidelineStateHandleAbstract
();
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
36
protected
:
37
void
beginCommon
();
38
39
};
40
41
#endif
// GUIDELINE_STATE_HANDLE_ABSTRACT_H
INNER_RADIUS_MIN
const int INNER_RADIUS_MIN
Definition
DlgSettingsDigitizeCurve.cpp:35
GuidelineStateAbstractBase.h
GuidelineStateAbstractBase
This class maintains deployed horizontal/vertical state behaviors for the Guideline class.
Definition
GuidelineStateAbstractBase.h:25
GuidelineStateAbstractBase::context
GuidelineStateContext & context() const
Context in charge of the state classes.
Definition
GuidelineStateAbstractBase.cpp:28
GuidelineStateContext
Context class for state machine that belongs to the Guideline class.
Definition
GuidelineStateContext.h:130
GuidelineStateHandleAbstract
State for an invisible handle which was previously a deployed Guideline but morphed into an invisible...
Definition
GuidelineStateHandleAbstract.h:20
GuidelineStateHandleAbstract::updateWithLatestTransformation
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
Definition
GuidelineStateHandleAbstract.cpp:86
GuidelineStateHandleAbstract::handleHoverEnterEvent
virtual void handleHoverEnterEvent()
If transparent then make visible when hover starts.
Definition
GuidelineStateHandleAbstract.cpp:58
GuidelineStateHandleAbstract::handleTimeout
virtual void handleTimeout()
Handle timeout from Appearing state.
Definition
GuidelineStateHandleAbstract.cpp:79
GuidelineStateHandleAbstract::handleHoverLeaveEvent
virtual void handleHoverLeaveEvent()
If previously transparent before hover enter then make transparent again.
Definition
GuidelineStateHandleAbstract.cpp:65
GuidelineStateHandleAbstract::GuidelineStateHandleAbstract
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleAbstract.cpp:18
GuidelineStateHandleAbstract::beginCommon
void beginCommon()
Definition
GuidelineStateHandleAbstract.cpp:27
GuidelineStateHandleAbstract::handleGuidelineMode
virtual void handleGuidelineMode(bool visible, bool locked)
User toggled Guideline visibility and/or locked mode.
Definition
GuidelineStateHandleAbstract.cpp:52
GuidelineStateHandleAbstract::handleActiveChange
virtual void handleActiveChange(bool active)
DigitizeState change so active status may (or may not) be toggled.
Definition
GuidelineStateHandleAbstract.cpp:47
GuidelineStateHandleAbstract::doPaint
virtual bool doPaint() const
Allow/skip painting of the owner Guideline.
Definition
GuidelineStateHandleAbstract.cpp:42
GuidelineStateHandleAbstract::~GuidelineStateHandleAbstract
virtual ~GuidelineStateHandleAbstract()
Definition
GuidelineStateHandleAbstract.cpp:23
GuidelineStateHandleAbstract::handleMousePress
virtual void handleMousePress(const QPointF &posScene)
At the start of dragging, convert the Guideline into an invisible handle and visible slaved deployed ...
Definition
GuidelineStateHandleAbstract.cpp:72
Generated on Sat Dec 21 2024 18:04:14 for Engauge Digitizer by
1.10.0