move iriver checksums to its own file to remove unneeded inclusion and kill warnings...
[Rockbox.git] / rbutil / rbutilFrm.h
blob7341323bd9c785de855c84e0b9bbc526d504c688
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"
47 class rbutilFrm : public wxFrame
49 private:
50 DECLARE_EVENT_TABLE()
51 public:
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);
58 virtual ~rbutilFrm();
59 public:
60 DeviceSelectorCtrl* myDeviceSelector;
61 wxHyperlinkCtrl* manuallink;
62 wxHtmlWindow* manual;
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;
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_TALK_BTN = 1141,
100 ID_BOOTLOADER_BTN = 1129,
101 ID_WXPANEL1 = 1064,
103 ID_MANUAL = 1065,
104 ID_FILE_PROXY = 1066,
106 ID_DUMMY_VALUE_
107 }; //End of Enum
108 public:
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);
131 #endif