summaryrefslogtreecommitdiff
path: root/src/signs_gui.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
committertruebrain <truebrain@openttd.org>2011-12-15 22:22:55 +0000
commit2aa774e831ad1cb7849c998759449ef777c5c664 (patch)
tree37293298be999cb3446fe4af7f11e107bfa17c3d /src/signs_gui.cpp
parentfd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff)
downloadopenttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
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;