- wxSizer* buttons = CreateSeparatedButtonSizer (wxOK);
- if (buttons) {
- sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder());
+ if (!ok) {
+ auto b = new CheckBox(this, _("Don't show hints again"));
+ sizer->Add (b, 0, wxALL, 6);
+ b->bind(&HintsDialog::shut_up, this, _1);
+ }
+
+ auto buttons = CreateStdDialogButtonSizer (0);
+ sizer->Add (CreateSeparatedSizer(buttons), wxSizerFlags().Expand().DoubleBorder());
+ wxButton* default_button = nullptr;
+ if (ok) {
+ default_button = new wxButton(this, wxID_OK);
+ buttons->SetAffirmativeButton(default_button);
+ } else {
+ default_button = new wxButton(this, wxID_OK, _("Make DCP"));
+ buttons->SetAffirmativeButton(default_button);
+ buttons->SetNegativeButton (new wxButton (this, wxID_CANCEL, _("Go back")));