Files
cmake/Source/QtDialog/WarningMessagesDialog.h
T
Matthew Woehlke e0b0ac4295 Diagnostics: Overhaul warnings in cmake-gui
Replace the old (and poorly designed) mechanisms for altering warnings
in cmake-gui with a new warning tree that adaptively handles all
diagnostic categories that are defined.
2026-04-14 12:42:33 -04:00

49 lines
960 B
C++

/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file LICENSE.rst or https://cmake.org/licensing for details. */
#pragma once
#include <map>
#include <QDialog>
#include <QWidget>
#include "ui_WarningMessagesDialog.h"
class QButtonGroup;
class QCMake;
/**
* Dialog window for setting the warning message related options.
*/
class WarningMessagesDialog
: public QDialog
, public Ui_MessagesDialog
{
Q_OBJECT
public:
WarningMessagesDialog(QWidget* prnt, QCMake* instance);
private slots:
/**
* Handler for the accept event of the ok/cancel button box.
*/
void doAccept();
private:
QCMake* cmakeInstance;
std::map<unsigned, QButtonGroup*> buttons;
/**
* 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();
};