23 #include "../core/system/eptexception.h"
29 setCheckBox(
new QCheckBox(tr(
"Do not show again.")));
34 setWindowTitle(tr(
"Clear pitch markers"));
35 setStandardButtons(QMessageBox::Yes | QMessageBox::Cancel);
38 setWindowTitle(tr(
"Not all keys recorded"));
39 setStandardButtons(QMessageBox::Ok);
42 setWindowTitle(tr(
"Tuning curve not calculated"));
43 setStandardButtons(QMessageBox::Ok);
46 setWindowTitle(tr(
"Tuning curve must be recalculated"));
47 setStandardButtons(QMessageBox::Ok);
50 setWindowTitle(tr(
"Question"));
51 setStandardButtons(QMessageBox::Ok);
58 setText(tr(
"Do you really want to clear all pitch markers? This can not be undone!"));
61 setText(tr(
"Not all keys have been recorded. Switch the mode and record them."));
64 setText(tr(
"The tuning curve has not been calculated. Switch the mode and calculate it."));
67 setText(tr(
"There are missing frequencies in the calculated tuning curve. Recalculate to fix this."));
86 return QMessageBox::Accepted;
92 if (r == QMessageBox::Rejected || r == QMessageBox::Cancel) {
95 if (b.checkBox()->isChecked()) {
99 return QMessageBox::Accepted;
A MessageBox with a QCheckBox to remember the decision of the user.
~DoNotShowAgainMessageBox()
Destructor.
void setDoNotShowAgainMessageBox(int id, bool doNotShowAgain)
Sets a AutoClosingMessageBox state whether to show again.
The tuning curve has to be recalculated.
DoNotShowAgainMessageBox(Type type, const QString &text, QWidget *parent)
Private constructor.
#define EPT_EXCEPT(num, desc)
bool doNotShowAgainMessageBox(int id) const
Getter function to check if the given AutoClosingMessageBox shall not be shown again.
Not all keys have been recorded.
static int show(Type type, const QString text, QWidget *parent=nullptr)
Show a message box if the user didnt check the QCheckBox.
The tuning curve has not been calculated.
static bool doNotShowAgain(Type type)
static SettingsForQt & getSingleton()
Getter function for the singleton.
Type
The type and unique id for the message box.