cmake/Source/QtDialog/WarningMessagesDialog.h

68 lines
1.6 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2016-03-13 13:35:51 +01:00
#ifndef WarningMessagesDialog_h
#define WarningMessagesDialog_h
2020-02-01 23:06:01 +01:00
#include "QCMake.h"
2016-03-13 13:35:51 +01:00
#include <QDialog>
#include <QWidget>
2016-07-09 11:21:54 +02:00
#include "ui_WarningMessagesDialog.h"
2016-03-13 13:35:51 +01:00
/**
* Dialog window for setting the warning message related options.
*/
2018-08-09 18:06:22 +02:00
class WarningMessagesDialog
: public QDialog
, public Ui_MessagesDialog
2016-03-13 13:35:51 +01:00
{
Q_OBJECT
public:
WarningMessagesDialog(QWidget* prnt, QCMake* instance);
private slots:
/**
* Handler for the accept event of the ok/cancel button box.
*/
void doAccept();
/**
* Handler for checked state changed event of the suppress developer warnings
* checkbox.
*/
void doSuppressDeveloperWarningsChanged(int state);
/**
* Handler for checked state changed event of the suppress deprecated
* warnings checkbox.
*/
void doSuppressDeprecatedWarningsChanged(int state);
/**
* Handler for checked state changed event of the developer warnings as
* errors checkbox.
*/
void doDeveloperWarningsAsErrorsChanged(int state);
/**
* Handler for checked state changed event of the deprecated warnings as
* errors checkbox.
*/
void doDeprecatedWarningsAsErrorsChanged(int state);
private:
QCMake* cmakeInstance;
/**
* Set the initial values of the widgets on this dialog window, using the
* current state of the cache.
*/
void setInitialValues();
/**
* Setup the signals for the widgets on this dialog window.
*/
void setupSignals();
};
#endif /* MessageDialog_h */