(svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables.
This commit is contained in:
@@ -18,21 +18,6 @@ struct Textbuf {
|
||||
uint16 caretxoffs; ///< the current position of the caret in pixels
|
||||
};
|
||||
|
||||
struct querystr_d {
|
||||
StringID caption;
|
||||
Textbuf text;
|
||||
const char *orig;
|
||||
CharSetFilter afilter;
|
||||
bool handled;
|
||||
};
|
||||
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(querystr_d));
|
||||
|
||||
extern char _edit_str_buf[64];
|
||||
extern char _orig_str_buf[lengthof(_edit_str_buf)];
|
||||
|
||||
void DrawEditBox(Window *w, querystr_d *string, int wid);
|
||||
void HandleEditBox(Window *w, querystr_d *string, int wid);
|
||||
int HandleEditBoxKey(Window *w, querystr_d *string, int wid, WindowEvent *we);
|
||||
bool HandleCaret(Textbuf *tb);
|
||||
|
||||
void DeleteTextBufferAll(Textbuf *tb);
|
||||
@@ -56,6 +41,4 @@ static const uint OSK_KEYBOARD_ENTRIES = 50;
|
||||
*/
|
||||
extern char _keyboard_opt[2][OSK_KEYBOARD_ENTRIES * 4 + 1];
|
||||
|
||||
void ShowOnScreenKeyboard(Window *parent, querystr_d *q, int button, int cancel, int ok);
|
||||
|
||||
#endif /* TEXTBUF_GUI_H */
|
||||
|
Reference in New Issue
Block a user