PluginDialog.hh 572 Bytes
Newer Older
Dirk Wilden's avatar
Dirk Wilden committed
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
#include "ui_pluginDialog.hh"
#include <QtGui>

#include <OpenFlipper/Core/PluginInfo.hh>

class PluginDialog : public QDialog, public Ui::PluginDialog
{
  Q_OBJECT

  public:
    PluginDialog(std::vector<PluginInfo>& _plugins, QWidget *parent = 0);

    int exec();

  private:
    std::vector<PluginInfo>& plugins_;
    QVector< QFrame* > frames_;

  private slots:
    void slotUnload();

  protected:
    void closeEvent(QCloseEvent *event);

  signals:
    void unloadPlugin(QString _name);
    void dontLoadPlugins(QStringList _dontLoad);
    void loadPlugin();
};