X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fmake_chain_dialog.cc;h=d681c00e876f866e30caf59863854c5c1c6f4b3c;hb=92933c13e9233149e4e80244d92da81b70072214;hp=74d2e24b5ea146a6721c660383004b917e4db3ec;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/wx/make_chain_dialog.cc b/src/wx/make_chain_dialog.cc index 74d2e24b5..d681c00e8 100644 --- a/src/wx/make_chain_dialog.cc +++ b/src/wx/make_chain_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington + Copyright (C) 2014-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -19,6 +19,7 @@ */ #include "make_chain_dialog.h" +#include "static_text.h" #include using std::string; @@ -57,7 +58,7 @@ MakeChainDialog::MakeChainDialog ( { wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); - s->Add (new wxStaticText (this, wxID_ANY, wxT (".")), 0, wxALIGN_CENTER_VERTICAL); + s->Add (new StaticText (this, wxT (".")), 0, wxALIGN_CENTER_VERTICAL); s->Add (_root_common_name = new wxTextCtrl ( this, wxID_ANY, std_to_wx (root_common_name), wxDefaultPosition, wxDefaultSize, 0, validator), 1, wxALIGN_CENTER_VERTICAL ); @@ -68,7 +69,7 @@ MakeChainDialog::MakeChainDialog ( { wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); - s->Add (new wxStaticText (this, wxID_ANY, wxT (".")), 0, wxALIGN_CENTER_VERTICAL); + s->Add (new StaticText (this, wxT (".")), 0, wxALIGN_CENTER_VERTICAL); s->Add (_intermediate_common_name = new wxTextCtrl ( this, wxID_ANY, std_to_wx (intermediate_common_name), wxDefaultPosition, wxDefaultSize, 0, validator), 1, wxALIGN_CENTER_VERTICAL ); @@ -79,7 +80,7 @@ MakeChainDialog::MakeChainDialog ( { wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); - s->Add (new wxStaticText (this, wxID_ANY, wxT ("CS.")), 0, wxALIGN_CENTER_VERTICAL); + s->Add (new StaticText (this, wxT ("CS.")), 0, wxALIGN_CENTER_VERTICAL); s->Add (_leaf_common_name = new wxTextCtrl ( this, wxID_ANY, std_to_wx (leaf_common_name), wxDefaultPosition, wxDefaultSize, 0, validator), 1, wxALIGN_CENTER_VERTICAL ); @@ -87,4 +88,6 @@ MakeChainDialog::MakeChainDialog ( } layout (); + + _organisation->SetFocus (); }