![]() |
KiCad PCB EDA Suite
|
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling. More...
#include <confirm.h>
Public Types | |
enum | KD_TYPE { KD_NONE, KD_INFO, KD_QUESTION, KD_WARNING, KD_ERROR } |
< Dialog type. Selects appropriate icon and default dialog title More... | |
Public Member Functions | |
KIDIALOG (wxWindow *aParent, const wxString &aMessage, const wxString &aCaption, long aStyle=wxOK) | |
KIDIALOG (wxWindow *aParent, const wxString &aMessage, KD_TYPE aType, const wxString &aCaption="") | |
bool | SetOKCancelLabels (const ButtonLabel &ok, const ButtonLabel &cancel) override |
Shows the 'do not show again' checkbox. More... | |
void | DoNotShowCheckbox (wxString file, int line) |
Checks the 'do not show again' setting for the dialog. More... | |
bool | DoNotShowAgain () const |
void | ForceShowAgain () |
bool | Show (bool aShow=true) override |
int | ShowModal () override |
Static Protected Member Functions | |
static wxString | getCaption (KD_TYPE aType, const wxString &aCaption) |
static long | getStyle (KD_TYPE aType) |
Protected Attributes | |
unsigned long | m_hash |
bool | m_cancelMeansCancel |
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
enum KIDIALOG::KD_TYPE |
< Dialog type. Selects appropriate icon and default dialog title
Enumerator | |
---|---|
KD_NONE | |
KD_INFO | |
KD_QUESTION | |
KD_WARNING | |
KD_ERROR |
Definition at line 49 of file confirm.h.
KIDIALOG::KIDIALOG | ( | wxWindow * | aParent, |
const wxString & | aMessage, | ||
const wxString & | aCaption, | ||
long | aStyle = wxOK |
||
) |
Definition at line 37 of file confirm.cpp.
KIDIALOG::KIDIALOG | ( | wxWindow * | aParent, |
const wxString & | aMessage, | ||
KD_TYPE | aType, | ||
const wxString & | aCaption = "" |
||
) |
Definition at line 46 of file confirm.cpp.
bool KIDIALOG::DoNotShowAgain | ( | ) | const |
Definition at line 63 of file confirm.cpp.
References doNotShowAgainDlgs, and m_hash.
Referenced by DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), and DIALOG_CONFIGURE_PATHS::OnGridCellChanging().
void KIDIALOG::DoNotShowCheckbox | ( | wxString | file, |
int | line | ||
) |
Checks the 'do not show again' setting for the dialog.
Definition at line 55 of file confirm.cpp.
Referenced by DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange(), PCB_BASE_EDIT_FRAME::createNewLibrary(), SYMBOL_EDIT_FRAME::CreateNewSymbol(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), SYMBOL_EDIT_FRAME::ExportSymbol(), ZONE_FILLER::Fill(), KICAD_MANAGER_FRAME::ImportNonKiCadProject(), SYMBOL_EDIT_FRAME::ImportSymbol(), ROUTER_TOOL::InlineBreakTrack(), LEGACY_PLUGIN::loadZONE_CONTAINER(), KICAD_MANAGER_CONTROL::NewFromTemplate(), DIALOG_CONFIGURE_PATHS::OnGridCellChanging(), PCB_PARSER::parseZONE(), ROUTER_TOOL::performDragging(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), SYMBOL_EDIT_FRAME::saveSymbolAs(), PNS_KICAD_IFACE_BASE::syncZone(), DIALOG_GENCAD_EXPORT_OPTIONS::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), and DIALOG_SIM_SETTINGS::TransferDataFromWindow().
void KIDIALOG::ForceShowAgain | ( | ) |
Definition at line 69 of file confirm.cpp.
References doNotShowAgainDlgs, and m_hash.
|
staticprotected |
Definition at line 119 of file confirm.cpp.
References _, KD_ERROR, KD_INFO, KD_NONE, KD_QUESTION, and KD_WARNING.
|
staticprotected |
Definition at line 137 of file confirm.cpp.
References KD_ERROR, KD_INFO, KD_NONE, KD_QUESTION, and KD_WARNING.
|
inlineoverride |
Shows the 'do not show again' checkbox.
Definition at line 56 of file confirm.h.
References cancel, and m_cancelMeansCancel.
Referenced by DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange(), ZONE_FILLER::Fill(), and DIALOG_SIM_SETTINGS::TransferDataFromWindow().
|
override |
Definition at line 75 of file confirm.cpp.
References doNotShowAgainDlgs, m_cancelMeansCancel, and m_hash.
|
override |
Definition at line 99 of file confirm.cpp.
References doNotShowAgainDlgs, m_cancelMeansCancel, and m_hash.
Referenced by DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange(), PCB_BASE_EDIT_FRAME::createNewLibrary(), SYMBOL_EDIT_FRAME::CreateNewSymbol(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), SYMBOL_EDIT_FRAME::ExportSymbol(), ZONE_FILLER::Fill(), KICAD_MANAGER_FRAME::ImportNonKiCadProject(), SYMBOL_EDIT_FRAME::ImportSymbol(), ROUTER_TOOL::InlineBreakTrack(), LEGACY_PLUGIN::loadZONE_CONTAINER(), KICAD_MANAGER_CONTROL::NewFromTemplate(), DIALOG_CONFIGURE_PATHS::OnGridCellChanging(), PCB_PARSER::parseZONE(), ROUTER_TOOL::performDragging(), SYMBOL_EDITOR_PIN_TOOL::PlacePin(), PCB_PLUGIN::Save(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), SYMBOL_EDIT_FRAME::saveSymbolAs(), PNS_KICAD_IFACE_BASE::syncZone(), DIALOG_GENCAD_EXPORT_OPTIONS::TransferDataFromWindow(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), and DIALOG_SIM_SETTINGS::TransferDataFromWindow().
|
protected |
Definition at line 79 of file confirm.h.
Referenced by SetOKCancelLabels(), Show(), and ShowModal().
|
protected |
Definition at line 78 of file confirm.h.
Referenced by DoNotShowAgain(), DoNotShowCheckbox(), ForceShowAgain(), Show(), and ShowModal().