32 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
53 XRCCTRL(*
this,
"btnMoveUp",
wxButton)->Enable(list->GetSelection() > 0);
54 XRCCTRL(*
this,
"btnMoveDown",
wxButton)->Enable(list->GetSelection() >= 0 && list->GetSelection() < (int)list->GetCount() - 1);
60 int sel = list->GetSelection();
66 list->InsertItems(1, &tmp, sel - 1);
67 list->SetSelection(sel - 1);
74 int sel = list->GetSelection();
76 if (sel < (
int)list->GetCount() - 1)
80 list->InsertItems(1, &tmp, sel + 1);
81 list->SetSelection(sel + 1);
92 for (
int i = 0; i < (int)list->GetCount(); ++i)
void EndModal(int retCode)
void OnUpdateUI(wxUpdateUIEvent &event)
void EndModal(int retCode) override
~EditArrayOrderDlg() override
void OnMoveDown(wxCommandEvent &event)
size_t Add(const wxString &str, size_t copies=1)
void OnMoveUp(wxCommandEvent &event)
static wxXmlResource * Get()
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)