| 139 | Scrollbar *vscroll = nullptr; |
| 140 | |
| 141 | SignListWindow(WindowDesc &desc, WindowNumber window_number) : Window(desc), filter_editbox(MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS) |
| 142 | { |
| 143 | this->CreateNestedTree(); |
| 144 | this->vscroll = this->GetScrollbar(WID_SIL_SCROLLBAR); |
| 145 | this->FinishInitNested(window_number); |
| 146 | this->SetWidgetLoweredState(WID_SIL_FILTER_MATCH_CASE_BTN, SignList::match_case); |
| 147 | |
| 148 | /* Initialize the text edit widget */ |
| 149 | this->querystrings[WID_SIL_FILTER_TEXT] = &this->filter_editbox; |
| 150 | this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR; |
| 151 | |
| 152 | /* Initialize the filtering variables */ |
| 153 | this->SetFilterString(""); |
| 154 | |
| 155 | /* Create initial list. */ |
| 156 | this->signs.ForceRebuild(); |
| 157 | this->signs.ForceResort(); |
| 158 | this->BuildSortSignList(); |
| 159 | } |
| 160 | |
| 161 | void OnInit() override |
| 162 | { |
nothing calls this directly
no test coverage detected