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