aboutsummaryrefslogtreecommitdiff
path: root/gui/predictivedialog.h
diff options
context:
space:
mode:
authorOleksiy Kurochko2012-05-03 19:32:34 +0300
committerEugene Sandulenko2012-05-03 19:32:34 +0300
commit24a45beceb1d9228168fc0911b90da3bd45a923e (patch)
treefd8a930b14082b9fa0831516542f64f52567faa5 /gui/predictivedialog.h
parente6c317a9226b71af572d2e2004e307c0e895b77c (diff)
downloadscummvm-rg350-24a45beceb1d9228168fc0911b90da3bd45a923e.tar.gz
scummvm-rg350-24a45beceb1d9228168fc0911b90da3bd45a923e.tar.bz2
scummvm-rg350-24a45beceb1d9228168fc0911b90da3bd45a923e.zip
GUI: Use pressed state in predictive dialog in keyboard mode.
This adds more visual feedback to the user.
Diffstat (limited to 'gui/predictivedialog.h')
-rw-r--r--gui/predictivedialog.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/predictivedialog.h b/gui/predictivedialog.h
index 32de36d5f2..0e3d2967c0 100644
--- a/gui/predictivedialog.h
+++ b/gui/predictivedialog.h
@@ -68,6 +68,7 @@ public:
~PredictiveDialog();
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
+ virtual void handleKeyUp(Common::KeyState state);
virtual void handleKeyDown(Common::KeyState state);
virtual void handleTickle();
@@ -98,6 +99,8 @@ private:
void saveUserDictToFile();
void mergeDicts();
+
+ void updateHighLightedButton(ButtonId active);
private:
Dict _unitedDict;
Dict _predictiveDict;
@@ -118,6 +121,7 @@ private:
uint32 _curTime, _lastTime;
ButtonId _lastPressBtn;
+ ButtonId _currBtn;
char _temp[kMaxWordLen + 1];
int _repeatcount[kMaxWordLen];
@@ -128,11 +132,10 @@ private:
Common::String _search;
bool _navigationwithkeys;
+ bool _needRefresh;
private:
EditTextWidget *_edittext;
- ButtonWidget *_modebutton;
- ButtonWidget *_delbtn;
- ButtonWidget *_addBtn;
+ ButtonWidget **_btns;
};
} // namespace GUI