33 :
wxScrollingDialog(
nullptr, -1, caption, wxDefaultPosition, wxDefaultSize, wxCAPTION),
34 m_DefRet(defaultReturn)
36 Init(caption, caption, message, icon, style, b1, b2, b3);
43 m_DefRet(defaultReturn)
45 Init(caption,
id, message, icon, style, b1, b2, b3);
55 static_assert(wxMinimumVersion<2,8,12>::eval,
"wxWidgets 2.8.12 is required");
74 cfg->
Write(
wxT(
"/disabled_ret"), disabled);
79 ConfigManagerContainer::StringSet::const_iterator it = disabled.lower_bound(
m_Id);
80 if (it != disabled.end())
91 cfg->
Write(
wxT(
"/disabled_ret"), disabled);
94 else if (it->BeforeLast(
wxT(
':')) ==
m_Id)
114 mainArea->Add(bitmap, 0,
wxALL, 5);
143 bTxt2 = b2.
IsEmpty() ? (style ==
YES_NO ? wxString(
_(
"&No")) : wxString(
_(
"&Cancel"))) : b2;
161 wxSizer* buttonSizer =
nullptr;
185 buttonSizer = buttonArea;
195 buttonSizer->Add(but1, 0,
wxRIGHT, 5);
202 buttonSizer->Add(but2, 0,
wxRIGHT, 5);
209 buttonSizer->Add(but3, 0,
wxRIGHT, 5);
219 SetSizer( outerSizer );
230 int id =
event.GetId();
256 cfg->
Write(
wxT(
"/disabled_ret"), disabled);
wxString F(const wxChar *msg,...)
sprintf-like function
void EndModal(int retCode)
AnnoyingDialog(const wxString &caption, const wxString &message, const wxArtID icon=wxART_INFORMATION, dStyle style=YES_NO, dReturnType defaultReturn=rtYES, const wxString &b1=wxEmptyString, const wxString &b2=wxEmptyString, const wxString &b3=wxEmptyString)
ConfigManager * GetConfigManager(const wxString &name_space) const
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
bool Exists(const wxString &name)
wxSizerItem * Add(wxWindow *window, const wxSizerFlags &flags)
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
wxArtClient wxART_MESSAGE_BOX
void Init(const wxString &caption, const wxString &id, const wxString &message, const wxArtID icon, dStyle style, const wxString &b1, const wxString &b2, const wxString &b3)
LogManager * GetLogManager() const
std::set< wxString > StringSet
const wxString & _(const wxString &string)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
void Log(const wxString &msg, int i=app_log, Logger::level lv=Logger::info)
void SetSizeHints(wxWindow *window)
static wxBitmap GetBitmap(const wxArtID &id, const wxArtClient &client=wxART_OTHER, const wxSize &size=wxDefaultSize)
ConfigManagerContainer::StringSet ReadSSet(const wxString &name)
Dialog that contains a "Don't annoy me" checkbox.