Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineViewStateLock.cpp
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#include "EngaugeAssert.h"
11#include "Logger.h"
12
17
21
23{
24 LOG4CPP_INFO_S ((*mainCat)) << "GuidelineViewStateLock::begin";
25}
26
28{
29 LOG4CPP_INFO_S ((*mainCat)) << "GuidelineViewStateLock::end";
30}
31
36
GuidelineViewState
Set of possible Guideline view states.
@ GUIDELINE_VIEW_STATE_LOCK
log4cpp::Category * mainCat
Definition Logger.cpp:14
This class tracks the current Guidelines view state so CmdGuidelineViewState objects can be generated...
GuidelineViewStateContext & context() const
Context in charge of the state classes.
Context class for state machine that tracks the View / Guidelines mode.
void requestStateTransition(GuidelineViewState guidelineState)
Request a state transition.
virtual GuidelineViewState state() const
Return state for serializing.
virtual void handleStateChange(GuidelineViewState state)
User or software changed the current view state widgets.
GuidelineViewStateLock(GuidelineViewStateContext &context)
Single constructor.
virtual void begin()
Transition into state.
virtual void end()
Transition out of state.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18