Christi Scarborough | 0957acd | 2006-12-11 21:25:37 +0000 | [diff] [blame] | 1 | //--------------------------------------------------------------------------- |
| 2 | // |
| 3 | // Name: rbutilFrm.h |
| 4 | // Author: Christi Scarborough |
| 5 | // Created: 03/12/2005 00:35:02 |
| 6 | // |
| 7 | //--------------------------------------------------------------------------- |
| 8 | #ifndef __rbutilFrm_HPP_ |
| 9 | #define __rbutilFrm_HPP_ |
| 10 | |
| 11 | #include <wx/wxprec.h> |
| 12 | #ifdef __BORLANDC__ |
| 13 | #pragma hdrstop |
| 14 | #endif |
| 15 | #ifndef WX_PRECOMP |
| 16 | #include <wx/wx.h> |
| 17 | #endif |
| 18 | |
| 19 | #include <wx/menu.h> |
| 20 | #include <wx/stattext.h> |
| 21 | #include <wx/bmpbuttn.h> |
| 22 | #include <wx/statbmp.h> |
| 23 | #include <wx/panel.h> |
| 24 | |
| 25 | #include <wx/frame.h> |
| 26 | #include <wx/valgen.h> |
| 27 | |
| 28 | #include "rbutil.h" |
| 29 | #include "wizard_pages.h" |
| 30 | |
| 31 | class rbutilFrm : public wxFrame |
| 32 | { |
| 33 | private: |
| 34 | DECLARE_EVENT_TABLE() |
| 35 | public: |
| 36 | rbutilFrm( wxWindow *parent, wxWindowID id = 1, |
| 37 | const wxString &title = wxT("Rockbox Utility"), |
| 38 | const wxPoint& pos = wxDefaultPosition, |
| 39 | const wxSize& size = wxDefaultSize, |
| 40 | long style = wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | |
| 41 | wxMINIMIZE_BOX | wxCLOSE_BOX); |
| 42 | virtual ~rbutilFrm(); |
| 43 | public: |
| 44 | wxMenuBar *WxMenuBar1; |
| 45 | wxStaticText *WxStaticText3; |
| 46 | wxBitmapButton *WxBitmapButton2; |
| 47 | wxStaticText *WxStaticText2; |
| 48 | wxBitmapButton *WxBitmapButton1; |
| 49 | wxBitmapButton *WxBitmapButton3; |
| 50 | wxBitmapButton *WxBitmapButton4; |
| 51 | wxFlexGridSizer *WxFlexGridSizer1; |
| 52 | wxStaticBoxSizer *WxStaticBoxSizer3; |
| 53 | wxStaticBitmap *WxStaticBitmap1; |
| 54 | wxBoxSizer *WxBoxSizer2; |
| 55 | wxPanel *WxPanel1; |
| 56 | wxBoxSizer *WxBoxSizer1; |
| 57 | public: |
| 58 | enum { |
| 59 | ID_FILE_MENU = 1033, |
| 60 | ID_FILE_EXIT = 1034, |
| 61 | ID_FILE_ABOUT = 1035, |
| 62 | ID_FILE_WIPECACHE = 1036, |
| 63 | |
| 64 | ID_WXSTATICTEXT3 = 1032, |
| 65 | ID_REMOVE_BTN = 1031, |
| 66 | ID_WXSTATICTEXT2 = 1029, |
| 67 | ID_INSTALL_BTN = 1028, |
| 68 | ID_WXSTATICBITMAP1 = 1053, |
| 69 | ID_FONT_BTN = 1128, |
| 70 | ID_BOOTLOADER_BTN = 1129, |
| 71 | ID_WXPANEL1 = 1064, |
| 72 | |
| 73 | ID_DUMMY_VALUE_ |
| 74 | }; //End of Enum |
| 75 | public: |
| 76 | void rbutilFrmClose(wxCloseEvent& event); |
| 77 | void CreateGUIControls(void); |
| 78 | void OnFileExit(wxCommandEvent& event); |
| 79 | void OnFileAbout(wxCommandEvent &event); |
| 80 | void OnFileWipeCache(wxCommandEvent &event); |
| 81 | void OnLocationBtn(wxCommandEvent& event); |
| 82 | void OnInstallBtn(wxCommandEvent& event); |
| 83 | void OnRemoveBtn(wxCommandEvent& event); |
| 84 | void OnFontBtn(wxCommandEvent& event); |
| 85 | void OnBootloaderBtn(wxCommandEvent& event); |
| 86 | |
| 87 | }; |
| 88 | |
| 89 | #endif |
| 90 | |
| 91 | |
| 92 | |
| 93 | |