| 404 | WidgetID last_user_action = INVALID_WIDGET; ///< Last started user action. |
| 405 | |
| 406 | SignWindow(WindowDesc &desc, const Sign *si) : Window(desc), name_editbox(MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS) |
| 407 | { |
| 408 | this->querystrings[WID_QES_TEXT] = &this->name_editbox; |
| 409 | this->name_editbox.caption = STR_EDIT_SIGN_CAPTION; |
| 410 | this->name_editbox.cancel_button = WID_QES_CANCEL; |
| 411 | this->name_editbox.ok_button = WID_QES_OK; |
| 412 | |
| 413 | this->InitNested(WN_QUERY_STRING_SIGN); |
| 414 | |
| 415 | UpdateSignEditWindow(si); |
| 416 | this->SetFocusedWidget(WID_QES_TEXT); |
| 417 | } |
| 418 | |
| 419 | void UpdateSignEditWindow(const Sign *si) |
| 420 | { |
nothing calls this directly
no test coverage detected