2006-12-14 03:55:15 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* Module: rbutil
|
|
|
|
* File: wizard_pages.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Christi Alice Scarborough
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
2006-12-11 21:25:37 +00:00
|
|
|
#ifndef __wizard_pages_HPP_
|
|
|
|
#define __wizard_pages_HPP_
|
|
|
|
|
|
|
|
#include "rbutil.h"
|
|
|
|
|
2007-03-15 14:02:37 +00:00
|
|
|
|
|
|
|
////// Dialog for Preview of Theme //////////////
|
|
|
|
class wxThemeImageDialog : public wxDialog
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxThemeImageDialog(wxWindow* parent,wxWindowID id,wxString title,wxBitmap bmp);
|
|
|
|
void OnPaint(wxPaintEvent& WXUNUSED(event));
|
2007-03-15 18:02:15 +00:00
|
|
|
void SetImage(wxBitmap bmp);
|
|
|
|
void OnClose(wxCloseEvent& event);
|
2007-03-15 14:02:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
wxBitmap m_bitmap;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class wxThemesPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
ID_PREVIEW_BTN = 1000,
|
|
|
|
ID_LISTBOX = 1001,
|
|
|
|
ID_INSTALLCHECKBOX = 1002,
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxThemesPage(wxWizard *parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
|
|
|
void OnPageShown(wxWizardEvent& event);
|
|
|
|
void OnPreviewBtn(wxCommandEvent& event);
|
|
|
|
void OnListBox(wxCommandEvent& event);
|
|
|
|
void OnCheckBox(wxCommandEvent& event);
|
|
|
|
void OnWizardPageChanging(wxWizardEvent& event);
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxListBox* ThemesListBox;
|
|
|
|
wxButton* m_previewBtn;
|
|
|
|
wxStaticText* m_desc;
|
|
|
|
wxStaticText* m_size;
|
|
|
|
wxCheckBox* m_InstallCheckBox;
|
2007-03-15 18:02:15 +00:00
|
|
|
wxThemeImageDialog* myImageDialog;
|
2007-03-15 14:02:37 +00:00
|
|
|
|
|
|
|
wxArrayString m_Themes;
|
|
|
|
wxArrayString m_Themes_path;
|
|
|
|
wxArrayString m_Themes_image;
|
|
|
|
wxArrayString m_Themes_desc;
|
|
|
|
wxArrayString m_Themes_size;
|
|
|
|
wxArrayInt m_installTheme;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2007-02-21 20:27:14 +00:00
|
|
|
class wxBootPlatformPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxBootPlatformPage(wxWizard *parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
|
|
|
virtual wxWizardPage *GetNext() const;
|
|
|
|
void SetNext(wxWizardPage * next) {wxWizardPageSimple::SetNext(next); my_next = next;}
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxListBox* BootPlatformListBox;
|
|
|
|
wxWizardPage *my_next;
|
|
|
|
};
|
|
|
|
|
|
|
|
class wxIpodLocationPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
ID_IPODLOCATION_BTN = 1000,
|
|
|
|
};
|
|
|
|
public:
|
|
|
|
wxIpodLocationPage(wxWizard* parent);
|
|
|
|
void OnIpodLocationBtn(wxCommandEvent& event);
|
|
|
|
void OnWizardPageChanging(wxWizardEvent& event);
|
|
|
|
virtual wxWizardPage *GetPrev() const;
|
|
|
|
void SetPrev(wxWizardPage * prev) {wxWizardPageSimple::SetPrev(prev); my_prev = prev;}
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxStaticText* IpodLocationText;
|
|
|
|
wxStaticText* IpodLocationLabel;
|
|
|
|
wxStaticText* IpodLocationExtraText;
|
|
|
|
wxButton* IpodLocationBtn;
|
|
|
|
wxWizardPage *my_prev;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class wxBootLocationPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
ID_BOOTLOCATION_BTN = 1000,
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxBootLocationPage(wxWizard* parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
|
|
|
void OnBootLocationBtn(wxCommandEvent& event);
|
|
|
|
void OnPageShown(wxWizardEvent& event);
|
|
|
|
void OnWizardPageChanging(wxWizardEvent& event);
|
|
|
|
virtual wxWizardPage *GetPrev() const;
|
|
|
|
virtual wxWizardPage *GetNext() const;
|
|
|
|
void SetPrev(wxWizardPage * prev) {wxWizardPageSimple::SetPrev(prev); my_prev = prev;}
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxStaticText* BootLocationText;
|
|
|
|
wxStaticText* BootLocationLabel;
|
2007-03-15 15:27:56 +00:00
|
|
|
wxStaticText* BootLocationInfo;
|
2007-02-21 20:27:14 +00:00
|
|
|
wxButton* BootLocationBtn;
|
|
|
|
wxWizardPage *my_prev;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class wxFirmwareLocationPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
ID_FIRMWARELOCATION_BTN = 1000,
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxFirmwareLocationPage(wxWizard* parent);
|
|
|
|
void OnFirmwareFilenameBtn(wxCommandEvent& event);
|
|
|
|
void OnWizardPageChanging(wxWizardEvent& event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxStaticText* FirmwareLocationText;
|
|
|
|
wxStaticText* FirmwareLocationFilename;
|
|
|
|
wxButton* FirmwareLocationBtn;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-12-11 21:25:37 +00:00
|
|
|
class wxPlatformPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPlatformPage(wxWizard *parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
2006-12-11 22:22:36 +00:00
|
|
|
|
2006-12-11 21:25:37 +00:00
|
|
|
public:
|
|
|
|
wxListBox* PlatformListBox;
|
|
|
|
};
|
|
|
|
|
|
|
|
class wxLocationPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
2006-12-11 22:22:36 +00:00
|
|
|
|
2006-12-11 21:25:37 +00:00
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
ID_LOCATION_BTN = 1000,
|
|
|
|
};
|
2006-12-11 22:22:36 +00:00
|
|
|
|
2006-12-11 21:25:37 +00:00
|
|
|
public:
|
|
|
|
wxLocationPage(wxWizard* parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
2007-02-21 20:27:14 +00:00
|
|
|
void OnWizardPageChanging(wxWizardEvent& event);
|
2006-12-11 21:25:37 +00:00
|
|
|
void OnLocationBtn(wxCommandEvent& event);
|
2007-03-15 15:27:56 +00:00
|
|
|
void OnPageShown(wxWizardEvent& event);
|
2006-12-11 22:22:36 +00:00
|
|
|
|
2007-02-21 20:27:14 +00:00
|
|
|
private:
|
2006-12-11 21:25:37 +00:00
|
|
|
wxStaticText* LocationText;
|
2007-03-15 15:27:56 +00:00
|
|
|
wxStaticText* BootLocationInfo;
|
|
|
|
wxStaticText* LocationInfo;
|
2006-12-11 21:25:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class wxBuildPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
ID_BUILD_BOX = 1000,
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxBuildPage(wxWizard *parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
|
|
|
void OnBuildBox(wxCommandEvent& event);
|
|
|
|
void OnPageShown(wxWizardEvent& event);
|
2006-12-11 22:22:36 +00:00
|
|
|
|
2007-02-21 20:27:14 +00:00
|
|
|
private:
|
2006-12-11 21:25:37 +00:00
|
|
|
wxRadioBox* BuildRadioBox;
|
|
|
|
wxStaticText* DetailText;
|
|
|
|
wxCheckBox* NoCacheCheckBox;
|
|
|
|
};
|
|
|
|
|
|
|
|
class wxFullUninstallPage : public wxWizardPageSimple
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxFullUninstallPage(wxWizard *parent);
|
|
|
|
virtual bool TransferDataFromWindow(void);
|
2006-12-11 22:22:36 +00:00
|
|
|
|
2007-02-21 20:27:14 +00:00
|
|
|
private:
|
2006-12-11 21:25:37 +00:00
|
|
|
wxCheckBox* FullCheckBox;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|