aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting/controls/input_control.h
diff options
context:
space:
mode:
authorMarisa-Chan2014-08-04 16:35:54 +0700
committerMarisa-Chan2014-08-04 16:35:54 +0700
commit550c4dbc359ece732684e0733e1925283f31c257 (patch)
tree288b384a6eb0b2c6f6a9de8fe2d79b89fea168c1 /engines/zvision/scripting/controls/input_control.h
parent73d26bc2337e8afd03bfd73e6ccc0c0fb44a5950 (diff)
downloadscummvm-rg350-550c4dbc359ece732684e0733e1925283f31c257.tar.gz
scummvm-rg350-550c4dbc359ece732684e0733e1925283f31c257.tar.bz2
scummvm-rg350-550c4dbc359ece732684e0733e1925283f31c257.zip
ZVISION: Implement full code for input control
Diffstat (limited to 'engines/zvision/scripting/controls/input_control.h')
-rw-r--r--engines/zvision/scripting/controls/input_control.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/engines/zvision/scripting/controls/input_control.h b/engines/zvision/scripting/controls/input_control.h
index 91fcd364cd..5e2190f369 100644
--- a/engines/zvision/scripting/controls/input_control.h
+++ b/engines/zvision/scripting/controls/input_control.h
@@ -24,6 +24,8 @@
#define ZVISION_INPUT_CONTROL_H
#include "zvision/scripting/control.h"
+#include "zvision/animation/meta_animation.h"
+#include "zvision/text/text.h"
#include "zvision/text/string_manager.h"
#include "common/rect.h"
@@ -38,25 +40,39 @@ public:
private:
Common::Rect _textRectangle;
Common::Rect _headerRectangle;
- StringManager::TextStyle _textStyle;
+ cTxtStyle _string_init;
+ cTxtStyle _string_chooser_init;
uint32 _nextTabstop;
- Common::String _cursorAnimationFileName;
bool _focused;
Common::String _currentInputText;
bool _textChanged;
uint _cursorOffset;
+ bool _enterPressed;
+ bool _readOnly;
+
+ int16 _txtWidth;
+ MetaAnimation *_animation;
+ int32 _frameDelay;
+ int16 _frame;
public:
void focus() {
_focused = true;
+ _textChanged = true;
}
void unfocus() {
_focused = false;
+ _textChanged = true;
}
bool onMouseUp(const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos);
+ bool onMouseMove(const Common::Point &screenSpacePos, const Common::Point &backgroundImageSpacePos);
bool onKeyDown(Common::KeyState keyState);
bool process(uint32 deltaTimeInMillis);
+ void setText(const Common::String &_str);
+ const Common::String getText();
+ bool enterPress();
+ void setReadOnly(bool);
};
} // End of namespace ZVision