src/querystring_gui.h
changeset 9916 40b0040c754b
parent 9897 4d9a6ff6703e
child 10276 b60b7e17db62
equal deleted inserted replaced
9915:9c9960c44822 9916:40b0040c754b
    37 	void HandleEditBox(Window *w, int wid);
    37 	void HandleEditBox(Window *w, int wid);
    38 	int HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state);
    38 	int HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state);
    39 };
    39 };
    40 
    40 
    41 struct QueryStringBaseWindow : public Window, public QueryString {
    41 struct QueryStringBaseWindow : public Window, public QueryString {
    42 	const size_t edit_str_size;
       
    43 	char *edit_str_buf;
    42 	char *edit_str_buf;
    44 	char *orig_str_buf;
    43 	char *orig_str_buf;
       
    44 	const uint16 edit_str_size;
    45 
    45 
    46 	QueryStringBaseWindow(size_t size, const WindowDesc *desc, WindowNumber window_number = 0) : Window(desc, window_number), edit_str_size(size)
    46 	QueryStringBaseWindow(uint16 size, const WindowDesc *desc, WindowNumber window_number = 0) : Window(desc, window_number), edit_str_size(size)
    47 	{
    47 	{
    48 		this->edit_str_buf = CallocT<char>(size);
    48 		this->edit_str_buf = CallocT<char>(size);
    49 	}
    49 	}
    50 
    50 
    51 	~QueryStringBaseWindow()
    51 	~QueryStringBaseWindow()