Engauge Digitizer
2
Loading...
Searching...
No Matches
GuidelineView
GuidelineViewStateAbstractBase.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2020 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_VIEW_STATE_ABSTRACT_BASE_H
8
#define GUIDELINE_VIEW_STATE_ABSTRACT_BASE_H
9
10
#include "
GuidelineViewState.h
"
11
12
class
GuidelineViewStateContext
;
13
16
class
GuidelineViewStateAbstractBase
17
{
18
public
:
20
GuidelineViewStateAbstractBase
(
GuidelineViewStateContext
&
context
);
21
virtual
~GuidelineViewStateAbstractBase
();
22
24
virtual
void
begin
() = 0;
25
27
virtual
void
end
() = 0;
28
30
virtual
void
handleStateChange
(
GuidelineViewState
state
) = 0;
31
33
virtual
GuidelineViewState
state
()
const
= 0;
34
35
protected
:
36
38
GuidelineViewStateContext
&
context
()
const
;
39
40
private
:
41
GuidelineViewStateAbstractBase
();
42
43
GuidelineViewStateContext
&m_context;
44
};
45
46
#endif
// GUIDELINE_VIEW_STATE_ABSTRACT_BASE_H
GuidelineViewState.h
GuidelineViewState
GuidelineViewState
Set of possible Guideline view states.
Definition
GuidelineViewState.h:13
GuidelineViewStateAbstractBase::end
virtual void end()=0
Transition out of state.
GuidelineViewStateAbstractBase::begin
virtual void begin()=0
Transition into state.
GuidelineViewStateAbstractBase::handleStateChange
virtual void handleStateChange(GuidelineViewState state)=0
User or software changed the current view state widgets.
GuidelineViewStateAbstractBase::~GuidelineViewStateAbstractBase
virtual ~GuidelineViewStateAbstractBase()
Definition
GuidelineViewStateAbstractBase.cpp:16
GuidelineViewStateAbstractBase::state
virtual GuidelineViewState state() const =0
Return state for serializing.
GuidelineViewStateAbstractBase::context
GuidelineViewStateContext & context() const
Context in charge of the state classes.
Definition
GuidelineViewStateAbstractBase.cpp:20
GuidelineViewStateAbstractBase::GuidelineViewStateAbstractBase
GuidelineViewStateAbstractBase(GuidelineViewStateContext &context)
Single constructor.
Definition
GuidelineViewStateAbstractBase.cpp:11
GuidelineViewStateContext
Context class for state machine that tracks the View / Guidelines mode.
Definition
GuidelineViewStateContext.h:17
Generated on
for Engauge Digitizer by
1.14.0