Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineViewState.h File Reference
#include <QString>
Include dependency graph for GuidelineViewState.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  GuidelineViewState { GUIDELINE_VIEW_STATE_EDIT , GUIDELINE_VIEW_STATE_HIDE , GUIDELINE_VIEW_STATE_LOCK , NUM_GUIDELINE_VIEW_STATES }
 Set of possible Guideline view states. More...

Functions

QString guidelineViewStateAsString (GuidelineViewState state)

Enumeration Type Documentation

◆ GuidelineViewState

Set of possible Guideline view states.

Enumerator
GUIDELINE_VIEW_STATE_EDIT 
GUIDELINE_VIEW_STATE_HIDE 
GUIDELINE_VIEW_STATE_LOCK 
NUM_GUIDELINE_VIEW_STATES 

Definition at line 13 of file GuidelineViewState.h.

Function Documentation

◆ guidelineViewStateAsString()

QString guidelineViewStateAsString ( GuidelineViewState state)
extern

Definition at line 14 of file GuidelineViewState.cpp.

15{
16 if (guidelineViewStateHash.size () == 0) {
17
18 // First time through we load the hash
19 guidelineViewStateHash [GUIDELINE_VIEW_STATE_HIDE] = "Hide";
20 guidelineViewStateHash [GUIDELINE_VIEW_STATE_EDIT] = "Edit";
21 guidelineViewStateHash [GUIDELINE_VIEW_STATE_LOCK] = "Lock";
22 }
23
24 if (guidelineViewStateHash.contains (state)) {
25 return guidelineViewStateHash [state];
26 } else {
27 return "?";
28 }
29}