summaryrefslogtreecommitdiff
path: root/src/signs_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-14 22:51:05 +0000
committerfrosch <frosch@openttd.org>2012-11-14 22:51:05 +0000
commit06054d7a9d5f19b38af4138ae576c011005d2756 (patch)
treefa709e946da5cc8236aa7b976405f62023fb74f2 /src/signs_gui.cpp
parentd5a798033a6439bae740b1479081e569209689da (diff)
downloadopenttd-06054d7a9d5f19b38af4138ae576c011005d2756.tar.xz
(svn r24750) -Cleanup: Remove old special clear filter button from signs list.
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r--src/signs_gui.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index b34816259..0f2d31690 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -172,17 +172,6 @@ struct SignListWindow : Window, SignList {
}
/**
- * Empties the string buffer that is edited by the filter text edit widget.
- * It also triggers the redraw of the widget so it become visible that the string has been made empty.
- */
- void ClearFilterTextWidget()
- {
- this->filter_editbox.text.DeleteAll();
-
- this->SetWidgetDirty(WID_SIL_FILTER_TEXT);
- }
-
- /**
* This function sets the filter string of the sign list. The contents of
* the edit widget is not updated by this function. Depending on if the
* new string is zero-length or not the clear button is made
@@ -192,10 +181,6 @@ struct SignListWindow : Window, SignList {
{
/* check if there is a new filter string */
this->string_filter.SetFilterTerm(new_filter_string);
- this->SetWidgetDisabledState(WID_SIL_FILTER_CLEAR_BTN, StrEmpty(new_filter_string));
-
- /* Repaint the clear button since its disabled state may have changed */
- this->SetWidgetDirty(WID_SIL_FILTER_CLEAR_BTN);
/* Rebuild the list of signs */
this->InvalidateData();
@@ -263,11 +248,6 @@ struct SignListWindow : Window, SignList {
}
break;
- case WID_SIL_FILTER_CLEAR_BTN:
- this->ClearFilterTextWidget(); // Empty the text in the EditBox widget
- this->SetFilterString(""); // Use empty text as filter text (= view all signs)
- break;
-
case WID_SIL_FILTER_MATCH_CASE_BTN:
SignList::match_case = !SignList::match_case; // Toggle match case
this->SetWidgetLoweredState(WID_SIL_FILTER_MATCH_CASE_BTN, SignList::match_case); // Toggle button pushed state
@@ -379,7 +359,6 @@ static const NWidgetPart _nested_sign_list_widgets[] = {
SetDataTip(STR_LIST_FILTER_OSKTITLE, STR_LIST_FILTER_TOOLTIP),
EndContainer(),
NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_SIL_FILTER_MATCH_CASE_BTN), SetDataTip(STR_SIGN_LIST_MATCH_CASE, STR_SIGN_LIST_MATCH_CASE_TOOLTIP),
- NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_SIL_FILTER_CLEAR_BTN), SetDataTip(STR_SIGN_LIST_CLEAR, STR_SIGN_LIST_CLEAR_TOOLTIP),
EndContainer(),
EndContainer(),
NWidget(NWID_VERTICAL),