convert the last of the menus in text_editor to the new api
[Rockbox.git] / rbutil / rbutilFrm.h
blob64afe97f7af60ab96ab538b09ae763ceb0f58034
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 "rbutilCtrls.h"
48 class rbutilFrm : public wxFrame
50 private:
51 DECLARE_EVENT_TABLE()
52 public:
53 rbutilFrm( wxWindow *parent, wxWindowID id = 1,
54 const wxString &title = wxT("Rockbox Utility"),
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize,
57 long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU |
58 wxMINIMIZE_BOX|wxMAXIMIZE_BOX | wxCLOSE_BOX);
59 virtual ~rbutilFrm();
60 public:
61 DeviceSelectorCtrl* myDeviceSelector;
62 wxHyperlinkCtrl* manuallink;
63 wxHtmlWindow* manual;
64 wxString curManualDevice;
66 wxMenuBar *WxMenuBar1;
67 wxStaticText *WxStaticText3;
68 wxBitmapButton *WxBitmapButton2;
69 wxStaticText *WxStaticText2;
70 wxBitmapButton *WxBitmapButton1;
71 wxBitmapButton *WxBitmapButton3;
72 wxBitmapButton *WxBitmapButton4;
73 wxBitmapButton *WxBitmapButton5;
74 wxBitmapButton *WxBitmapButton6;
75 wxFlexGridSizer *WxFlexGridSizer1;
76 wxStaticBoxSizer *WxStaticBoxSizer3;
77 wxStaticBitmap *WxStaticBitmap1;
78 wxBoxSizer *WxBoxSizer2;
79 wxPanel *WxPanel1;
80 wxBoxSizer *WxBoxSizer1;
81 public:
82 enum {
83 ID_FILE_MENU = 1033,
84 ID_FILE_EXIT = 1034,
85 ID_FILE_ABOUT = 1035,
86 ID_FILE_WIPECACHE = 1036,
87 ID_PORTABLE_INSTALL = 1037,
89 ID_WXSTATICTEXT3 = 1032,
90 ID_WXSTATICTEXT4 = 1032,
91 ID_REMOVE_BTN = 1039,
92 ID_BOOTLOADERREMOVE_BTN = 1038,
93 ID_WXSTATICTEXT2 = 1029,
94 ID_INSTALL_BTN = 1028,
95 ID_WXSTATICBITMAP1 = 1053,
96 ID_FONT_BTN = 1128,
97 ID_THEMES_BTN = 1139,
98 ID_DOOM_BTN = 1140,
99 ID_BOOTLOADER_BTN = 1129,
100 ID_WXPANEL1 = 1064,
102 ID_MANUAL = 1065,
103 ID_FILE_PROXY = 1066,
105 ID_DUMMY_VALUE_
106 }; //End of Enum
107 public:
108 void rbutilFrmClose(wxCloseEvent& event);
109 void CreateGUIControls(void);
110 void OnFileExit(wxCommandEvent& event);
111 void OnFileAbout(wxCommandEvent &event);
112 void OnFileWipeCache(wxCommandEvent &event);
113 void OnLocationBtn(wxCommandEvent& event);
114 void OnInstallBtn(wxCommandEvent& event);
115 void OnRemoveBtn(wxCommandEvent& event);
116 void OnFontBtn(wxCommandEvent& event);
117 void OnThemesBtn(wxCommandEvent& event);
118 void OnBootloaderBtn(wxCommandEvent& event);
119 void OnPortableInstall(wxCommandEvent& event);
120 void OnBootloaderRemoveBtn(wxCommandEvent& event);
121 void OnManualUpdate(wxUpdateUIEvent& event);
122 void OnFileProxy(wxCommandEvent& event);
123 void OnDoomBtn(wxCommandEvent& event);
125 int GetDeviceId();
129 #endif