35 lines
793 B
C++
35 lines
793 B
C++
#ifndef PLUGINDIALOG_H
|
|
#define PLUGINDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QDir>
|
|
#include <QGridLayout>
|
|
#include <QHeaderView>
|
|
#include <QLabel>
|
|
#include <QPluginLoader>
|
|
#include <QPushButton>
|
|
#include <QTreeWidget>
|
|
|
|
class PluginDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PluginDialog(const QString &path, const QStringList &fileNames,
|
|
QWidget *parent = nullptr);
|
|
|
|
private:
|
|
void findPlugins(const QString &path, const QStringList &fileNames);
|
|
void populateTreeWidget(QObject *plugin, const QString &text);
|
|
void addItems(QTreeWidgetItem *pluginItem, const char *interfaceName,
|
|
const QString &feature);
|
|
|
|
QLabel *label;
|
|
QTreeWidget *treeWidget;
|
|
QPushButton *okButton;
|
|
QIcon interfaceIcon;
|
|
QIcon featureIcon;
|
|
};
|
|
|
|
#endif
|