diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-30 17:01:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-30 17:01:11 +0100 |
| commit | d7acb1d8168c6e8cb82af6fbbc07eb88abc83add (patch) | |
| tree | 31588ed648bcedf28e241ccfa0447a9290bb730e /src/wx/make_chain_dialog.h | |
| parent | 682c060342d96e7511d09a5b86df605771f3a907 (diff) | |
Missing files.
Diffstat (limited to 'src/wx/make_chain_dialog.h')
| -rw-r--r-- | src/wx/make_chain_dialog.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/wx/make_chain_dialog.h b/src/wx/make_chain_dialog.h new file mode 100644 index 000000000..cd511825e --- /dev/null +++ b/src/wx/make_chain_dialog.h @@ -0,0 +1,62 @@ +/* + Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include "table_dialog.h" +#include "wx_util.h" + +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 ()); + } + + +private: + wxTextCtrl* _organisation; + wxTextCtrl* _organisational_unit; + wxTextCtrl* _root_common_name; + wxTextCtrl* _intermediate_common_name; + wxTextCtrl* _leaf_common_name; +}; |
