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 ****************************************************************************/
21 #ifndef __rbutilFrm_HPP_
22 #define __rbutilFrm_HPP_
24 #include <wx/wxprec.h>
33 #include <wx/stattext.h>
34 #include <wx/bmpbuttn.h>
35 #include <wx/statbmp.h>
39 #include <wx/valgen.h>
40 //#include <wx/aboutdlg.h>
41 #include <wx/richtext/richtextctrl.h>
44 #include "rbutilCtrls.h"
47 class rbutilFrm
: public wxFrame
52 rbutilFrm( wxWindow
*parent
, wxWindowID id
= 1,
53 const wxString
&title
= wxT("Rockbox Utility"),
54 const wxPoint
& pos
= wxDefaultPosition
,
55 const wxSize
& size
= wxDefaultSize
,
56 long style
= wxCAPTION
| wxRESIZE_BORDER
| wxSYSTEM_MENU
|
57 wxMINIMIZE_BOX
|wxMAXIMIZE_BOX
| wxCLOSE_BOX
);
60 DeviceSelectorCtrl
* myDeviceSelector
;
61 wxHyperlinkCtrl
* manuallink
;
63 wxString curManualDevice
;
65 wxMenuBar
*WxMenuBar1
;
66 wxStaticText
*WxStaticText3
;
67 wxBitmapButton
*WxBitmapButton2
;
68 wxStaticText
*WxStaticText2
;
69 wxBitmapButton
*WxBitmapButton1
;
70 wxBitmapButton
*WxBitmapButton3
;
71 wxBitmapButton
*WxBitmapButton4
;
72 wxBitmapButton
*WxBitmapButton5
;
73 wxBitmapButton
*WxBitmapButton6
;
74 wxBitmapButton
*WxBitmapButton7
;
75 wxFlexGridSizer
*WxFlexGridSizer1
;
76 wxStaticBoxSizer
*WxStaticBoxSizer3
;
77 wxStaticBitmap
*WxStaticBitmap1
;
78 wxBoxSizer
*WxBoxSizer2
;
80 wxBoxSizer
*WxBoxSizer1
;
86 ID_FILE_WIPECACHE
= 1036,
87 ID_PORTABLE_INSTALL
= 1037,
89 ID_WXSTATICTEXT3
= 1032,
90 ID_WXSTATICTEXT4
= 1032,
92 ID_BOOTLOADERREMOVE_BTN
= 1038,
93 ID_WXSTATICTEXT2
= 1029,
94 ID_INSTALL_BTN
= 1028,
95 ID_WXSTATICBITMAP1
= 1053,
100 ID_BOOTLOADER_BTN
= 1129,
104 ID_FILE_PROXY
= 1066,
109 void rbutilFrmClose(wxCloseEvent
& event
);
110 void CreateGUIControls(void);
111 void OnFileExit(wxCommandEvent
& event
);
112 void OnFileAbout(wxCommandEvent
&event
);
113 void OnFileWipeCache(wxCommandEvent
&event
);
114 void OnLocationBtn(wxCommandEvent
& event
);
115 void OnInstallBtn(wxCommandEvent
& event
);
116 void OnRemoveBtn(wxCommandEvent
& event
);
117 void OnFontBtn(wxCommandEvent
& event
);
118 void OnThemesBtn(wxCommandEvent
& event
);
119 void OnBootloaderBtn(wxCommandEvent
& event
);
120 void OnPortableInstall(wxCommandEvent
& event
);
121 void OnBootloaderRemoveBtn(wxCommandEvent
& event
);
122 void OnManualUpdate(wxUpdateUIEvent
& event
);
123 void OnFileProxy(wxCommandEvent
& event
);
124 void OnDoomBtn(wxCommandEvent
& event
);
125 void OnTalkBtn(wxCommandEvent
& event
);
127 int GetDeviceId(bool);