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
GuidelineStateAbstractBase.h
GuidelineStateAbstractBase::context
GuidelineStateContext & context() const
Context in charge of the state classes.
Definition
GuidelineStateAbstractBase.cpp:27
GuidelineStateAbstractBase::GuidelineStateAbstractBase
GuidelineStateAbstractBase(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateAbstractBase.cpp:18
GuidelineStateContext
Context class for state machine that belongs to the Guideline class.
Definition
GuidelineStateContext.h:132
GuidelineStateHandleAbstract::updateWithLatestTransformation
virtual void updateWithLatestTransformation()
Update given Transformation in GuidelineStateContext.
Definition
GuidelineStateHandleAbstract.cpp:82
GuidelineStateHandleAbstract::handleHoverEnterEvent
virtual void handleHoverEnterEvent()
If transparent then make visible when hover starts.
Definition
GuidelineStateHandleAbstract.cpp:54
GuidelineStateHandleAbstract::handleTimeout
virtual void handleTimeout()
Handle timeout from Appearing state.
Definition
GuidelineStateHandleAbstract.cpp:75
GuidelineStateHandleAbstract::handleHoverLeaveEvent
virtual void handleHoverLeaveEvent()
If previously transparent before hover enter then make transparent again.
Definition
GuidelineStateHandleAbstract.cpp:61
GuidelineStateHandleAbstract::GuidelineStateHandleAbstract
GuidelineStateHandleAbstract(GuidelineStateContext &context)
Single constructor.
Definition
GuidelineStateHandleAbstract.cpp:17
GuidelineStateHandleAbstract::beginCommon
void beginCommon()
Definition
GuidelineStateHandleAbstract.cpp:26
GuidelineStateHandleAbstract::handleGuidelineMode
virtual void handleGuidelineMode(bool visible, bool locked)
User toggled Guideline visibility and/or locked mode.
Definition
GuidelineStateHandleAbstract.cpp:48
GuidelineStateHandleAbstract::handleActiveChange
virtual void handleActiveChange(bool active)
DigitizeState change so active status may (or may not) be toggled.
Definition
GuidelineStateHandleAbstract.cpp:43
GuidelineStateHandleAbstract::doPaint
virtual bool doPaint() const
Allow/skip painting of the owner Guideline.
Definition
GuidelineStateHandleAbstract.cpp:38
GuidelineStateHandleAbstract::~GuidelineStateHandleAbstract
virtual ~GuidelineStateHandleAbstract()
Definition
GuidelineStateHandleAbstract.cpp:22
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:68
Generated on
for Engauge Digitizer by
1.14.0