15 CharSetFilter afilter; |
15 CharSetFilter afilter; |
16 bool handled; |
16 bool handled; |
17 |
17 |
18 void DrawEditBox(Window *w, int wid); |
18 void DrawEditBox(Window *w, int wid); |
19 void HandleEditBox(Window *w, int wid); |
19 void HandleEditBox(Window *w, int wid); |
20 int HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, bool &cont); |
20 int HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state); |
21 }; |
21 }; |
22 |
22 |
23 struct QueryStringBaseWindow : public Window, public QueryString { |
23 struct QueryStringBaseWindow : public Window, public QueryString { |
24 char edit_str_buf[64]; |
24 char edit_str_buf[64]; |
25 char orig_str_buf[64]; |
25 char orig_str_buf[64]; |
26 |
26 |
27 QueryStringBaseWindow(const WindowDesc *desc, void *data = NULL, WindowNumber window_number = 0) : Window(desc, data, window_number) |
27 QueryStringBaseWindow(const WindowDesc *desc, WindowNumber window_number = 0) : Window(desc, window_number) |
28 { |
28 { |
29 } |
29 } |
30 |
30 |
31 void DrawEditBox(int wid); |
31 void DrawEditBox(int wid); |
32 void HandleEditBox(int wid); |
32 void HandleEditBox(int wid); |
33 int HandleEditBoxKey(int wid, uint16 key, uint16 keycode, bool &cont); |
33 int HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state); |
34 }; |
34 }; |
35 |
35 |
36 void ShowOnScreenKeyboard(QueryStringBaseWindow *parent, int button, int cancel, int ok); |
36 void ShowOnScreenKeyboard(QueryStringBaseWindow *parent, int button, int cancel, int ok); |
37 |
37 |
38 #endif /* QUERYSTRING_GUI_H */ |
38 #endif /* QUERYSTRING_GUI_H */ |