mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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.
49 lines
960 B
C++
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();
|
|
};
|