Cafu Engine
DialogCustomCompile.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_DIALOG_CUSTOM_COMPILE_HPP_INCLUDED
8 #define CAFU_DIALOG_CUSTOM_COMPILE_HPP_INCLUDED
9 
10 #include "wx/dialog.h"
11 
12 
13 /**
14  * Dialog to configure map compile options.
15  *
16  * These options are read from the global configuration file and stored in it
17  * along with possible changes made by the user.
18  */
19 class CustomCompileDialogT : public wxDialog
20 {
21  public:
22 
23  CustomCompileDialogT(wxWindow* parent);
24 
25  // Methods to access the compile options, that are set in the dialog.
26  wxString GetCaBSPOptions() { return CaBSPOptions ->GetValue(); }
27  wxString GetCaPVSOptions() { return CaPVSOptions ->GetValue(); }
28  wxString GetCaLightOptions() { return CaLightOptions->GetValue(); }
29  wxString GetEngineOptions() { return EngineOptions ->GetValue(); }
30 
31 
32  private:
33 
34  wxSizer* CustomCompileDialogInit(wxWindow* parent, bool call_fit=true, bool set_sizer=true);
35 
36  wxTextCtrl* CaBSPOptions;
37  wxTextCtrl* CaPVSOptions;
38  wxTextCtrl* CaLightOptions;
39  wxTextCtrl* EngineOptions;
40 
41  void OnOK(wxCommandEvent&);
42 
43  DECLARE_EVENT_TABLE()
44 };
45 
46 #endif
Dialog to configure map compile options.
Definition: DialogCustomCompile.hpp:19