(svn r17502) -Codechange [FS#3184]: Extend QueryStringBaseWindow to support windows with nested widgets (by Terkhen with a few tweaks).

This commit is contained in:
alberth
2009-09-11 18:52:56 +00:00
parent 4cb6451507
commit 669b7d01ac
3 changed files with 38 additions and 16 deletions

View File

@@ -62,6 +62,12 @@ struct QueryStringBaseWindow : public Window, public QueryString {
char *orig_str_buf;
const uint16 edit_str_size; ///< maximum length of string (in bytes), including terminating '\0'
QueryStringBaseWindow(uint16 size) : Window(), edit_str_size(size)
{
assert(size != 0);
this->edit_str_buf = CallocT<char>(size);
}
QueryStringBaseWindow(uint16 size, const WindowDesc *desc, WindowNumber window_number = 0) : Window(desc, window_number), edit_str_size(size)
{
assert(size != 0);