summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-17 23:39:05 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-17 23:39:05 +0100
commit373f010a7f04add1f49169cbaa60cb7ae5f508d4 (patch)
treea61fe014cbefc775dcf3a5c9a45d06e391e65b31 /src/wx/kdm_dialog.cc
parent048f9b6b5569f03d1342a04f75c83a2bad340996 (diff)
parente888e92f354b9868337b0b022ff9be38b9c36c0f (diff)
Merge 1.0 in.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-rw-r--r--src/wx/kdm_dialog.cc23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index d94c13057..a9f63cffc 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -43,9 +43,6 @@ KDMDialog::KDMDialog (wxWindow* parent)
: wxDialog (parent, wxID_ANY, _("Make KDMs"))
{
wxBoxSizer* vertical = new wxBoxSizer (wxVERTICAL);
-
- add_label_to_sizer (vertical, this, "Make KDMs for");
-
wxBoxSizer* targets = new wxBoxSizer (wxHORIZONTAL);
_targets = new wxTreeCtrl (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HIDE_ROOT | wxTR_MULTIPLE | wxTR_HAS_BUTTONS);
@@ -63,37 +60,37 @@ KDMDialog::KDMDialog (wxWindow* parent)
wxBoxSizer* target_buttons = new wxBoxSizer (wxVERTICAL);
_add_cinema = new wxButton (this, wxID_ANY, _("Add Cinema..."));
- target_buttons->Add (_add_cinema, 1, 0, 6);
+ target_buttons->Add (_add_cinema, 1, wxEXPAND, 6);
_edit_cinema = new wxButton (this, wxID_ANY, _("Edit Cinema..."));
- target_buttons->Add (_edit_cinema, 1, 0, 6);
+ target_buttons->Add (_edit_cinema, 1, wxEXPAND, 6);
_remove_cinema = new wxButton (this, wxID_ANY, _("Remove Cinema"));
- target_buttons->Add (_remove_cinema, 1, 0, 6);
+ target_buttons->Add (_remove_cinema, 1, wxEXPAND, 6);
_add_screen = new wxButton (this, wxID_ANY, _("Add Screen..."));
- target_buttons->Add (_add_screen, 1, 0, 6);
+ target_buttons->Add (_add_screen, 1, wxEXPAND, 6);
_edit_screen = new wxButton (this, wxID_ANY, _("Edit Screen..."));
- target_buttons->Add (_edit_screen, 1, 0, 6);
+ target_buttons->Add (_edit_screen, 1, wxEXPAND, 6);
_remove_screen = new wxButton (this, wxID_ANY, _("Remove Screen"));
- target_buttons->Add (_remove_screen, 1, 0, 6);
+ target_buttons->Add (_remove_screen, 1, wxEXPAND, 6);
targets->Add (target_buttons, 0, 0, 6);
vertical->Add (targets, 1, wxEXPAND | wxALL, 6);
wxFlexGridSizer* table = new wxFlexGridSizer (3, 2, 6);
- add_label_to_sizer (table, this, "From");
+ add_label_to_sizer (table, this, "From", true);
_from_date = new wxDatePickerCtrl (this, wxID_ANY);
table->Add (_from_date, 1, wxEXPAND);
_from_time = new wxTimePickerCtrl (this, wxID_ANY);
table->Add (_from_time, 1, wxEXPAND);
- add_label_to_sizer (table, this, "Until");
+ add_label_to_sizer (table, this, "Until", true);
_until_date = new wxDatePickerCtrl (this, wxID_ANY);
table->Add (_until_date, 1, wxEXPAND);
_until_time = new wxTimePickerCtrl (this, wxID_ANY);
table->Add (_until_time, 1, wxEXPAND);
- add_label_to_sizer (table, this, "Write to");
+ add_label_to_sizer (table, this, "Write to", true);
#ifdef __WXMSW__
_folder = new DirPickerCtrl (this);
@@ -105,7 +102,7 @@ KDMDialog::KDMDialog (wxWindow* parent)
vertical->Add (table, 0, wxEXPAND | wxALL, 6);
- wxSizer* buttons = CreateSeparatedButtonSizer (wxOK);
+ wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL);
if (buttons) {
vertical->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
}