1 #ifndef INSTALL_DIALOGS_H_INCLUDED
2 #define INSTALL_DIALOGS_H_INCLUDED
6 #include "rbutilCtrls.h"
7 class bootloaderInstallDlg
: public wxDialog
9 DECLARE_CLASS( bootloaderInstallDlg
)
17 bootloaderInstallDlg( );
18 bootloaderInstallDlg( wxWindow
* parent
,
19 wxWindowID id
= wxID_ANY
,
20 const wxString
& caption
= wxT("Bootloader Installation"),
21 const wxPoint
& pos
= wxDefaultPosition
,
22 const wxSize
& size
= wxDefaultSize
,
23 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
24 // Member initialization
27 bool Create( wxWindow
* parent
,
28 wxWindowID id
= wxID_ANY
,
29 const wxString
& caption
= wxT("Bootloader Installation"),
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
33 // Creates the controls and sizers
34 void CreateControls();
36 bool TransferDataFromWindow();
37 bool TransferDataToWindow();
41 DevicePositionCtrl
* m_devicepos
;
42 FirmwarePositionCtrl
* m_firmwarepos
;
48 class fontInstallDlg
: public wxDialog
50 DECLARE_CLASS( fontInstallDlg
)
58 fontInstallDlg( wxWindow
* parent
,
59 wxWindowID id
= wxID_ANY
,
60 const wxString
& caption
= wxT("Font Installation"),
61 const wxPoint
& pos
= wxDefaultPosition
,
62 const wxSize
& size
= wxDefaultSize
,
63 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
64 /// Member initialization
67 bool Create( wxWindow
* parent
,
68 wxWindowID id
= wxID_ANY
,
69 const wxString
& caption
= wxT("Font Installation"),
70 const wxPoint
& pos
= wxDefaultPosition
,
71 const wxSize
& size
= wxDefaultSize
,
72 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
73 /// Creates the controls and sizers
74 void CreateControls();
76 bool TransferDataFromWindow();
77 bool TransferDataToWindow();
80 DevicePositionCtrl
* m_devicepos
;
84 class rockboxDeInstallDlg
: public wxDialog
86 DECLARE_CLASS( rockboxDeInstallDlg
)
91 ID_FULL_CHCKBX
= 1003,
94 rockboxDeInstallDlg( );
95 rockboxDeInstallDlg( wxWindow
* parent
,
96 wxWindowID id
= wxID_ANY
,
97 const wxString
& caption
= wxT("Rockbox Deinstallation"),
98 const wxPoint
& pos
= wxDefaultPosition
,
99 const wxSize
& size
= wxDefaultSize
,
100 long style
=wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
101 /// Member initialization
104 bool Create( wxWindow
* parent
,
105 wxWindowID id
= wxID_ANY
,
106 const wxString
& caption
= wxT("Rockbox Deinstallation"),
107 const wxPoint
& pos
= wxDefaultPosition
,
108 const wxSize
& size
= wxDefaultSize
,
109 long style
=wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
110 /// Creates the controls and sizers
111 void CreateControls();
113 bool TransferDataFromWindow();
114 bool TransferDataToWindow();
117 DevicePositionCtrl
* m_devicepos
;
120 class themesInstallDlg
: public wxDialog
122 DECLARE_CLASS( themesInstallDlg
)
123 DECLARE_EVENT_TABLE()
132 themesInstallDlg( wxWindow
* parent
,
133 wxWindowID id
= wxID_ANY
,
134 const wxString
& caption
= wxT("Themes Installation"),
135 const wxPoint
& pos
= wxDefaultPosition
,
136 const wxSize
& size
= wxDefaultSize
,
137 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
139 bool Create( wxWindow
* parent
,
140 wxWindowID id
= wxID_ANY
,
141 const wxString
& caption
= wxT("Themes Installation"),
142 const wxPoint
& pos
= wxDefaultPosition
,
143 const wxSize
& size
= wxDefaultSize
,
144 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
145 // Creates the controls and sizers
146 void CreateControls();
148 bool TransferDataFromWindow();
149 bool TransferDataToWindow();
152 wxString currentPreview
;
153 DevicePositionCtrl
* m_devicepos
;
158 class rockboxInstallDlg
: public wxDialog
160 DECLARE_CLASS( rockboxInstallDlg
)
161 DECLARE_EVENT_TABLE()
166 ID_DEVICE_POS_CTRL
= 1007,
167 ID_DETAIL_TXT
= 1008,
168 ID_NOCACHE_CHCKBX
=1009,
172 rockboxInstallDlg( );
173 rockboxInstallDlg( wxWindow
* parent
,
174 wxWindowID id
= wxID_ANY
,
175 const wxString
& caption
= wxT("Rockbox Installation"),
176 const wxPoint
& pos
= wxDefaultPosition
,
177 const wxSize
& size
= wxDefaultSize
,
178 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
180 bool Create( wxWindow
* parent
,
181 wxWindowID id
= wxID_ANY
,
182 const wxString
& caption
= wxT("Rockbox Installation"),
183 const wxPoint
& pos
= wxDefaultPosition
,
184 const wxSize
& size
= wxDefaultSize
,
185 long style
= wxDEFAULT_DIALOG_STYLE
|wxRESIZE_BORDER
);
186 // Creates the controls and sizers
187 void CreateControls();
189 void OnBuildBox(wxCommandEvent
& event
);
191 bool TransferDataFromWindow();
192 bool TransferDataToWindow();
195 DevicePositionCtrl
* m_devicepos
;
198 #endif // INSTALL_DIALOGS_H_INCLUDED