Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineViewStateContext.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_CONTEXT_H
8#define GUIDELINE_VIEW_STATE_CONTEXT_H
9
10#include "GuidelineViewState.h"
12#include <QVector>
13
17{
18public:
22
25
27 void requestStateTransition (GuidelineViewState guidelineState);
28
31
32private:
33
35 void transitionIfRequested ();
36
37 QVector<GuidelineViewStateAbstractBase*> m_states;
38 GuidelineViewState m_currentState;
39 GuidelineViewState m_nextState;
40};
41
42#endif // GUIDELINE_VIEW_STATE_CONTEXT_H
GuidelineViewState
Set of possible Guideline view states.
GuidelineViewState state() const
Current state for serializing.
void requestStateTransition(GuidelineViewState guidelineState)
Request a state transition.
GuidelineViewStateContext()
Single constructor.
void handleStateChange(GuidelineViewState state)
Handle user or code generated change in selected guideline view mode.