2019-03-04 17:29:57 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2019 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** 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
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
|
|
|
|
|
2021-03-23 15:01:37 +01:00
|
|
|
#include <utils/aspects.h>
|
2019-03-04 17:29:57 +01:00
|
|
|
|
|
|
|
|
namespace QmakeProjectManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2021-03-31 12:37:34 +02:00
|
|
|
class QmakeSettings : public Utils::AspectContainer
|
2019-03-04 17:29:57 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2021-03-23 15:01:37 +01:00
|
|
|
|
2019-03-04 17:29:57 +01:00
|
|
|
public:
|
|
|
|
|
static QmakeSettings &instance();
|
|
|
|
|
static bool warnAgainstUnalignedBuildDir();
|
2019-03-06 10:44:28 +01:00
|
|
|
static bool alwaysRunQmake();
|
2020-10-15 17:07:00 +02:00
|
|
|
static bool runSystemFunction();
|
2019-03-04 17:29:57 +01:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void settingsChanged();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QmakeSettings();
|
2021-03-23 15:01:37 +01:00
|
|
|
friend class SettingsWidget;
|
2019-03-04 17:29:57 +01:00
|
|
|
|
2021-03-23 15:01:37 +01:00
|
|
|
Utils::BoolAspect m_warnAgainstUnalignedBuildDir;
|
|
|
|
|
Utils::BoolAspect m_alwaysRunQmake;
|
|
|
|
|
Utils::BoolAspect m_ignoreSystemFunction;
|
2019-03-04 17:29:57 +01:00
|
|
|
};
|
|
|
|
|
|
2020-01-27 08:58:38 +01:00
|
|
|
class QmakeSettingsPage final : public Core::IOptionsPage
|
2019-03-04 17:29:57 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
QmakeSettingsPage();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmakeProjectManager
|