From 2aa774e831ad1cb7849c998759449ef777c5c664 Mon Sep 17 00:00:00 2001 From: truebrain Date: Thu, 15 Dec 2011 22:22:55 +0000 Subject: (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h --- src/signs_gui.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'src/signs_gui.cpp') 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; -- cgit v1.2.3-70-g09d2