projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27f29ec
)
Tidy up the layout of the TemplatesDialog a bit.
author
Carl Hetherington
<cth@carlh.net>
Tue, 4 Oct 2022 21:46:54 +0000
(23:46 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 4 Oct 2022 21:46:54 +0000
(23:46 +0200)
src/wx/templates_dialog.cc
patch
|
blob
|
history
diff --git
a/src/wx/templates_dialog.cc
b/src/wx/templates_dialog.cc
index b47c366abeb6e0610541749b34fd78a4e4b91bd6..3336277b6051da1ce1f447e36c063cf36ddaebd3 100644
(file)
--- a/
src/wx/templates_dialog.cc
+++ b/
src/wx/templates_dialog.cc
@@
-44,7
+44,7
@@
TemplatesDialog::TemplatesDialog (wxWindow* parent)
SetSizer (_sizer);
auto hs = new wxBoxSizer (wxHORIZONTAL);
SetSizer (_sizer);
auto hs = new wxBoxSizer (wxHORIZONTAL);
- _list = new wxListCtrl
(this, wxID_ANY, wxDefaultPosition, wxSize (200, 1
00), wxLC_REPORT | wxLC_SINGLE_SEL);
+ _list = new wxListCtrl
(this, wxID_ANY, wxDefaultPosition, wxSize(400, 3
00), wxLC_REPORT | wxLC_SINGLE_SEL);
wxListItem ip;
ip.SetId (0);
wxListItem ip;
ip.SetId (0);
@@
-57,9
+57,9
@@
TemplatesDialog::TemplatesDialog (wxWindow* parent)
{
auto s = new wxBoxSizer (wxVERTICAL);
_rename = new Button (this, _("Rename..."));
{
auto s = new wxBoxSizer (wxVERTICAL);
_rename = new Button (this, _("Rename..."));
- s->Add
(_rename, 0, wxTOP | wxBOTTOM
, 2);
+ s->Add
(_rename, 0, wxTOP | wxBOTTOM | wxEXPAND
, 2);
_remove = new Button (this, _("Remove"));
_remove = new Button (this, _("Remove"));
- s->Add
(_remove, 0, wxTOP | wxBOTTOM
, 2);
+ s->Add
(_remove, 0, wxTOP | wxBOTTOM | wxEXPAND
, 2);
hs->Add (s, 0, wxLEFT, DCPOMATIC_SIZER_X_GAP);
}
hs->Add (s, 0, wxLEFT, DCPOMATIC_SIZER_X_GAP);
}
@@
-78,6
+78,8
@@
TemplatesDialog::TemplatesDialog (wxWindow* parent)
_list->Bind (wxEVT_SIZE, bind(&TemplatesDialog::resized, this, _1));
_config_connection = Config::instance()->Changed.connect (bind(&TemplatesDialog::refresh, this));
_list->Bind (wxEVT_SIZE, bind(&TemplatesDialog::resized, this, _1));
_config_connection = Config::instance()->Changed.connect (bind(&TemplatesDialog::refresh, this));
+ Fit();
+
refresh ();
selection_changed ();
}
refresh ();
selection_changed ();
}