2015-03-10 10:22:38 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2015-03-10 10:22:38 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2015-03-10 10:22:38 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2015-03-10 10:22:38 +01:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2016-01-27 10:14:00 +01:00
|
|
|
#pragma once
|
2015-03-10 10:22:38 +01:00
|
|
|
|
|
|
|
|
#include <projectexplorer/namedwidget.h>
|
|
|
|
|
|
2016-01-27 10:22:07 +01:00
|
|
|
#include <utils/progressindicator.h>
|
|
|
|
|
|
|
|
|
|
#include <QTimer>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QCheckBox;
|
2016-02-11 16:33:15 +01:00
|
|
|
class QLabel;
|
2016-01-27 10:22:07 +01:00
|
|
|
class QPushButton;
|
|
|
|
|
class QTreeView;
|
|
|
|
|
class QSortFilterProxyModel;
|
2016-05-15 15:57:17 +02:00
|
|
|
class QMenu;
|
2016-01-27 10:22:07 +01:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2017-05-14 23:18:31 +02:00
|
|
|
namespace Utils { class FancyLineEdit; }
|
|
|
|
|
|
2015-03-10 10:22:38 +01:00
|
|
|
namespace CMakeProjectManager {
|
2016-01-27 10:22:07 +01:00
|
|
|
|
|
|
|
|
class ConfigModel;
|
|
|
|
|
|
2015-03-10 10:22:38 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class CMakeBuildConfiguration;
|
|
|
|
|
|
|
|
|
|
class CMakeBuildSettingsWidget : public ProjectExplorer::NamedWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc);
|
|
|
|
|
|
2016-02-11 16:33:15 +01:00
|
|
|
void setError(const QString &message);
|
2016-05-12 17:23:03 +02:00
|
|
|
void setWarning(const QString &message);
|
2016-02-11 16:33:15 +01:00
|
|
|
|
2016-01-07 15:22:53 +01:00
|
|
|
private:
|
2016-01-27 10:22:07 +01:00
|
|
|
void updateButtonState();
|
|
|
|
|
void updateAdvancedCheckBox();
|
2017-01-18 16:56:00 +01:00
|
|
|
void updateFromKit();
|
2016-01-27 10:22:07 +01:00
|
|
|
|
2017-09-13 12:23:21 +02:00
|
|
|
void updateSelection(const QModelIndex ¤t, const QModelIndex &previous);
|
2017-09-14 15:36:18 +02:00
|
|
|
QAction *createForceAction(int type, const QModelIndex &idx);
|
2017-09-13 12:23:21 +02:00
|
|
|
|
2017-09-14 13:16:10 +02:00
|
|
|
bool eventFilter(QObject *target, QEvent *event);
|
|
|
|
|
|
2016-01-27 10:22:07 +01:00
|
|
|
CMakeBuildConfiguration *m_buildConfiguration;
|
|
|
|
|
QTreeView *m_configView;
|
|
|
|
|
ConfigModel *m_configModel;
|
|
|
|
|
QSortFilterProxyModel *m_configFilterModel;
|
2017-05-14 23:18:31 +02:00
|
|
|
QSortFilterProxyModel *m_configTextFilterModel;
|
2016-01-27 10:22:07 +01:00
|
|
|
Utils::ProgressIndicator *m_progressIndicator;
|
2016-05-15 15:57:17 +02:00
|
|
|
QPushButton *m_addButton;
|
|
|
|
|
QMenu *m_addButtonMenu;
|
2016-01-27 10:22:07 +01:00
|
|
|
QPushButton *m_editButton;
|
2017-09-27 12:28:11 +02:00
|
|
|
QPushButton *m_unsetButton;
|
2016-01-27 10:22:07 +01:00
|
|
|
QPushButton *m_resetButton;
|
|
|
|
|
QCheckBox *m_showAdvancedCheckBox;
|
|
|
|
|
QPushButton *m_reconfigureButton;
|
|
|
|
|
QTimer m_showProgressTimer;
|
2017-05-14 23:18:31 +02:00
|
|
|
Utils::FancyLineEdit *m_filterEdit;
|
2016-02-11 16:33:15 +01:00
|
|
|
QLabel *m_errorLabel;
|
2016-05-12 17:23:03 +02:00
|
|
|
QLabel *m_warningLabel;
|
2016-02-11 16:33:15 +01:00
|
|
|
QLabel *m_errorMessageLabel;
|
2016-05-12 17:23:03 +02:00
|
|
|
QLabel *m_warningMessageLabel;
|
2015-03-10 10:22:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace CMakeProjectManager
|