MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SignListWindow

Method SignListWindow

src/signs_gui.cpp:141–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 8

SetFilterStringMethod · 0.95
BuildSortSignListMethod · 0.95
CreateNestedTreeMethod · 0.80
GetScrollbarMethod · 0.80
FinishInitNestedMethod · 0.80
SetWidgetLoweredStateMethod · 0.80
ForceRebuildMethod · 0.80
ForceResortMethod · 0.80

Tested by

no test coverage detected