X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fnag_dialog.h;h=11fb907f067c4dd0e55a4a3e4b697396fb7c7b86;hp=06f98d967c75766daa6bbb800c717a9c8a3b80f6;hb=fce82196feb1fbf5f89bfca19f383b93328f6239;hpb=bb80004d3201047a33dd251ea6c3f6de2b47cb3b diff --git a/src/wx/nag_dialog.h b/src/wx/nag_dialog.h index 06f98d967..11fb907f0 100644 --- a/src/wx/nag_dialog.h +++ b/src/wx/nag_dialog.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2017 Carl Hetherington + Copyright (C) 2017-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,18 +18,21 @@ */ + #include "lib/config.h" +#include "lib/warnings.h" +DCPOMATIC_DISABLE_WARNINGS #include +DCPOMATIC_ENABLE_WARNINGS -class wxRichTextCtrl; class NagDialog : public wxDialog { public: - static void maybe_nag (wxWindow* parent, Config::Nag nag, wxString message); + static bool maybe_nag (wxWindow* parent, Config::Nag nag, wxString message, bool can_cancel = false); private: - NagDialog (wxWindow* parent, Config::Nag nag, wxString message); + NagDialog (wxWindow* parent, Config::Nag nag, wxString message, bool can_cancel); void shut_up (wxCommandEvent& ev); wxStaticText* _text;