-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugindialog.h
41 lines (30 loc) · 849 Bytes
/
plugindialog.h
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) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <gui/dialog.hpp>
QT_BEGIN_NAMESPACE
class QPushButton;
QT_END_NAMESPACE
namespace ExtensionSystem {
class PluginSpec;
class PluginView;
} // namespace ExtensionSystem
namespace Plugin {
class PluginDialog : public GUI::Dialog
{
Q_OBJECT
public:
explicit PluginDialog(QWidget *parent);
private:
void updateButtons();
void openDetails(ExtensionSystem::PluginSpec *spec);
void openErrorDetails();
void closeDialog();
void showInstallWizard();
ExtensionSystem::PluginView *m_view;
QPushButton *m_detailsButton;
QPushButton *m_errorDetailsButton;
QPushButton *m_installButton;
bool m_isRestartRequired = false;
};
} // namespace Plugin