00001 /********************************************************************** 00002 PluginDialog - Dialog for Plugin Manager 00003 00004 Copyright (C) 2008 by Tim Vandermeersch 00005 00006 This file is part of the Avogadro molecular editor project. 00007 For more information, see <http://avogadro.sourceforge.net/> 00008 00009 Some code is based on Open Babel 00010 For more information, see <http://openbabel.sourceforge.net/> 00011 00012 This program is free software; you can redistribute it and/or modify 00013 it under the terms of the GNU General Public License as published by 00014 the Free Software Foundation version 2 of the License. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 ***********************************************************************/ 00021 00022 #ifndef PLUGINDIALOG_H 00023 #define PLUGINDIALOG_H 00024 00025 #include "pluginlistview.h" 00026 #include "ui_plugindialog.h" 00027 00028 #include <QDialog> 00029 #include <QModelIndex> 00030 00031 namespace Avogadro 00032 { 00033 class PluginDialog : public QDialog 00034 { 00035 Q_OBJECT 00036 00037 public: 00039 explicit PluginDialog( QWidget *parent = 0, Qt::WindowFlags f = 0 ); 00041 ~PluginDialog(); 00042 00043 public Q_SLOTS: 00044 void accept(); 00045 void selectPluginType( int index ); 00046 void selectPlugin( PluginItem * ); 00047 00048 Q_SIGNALS: 00049 void reloadPlugins(); 00050 00051 private: 00052 Ui::PluginDialog ui; 00053 }; 00054 } 00055 00056 #endif