Fix some naughty variable name reuse (hopefully correctly)
[Rockbox.git] / rbutil / rbutilFrm.h
blob9f922cbbad66024c9ae309ea48d86d7f6c9fe711
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: rbutilFrm.h
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>
25 #ifdef __BORLANDC__
26 #pragma hdrstop
27 #endif
28 #ifndef WX_PRECOMP
29 #include <wx/wx.h>
30 #endif
32 #include <wx/menu.h>
33 #include <wx/stattext.h>
34 #include <wx/bmpbuttn.h>
35 #include <wx/statbmp.h>
36 #include <wx/panel.h>
38 #include <wx/frame.h>
39 #include <wx/valgen.h>
40 //#include <wx/aboutdlg.h>
41 #include <wx/richtext/richtextctrl.h>
43 #include "rbutil.h"
44 #include "wizard_pages.h"
46 class rbutilFrm : public wxFrame
48 private:
49 DECLARE_EVENT_TABLE()
50 public:
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);
57 virtual ~rbutilFrm();
58 public:
59 wxMenuBar *WxMenuBar1;
60 wxStaticText *WxStaticText3;
61 wxBitmapButton *WxBitmapButton2;
62 wxStaticText *WxStaticText2;
63 wxBitmapButton *WxBitmapButton1;
64 wxBitmapButton *WxBitmapButton3;
65 wxBitmapButton *WxBitmapButton4;
66 wxBitmapButton *WxBitmapButton5;
67 wxBitmapButton *WxBitmapButton6;
68 wxFlexGridSizer *WxFlexGridSizer1;
69 wxStaticBoxSizer *WxStaticBoxSizer3;
70 wxStaticBitmap *WxStaticBitmap1;
71 wxBoxSizer *WxBoxSizer2;
72 wxPanel *WxPanel1;
73 wxBoxSizer *WxBoxSizer1;
74 public:
75 enum {
76 ID_FILE_MENU = 1033,
77 ID_FILE_EXIT = 1034,
78 ID_FILE_ABOUT = 1035,
79 ID_FILE_WIPECACHE = 1036,
80 ID_PORTABLE_INSTALL = 1037,
82 ID_WXSTATICTEXT3 = 1032,
83 ID_WXSTATICTEXT4 = 1032,
84 ID_REMOVE_BTN = 1039,
85 ID_BOOTLOADERREMOVE_BTN = 1038,
86 ID_WXSTATICTEXT2 = 1029,
87 ID_INSTALL_BTN = 1028,
88 ID_WXSTATICBITMAP1 = 1053,
89 ID_FONT_BTN = 1128,
90 ID_THEMES_BTN = 1139,
91 ID_BOOTLOADER_BTN = 1129,
92 ID_WXPANEL1 = 1064,
94 ID_DUMMY_VALUE_
95 }; //End of Enum
96 public:
97 void rbutilFrmClose(wxCloseEvent& event);
98 void CreateGUIControls(void);
99 void OnFileExit(wxCommandEvent& event);
100 void OnFileAbout(wxCommandEvent &event);
101 void OnFileWipeCache(wxCommandEvent &event);
102 void OnLocationBtn(wxCommandEvent& event);
103 void OnInstallBtn(wxCommandEvent& event);
104 void OnRemoveBtn(wxCommandEvent& event);
105 void OnFontBtn(wxCommandEvent& event);
106 void OnThemesBtn(wxCommandEvent& event);
107 void OnBootloaderBtn(wxCommandEvent& event);
108 void OnPortableInstall(wxCommandEvent& event);
109 void OnBootloaderRemoveBtn(wxCommandEvent& event);
113 #endif