Revert change 13001, since it causes the metadata to be re-read for partially buffere...
[kugel-rb.git] / rbutil / wizard_pages.h
blobf08d29d315846ce1910a54744041f5ec031a7ed0
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: wizard_pages.h
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_
25 #include "rbutil.h"
28 ////// Dialog for Preview of Theme //////////////
29 class wxThemeImageDialog : public wxDialog
31 private:
32 DECLARE_EVENT_TABLE()
34 public:
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);
40 private:
41 wxBitmap m_bitmap;
46 class wxThemesPage : public wxWizardPageSimple
48 private:
49 DECLARE_EVENT_TABLE()
51 public:
52 enum {
53 ID_PREVIEW_BTN = 1000,
54 ID_LISTBOX = 1001,
55 ID_INSTALLCHECKBOX = 1002,
58 public:
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);
67 public:
68 wxListBox* ThemesListBox;
69 wxButton* m_previewBtn;
70 wxStaticText* m_desc;
71 wxStaticText* m_size;
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
86 public:
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;}
92 public:
93 wxListBox* BootPlatformListBox;
94 wxWizardPage *my_next;
97 class wxIpodLocationPage : public wxWizardPageSimple
99 private:
100 DECLARE_EVENT_TABLE()
102 public:
103 enum {
104 ID_IPODLOCATION_BTN = 1000,
106 public:
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;}
113 private:
114 wxStaticText* IpodLocationText;
115 wxStaticText* IpodLocationLabel;
116 wxStaticText* IpodLocationExtraText;
117 wxButton* IpodLocationBtn;
118 wxWizardPage *my_prev;
123 class wxBootLocationPage : public wxWizardPageSimple
125 private:
126 DECLARE_EVENT_TABLE()
128 public:
129 enum {
130 ID_BOOTLOCATION_BTN = 1000,
133 public:
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;}
143 private:
144 wxStaticText* BootLocationText;
145 wxStaticText* BootLocationLabel;
146 wxStaticText* BootLocationInfo;
147 wxButton* BootLocationBtn;
148 wxWizardPage *my_prev;
152 class wxFirmwareLocationPage : public wxWizardPageSimple
154 private:
155 DECLARE_EVENT_TABLE()
157 public:
158 enum {
159 ID_FIRMWARELOCATION_BTN = 1000,
162 public:
163 wxFirmwareLocationPage(wxWizard* parent);
164 void OnFirmwareFilenameBtn(wxCommandEvent& event);
165 void OnWizardPageChanging(wxWizardEvent& event);
167 private:
168 wxStaticText* FirmwareLocationText;
169 wxStaticText* FirmwareLocationFilename;
170 wxButton* FirmwareLocationBtn;
175 class wxPlatformPage : public wxWizardPageSimple
177 public:
178 wxPlatformPage(wxWizard *parent);
179 virtual bool TransferDataFromWindow(void);
181 public:
182 wxListBox* PlatformListBox;
185 class wxLocationPage : public wxWizardPageSimple
187 private:
188 DECLARE_EVENT_TABLE()
190 public:
191 enum {
192 ID_LOCATION_BTN = 1000,
195 public:
196 wxLocationPage(wxWizard* parent);
197 virtual bool TransferDataFromWindow(void);
198 void OnWizardPageChanging(wxWizardEvent& event);
199 void OnLocationBtn(wxCommandEvent& event);
200 void OnPageShown(wxWizardEvent& event);
202 private:
203 wxStaticText* LocationText;
204 wxStaticText* BootLocationInfo;
205 wxStaticText* LocationInfo;
208 class wxBuildPage : public wxWizardPageSimple
210 private:
211 DECLARE_EVENT_TABLE()
213 public:
214 enum {
215 ID_BUILD_BOX = 1000,
218 public:
219 wxBuildPage(wxWizard *parent);
220 virtual bool TransferDataFromWindow(void);
221 void OnBuildBox(wxCommandEvent& event);
222 void OnPageShown(wxWizardEvent& event);
224 private:
225 wxRadioBox* BuildRadioBox;
226 wxStaticText* DetailText;
227 wxCheckBox* NoCacheCheckBox;
230 class wxFullUninstallPage : public wxWizardPageSimple
232 public:
233 wxFullUninstallPage(wxWizard *parent);
234 virtual bool TransferDataFromWindow(void);
236 private:
237 wxCheckBox* FullCheckBox;
241 #endif