Changeset View
Changeset View
Standalone View
Standalone View
src/kgoldrunner.h
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #ifndef KGOLDRUNNER_H | 20 | #ifndef KGOLDRUNNER_H | ||
21 | #define KGOLDRUNNER_H | 21 | #define KGOLDRUNNER_H | ||
22 | 22 | | |||
23 | #include "kgrglobals.h" | 23 | #include "kgrglobals.h" | ||
24 | 24 | | |||
25 | #include <KXmlGuiWindow> | 25 | #include <KXmlGuiWindow> | ||
26 | 26 | | |||
27 | class QSignalMapper; | | |||
28 | class QAction; | 27 | class QAction; | ||
29 | class KToggleAction; | 28 | class KToggleAction; | ||
30 | 29 | | |||
31 | class KGrGame; | 30 | class KGrGame; | ||
32 | class KGrView; | 31 | class KGrView; | ||
33 | class KGrScene; | 32 | class KGrScene; | ||
34 | class KGrRenderer; | 33 | class KGrRenderer; | ||
35 | 34 | | |||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 89 | private Q_SLOTS: | |||
104 | void viewFullScreen (bool activation); | 103 | void viewFullScreen (bool activation); | ||
105 | 104 | | |||
106 | QSize sizeHint() const override; | 105 | QSize sizeHint() const override; | ||
107 | 106 | | |||
108 | private: | 107 | private: | ||
109 | void setupActions(); | 108 | void setupActions(); | ||
110 | void setupEditToolbarActions(); | 109 | void setupEditToolbarActions(); | ||
111 | 110 | | |||
112 | QSignalMapper * tempMapper; // Temporary pointer. | | |||
113 | | ||||
114 | QAction * gameAction (const QString & name, const int code, | 111 | QAction * gameAction (const QString & name, const int code, | ||
115 | const QString & text, const QString & toolTip, | 112 | const QString & text, const QString & toolTip, | ||
116 | const QString & whatsThis, const QKeySequence & key); | 113 | const QString & whatsThis, const QKeySequence & key); | ||
117 | 114 | | |||
118 | QAction * editAction (const QString & name, const int code, | 115 | QAction * editAction (const QString & name, const int code, | ||
119 | const QString & text, const QString & toolTip, | 116 | const QString & text, const QString & toolTip, | ||
120 | const QString & whatsThis); | 117 | const QString & whatsThis); | ||
121 | 118 | | |||
122 | KToggleAction * settingAction (const QString & name, | 119 | KToggleAction * settingAction (const QString & name, | ||
123 | const int code, | 120 | const int code, | ||
124 | const QString & text, | 121 | const QString & text, | ||
125 | const QString & toolTip, | 122 | const QString & toolTip, | ||
126 | const QString & whatsThis); | 123 | const QString & whatsThis); | ||
127 | 124 | | |||
128 | KToggleAction * editToolbarAction | 125 | KToggleAction * editToolbarAction | ||
129 | (const QString & name, const char code, | 126 | (const QString & name, const char code, | ||
130 | const QString & shortText, const QString & text, | 127 | const QString & shortText, const QString & text, | ||
131 | const QString & toolTip, const QString & whatsThis); | 128 | const QString & toolTip, const QString & whatsThis); | ||
132 | 129 | | |||
133 | void keyControl (const QString & name, const QString & text, | 130 | void keyControl (const QString & name, const QString & text, | ||
134 | const QKeySequence & shortcut, const int code, | 131 | const QKeySequence & shortcut, const int code, | ||
135 | const bool mover = false); | 132 | const bool mover = false); | ||
136 | 133 | | |||
134 | void keyControlDebug (const QString & name, const QString & text, | ||||
135 | const QKeySequence & shortcut, const int code, | ||||
136 | const bool mover = false); | ||||
137 | | ||||
137 | bool startupOK; | 138 | bool startupOK; | ||
138 | 139 | | |||
139 | KGrGame * game; // Overall control of the gameplay. | 140 | KGrGame * game; // Overall control of the gameplay. | ||
140 | 141 | | |||
141 | KGrView * view; // Central widget. | 142 | KGrView * view; // Central widget. | ||
142 | KGrScene * scene; // Sets text for game-status messages. | 143 | KGrScene * scene; // Sets text for game-status messages. | ||
143 | KGrRenderer * renderer; // Changes themes and gets icon pixmaps. | 144 | KGrRenderer * renderer; // Changes themes and gets icon pixmaps. | ||
144 | 145 | | |||
Show All 21 Lines |