blob: d68c9a7eeb6939e7d1ca074f2d50515d1ddd434f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (C) 2020 Alexis Jeandet.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "exewrappers/mesonwrapper.h"
#include "toolitemsettings.h"
#include "toolsmodel.h"
#include <coreplugin/dialogs/ioptionspage.h>
#include <QCoreApplication>
#include <QTabWidget>
namespace MesonProjectManager {
namespace Internal {
namespace Ui { class ToolsSettingsWidget; }
class ToolTreeItem;
class ToolsSettingsWidget final : public Core::IOptionsPageWidget
{
Q_DECLARE_TR_FUNCTIONS(MesonProjectManager::Internal::ToolsSettingsWidget)
void apply() final;
public:
explicit ToolsSettingsWidget();
~ToolsSettingsWidget();
private:
void cloneMesonTool();
void removeMesonTool();
void currentMesonToolChanged(const QModelIndex &newCurrent);
Ui::ToolsSettingsWidget *ui;
ToolsModel m_model;
ToolItemSettings *m_itemSettings;
ToolTreeItem *m_currentItem = nullptr;
};
} // namespace Internal
} // namespace MesonProjectManager
|