Files
qt-creator/src/plugins/coreplugin/plugindialog.h

45 lines
871 B
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
2008-12-02 14:09:21 +01:00
#pragma once
2008-12-02 12:01:29 +01:00
#include <QDialog>
2008-12-02 12:01:29 +01:00
QT_BEGIN_NAMESPACE
class QPushButton;
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:
explicit PluginDialog(QWidget *parent);
2008-12-02 12:01:29 +01:00
private:
2008-12-02 12:01:29 +01:00
void updateButtons();
void openDetails(ExtensionSystem::PluginSpec *spec);
void openErrorDetails();
void closeDialog();
void showInstallWizard();
2008-12-02 12:01:29 +01:00
ExtensionSystem::PluginView *m_view;
QPushButton *m_detailsButton;
QPushButton *m_errorDetailsButton;
QPushButton *m_installButton;
bool m_isRestartRequired = false;
2008-12-02 12:01:29 +01:00
};
} // namespace Internal
} // namespace Core