1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 * Copyright (C) 2005 Christi Alice Scarborough
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
22 #ifndef __wizard_pages_HPP_
23 #define __wizard_pages_HPP_
28 ////// Dialog for Preview of Theme //////////////
29 class wxThemeImageDialog
: public wxDialog
35 wxThemeImageDialog(wxWindow
* parent
,wxWindowID id
,wxString title
,wxBitmap bmp
);
36 void OnPaint(wxPaintEvent
& WXUNUSED(event
));
37 void SetImage(wxBitmap bmp
);
38 void OnClose(wxCloseEvent
& event
);
46 class wxThemesPage
: public wxWizardPageSimple
53 ID_PREVIEW_BTN
= 1000,
55 ID_INSTALLCHECKBOX
= 1002,
59 wxThemesPage(wxWizard
*parent
);
60 virtual bool TransferDataFromWindow(void);
61 void OnPageShown(wxWizardEvent
& event
);
62 void OnPreviewBtn(wxCommandEvent
& event
);
63 void OnListBox(wxCommandEvent
& event
);
64 void OnCheckBox(wxCommandEvent
& event
);
65 void OnWizardPageChanging(wxWizardEvent
& event
);
68 wxListBox
* ThemesListBox
;
69 wxButton
* m_previewBtn
;
72 wxCheckBox
* m_InstallCheckBox
;
73 wxThemeImageDialog
* myImageDialog
;
75 wxArrayString m_Themes
;
76 wxArrayString m_Themes_path
;
77 wxArrayString m_Themes_image
;
78 wxArrayString m_Themes_desc
;
79 wxArrayString m_Themes_size
;
80 wxArrayInt m_installTheme
;
84 class wxBootPlatformPage
: public wxWizardPageSimple
87 wxBootPlatformPage(wxWizard
*parent
);
88 virtual bool TransferDataFromWindow(void);
89 virtual wxWizardPage
*GetNext() const;
90 void SetNext(wxWizardPage
* next
) {wxWizardPageSimple::SetNext(next
); my_next
= next
;}
93 wxListBox
* BootPlatformListBox
;
94 wxWizardPage
*my_next
;
97 class wxIpodLocationPage
: public wxWizardPageSimple
100 DECLARE_EVENT_TABLE()
104 ID_IPODLOCATION_BTN
= 1000,
107 wxIpodLocationPage(wxWizard
* parent
);
108 void OnIpodLocationBtn(wxCommandEvent
& event
);
109 void OnWizardPageChanging(wxWizardEvent
& event
);
110 virtual wxWizardPage
*GetPrev() const;
111 void SetPrev(wxWizardPage
* prev
) {wxWizardPageSimple::SetPrev(prev
); my_prev
= prev
;}
114 wxStaticText
* IpodLocationText
;
115 wxStaticText
* IpodLocationLabel
;
116 wxStaticText
* IpodLocationExtraText
;
117 wxButton
* IpodLocationBtn
;
118 wxWizardPage
*my_prev
;
123 class wxBootLocationPage
: public wxWizardPageSimple
126 DECLARE_EVENT_TABLE()
130 ID_BOOTLOCATION_BTN
= 1000,
134 wxBootLocationPage(wxWizard
* parent
);
135 virtual bool TransferDataFromWindow(void);
136 void OnBootLocationBtn(wxCommandEvent
& event
);
137 void OnPageShown(wxWizardEvent
& event
);
138 void OnWizardPageChanging(wxWizardEvent
& event
);
139 virtual wxWizardPage
*GetPrev() const;
140 virtual wxWizardPage
*GetNext() const;
141 void SetPrev(wxWizardPage
* prev
) {wxWizardPageSimple::SetPrev(prev
); my_prev
= prev
;}
144 wxStaticText
* BootLocationText
;
145 wxStaticText
* BootLocationLabel
;
146 wxStaticText
* BootLocationInfo
;
147 wxButton
* BootLocationBtn
;
148 wxWizardPage
*my_prev
;
152 class wxFirmwareLocationPage
: public wxWizardPageSimple
155 DECLARE_EVENT_TABLE()
159 ID_FIRMWARELOCATION_BTN
= 1000,
163 wxFirmwareLocationPage(wxWizard
* parent
);
164 void OnFirmwareFilenameBtn(wxCommandEvent
& event
);
165 void OnWizardPageChanging(wxWizardEvent
& event
);
168 wxStaticText
* FirmwareLocationText
;
169 wxStaticText
* FirmwareLocationFilename
;
170 wxButton
* FirmwareLocationBtn
;
175 class wxPlatformPage
: public wxWizardPageSimple
178 wxPlatformPage(wxWizard
*parent
);
179 virtual bool TransferDataFromWindow(void);
182 wxListBox
* PlatformListBox
;
185 class wxLocationPage
: public wxWizardPageSimple
188 DECLARE_EVENT_TABLE()
192 ID_LOCATION_BTN
= 1000,
196 wxLocationPage(wxWizard
* parent
);
197 virtual bool TransferDataFromWindow(void);
198 void OnWizardPageChanging(wxWizardEvent
& event
);
199 void OnLocationBtn(wxCommandEvent
& event
);
200 void OnPageShown(wxWizardEvent
& event
);
203 wxStaticText
* LocationText
;
204 wxStaticText
* BootLocationInfo
;
205 wxStaticText
* LocationInfo
;
208 class wxBuildPage
: public wxWizardPageSimple
211 DECLARE_EVENT_TABLE()
219 wxBuildPage(wxWizard
*parent
);
220 virtual bool TransferDataFromWindow(void);
221 void OnBuildBox(wxCommandEvent
& event
);
222 void OnPageShown(wxWizardEvent
& event
);
225 wxRadioBox
* BuildRadioBox
;
226 wxStaticText
* DetailText
;
227 wxCheckBox
* NoCacheCheckBox
;
230 class wxFullUninstallPage
: public wxWizardPageSimple
233 wxFullUninstallPage(wxWizard
*parent
);
234 virtual bool TransferDataFromWindow(void);
237 wxCheckBox
* FullCheckBox
;