X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fmake_chain_dialog.h;h=018db99a202c2e2ce7d42ef3c0db60c870ea789b;hb=92858c0cc30fed42119ac632988c8106155e1949;hp=5ad62430e25f2f1efbd51931ee095d98dd2a7de6;hpb=f8832c431b45e81523ec2ef70999e7e613d5001e;p=dcpomatic.git diff --git a/src/wx/make_chain_dialog.h b/src/wx/make_chain_dialog.h index 5ad62430e..018db99a2 100644 --- a/src/wx/make_chain_dialog.h +++ b/src/wx/make_chain_dialog.h @@ -27,35 +27,9 @@ class MakeChainDialog : public TableDialog { public: - MakeChainDialog ( - wxWindow* parent, - std::string organisation, - std::string organisational_unit_name, - std::string root_common_name, - std::string intermediate_common_name, - std::string leaf_common_name - ); - - std::string organisation () const { - return wx_to_std (_organisation->GetValue ()); - } - - std::string organisational_unit () const { - return wx_to_std (_organisational_unit->GetValue ()); - } - - std::string root_common_name () const { - return "." + wx_to_std (_root_common_name->GetValue ()); - } - - std::string intermediate_common_name () const { - return "." + wx_to_std (_intermediate_common_name->GetValue ()); - } - - std::string leaf_common_name () const { - return "CS." + wx_to_std (_leaf_common_name->GetValue ()); - } + MakeChainDialog (wxWindow* parent, std::shared_ptr chain); + std::shared_ptr get () const; private: wxTextCtrl* _organisation;