OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aSingletonAllowedMessages.h
Go to the documentation of this file.
1/*
2 * File: aSingletonAllowedMessages.h
3 * Package: akCore
4 *
5 * Created on: September 16; 2020
6 * Author: Alexander Kuester
7 * Copyright (c) 2022 Alexander Kuester
8 * This file is part of the uiCore component.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 */
12
13#pragma once
14
15// AK header
17#include <akCore/akCore.h>
18
19// C++ header
20#include <vector>
21
22namespace ak {
23
25 {
26 public:
27
29
31
32 static aSingletonAllowedMessages * instance();
33
34 // ###################################################################################
35
36 // Setter
37
38 void setFlag(eventType _type);
39
40 void removeFlag(eventType _type);
41
42 // ###################################################################################
43
44 // Getter
45
46 std::vector<eventType> enabledMessages(void) const;
47
48 std::vector<ak::eventType> disabledMessages(void) const;
49
50 bool unknownEvent(void) const { return m_unknownEvent; }
51
52 bool activatedEvent(void) const { return m_activated; }
53
54 bool changedEvent(void) const { return m_changed; }
55
56 bool clearedEvent(void) const { return m_cleared; }
57
58 bool clickedEvent(void) const { return m_clicked; }
59
60 bool closeRequestedEvent(void) const { return m_closeRequested; }
61
62 bool collapsedEvent(void) const { return m_collpased; }
63
64 bool cursorPositionChangedEvent(void) const { return m_cursorPosotionChanged; }
65
66 bool destroyedEvent(void) const { return m_destroyed; }
67
68 bool doubleClickedEvent(void) const { return m_doubleClicked; }
69
70 bool expandedEvent(void) const { return m_expanded; }
71
72 bool focusedEvent(void) const { return m_focused; }
73
74 bool invalidEntryEvent(void) const { return m_invalidEntry; }
75
76 bool indexChangedEvent(void) const { return m_indexChanged; }
77
78 bool keyPressedEvent(void) const { return m_keyPressed; }
79
80 bool locationChangedEvent(void) const { return m_locationChanged; }
81
82 bool releasedEvent(void) const { return m_released; }
83
84 bool selectionChangedEvent(void) const { return m_selectionChanged; }
85
86 bool stateChangedEvent(void) const { return m_stateChanged; }
87
88 bool textChangedEvent(void) const { return m_textChanged; }
89
90 bool toggledCheckedEvent(void) const { return m_toggeledChecked; }
91
92 bool toggledUncheckedEvent(void) const { return m_toggeledUnchecked; }
93
94 protected:
96
98
121
122 };
123
124}
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
Definition aSingletonAllowedMessages.h:25
bool indexChangedEvent(void) const
Definition aSingletonAllowedMessages.h:76
bool selectionChangedEvent(void) const
Definition aSingletonAllowedMessages.h:84
bool m_expanded
Definition aSingletonAllowedMessages.h:109
bool m_clicked
Definition aSingletonAllowedMessages.h:103
bool m_unknownEvent
Definition aSingletonAllowedMessages.h:99
bool focusedEvent(void) const
Definition aSingletonAllowedMessages.h:72
bool toggledCheckedEvent(void) const
Definition aSingletonAllowedMessages.h:90
bool m_toggeledChecked
Definition aSingletonAllowedMessages.h:119
bool m_closeRequested
Definition aSingletonAllowedMessages.h:104
bool m_indexChanged
Definition aSingletonAllowedMessages.h:112
bool m_textChanged
Definition aSingletonAllowedMessages.h:118
bool activatedEvent(void) const
Definition aSingletonAllowedMessages.h:52
bool releasedEvent(void) const
Definition aSingletonAllowedMessages.h:82
bool unknownEvent(void) const
Definition aSingletonAllowedMessages.h:50
bool m_cleared
Definition aSingletonAllowedMessages.h:102
bool cursorPositionChangedEvent(void) const
Definition aSingletonAllowedMessages.h:64
bool m_keyPressed
Definition aSingletonAllowedMessages.h:115
bool m_invalidEntry
Definition aSingletonAllowedMessages.h:111
bool textChangedEvent(void) const
Definition aSingletonAllowedMessages.h:88
static aSingletonAllowedMessages * m_singleton
Definition aSingletonAllowedMessages.h:97
bool m_toggeledUnchecked
Definition aSingletonAllowedMessages.h:120
bool clickedEvent(void) const
Definition aSingletonAllowedMessages.h:58
bool m_doubleClicked
Definition aSingletonAllowedMessages.h:108
bool toggledUncheckedEvent(void) const
Definition aSingletonAllowedMessages.h:92
bool changedEvent(void) const
Definition aSingletonAllowedMessages.h:54
bool keyPressedEvent(void) const
Definition aSingletonAllowedMessages.h:78
bool m_released
Definition aSingletonAllowedMessages.h:114
bool collapsedEvent(void) const
Definition aSingletonAllowedMessages.h:62
bool destroyedEvent(void) const
Definition aSingletonAllowedMessages.h:66
aSingletonAllowedMessages(const aSingletonAllowedMessages &other)=delete
bool locationChangedEvent(void) const
Definition aSingletonAllowedMessages.h:80
bool m_locationChanged
Definition aSingletonAllowedMessages.h:113
bool m_destroyed
Definition aSingletonAllowedMessages.h:107
bool m_focused
Definition aSingletonAllowedMessages.h:110
bool doubleClickedEvent(void) const
Definition aSingletonAllowedMessages.h:68
bool invalidEntryEvent(void) const
Definition aSingletonAllowedMessages.h:74
aSingletonAllowedMessages & operator=(const aSingletonAllowedMessages &)=delete
bool expandedEvent(void) const
Definition aSingletonAllowedMessages.h:70
bool m_activated
Definition aSingletonAllowedMessages.h:100
bool m_cursorPosotionChanged
Definition aSingletonAllowedMessages.h:106
bool m_collpased
Definition aSingletonAllowedMessages.h:105
bool m_changed
Definition aSingletonAllowedMessages.h:101
bool m_stateChanged
Definition aSingletonAllowedMessages.h:117
bool stateChangedEvent(void) const
Definition aSingletonAllowedMessages.h:86
bool m_selectionChanged
Definition aSingletonAllowedMessages.h:116
bool clearedEvent(void) const
Definition aSingletonAllowedMessages.h:56
bool closeRequestedEvent(void) const
Definition aSingletonAllowedMessages.h:60
Definition uiAPI.h:45
eventType
Describes the type of an event.
Definition akCore.h:86