this->m_CurrentListWx->Reparent(this);
this->m_CurrentListWx->SetFunctorEnabled(false);
this->m_CurrentListWx->Show(true);
+ this->m_LastStatus = this->m_CurrentListWx->GetListBox()->GetStrings();
wxGridBagSizer* dialogSizer = new wxGridBagSizer(0, 0);
dialogSizer->AddGrowableCol(0);
wxALL | wxEXPAND | wxALIGN_CENTER_HORIZONTAL
| wxALIGN_CENTER_VERTICAL, 5);
wxBoxSizer* boxSizer1 = new wxBoxSizer(wxVERTICAL);
- this->m_AddButton = new wxBitmapButton(this, 1, wxNullBitmap,
+
+ wxBitmap AddIcon(ArrowNextG_xpm); //Icon of button
+
+ this->m_AddButton = new wxBitmapButton(this, 1, AddIcon,
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator,
_T(">"));
+
boxSizer1->Add(this->m_AddButton, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
- this->m_RemoveButton = new wxBitmapButton(this, 2, wxNullBitmap,
+
+ wxBitmap DeleteIcon(ArrowBackG_xpm); //Icon of button
+
+ this->m_RemoveButton = new wxBitmapButton(this, 2, DeleteIcon,
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator,
_T("<"));
boxSizer1->Add(this->m_RemoveButton, 1,
wxALL | wxEXPAND | wxALIGN_CENTER_HORIZONTAL
| wxALIGN_CENTER_VERTICAL, 5);
wxBoxSizer* boxSizer2 = new wxBoxSizer(wxVERTICAL);
- this->m_UpButton = new wxBitmapButton(this, 3, wxNullBitmap,
+
+ wxBitmap TopIcon(ArrowTopG_xpm); //Icon of button
+
+ this->m_UpButton = new wxBitmapButton(this, 3, TopIcon,
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator,
_T("+"));
boxSizer2->Add(this->m_UpButton, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
- this->m_RemoveButton = new wxBitmapButton(this, 4, wxNullBitmap,
+
+
+ wxBitmap DownIcon(ArrowDownG_xpm); //Icon of button
+
+ this->m_DownButton = new wxBitmapButton(this, 4, DownIcon,
wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW, wxDefaultValidator,
_T("-"));
- boxSizer2->Add(this->m_RemoveButton, 1,
+ boxSizer2->Add(this->m_DownButton, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
topSizer->Add(boxSizer2, wxGBPosition(0, 3), wxDefaultSpan,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
wxALL | wxEXPAND | wxALIGN_CENTER_HORIZONTAL
| wxALIGN_CENTER_VERTICAL, 5);
+ //Bottom Sizer
+
wxBoxSizer* bottomSizer = new wxBoxSizer(wxHORIZONTAL);
bottomSizer->Add(0, 0, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
}
void ListConfigDialog::OnOk(wxCommandEvent& event)
{
+
this->EndModal(1);
}
void ListConfigDialog::OnCancel(wxCommandEvent& event)
{
- Close();
+
+ this->m_CurrentListWx->GetListBox()->Clear();
+ this->m_CurrentListWx->GetListBox()->Append(this->m_LastStatus);
+ this->Close();
}
}
}