digiKam
Digikam::DMessageBox Class Reference

Static Public Member Functions

static bool readMsgBoxShouldBeShown (const QString &dontShowAgainName)
 
static void saveMsgBoxShouldBeShown (const QString &dontShowAgainName, bool value)
 
static int showContinueCancel (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, const QString &dontAskAgainName=QString())
 
static int showContinueCancelList (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, const QStringList &items, const QString &dontAskAgainName=QString())
 
static int showContinueCancelWidget (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, QWidget *const listWidget, const QString &dontAskAgainName)
 
static void showInformationList (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, const QStringList &items, const QString &dontShowAgainName=QString())
 
static void showInformationWidget (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, QWidget *const listWidget, const QString &dontShowAgainName)
 
static int showYesNo (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, const QString &dontAskAgainName=QString())
 
static int showYesNoList (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, const QStringList &items, const QString &dontAskAgainName=QString())
 
static int showYesNoWidget (QMessageBox::Icon icon, QWidget *const parent, const QString &caption, const QString &text, QWidget *const listWidget, const QString &dontAskAgainName=QString())
 

Member Function Documentation

◆ readMsgBoxShouldBeShown()

bool Digikam::DMessageBox::readMsgBoxShouldBeShown ( const QString &  dontShowAgainName)
static
Returns
true if the corresponding message box should be shown.
Parameters
dontShowAgainNamethe name that identify the message box. If empty, this method return false.

References value.

Referenced by showContinueCancelWidget(), showInformationWidget(), and showYesNoWidget().

◆ saveMsgBoxShouldBeShown()

void Digikam::DMessageBox::saveMsgBoxShouldBeShown ( const QString &  dontShowAgainName,
bool  value 
)
static

Save the fact that the message box should not be shown again.

Parameters
dontShowAgainNamethe name that identify the message box. If empty, this method does nothing.
valuethe value chosen in the message box to show it again next time.

References value.

Referenced by showContinueCancelWidget(), showInformationWidget(), and showYesNoWidget().

◆ showContinueCancel()

int Digikam::DMessageBox::showContinueCancel ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
const QString &  dontAskAgainName = QString() 
)
static

Show a message box with Continue and Cancel buttons, and wait user feedback. Return QMessageBox::Yes or QMessageBox::Cancel.

References showContinueCancelList().

Referenced by Digikam::checkSidecarSettings(), Digikam::EditorWindow::promptForOverWrite(), Digikam::EditorWindow::promptUserDelete(), and Digikam::AdvancedMetadataTab::slotResetToDefault().

◆ showContinueCancelList()

int Digikam::DMessageBox::showContinueCancelList ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
const QStringList &  items,
const QString &  dontAskAgainName = QString() 
)
static

Show List of items to process into a message box with Continue and Cancel buttons, and wait user feedback. Return QMessageBox::Yes or QMessageBox::Cancel.

References showContinueCancelWidget().

Referenced by showContinueCancel().

◆ showContinueCancelWidget()

int Digikam::DMessageBox::showContinueCancelWidget ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
QWidget *const  listWidget,
const QString &  dontAskAgainName 
)
static

Show widget into a message box with Continue and Cancel buttons, and wait user feedback. Return QMessageBox::Yes or QMessageBox::Cancel.

References readMsgBoxShouldBeShown(), and saveMsgBoxShouldBeShown().

Referenced by showContinueCancelList(), and Digikam::CameraMessageBox::warningContinueCancelList().

◆ showInformationList()

void Digikam::DMessageBox::showInformationList ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
const QStringList &  items,
const QString &  dontShowAgainName = QString() 
)
static

◆ showInformationWidget()

void Digikam::DMessageBox::showInformationWidget ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
QWidget *const  listWidget,
const QString &  dontShowAgainName 
)
static

Show widget into an informative message box.

References readMsgBoxShouldBeShown(), and saveMsgBoxShouldBeShown().

Referenced by Digikam::CameraMessageBox::informationList(), and showInformationList().

◆ showYesNo()

int Digikam::DMessageBox::showYesNo ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
const QString &  dontAskAgainName = QString() 
)
static

Show a message box with Yes and No buttons, and wait user feedback. Return QMessageBox::Yes or QMessageBox::No.

References showYesNoList().

◆ showYesNoList()

int Digikam::DMessageBox::showYesNoList ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
const QStringList &  items,
const QString &  dontAskAgainName = QString() 
)
static

Show List of items to process into a message box with Yes and No buttons, and wait user feedback. Return QMessageBox::Yes or QMessageBox::No.

References showYesNoWidget().

Referenced by showYesNo().

◆ showYesNoWidget()

int Digikam::DMessageBox::showYesNoWidget ( QMessageBox::Icon  icon,
QWidget *const  parent,
const QString &  caption,
const QString &  text,
QWidget *const  listWidget,
const QString &  dontAskAgainName = QString() 
)
static

Show widget into a message box with Yes and No buttons, and wait user feedback. Return QMessageBox::Yes or QMessageBox::No.

References readMsgBoxShouldBeShown(), and saveMsgBoxShouldBeShown().

Referenced by showYesNoList().


The documentation for this class was generated from the following files: