summaryrefslogtreecommitdiff
path: root/src/signs_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r--src/signs_gui.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index e0ab72e01..e9b025e12 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -28,6 +28,8 @@
#include "hotkeys.h"
#include "transparency.h"
+#include "widgets/sign_widget.h"
+
#include "table/strings.h"
#include "table/sprites.h"
@@ -139,16 +141,6 @@ struct SignList {
const Sign *SignList::last_sign = NULL;
bool SignList::match_case = false;
-/** Enum referring to the widgets in the sign list window */
-enum SignListWidgets {
- SLW_CAPTION,
- SLW_LIST,
- SLW_SCROLLBAR,
- SLW_FILTER_TEXT, ///< Text box for typing a filter string
- SLW_FILTER_MATCH_CASE_BTN, ///< Button to toggle if case sensitive filtering should be used
- SLW_FILTER_CLEAR_BTN, ///< Button to clear the filter
-};
-
/** Enum referring to the Hotkeys in the sign list window */
enum SignListHotkeys {
SLHK_FOCUS_FILTER_BOX, ///< Focus the edit box for editing the filter string
@@ -479,17 +471,6 @@ static bool RenameSign(SignID index, const char *text)
return remove;
}
-/** Widget numbers of the query sign edit window. */
-enum QueryEditSignWidgets {
- QUERY_EDIT_SIGN_WIDGET_CAPTION,
- QUERY_EDIT_SIGN_WIDGET_TEXT,
- QUERY_EDIT_SIGN_WIDGET_OK,
- QUERY_EDIT_SIGN_WIDGET_CANCEL,
- QUERY_EDIT_SIGN_WIDGET_DELETE,
- QUERY_EDIT_SIGN_WIDGET_PREVIOUS,
- QUERY_EDIT_SIGN_WIDGET_NEXT,
-};
-
struct SignWindow : QueryStringBaseWindow, SignList {
SignID cur_sign;