2009-02-01 11:37:07 -05:00
|
|
|
#ifndef _PLUGINS_PAGE_H_
|
|
|
|
#define _PLUGINS_PAGE_H_
|
|
|
|
|
|
|
|
//#include <QFileDialog>
|
|
|
|
|
2009-02-05 10:29:43 -05:00
|
|
|
|
2009-02-01 11:37:07 -05:00
|
|
|
|
|
|
|
#include "mainpage.h"
|
|
|
|
|
2009-02-05 10:29:43 -05:00
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QString>
|
|
|
|
#include <QDir>
|
|
|
|
|
|
|
|
//class QGroupBox;
|
2009-02-01 11:37:07 -05:00
|
|
|
class QVBoxLayout;
|
|
|
|
class QTabWidget;
|
|
|
|
class QFrame;
|
|
|
|
class QLabel;
|
2009-02-05 10:29:43 -05:00
|
|
|
class QTextEdit;
|
|
|
|
class QSpacerItem;
|
|
|
|
|
2009-02-01 11:37:07 -05:00
|
|
|
class QScriptEngine;
|
|
|
|
|
2009-02-05 10:29:43 -05:00
|
|
|
class PluginManagerWidget;
|
|
|
|
class PluginManager;
|
|
|
|
|
2009-02-01 11:37:07 -05:00
|
|
|
class PluginsPage : public MainPage
|
|
|
|
{
|
2009-02-05 10:29:43 -05:00
|
|
|
Q_OBJECT
|
2009-02-01 11:37:07 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
/** Default Constructor */
|
2009-02-05 10:29:43 -05:00
|
|
|
PluginsPage(QWidget *parent = 0);
|
2009-02-01 11:37:07 -05:00
|
|
|
/** Default Destructor */
|
2009-02-05 10:29:43 -05:00
|
|
|
virtual ~PluginsPage() ;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void loadDone(QString pluginName, QWidget* pluginWidget);
|
|
|
|
void loadFailed(QString pluginName, QString errorMessage);
|
|
|
|
|
|
|
|
void installComplete(QString pluginName);
|
|
|
|
void installFailed(QString pluginFileName, QString errorMessage);
|
|
|
|
|
|
|
|
void unloadPlugin(QString pluginName);
|
2009-02-01 11:37:07 -05:00
|
|
|
|
|
|
|
protected:
|
2009-02-05 10:29:43 -05:00
|
|
|
QVBoxLayout* pluginPageLayout;
|
|
|
|
QGroupBox* pluginPanel;
|
|
|
|
QVBoxLayout* pluginPanelLayout;
|
|
|
|
|
|
|
|
QTextEdit* errlogConsole;
|
|
|
|
|
|
|
|
// QPushButton* instPlgButton;
|
|
|
|
// QHBoxLayout* insPlgLay;
|
|
|
|
// QSpacerItem* instPlgSpacer;
|
|
|
|
|
2009-02-01 11:37:07 -05:00
|
|
|
|
2009-02-05 10:29:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
QTabWidget* pluginTabs ;
|
|
|
|
QVBoxLayout* pmLay;
|
|
|
|
QFrame* pmFrame;
|
|
|
|
QSpacerItem* pmSpacer;
|
|
|
|
QString errorStrLog;
|
|
|
|
PluginManagerWidget* pluginManagerWidget;
|
|
|
|
// QFrame* pluginControlsContainer;
|
|
|
|
PluginManager* pluginManager;
|
|
|
|
//QScriptEngine* engine;
|
2009-02-01 11:37:07 -05:00
|
|
|
|
2009-02-05 10:29:43 -05:00
|
|
|
int loadBinaryPlugins(const QDir directory);//tring& errorString);
|
|
|
|
int loadScriptPlugins(const QString directory, QString& errorString);
|
|
|
|
|
|
|
|
int loadBinaryPlugin(const QString fileName, QString& errorString);
|
|
|
|
int loadScriptPlugin(const QString dirName, QString& errorString);
|
2009-02-01 11:37:07 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2009-02-05 10:29:43 -05:00
|
|
|
|