blob: faae7c1185d899f67170ccd7749129cdb070cabb (
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
|
// 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 <utils/id.h>
#include <utils/fileutils.h>
#include <utils/optional.h>
#include <QWidget>
namespace MesonProjectManager {
namespace Internal {
namespace Ui { class ToolItemSettings; }
class ToolTreeItem;
class ToolItemSettings : public QWidget
{
Q_OBJECT
public:
explicit ToolItemSettings(QWidget *parent = nullptr);
~ToolItemSettings();
void load(ToolTreeItem *item);
void store();
Q_SIGNAL void applyChanges(Utils::Id itemId, const QString &name, const Utils::FilePath &exe);
private:
Ui::ToolItemSettings *ui;
Utils::optional<Utils::Id> m_currentId{Utils::nullopt};
};
} // namespace Internal
} // namespace MesonProjectManager
|