39 cbThrow(
_T(
"Tool* parameter is mandatory in EditToolDlg()"));
42 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
43 XRCCTRL(*
this,
"txtName",
wxTextCtrl)->SetValue(m_Tool->GetName());
44 XRCCTRL(*
this,
"txtCommand",
wxTextCtrl)->SetValue(m_Tool->GetCommand());
45 XRCCTRL(*
this,
"txtParams",
wxTextCtrl)->SetValue(m_Tool->GetParams());
46 XRCCTRL(*
this,
"txtDir",
wxTextCtrl)->SetValue(m_Tool->GetWorkingDir());
47 XRCCTRL(*
this,
"rbLaunchOptions",
wxRadioBox)->SetSelection(static_cast<int>(m_Tool->GetLaunchOption()));
62 XRCCTRL(*
this,
"wxID_OK",
wxButton)->Enable(en);
70 XRCCTRL(*
this,
"txtCommand",
wxTextCtrl)->SetValue(filename);
77 XRCCTRL(*
this,
"txtDir",
wxTextCtrl)->SetValue(dir);
void EndModal(int retCode)
wxString wxFileSelector(const wxString &message, const wxString &default_path=wxEmptyString, const wxString &default_filename=wxEmptyString, const wxString &default_extension=wxEmptyString, const wxString &wildcard=wxFileSelectorDefaultWildcardStr, int flags=0, wxWindow *parent=NULL, int x=wxDefaultCoord, int y=wxDefaultCoord)
DLLIMPORT wxString ChooseDirectory(wxWindow *parent, const wxString &message=_("Select directory"), const wxString &initialPath=_T(""), const wxString &basePath=_T(""), bool askToMakeRelative=false, bool showCreateDirButton=false)
const wxString & _(const wxString &string)
wxString GetPath(int flags=wxPATH_GET_VOLUME, wxPathFormat format=wxPATH_NATIVE) const
wxString GetFullName() const
static wxXmlResource * Get()
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)