Code::Blocks  SVN r11506
scriptsecuritywarningdlg.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  *
5  * $Revision: 10912 $
6  * $Id: scriptsecuritywarningdlg.cpp 10912 2016-09-25 16:10:13Z fuscated $
7  * $HeadURL: https://svn.code.sf.net/p/codeblocks/code/trunk/src/sdk/scriptsecuritywarningdlg.cpp $
8  */
9 
10 #include "sdk_precomp.h"
12 
13 #ifndef CB_PRECOMP
14  #include <wx/button.h>
15  #include <wx/combobox.h>
16  #include <wx/intl.h>
17  #include <wx/settings.h>
18  #include <wx/stattext.h>
19  #include <wx/textctrl.h>
20  #include <wx/xrc/xmlres.h>
21 #endif // CB_PRECOMP
22 
24 {
25  //ctor
26  wxXmlResource::Get()->LoadObject(this, parent, _T("ScriptingSecurityDlg"),_T("wxScrollingDialog"));
27  XRCCTRL(*this, "wxID_OK", wxButton)->SetDefault();
28 
30  XRCCTRL(*this, "txtCommand", wxTextCtrl)->SetBackgroundColour(c);
31 
32  XRCCTRL(*this, "lblOperation", wxStaticText)->SetLabel(_("Operation: ") + operation);
33  XRCCTRL(*this, "txtCommand", wxTextCtrl)->SetValue(command);
34 }
35 
37 {
38  //dtor
39 }
40 
42 {
43  return (ScriptSecurityResponse)XRCCTRL(*this, "cmbAnswer", wxComboBox)->GetSelection();
44 }
45 
47 {
49 }
void EndModal(int retCode)
Definition: sc_dialog.cpp:112
ScriptSecurityWarningDlg(wxWindow *parent, const wxString &operation, const wxString &command)
void EndModal(int retCode) override
ScriptSecurityResponse
#define _T(string)
static wxColour GetColour(wxSystemColour index)
const wxString & _(const wxString &string)
static wxXmlResource * Get()
ScriptSecurityResponse GetResponse()
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)