41 m_OldPaths = m_pDBG->GetSearchDirs(project);
42 m_CurrentRemoteDebugging = m_pDBG->GetRemoteDebuggingMap(project);
46 for (
size_t i = 0; i < m_OldPaths.GetCount(); ++i)
48 control->Append(m_OldPaths[i]);
51 control = XRCCTRL(*
this,
"lstTargets",
wxListBox);
53 control->Append(
_(
"<Project>"));
54 for (
int i = 0; i < project->GetBuildTargetsCount(); ++i)
56 control->Append(project->GetBuildTarget(i)->GetTitle());
58 control->SetSelection(-1);
60 LoadCurrentRemoteDebuggingRecord();
78 wxString theTarget =
event.GetBuildTargetName();
82 int idx = lstBox->FindString(theTarget);
87 if((
size_t)idx >= lstBox->GetCount())
91 lstBox->SetSelection(idx);
104 wxString newTarget =
event.GetBuildTargetName();
105 wxString oldTarget =
event.GetOldBuildTargetName();
111 if ( !it->first || it->first->GetTitle() != oldTarget)
121 int idx = lstBox->FindString(newTarget);
124 idx = lstBox->Append(newTarget);
126 lstBox->SetSelection(idx);
137 wxString newTarget =
event.GetBuildTargetName();
138 wxString oldTarget =
event.GetOldBuildTargetName();
142 if ( !it->first || it->first->GetTitle() != oldTarget)
144 it->first->SetTitle(newTarget);
150 int idx = lstBox->FindString(oldTarget);
155 lstBox->SetString(idx, newTarget);
156 lstBox->SetSelection(idx);
183 XRCCTRL(*
this,
"cmbConnType",
wxChoice)->SetSelection(0);
185 XRCCTRL(*
this,
"cmbBaud",
wxChoice)->SetSelection(0);
190 XRCCTRL(*
this,
"chkSkipLDpath",
wxCheckBox)->SetValue(
false);
191 XRCCTRL(*
this,
"chkExtendedRemote",
wxCheckBox)->SetValue(
false);
215 rd.
ip = XRCCTRL(*
this,
"txtIP",
wxTextCtrl)->GetValue();
242 if (dlg.ShowModal() ==
wxID_OK)
245 control->Append(path);
252 int sel = control->GetSelection();
257 control->GetString(sel),
259 _(
"Edit directory"));
262 if (dlg.ShowModal() ==
wxID_OK)
265 control->SetString(sel, path);
272 int sel = control->GetSelection();
276 control->Delete(sel);
282 bool en = control->GetSelection() >= 0;
284 XRCCTRL(*
this,
"btnEdit",
wxButton)->Enable(en);
285 XRCCTRL(*
this,
"btnDelete",
wxButton)->Enable(en);
289 XRCCTRL(*
this,
"cmbConnType",
wxChoice)->Enable(en);
290 XRCCTRL(*
this,
"txtSerial",
wxTextCtrl)->Enable(en);
291 XRCCTRL(*
this,
"cmbBaud",
wxChoice)->Enable(en);
292 XRCCTRL(*
this,
"txtIP",
wxTextCtrl)->Enable(en);
293 XRCCTRL(*
this,
"txtPort",
wxTextCtrl)->Enable(en);
294 XRCCTRL(*
this,
"txtCmds",
wxTextCtrl)->Enable(en);
295 XRCCTRL(*
this,
"txtCmdsBefore",
wxTextCtrl)->Enable(en);
296 XRCCTRL(*
this,
"chkSkipLDpath",
wxCheckBox)->Enable(en);
297 XRCCTRL(*
this,
"chkExtendedRemote",
wxCheckBox)->Enable(en);
298 XRCCTRL(*
this,
"txtShellCmdsAfter",
wxTextCtrl)->Enable(en);
299 XRCCTRL(*
this,
"txtShellCmdsBefore",
wxTextCtrl)->Enable(en);
307 for (
int i = 0; i < (int)control->GetCount(); ++i)
RemoteDebuggingMap m_CurrentRemoteDebugging
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_RENAMED
wxArrayString & GetSearchDirs(cbProject *prj)
void OnAdd(wxCommandEvent &event)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
void LoadCurrentRemoteDebuggingRecord()
wxString additionalCmds
commands after remote connection established
void OnEdit(wxCommandEvent &event)
void SaveCurrentRemoteDebuggingRecord()
void OnDelete(wxCommandEvent &event)
wxString additionalShellCmdsAfter
shell commands after remote connection established
void OnBuildTargetAdded(CodeBlocksEvent &event)
A generic Code::Blocks event.
virtual ~DebuggerOptionsProjectDlg()
wxString additionalCmdsBefore
commands before establishing remote connection
void OnBuildTargetRenamed(CodeBlocksEvent &event)
Represents a Code::Blocks project.
bool extendedRemote
connect with extended remote or not
void RemoveAllEventSinksFor(void *owner)
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_REMOVED
virtual wxString GetBasePath() const
Read the target's base path, e.g. if GetFilename() returns "/usr/local/bin/xxx", base path will retur...
const wxString & _(const wxString &string)
ProjectBuildTarget * GetBuildTarget(int index)
Access a build target.
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
RemoteDebuggingMap & GetRemoteDebuggingMap(cbProject *project=0)
virtual void OnApply()
Called when the user chooses to apply the configuration.
void RegisterEventSink(wxEventType eventType, IEventFunctorBase< CodeBlocksEvent > *functor)
size_t Add(const wxString &str, size_t copies=1)
wxString additionalShellCmdsBefore
shell commands before establishing remote connection
Represents a Code::Blocks project build target.
void OnTargetSel(wxCommandEvent &event)
static wxXmlResource * Get()
EVTIMPORT const wxEventType cbEVT_BUILDTARGET_ADDED
bool skipLDpath
skip adjusting LD_LIBRARY_PATH before launching debugger
void OnUpdateUI(wxUpdateUIEvent &event)
void OnBuildTargetRemoved(CodeBlocksEvent &event)