Path: blob/master/Source/QtDialog/WarningMessagesDialog.h
4998 views
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying1file LICENSE.rst or https://cmake.org/licensing for details. */2#pragma once34#include "QCMake.h"5#include <QDialog>6#include <QWidget>78#include "ui_WarningMessagesDialog.h"910/**11* Dialog window for setting the warning message related options.12*/13class WarningMessagesDialog14: public QDialog15, public Ui_MessagesDialog16{17Q_OBJECT1819#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)20using CheckState = Qt::CheckState;21#else22using CheckState = int;23#endif2425public:26WarningMessagesDialog(QWidget* prnt, QCMake* instance);2728private slots:29/**30* Handler for the accept event of the ok/cancel button box.31*/32void doAccept();3334/**35* Handler for checked state changed event of the suppress developer warnings36* checkbox.37*/38void doSuppressDeveloperWarningsChanged(CheckState state);39/**40* Handler for checked state changed event of the suppress deprecated41* warnings checkbox.42*/43void doSuppressDeprecatedWarningsChanged(CheckState state);4445/**46* Handler for checked state changed event of the developer warnings as47* errors checkbox.48*/49void doDeveloperWarningsAsErrorsChanged(CheckState state);50/**51* Handler for checked state changed event of the deprecated warnings as52* errors checkbox.53*/54void doDeprecatedWarningsAsErrorsChanged(CheckState state);5556private:57QCMake* cmakeInstance;5859/**60* Set the initial values of the widgets on this dialog window, using the61* current state of the cache.62*/63void setInitialValues();6465/**66* Setup the signals for the widgets on this dialog window.67*/68void setupSignals();69};707172