summaryrefslogtreecommitdiff
path: root/src/music_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/music_gui.cpp
parentfd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff)
downloadopenttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/music_gui.cpp')
-rw-r--r--src/music_gui.cpp38
1 files changed, 2 insertions, 36 deletions
diff --git a/src/music_gui.cpp b/src/music_gui.cpp
index d4c3057de..77a178375 100644
--- a/src/music_gui.cpp
+++ b/src/music_gui.cpp
@@ -24,6 +24,8 @@
#include "string_func.h"
#include "settings_type.h"
+#include "widgets/music_widget.h"
+
#include "table/strings.h"
#include "table/sprites.h"
@@ -287,19 +289,6 @@ static void SelectPlaylist(byte list)
InvalidateWindowData(WC_MUSIC_WINDOW, 0);
}
-enum MusicTrackSelectionWidgets {
- MTSW_LIST_LEFT,
- MTSW_PLAYLIST,
- MTSW_LIST_RIGHT,
- MTSW_ALL,
- MTSW_OLD,
- MTSW_NEW,
- MTSW_EZY,
- MTSW_CUSTOM1,
- MTSW_CUSTOM2,
- MTSW_CLEAR,
-};
-
struct MusicTrackSelectionWindow : public Window {
MusicTrackSelectionWindow(const WindowDesc *desc, WindowNumber number) : Window()
{
@@ -518,29 +507,6 @@ static void ShowMusicTrackSelection()
AllocateWindowDescFront<MusicTrackSelectionWindow>(&_music_track_selection_desc, 0);
}
-enum MusicWidgets {
- MW_PREV,
- MW_NEXT,
- MW_STOP,
- MW_PLAY,
- MW_SLIDERS,
- MW_MUSIC_VOL,
- MW_EFFECT_VOL,
- MW_BACKGROUND,
- MW_TRACK,
- MW_TRACK_NR,
- MW_TRACK_TITLE,
- MW_TRACK_NAME,
- MW_SHUFFLE,
- MW_PROGRAMME,
- MW_ALL,
- MW_OLD,
- MW_NEW,
- MW_EZY,
- MW_CUSTOM1,
- MW_CUSTOM2,
-};
-
struct MusicWindow : public Window {
static const int slider_width = 3;