2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QDialog>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QPushButton;
|
2010-03-12 16:02:23 +01:00
|
|
|
class QLabel;
|
2008-12-02 12:01:29 +01:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace ExtensionSystem {
|
|
|
|
|
class PluginSpec;
|
|
|
|
|
class PluginView;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class PluginDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2009-01-26 14:30:04 +01:00
|
|
|
explicit PluginDialog(QWidget *parent);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2015-01-12 15:05:10 +01:00
|
|
|
private:
|
2008-12-02 12:01:29 +01:00
|
|
|
void updateButtons();
|
|
|
|
|
void openDetails(ExtensionSystem::PluginSpec *spec);
|
|
|
|
|
void openErrorDetails();
|
2010-03-12 16:02:23 +01:00
|
|
|
void closeDialog();
|
2020-01-21 14:17:05 +01:00
|
|
|
void showInstallWizard();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
ExtensionSystem::PluginView *m_view;
|
|
|
|
|
|
|
|
|
|
QPushButton *m_detailsButton;
|
|
|
|
|
QPushButton *m_errorDetailsButton;
|
2020-01-21 14:17:05 +01:00
|
|
|
QPushButton *m_installButton;
|
2022-06-23 16:30:46 +02:00
|
|
|
bool m_isRestartRequired = false;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Core
|