summaryrefslogtreecommitdiff
path: root/src/wx/save_template_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-09 21:33:56 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-25 01:30:31 +0200
commit1e6484e0fe9e3fa090ef58e17433333a5378043c (patch)
tree5bbb2e4efa39c5aee1d93bd618e5805b38ceb39f /src/wx/save_template_dialog.h
parent00706c7d9ded27a537af4e8182e67b460ec316bc (diff)
Improve save-template dialog and always use a default template.
Diffstat (limited to 'src/wx/save_template_dialog.h')
-rw-r--r--src/wx/save_template_dialog.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/wx/save_template_dialog.h b/src/wx/save_template_dialog.h
index 7e4808ca2..101d35ddf 100644
--- a/src/wx/save_template_dialog.h
+++ b/src/wx/save_template_dialog.h
@@ -18,18 +18,26 @@
*/
+
#include "table_dialog.h"
+class Choice;
+
+
class SaveTemplateDialog : public TableDialog
{
public:
explicit SaveTemplateDialog (wxWindow* parent);
- std::string name () const;
+ boost::optional<std::string> name() const;
private:
void setup_sensitivity ();
void check (wxCommandEvent& ev);
- wxTextCtrl* _name;
+ wxRadioButton* _default;
+ wxRadioButton* _existing;
+ Choice* _existing_name;
+ wxRadioButton* _new;
+ wxTextCtrl* _new_name;
};