1
0
Fork 0

(svn r16011) -Codechange: Extracting widget number enums from the window classes.

release/1.0
alberth 2009-04-10 11:02:09 +00:00
parent 69ad98ecd5
commit 9acb1dc3f2
1 changed files with 37 additions and 41 deletions

View File

@ -192,9 +192,7 @@ void MusicLoop()
}
}
struct MusicTrackSelectionWindow : public Window {
private:
enum MusicTrackSelectionWidgets {
enum MusicTrackSelectionWidgets {
MTSW_CLOSE,
MTSW_CAPTION,
MTSW_BACKGROUND,
@ -208,9 +206,9 @@ private:
MTSW_CUSTOM2,
MTSW_CLEAR,
MTSW_SAVE,
};
};
public:
struct MusicTrackSelectionWindow : public Window {
MusicTrackSelectionWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
{
this->FindWindowPlacementAndResize(desc);
@ -350,9 +348,7 @@ static void ShowMusicTrackSelection()
AllocateWindowDescFront<MusicTrackSelectionWindow>(&_music_track_selection_desc, 0);
}
struct MusicWindow : public Window {
private:
enum MusicWidgets {
enum MusicWidgets {
MW_CLOSE,
MW_CAPTION,
MW_PREV,
@ -371,9 +367,9 @@ private:
MW_EZY,
MW_CUSTOM1,
MW_CUSTOM2,
};
};
public:
struct MusicWindow : public Window {
MusicWindow(const WindowDesc *desc, WindowNumber number) : Window(desc, number)
{
this->FindWindowPlacementAndResize(desc);