ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/main_window.h
(Generate patch)

Comparing AE/Installer/trunk/source/main_window.h (file contents):
Revision 324 by iritscen, Tue May 26 17:52:10 2009 UTC vs.
Revision 487 by iritscen, Wed Dec 30 01:51:38 2009 UTC

# Line 1 | Line 1
1 <
2 <
3 < /////////////////////////////////////////////////////////////////////////////
4 < // Name:        main_window.h
5 < // Purpose:    
6 < // Author:      
7 < // Modified by:
8 < // Created:     07/05/2009 20:38:25
9 < // RCS-ID:      
10 < // Copyright:  
11 < // Licence:    
12 < /////////////////////////////////////////////////////////////////////////////
13 <
14 < #ifndef _MAINWINDOW_H_
15 < #define _MAINWINDOW_H_
16 <
17 <
18 < /*!
19 < * Includes
20 < */
21 <
22 < ////@begin includes
23 < #include "wx/frame.h"
24 < #include "wx/splitter.h"
25 < #include "wx/statline.h"
26 < #include "wx/statusbr.h"
27 < ////@end includes
28 <
29 < /*!
30 < * Forward declarations
31 < */
32 <
33 < ////@begin forward declarations
34 < class wxSplitterWindow;
35 < class wxStatusBar;
36 < ////@end forward declarations
37 <
38 < /*!
39 < * Control identifiers
40 < */
41 <
42 < ////@begin control identifiers
43 < #define ID_MAINWINDOW 10000
44 < #define ID_SPLITTERWINDOW 10001
45 < #define ID_PANEL 10011
46 < #define SelectAll_Checkbox 10012
47 < #define Refresh_Button 10007
48 < #define Mods_CheckboxList1 10002
49 < #define DescriptionHolder_Panel 10003
50 < #define Title_Text 10005
51 < #define Author_Text 10004
52 < #define Description_Text 10022
53 < #define ID_STATUSBAR 10008
54 < #define ProgressBar_Gauge 10009
55 < #define Install_Button 10010
56 < #define ID_PANEL1 10019
57 < #define Sep_RadioButton 10013
58 < #define NoSep_RadioButton 10014
59 < #define Separated_RadioButton 10015
60 < #define Complete_RadioButton 10016
61 < #define ReGlobalize_Button 10018
62 < #define wxID_LOAD 10006
63 < #define wxID_OPTIONS 10017
64 < #define SYMBOL_MAINWINDOW_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX
65 < #define SYMBOL_MAINWINDOW_TITLE _("Installer")
66 < #define SYMBOL_MAINWINDOW_IDNAME ID_MAINWINDOW
67 < #define SYMBOL_MAINWINDOW_SIZE wxSize(400, 500)
68 < #define SYMBOL_MAINWINDOW_POSITION wxDefaultPosition
69 < ////@end control identifiers
70 <
71 <
72 < /*!
73 < * MainWindow class declaration
74 < */
75 <
76 < using namespace std;
77 <
78 < #include <vector>
79 <
80 < class MainWindow: public wxFrame
81 < {    
82 <    DECLARE_CLASS( MainWindow )
83 <    DECLARE_EVENT_TABLE()
84 <
85 < public:
86 <    /// Constructors
87 <    MainWindow();
88 <    MainWindow( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE );
89 <
90 <    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE, const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE );
91 <
92 <    /// Destructor
93 <    ~MainWindow();
94 <
95 <    /// Initialises member variables
96 <    void Init();
97 <
98 <    /// Creates the controls and sizers
99 <    void CreateControls();
100 <
101 < ////@begin MainWindow event handler declarations
102 <
103 <    /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for SelectAll_Checkbox
104 <    void OnSelectAllCheckboxClick( wxCommandEvent& event );
105 <
106 <    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for Refresh_Button
107 <    void OnRefreshButtonClick( wxCommandEvent& event );
108 <
109 <    /// wxEVT_COMMAND_LISTBOX_SELECTED event handler for Mods_CheckboxList1
110 <    void OnModsCheckboxList1Selected( wxCommandEvent& event );
111 <
112 <    /// wxEVT_COMMAND_CHECKLISTBOX_TOGGLED event handler for Mods_CheckboxList1
113 <    void OnModsCheckboxList1Toggled( wxCommandEvent& event );
114 <
115 <    /// wxEVT_CREATE event handler for Mods_CheckboxList1
116 <    void ModList_OnCreate( wxWindowCreateEvent& event );
117 <
118 <    /// wxEVT_UPDATE_UI event handler for ID_STATUSBAR
119 <    void OnStatusbarUpdate( wxUpdateUIEvent& event );
120 <
121 <    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for Install_Button
122 <    void OnInstallButtonClick( wxCommandEvent& event );
123 <
124 <    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Sep_RadioButton
125 <    void OnSepRadioButtonSelected( wxCommandEvent& event );
126 <
127 <    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for NoSep_RadioButton
128 <    void OnNoSepRadioButtonSelected( wxCommandEvent& event );
129 <
130 <    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Separated_RadioButton
131 <    void OnSeparatedRadioButtonSelected( wxCommandEvent& event );
132 <
133 <    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Complete_RadioButton
134 <    void OnCompleteRadioButtonSelected( wxCommandEvent& event );
135 <
136 <    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ReGlobalize_Button
137 <    void OnReGlobalizeButtonClick( wxCommandEvent& event );
138 <
139 <    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_LOAD
140 <    void OnLoadClick( wxCommandEvent& event );
141 <
142 <    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_SAVE
143 <    void OnSaveClick( wxCommandEvent& event );
144 <
145 <    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_EXIT
146 <    void OnExitClick( wxCommandEvent& event );
147 <
148 <    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_OPTIONS
149 <    void OnOptionsClick( wxCommandEvent& event );
150 <
151 <    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT
152 <    void OnAboutClick( wxCommandEvent& event );
153 <
154 < ////@end MainWindow event handler declarations
155 <
156 < ////@begin MainWindow member function declarations
157 <
158 <    /// Retrieves bitmap resources
159 <    wxBitmap GetBitmapResource( const wxString& name );
160 <
161 <    /// Retrieves icon resources
162 <    wxIcon GetIconResource( const wxString& name );
163 < ////@end MainWindow member function declarations
164 <
165 <    /// Should we show tooltips?
166 <    static bool ShowToolTips();
167 <
168 < ////@begin MainWindow member variables
169 <    wxSplitterWindow* MainSplitter;
170 <    wxCheckBox* SelectAll;
171 <    wxBitmapButton* RefreshButton;
172 <    wxCheckListBox* Mods_CheckboxList;
173 <    wxTextCtrl* titleText;
174 <    wxTextCtrl* creatorText;
175 <    wxTextCtrl* descriptionText;
176 <    wxStatusBar* StatusArea;
177 <    wxGauge* ProgressBar;
178 <    wxButton* InstallButton;
179 <    wxPanel* OptionsPanel;
180 <    wxRadioButton* SepRadio;
181 <    wxRadioButton* NoSepRadio;
182 <    wxRadioButton* SeparatedRadio;
183 <    wxRadioButton* CompleteRadio;
184 <    wxButton* ReglobalizeButton;
185 < ////@end MainWindow member variables
186 <
187 <        void refreshMods( vector<string> );
188 < };
189 <
190 < #endif
191 <    // _MAINWINDOW_H_
1 > /***************************************************************************\
2 > | Project: AE Installer                                                                                                         |
3 > | By: Gumby & Iritscen                                                                                                          |
4 > | File: Main_Window.h                                                                                                           |
5 > | Function: Handles GUI.                                                                                                        |
6 > | Created: 07/05/2009 20:38:25                                                                                          |
7 > \***************************************************************************/
8 >
9 >
10 > #ifndef _MAINWINDOW_H_
11 > #define _MAINWINDOW_H_
12 >
13 > /*!
14 > * Includes
15 > */
16 > #pragma mark INCLUDES
17 > ////@begin includes
18 > #include "wx/bmpbuttn.h"
19 > #include "wx/checkbox.h"
20 > #include "wx/checklst.h"
21 > #include "wx/frame.h"
22 > #include "wx/gauge.h"
23 > #include "wx/generic/panelg.h"
24 > #include "wx/radiobut.h"
25 > #include "wx/splitter.h"
26 > #include "wx/statline.h"
27 > #include "wx/statusbr.h"
28 > #include "wx/textctrl.h"
29 > #include <vector>
30 > using namespace std;
31 > ////@end includes
32 >
33 > /*!
34 > * Forward declarations
35 > */
36 >
37 > ////@begin forward declarations
38 > class wxSplitterWindow;
39 > class wxStatusBar;
40 > ////@end forward declarations
41 >
42 > /*!
43 > * Control identifiers
44 > */
45 > #pragma mark DEFINES
46 > ////@begin control identifiers
47 > #define ID_MAINWINDOW 10000
48 > #define ID_SPLITTERWINDOW 10001
49 > #define ID_PANEL 10011
50 > #define SelectAll_Checkbox 10012
51 > #define Refresh_Button 10007
52 > #define Mods_CheckboxList1 10002
53 > #define DescriptionHolder_Panel 10003
54 > #define Title_Text 10005
55 > #define Author_Text 10004
56 > #define Description_Text 10022
57 > #define ID_STATUSBAR 10008
58 > #define ProgressBar_Gauge 10009
59 > #define Install_Button 10010
60 > #define ID_PANEL1 10019
61 > #define Sep_RadioButton 10013
62 > #define NoSep_RadioButton 10014
63 > #define Seperated_RadioButton 10015
64 > #define Complete_RadioButton 10016
65 > #define ReGlobalize_Button 10018
66 > #define wxID_LOAD 10006
67 > #define wxID_OPTIONS 10017
68 > #define SYMBOL_MAINWINDOW_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wxSIMPLE_BORDER
69 > #define SYMBOL_MAINWINDOW_TITLE _("Installer")
70 > #define SYMBOL_MAINWINDOW_IDNAME ID_MAINWINDOW
71 > #define SYMBOL_MAINWINDOW_SIZE wxSize(540, 500)
72 > #define SYMBOL_MAINWINDOW_POSITION wxDefaultPosition
73 > ////@end control identifiers
74 >
75 > /*!
76 > * MainWindow class declaration
77 > */
78 >
79 > #pragma mark CLASS DECLARATIONS
80 > class MainWindow: public wxFrame
81 > {    
82 >    DECLARE_CLASS( MainWindow )
83 >    DECLARE_EVENT_TABLE()
84 >
85 > public:
86 >    /// Constructors
87 >    MainWindow();
88 >    MainWindow( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE,
89 >                           const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE );
90 >
91 >    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MAINWINDOW_IDNAME, const wxString& caption = SYMBOL_MAINWINDOW_TITLE,
92 >                                const wxPoint& pos = SYMBOL_MAINWINDOW_POSITION, const wxSize& size = SYMBOL_MAINWINDOW_SIZE, long style = SYMBOL_MAINWINDOW_STYLE );
93 >
94 >    /// Destructor
95 >    ~MainWindow();
96 >
97 >    /// Initialises member variables
98 >    void Init();
99 >
100 >    /// Creates the controls and sizers
101 >    void CreateControls();
102 >
103 > ////@begin MainWindow event handler declarations
104 >
105 >    /// wxEVT_COMMAND_CHECKBOX_CLICKED event handler for SelectAll_Checkbox
106 >    void OnSelectAllCheckboxClick( wxCommandEvent& event );
107 >
108 >    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for Refresh_Button
109 >    void OnRefreshButtonClick( wxCommandEvent& event );
110 >
111 >    /// wxEVT_COMMAND_LISTBOX_SELECTED event handler for Mods_CheckboxList1
112 >    void OnModsCheckboxList1Selected( wxCommandEvent& event );
113 >
114 >    /// wxEVT_COMMAND_CHECKLISTBOX_TOGGLED event handler for Mods_CheckboxList1
115 >    void OnModsCheckboxList1Toggled( wxCommandEvent& event );
116 >
117 >    /// wxEVT_CREATE event handler for Mods_CheckboxList1
118 >    void ModList_OnCreate( wxWindowCreateEvent& event );
119 >
120 >    /// wxEVT_UPDATE_UI event handler for ID_STATUSBAR
121 >    void OnStatusbarUpdate( wxUpdateUIEvent& event );
122 >
123 >    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for Install_Button
124 >    void OnInstallButtonClick( wxCommandEvent& event );
125 >
126 >    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Sep_RadioButton
127 >    void OnSepRadioButtonSelected( wxCommandEvent& event );
128 >
129 >    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for NoSep_RadioButton
130 >    void OnNoSepRadioButtonSelected( wxCommandEvent& event );
131 >
132 >    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Seperated_RadioButton
133 >    void OnSeperatedRadioButtonSelected( wxCommandEvent& event );
134 >
135 >    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for Complete_RadioButton
136 >    void OnCompleteRadioButtonSelected( wxCommandEvent& event );
137 >
138 >    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ReGlobalize_Button
139 >    void OnReGlobalizeButtonClick( wxCommandEvent& event );
140 >
141 >    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_LOAD
142 >    void OnLoadClick( wxCommandEvent& event );
143 >
144 >    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_SAVE
145 >    void OnSaveClick( wxCommandEvent& event );
146 >
147 >    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_EXIT
148 >    void OnExitClick( wxCommandEvent& event );
149 >
150 >    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_OPTIONS
151 >    void OnOptionsClick( wxCommandEvent& event );
152 >
153 >    /// wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT
154 >    void OnAboutClick( wxCommandEvent& event );
155 >
156 > ////@end MainWindow event handler declarations
157 >
158 > ////@begin MainWindow member function declarations
159 >
160 >    /// Retrieves bitmap resources
161 >    wxBitmap GetBitmapResource( const wxString& name );
162 >
163 >    /// Retrieves icon resources
164 >    wxIcon GetIconResource( const wxString& name );
165 > ////@end MainWindow member function declarations
166 >
167 >    /// Should we show tooltips?
168 >    static bool ShowToolTips();
169 >
170 > ////@begin MainWindow member variables
171 >    wxSplitterWindow* MainSplitter;
172 >    wxCheckBox* SelectAll;
173 >    wxBitmapButton* RefreshButton;
174 >    wxCheckListBox* Mods_CheckboxList;
175 >    wxTextCtrl* titleText;
176 >    wxTextCtrl* creatorText;
177 >    wxTextCtrl* descriptionText;
178 >    wxStatusBar* StatusArea;
179 >    wxGauge* ProgressBar;
180 >    wxButton* InstallButton;
181 >    wxPanel* OptionsPanel;
182 >    wxRadioButton* SepRadio;
183 >    wxRadioButton* NoSepRadio;
184 >    wxRadioButton* SeperatedRadio;
185 >    wxRadioButton* CompleteRadio;
186 >    wxButton* ReglobalizeButton;
187 > ////@end MainWindow member variables
188 >
189 >        void refreshMods( vector<string> );
190 > };
191 >
192 > #endif
193 >    // _MAINWINDOW_H_

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)