aboutsummaryrefslogtreecommitdiff
path: root/gui/predictivedialog.h
diff options
context:
space:
mode:
authorJohannes Schickel2016-01-24 03:43:13 +0100
committerJohannes Schickel2016-01-24 03:43:13 +0100
commite5e2a8d8cf9c4e52a4a40d9faf5a8c258e0284f3 (patch)
tree6cb4f3f2ac06304f3a87a58003b070b5273f7cbf /gui/predictivedialog.h
parenta7dba17fece00548f52426a20a8c4948a6dd0870 (diff)
downloadscummvm-rg350-e5e2a8d8cf9c4e52a4a40d9faf5a8c258e0284f3.tar.gz
scummvm-rg350-e5e2a8d8cf9c4e52a4a40d9faf5a8c258e0284f3.tar.bz2
scummvm-rg350-e5e2a8d8cf9c4e52a4a40d9faf5a8c258e0284f3.zip
GUI: Move PredicitveDialog enums inside class declaration.
Diffstat (limited to 'gui/predictivedialog.h')
-rw-r--r--gui/predictivedialog.h69
1 files changed, 35 insertions, 34 deletions
diff --git a/gui/predictivedialog.h b/gui/predictivedialog.h
index a1d85f62ad..37c80a2a14 100644
--- a/gui/predictivedialog.h
+++ b/gui/predictivedialog.h
@@ -33,40 +33,6 @@ class EditTextWidget;
class ButtonWidget;
class PicButtonWidget;
-enum ButtonId {
- kButton1Act = 0,
- kButton2Act = 1,
- kButton3Act = 2,
- kButton4Act = 3,
- kButton5Act = 4,
- kButton6Act = 5,
- kButton7Act = 6,
- kButton8Act = 7,
- kButton9Act = 8,
- kNextAct = 9,
- kAddAct = 10,
- kDelAct = 11,
- kCancelAct = 12,
- kOkAct = 13,
- kModeAct = 14,
- kButton0Act = 15,
- kNoAct = -1
-};
-
-enum {
- kButtonCount = kButton0Act + 1
-};
-
-enum {
- kRepeatDelay = 500
-};
-
-enum {
- kMaxLineLen = 80,
- kMaxWordLen = 24,
- kMaxWord = 50
-};
-
class PredictiveDialog : public GUI::Dialog {
public:
PredictiveDialog();
@@ -80,7 +46,42 @@ public:
virtual void handleTickle();
const char *getResult() const { return _predictiveResult; }
+
private:
+ enum ButtonId {
+ kButton1Act = 0,
+ kButton2Act = 1,
+ kButton3Act = 2,
+ kButton4Act = 3,
+ kButton5Act = 4,
+ kButton6Act = 5,
+ kButton7Act = 6,
+ kButton8Act = 7,
+ kButton9Act = 8,
+ kNextAct = 9,
+ kAddAct = 10,
+ kDelAct = 11,
+ kCancelAct = 12,
+ kOkAct = 13,
+ kModeAct = 14,
+ kButton0Act = 15,
+ kNoAct = -1
+ };
+
+ enum {
+ kButtonCount = kButton0Act + 1
+ };
+
+ enum {
+ kRepeatDelay = 500
+ };
+
+ enum {
+ kMaxLineLen = 80,
+ kMaxWordLen = 24,
+ kMaxWord = 50
+ };
+
struct Dict {
Dict() : dictLine(nullptr), dictText(nullptr), dictActLine(nullptr),
dictLineCount(0), dictTextSize(0) {}