summaryrefslogtreecommitdiff
path: root/src/misc_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/misc_gui.cpp
parentfd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff)
downloadopenttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp33
1 files changed, 3 insertions, 30 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 7c06261a7..5db89d377 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -28,6 +28,8 @@
#include "core/geometry_func.hpp"
#include "newgrf_debug.h"
+#include "widgets/misc_widget.h"
+
#include "table/strings.h"
/**
@@ -40,12 +42,6 @@ bool GetClipboardContents(char *buffer, size_t buff_len);
int _caret_timer;
-
-/** Widgets for the land info window. */
-enum LandInfoWidgets {
- LIW_BACKGROUND, ///< Background to draw on
-};
-
static const NWidgetPart _nested_land_info_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
@@ -356,12 +352,6 @@ void ShowLandInfo(TileIndex tile)
new LandInfoWindow(tile);
}
-/** Widgets for the land info window. */
-enum AboutWidgets {
- AW_SCROLLING_TEXT, ///< The actually scrolling text
- AW_WEBSITE, ///< URL of OpenTTD website
-};
-
static const NWidgetPart _nested_about_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
@@ -613,7 +603,7 @@ void HideFillingPercent(TextEffectID *te_id)
}
static const NWidgetPart _nested_tooltips_widgets[] = {
- NWidget(WWT_PANEL, COLOUR_GREY, 0), SetMinimalSize(200, 32), EndContainer(),
+ NWidget(WWT_PANEL, COLOUR_GREY, TTW_BACKGROUND), SetMinimalSize(200, 32), EndContainer(),
};
static const WindowDesc _tool_tips_desc(
@@ -1100,15 +1090,6 @@ void QueryStringBaseWindow::OnOpenOSKWindow(int wid)
ShowOnScreenKeyboard(this, wid, 0, 0);
}
-/** Widget of the string query window. */
-enum QueryStringWidgets {
- QUERY_STR_WIDGET_CAPTION,
- QUERY_STR_WIDGET_TEXT,
- QUERY_STR_WIDGET_DEFAULT,
- QUERY_STR_WIDGET_CANCEL,
- QUERY_STR_WIDGET_OK
-};
-
/** Class for the string query window. */
struct QueryStringWindow : public QueryStringBaseWindow
{
@@ -1268,14 +1249,6 @@ void ShowQueryString(StringID str, StringID caption, uint maxsize, Window *paren
new QueryStringWindow(str, caption, ((flags & QSF_LEN_IN_CHARS) ? MAX_CHAR_LENGTH : 1) * maxsize, maxsize, &_query_string_desc, parent, afilter, flags);
}
-
-enum QueryWidgets {
- QUERY_WIDGET_CAPTION,
- QUERY_WIDGET_TEXT,
- QUERY_WIDGET_NO,
- QUERY_WIDGET_YES
-};
-
/**
* Window used for asking the user a YES/NO question.
*/