Code::Blocks
SVN r11506
|
Dialog that contains a "Don't annoy me" checkbox. More...
#include <annoyingdialog.h>
Public Types | |
enum | dStyle { OK, YES_NO, YES_NO_CANCEL, OK_CANCEL, ONE_BUTTON, TWO_BUTTONS, THREE_BUTTONS } |
enum | dReturnType { rtINVALID = -1, rtSAVE_CHOICE, rtONE, rtTWO, rtTHREE, rtYES, rtNO, rtOK, rtCANCEL } |
Public Member Functions | |
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) | |
AnnoyingDialog (const wxString &caption, const wxString &id, const wxString &message, const wxArtID icon, dStyle style, dReturnType defaultReturn, const wxString &b1=wxEmptyString, const wxString &b2=wxEmptyString, const wxString &b3=wxEmptyString) | |
~AnnoyingDialog () override | |
int | ShowModal () override |
Public Member Functions inherited from wxScrollingDialog | |
wxScrollingDialog () | |
wxScrollingDialog (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("dialogBox")) | |
Private Member Functions | |
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) |
void | OnButton (wxCommandEvent &event) |
Private Attributes | |
wxString | m_Id |
wxCheckBox * | m_CheckBox |
dReturnType | m_DefRet |
bool | m_DontAnnoy |
Dialog that contains a "Don't annoy me" checkbox.
Using this dialog, the user can select not to display this dialog again. The dialog can be then re-enabled in "Settings->Environment->Dialogs"...
Definition at line 22 of file annoyingdialog.h.
Enumerator | |
---|---|
rtINVALID | |
rtSAVE_CHOICE | |
rtONE | |
rtTWO | |
rtTHREE | |
rtYES | |
rtNO | |
rtOK | |
rtCANCEL |
Definition at line 36 of file annoyingdialog.h.
Enumerator | |
---|---|
OK | |
YES_NO | |
YES_NO_CANCEL | |
OK_CANCEL | |
ONE_BUTTON | |
TWO_BUTTONS | |
THREE_BUTTONS |
Definition at line 25 of file annoyingdialog.h.
AnnoyingDialog::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 |
||
) |
Definition at line 30 of file annoyingdialog.cpp.
AnnoyingDialog::AnnoyingDialog | ( | const wxString & | caption, |
const wxString & | id, | ||
const wxString & | message, | ||
const wxArtID | icon, | ||
dStyle | style, | ||
dReturnType | defaultReturn, | ||
const wxString & | b1 = wxEmptyString , |
||
const wxString & | b2 = wxEmptyString , |
||
const wxString & | b3 = wxEmptyString |
||
) |
Definition at line 39 of file annoyingdialog.cpp.
References Init(), wxCAPTION, wxDefaultPosition, and wxDefaultSize.
|
inlineoverride |
Definition at line 55 of file annoyingdialog.h.
References HTMLTags::b1, and wxDialog::ShowModal().
|
private |
Definition at line 48 of file annoyingdialog.cpp.
References _(), _T, wxBoxSizer::Add(), wxStdDialogButtonSizer::AddButton(), HTMLTags::b1, cbThrow, ConfigManager::Exists(), F(), Manager::Get(), wxArtProvider::GetBitmap(), Manager::GetConfigManager(), Manager::GetLogManager(), wxString::IsEmpty(), LogManager::Log(), m_CheckBox, m_DefRet, m_DontAnnoy, m_Id, OK, OK_CANCEL, ONE_BUTTON, ConfigManager::ReadSSet(), wxStdDialogButtonSizer::Realize(), rtCANCEL, rtINVALID, rtNO, rtOK, rtONE, rtSAVE_CHOICE, rtTHREE, rtTWO, rtYES, wxBoxSizer::SetSizeHints(), THREE_BUTTONS, TWO_BUTTONS, ConfigManager::Write(), wxALIGN_CENTER, wxALIGN_CENTER_HORIZONTAL, wxALIGN_CENTER_VERTICAL, wxALIGN_LEFT, wxALL, wxART_MESSAGE_BOX, wxBOTTOM, wxDefaultPosition, wxDefaultSize, wxGROW, wxHORIZONTAL, wxID_ANY, wxID_CANCEL, wxID_NO, wxID_OK, wxID_YES, wxLEFT, wxRIGHT, wxT, wxTOP, wxVERTICAL, YES_NO, and YES_NO_CANCEL.
Referenced by AnnoyingDialog().
|
private |
Definition at line 225 of file annoyingdialog.cpp.
References _T, cbThrow, ScriptBindings::EndModal(), F(), Manager::Get(), Manager::GetConfigManager(), wxCheckBox::IsChecked(), m_CheckBox, m_DefRet, m_Id, ConfigManager::ReadSSet(), rtCANCEL, rtNO, rtOK, rtSAVE_CHOICE, rtYES, ConfigManager::Write(), wxID_CANCEL, wxID_NO, wxID_OK, wxID_YES, and wxT.
|
overridevirtual |
Reimplemented from wxDialog.
Definition at line 261 of file annoyingdialog.cpp.
References m_DefRet, m_DontAnnoy, PlaceWindow(), and wxDialog::ShowModal().
Referenced by RecentItemsList::AskToRemoveFileFromHistory(), DebuggerGDB::CheckIfConsoleIsClosed(), UsrGlblMgrEditDialog::DeleteSet(), UsrGlblMgrEditDialog::DeleteVar(), MainFrame::DoCheckCurrentLayoutForChanges(), WorkspaceLoader::LoadLayout(), CompilerOptionsDlg::OnAdvancedClick(), CompilerGCC::OnClean(), CompilerGCC::OnCleanAll(), cbDebuggerPlugin::OnCompilerFinished(), ProjectOptionsDlg::OnExportTargetClick(), CompilerOptionsDlg::OnOptionChanged(), cbDebuggerPlugin::OnProjectClosed(), CompilerGCC::OnRebuild(), CompilerGCC::OnRebuildAll(), CompilerOptionsDlg::OnTreeSelectionChanging(), ProjectLayoutLoader::Open(), ProjectLoader::Open(), CompilerOptionsDlg::OptionsToText(), QuoteString(), and FindReplace::ReplaceInFiles().
|
private |
Definition at line 63 of file annoyingdialog.h.
Referenced by Init(), and OnButton().
|
private |
Definition at line 64 of file annoyingdialog.h.
Referenced by Init(), OnButton(), and ShowModal().
|
private |
Definition at line 65 of file annoyingdialog.h.
Referenced by Init(), and ShowModal().
|
private |
Definition at line 62 of file annoyingdialog.h.
Referenced by Init(), and OnButton().