sizer->Add (_name, wxGBPosition (r, 1));
++r;
- add_label_to_sizer (sizer, this, _("Email addresses for KDM delivery"), true, wxGBPosition (r, 0), wxGBSpan (1, 2));
+ add_label_to_sizer (sizer, this, _("Email addresses for KDM delivery"), false, wxGBPosition (r, 0), wxGBSpan (1, 2));
++r;
copy (emails.begin(), emails.end(), back_inserter (_emails));
_reset_kdm_email = new wxButton (_panel, wxID_ANY, _("Reset to default subject and text"));
_panel->GetSizer()->Add (_reset_kdm_email, 0, wxEXPAND | wxALL, _border);
+ _kdm_cc->layout ();
+
_mail_server->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&KDMEmailPage::mail_server_changed, this));
_mail_port->Bind (wxEVT_COMMAND_SPINCTRL_UPDATED, boost::bind (&KDMEmailPage::mail_port_changed, this));
_mail_user->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&KDMEmailPage::mail_user_changed, this));
wxBoxSizer* s = new wxBoxSizer (wxVERTICAL);
SetSizer (s);
- wxFlexGridSizer* table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
- table->AddGrowableCol (0, 1);
- s->Add (table, 1, wxEXPAND);
+ _table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
+ _table->AddGrowableCol (0, 1);
+ s->Add (_table, 1, wxEXPAND);
long style = wxLC_REPORT | wxLC_SINGLE_SEL;
if (title) {
_list->InsertColumn (i, ip);
}
- table->Add (_list, 1, wxEXPAND | wxALL);
+ _table->Add (_list, 1, wxEXPAND | wxALL);
{
wxSizer* s = new wxBoxSizer (wxVERTICAL);
}
_remove = new wxButton (this, wxID_ANY, _("Remove"));
s->Add (_remove, 0, wxTOP | wxBOTTOM, 2);
- table->Add (s, 0);
+ _table->Add (s, 0);
}
_add->Bind (wxEVT_COMMAND_BUTTON_CLICKED, boost::bind (&EditableList::add_clicked, this));
return all[item];
}
+ void layout ()
+ {
+ _table->Layout ();
+ }
+
boost::signals2::signal<void ()> SelectionChanged;
private:
wxButton* _edit;
wxButton* _remove;
wxListCtrl* _list;
+ wxFlexGridSizer* _table;
};
#endif