Debian Codegraph @

code/tabs/AdvSettingsPage.h

raw
1 /*
2 Copyright (C) 2009-2010 wxLauncher Team
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19 #ifndef ADVSETTINGSPAGE_H
20 #define ADVSETTINGSPAGE_H
21
22 #include <wx/wx.h>
23 #include "controls/FlagListBox.h"
24 #include "controls/LightingPresets.h"
25
26 class AdvSettingsPage: public wxPanel {
27 public:
28 AdvSettingsPage(wxWindow* parent);
29
30 void OnNeedUpdateCommandLine(wxCommandEvent &event);
31
32 private:
33 void UpdateComponents();
34 void UpdateErrorText();
35 void UpdateFlagSetsBox();
36 wxString FormatCommandLineString(const wxString& origCmdLine,
37 const int textAreaWidth);
38 FlagListBox* flagListBox;
39 LightingPresets* lightingPresets;
40 wxStaticText* errorText;
41
42 public:
43 void OnExeChanged(wxCommandEvent& event);
44 void OnSelectFlagSet(wxCommandEvent& event);
45 void OnFlagFileProcessingStatusChanged(wxCommandEvent& event);
46 void OnNeedUpdateCustomFlags(wxCommandEvent& event);
47 void OnCustomFlagsBoxChanged(wxCommandEvent& event);
48 void OnFlagListBoxReady(wxCommandEvent& event);
49 void OnProxyFlagDataReady(wxCommandEvent& event);
50
51 DECLARE_EVENT_TABLE()
52 };
53
54 #endif