make htlatex use the name element for anchors instead of id.
[Rockbox.git] / rbutil / install_dialogs.h
blob8b3defef1dc0cf44ffdfba34e00ff407dcfdf012
1 #ifndef INSTALL_DIALOGS_H_INCLUDED
2 #define INSTALL_DIALOGS_H_INCLUDED
4 #include "rbutil.h"
6 #include "rbutilCtrls.h"
7 class bootloaderInstallDlg : public wxDialog
9 DECLARE_CLASS( bootloaderInstallDlg )
10 DECLARE_EVENT_TABLE()
11 public:
12 enum {
13 ID_DEVICEPOS = 1002,
14 ID_FIRMWARE = 1003,
15 }; //End of Enum
16 public:
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
25 void Init();
26 //Creation
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();
39 private:
41 DevicePositionCtrl* m_devicepos;
42 FirmwarePositionCtrl* m_firmwarepos;
48 class fontInstallDlg : public wxDialog
50 DECLARE_CLASS( fontInstallDlg )
51 DECLARE_EVENT_TABLE()
52 public:
53 enum {
54 ID_DEVICEPOS = 1002,
55 }; //End of Enum
56 public:
57 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
65 void Init();
66 /// Creation
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();
79 private:
80 DevicePositionCtrl* m_devicepos;
84 class rockboxDeInstallDlg : public wxDialog
86 DECLARE_CLASS( rockboxDeInstallDlg )
87 DECLARE_EVENT_TABLE()
88 public:
89 enum {
90 ID_DEVICEPOS = 1002,
91 ID_FULL_CHCKBX = 1003,
92 }; //End of Enum
93 public:
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
102 void Init();
103 /// Creation
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();
116 private:
117 DevicePositionCtrl* m_devicepos;
120 class themesInstallDlg : public wxDialog
122 DECLARE_CLASS( themesInstallDlg )
123 DECLARE_EVENT_TABLE()
124 public:
125 enum {
126 ID_DEVICE = 1001,
127 ID_DEVICEPOS = 1002,
128 ID_THEME = 1006,
129 }; //End of Enum
130 public:
131 themesInstallDlg( );
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 );
138 // Creation
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();
151 private:
152 wxString currentPreview;
153 DevicePositionCtrl* m_devicepos;
154 ThemeCtrl* m_theme;
158 class rockboxInstallDlg : public wxDialog
160 DECLARE_CLASS( rockboxInstallDlg )
161 DECLARE_EVENT_TABLE()
162 public:
163 enum {
164 ID_DEVICEPOS = 1002,
165 ID_BUILD_BOX = 1006,
166 ID_DEVICE_POS_CTRL = 1007,
167 ID_DETAIL_TXT = 1008,
168 ID_NOCACHE_CHCKBX =1009,
170 }; //End of Enum
171 public:
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 );
179 // Creation
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();
194 private:
195 DevicePositionCtrl* m_devicepos;
198 #endif // INSTALL_DIALOGS_H_INCLUDED