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