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 "wizard_pages.h"
46 class rbutilFrm
: public wxFrame
51 rbutilFrm( wxWindow
*parent
, wxWindowID id
= 1,
52 const wxString
&title
= wxT("Rockbox Utility"),
53 const wxPoint
& pos
= wxDefaultPosition
,
54 const wxSize
& size
= wxDefaultSize
,
55 long style
= wxCAPTION
| wxRESIZE_BORDER
| wxSYSTEM_MENU
|
56 wxMINIMIZE_BOX
| wxCLOSE_BOX
);
59 wxMenuBar
*WxMenuBar1
;
60 wxStaticText
*WxStaticText3
;
61 wxStaticText
*WxStaticText4
;
62 wxBitmapButton
*WxBitmapButton2
;
63 wxStaticText
*WxStaticText2
;
64 wxBitmapButton
*WxBitmapButton1
;
65 wxBitmapButton
*WxBitmapButton3
;
66 wxBitmapButton
*WxBitmapButton4
;
67 wxBitmapButton
*WxBitmapButton5
;
68 wxFlexGridSizer
*WxFlexGridSizer1
;
69 wxStaticBoxSizer
*WxStaticBoxSizer3
;
70 wxStaticBitmap
*WxStaticBitmap1
;
71 wxBoxSizer
*WxBoxSizer2
;
73 wxBoxSizer
*WxBoxSizer1
;
79 ID_FILE_WIPECACHE
= 1036,
80 ID_PORTABLE_INSTALL
= 1037,
82 ID_WXSTATICTEXT3
= 1032,
83 ID_WXSTATICTEXT4
= 1032,
85 ID_BOOTLOADERREMOVE_BTN
= 1038,
86 ID_WXSTATICTEXT2
= 1029,
87 ID_INSTALL_BTN
= 1028,
88 ID_WXSTATICBITMAP1
= 1053,
90 ID_BOOTLOADER_BTN
= 1129,
96 void rbutilFrmClose(wxCloseEvent
& event
);
97 void CreateGUIControls(void);
98 void OnFileExit(wxCommandEvent
& event
);
99 void OnFileAbout(wxCommandEvent
&event
);
100 void OnFileWipeCache(wxCommandEvent
&event
);
101 void OnLocationBtn(wxCommandEvent
& event
);
102 void OnInstallBtn(wxCommandEvent
& event
);
103 void OnRemoveBtn(wxCommandEvent
& event
);
104 void OnFontBtn(wxCommandEvent
& event
);
105 void OnBootloaderBtn(wxCommandEvent
& event
);
106 void OnPortableInstall(wxCommandEvent
& event
);
107 void OnBootloaderRemoveBtn(wxCommandEvent
& event
);