#include <DlgCheckableMessageBox.h>
|
| static QMessageBox::StandardButton | dialogButtonBoxToMessageBoxButton (QDialogButtonBox::StandardButton) |
| |
| static QDialogButtonBox::StandardButton | question (QWidget *parent, const QString &title, const QString &question, const QString &checkBoxText, bool *checkBoxSetting, QDialogButtonBox::StandardButtons buttons=QDialogButtonBox::Yes|QDialogButtonBox::No, QDialogButtonBox::StandardButton defaultButton=QDialogButtonBox::No) |
| |
| static void | showMessage (const QString &header, const QString &message, bool check=false, const QString &checkText=QString::fromLatin1("Don't show me again")) |
| | convenient show method It shows a dialog with header and message provided and a checkbox in check state with the message provided. More...
|
| |
| static void | showMessage (const QString &header, const QString &message, const QString &prefPath, const QString ¶mEntry, bool entryDefault=false, bool check=false, const QString &checkText=QString::fromLatin1("Don't show me again")) |
| | Same as showMessage above, but it checks the specific preference path and parameter provided, defaulting to entryDefault value if the parameter is not present. More...
|
| |
◆ DlgCheckableMessageBox()
| Gui::Dialog::DlgCheckableMessageBox::DlgCheckableMessageBox |
( |
QWidget * |
parent | ) |
|
|
explicit |
◆ ~DlgCheckableMessageBox()
| Gui::Dialog::DlgCheckableMessageBox::~DlgCheckableMessageBox |
( |
| ) |
|
|
virtual |
◆ accept()
| void Gui::Dialog::DlgCheckableMessageBox::accept |
( |
| ) |
|
|
virtual |
◆ checkBoxText()
| QString Gui::Dialog::DlgCheckableMessageBox::checkBoxText |
( |
| ) |
const |
◆ clickedButton()
| QAbstractButton * Gui::Dialog::DlgCheckableMessageBox::clickedButton |
( |
| ) |
const |
◆ clickedStandardButton()
| QDialogButtonBox::StandardButton Gui::Dialog::DlgCheckableMessageBox::clickedStandardButton |
( |
| ) |
const |
◆ defaultButton()
| QDialogButtonBox::StandardButton Gui::Dialog::DlgCheckableMessageBox::defaultButton |
( |
| ) |
const |
◆ dialogButtonBoxToMessageBoxButton()
| QMessageBox::StandardButton Gui::Dialog::DlgCheckableMessageBox::dialogButtonBoxToMessageBoxButton |
( |
QDialogButtonBox::StandardButton |
db | ) |
|
|
static |
◆ iconPixmap()
| QPixmap Gui::Dialog::DlgCheckableMessageBox::iconPixmap |
( |
| ) |
const |
◆ isChecked()
| bool Gui::Dialog::DlgCheckableMessageBox::isChecked |
( |
| ) |
const |
◆ question()
| QDialogButtonBox::StandardButton Gui::Dialog::DlgCheckableMessageBox::question |
( |
QWidget * |
parent, |
|
|
const QString & |
title, |
|
|
const QString & |
question, |
|
|
const QString & |
checkBoxText, |
|
|
bool * |
checkBoxSetting, |
|
|
QDialogButtonBox::StandardButtons |
buttons = QDialogButtonBox::Yes|QDialogButtonBox::No, |
|
|
QDialogButtonBox::StandardButton |
defaultButton = QDialogButtonBox::No |
|
) |
| |
|
static |
References buttons, checkBoxText, clickedStandardButton(), defaultButton, isChecked, question(), setCheckBoxText(), setChecked(), setDefaultButton(), setIconPixmap(), setStandardButtons(), and setText().
Referenced by question().
◆ reject()
| void Gui::Dialog::DlgCheckableMessageBox::reject |
( |
| ) |
|
|
virtual |
References App::GetApplication(), App::Application::GetParameterGroupByPath(), isChecked, and ParameterGrp::SetBool().
Referenced by draftguitools.gui_hatch.Draft_Hatch_TaskPanel::accept(), draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelCmd::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelEdit::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), femexamples.examplesgui.FemExamples::clicked(), DlgCheckableMessageBox(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
◆ setCheckBoxText()
| void Gui::Dialog::DlgCheckableMessageBox::setCheckBoxText |
( |
const QString & |
t | ) |
|
◆ setChecked()
| void Gui::Dialog::DlgCheckableMessageBox::setChecked |
( |
bool |
s | ) |
|
◆ setDefaultButton()
| void Gui::Dialog::DlgCheckableMessageBox::setDefaultButton |
( |
QDialogButtonBox::StandardButton |
s | ) |
|
◆ setIconPixmap()
| void Gui::Dialog::DlgCheckableMessageBox::setIconPixmap |
( |
const QPixmap & |
p | ) |
|
◆ setPrefEntry()
| void Gui::Dialog::DlgCheckableMessageBox::setPrefEntry |
( |
const QString & |
entry | ) |
|
◆ setPrefPath()
| void Gui::Dialog::DlgCheckableMessageBox::setPrefPath |
( |
const QString & |
path | ) |
|
◆ setStandardButtons()
| void Gui::Dialog::DlgCheckableMessageBox::setStandardButtons |
( |
QDialogButtonBox::StandardButtons |
s | ) |
|
◆ setText()
| void Gui::Dialog::DlgCheckableMessageBox::setText |
( |
const QString & |
t | ) |
|
◆ showMessage() [1/2]
| void Gui::Dialog::DlgCheckableMessageBox::showMessage |
( |
const QString & |
header, |
|
|
const QString & |
message, |
|
|
bool |
check = false, |
|
|
const QString & |
checkText = QString::fromLatin1("Don't show me again") |
|
) |
| |
|
static |
convenient show method It shows a dialog with header and message provided and a checkbox in check state with the message provided.
It uses a parameter in path "User parameter:BaseApp/CheckMessages" derived from the header test, defaulting to false, to store the status of the checkbox, when the user exits the modal dialog.
References DlgCheckableMessageBox(), App::GetApplication(), ParameterGrp::GetBool(), Gui::getMainWindow(), App::Application::GetParameterGroupByPath(), setCheckBoxText(), setChecked(), setDefaultButton(), setIconPixmap(), setPrefEntry(), setStandardButtons(), setText(), and Gui::Dialog::toParamEntry().
Referenced by SketcherGui::notifyConstraintSubstitutions(), and Gui::Dialog::DocumentRecovery::on_buttonCleanup_clicked().
◆ showMessage() [2/2]
| void Gui::Dialog::DlgCheckableMessageBox::showMessage |
( |
const QString & |
header, |
|
|
const QString & |
message, |
|
|
const QString & |
prefPath, |
|
|
const QString & |
paramEntry, |
|
|
bool |
entryDefault = false, |
|
|
bool |
check = false, |
|
|
const QString & |
checkText = QString::fromLatin1("Don't show me again") |
|
) |
| |
|
static |
◆ standardButtons()
| QDialogButtonBox::StandardButtons Gui::Dialog::DlgCheckableMessageBox::standardButtons |
( |
| ) |
const |
◆ text()
| QString Gui::Dialog::DlgCheckableMessageBox::text |
( |
| ) |
const |
◆ buttons
| QDialogButtonBox::StandardButtons Gui::Dialog::DlgCheckableMessageBox::buttons |
|
readwrite |
◆ checkBoxText
| QString Gui::Dialog::DlgCheckableMessageBox::checkBoxText |
|
readwrite |
◆ defaultButton
| QDialogButtonBox::StandardButton Gui::Dialog::DlgCheckableMessageBox::defaultButton |
|
readwrite |
◆ iconPixmap
| QPixmap Gui::Dialog::DlgCheckableMessageBox::iconPixmap |
|
readwrite |
◆ isChecked
| bool Gui::Dialog::DlgCheckableMessageBox::isChecked |
|
readwrite |
◆ text
| QString Gui::Dialog::DlgCheckableMessageBox::text |
|
readwrite |
The documentation for this class was generated from the following files:
- FreeCAD/src/Gui/DlgCheckableMessageBox.h
- FreeCAD/src/Gui/DlgCheckableMessageBox.cpp