1 /**************************************************************************** 2 * MeshLab o o * 3 * A versatile mesh processing toolbox o o * 4 * _ O _ * 5 * Copyright(C) 2005 \/)\/ * 6 * Visual Computing Lab /\/| * 7 * ISTI - Italian National Research Council | * 8 * \ * 9 * All rights reserved. * 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 * This program is distributed in the hope that it will be useful, * 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 19 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * 20 * for more details. * 21 * * 22 ****************************************************************************/ 23 #ifndef PLUGINDIALOG_H 24 #define PLUGINDIALOG_H 25 26 #include <QDialog> 27 #include <QIcon> 28 #include <QTextEdit> 29 #include <QSpacerItem> 30 31 32 class QLabel; 33 class QPushButton; 34 class QStringList; 35 class QTreeWidget; 36 class QTreeWidgetItem; 37 class QGroupBox; 38 39 class PluginDialog : public QDialog 40 { 41 Q_OBJECT 42 43 public: 44 PluginDialog(const QString &path, const QStringList &fileNames,QWidget *parent = 0); 45 46 private: 47 void populateTreeWidget(const QString &path, const QStringList &fileNames); 48 void addItems(QTreeWidgetItem *pluginItem, const QStringList &features); 49 50 QLabel *label; 51 QTreeWidget *treeWidget; 52 QLabel * labelInfo; 53 QPushButton *okButton; 54 QIcon interfaceIcon; 55 QIcon featureIcon; 56 QSpacerItem *spacerItem; 57 QGroupBox *groupBox; 58 // QGroupBox *groupBox; 59 QString pathDirectory; 60 public slots: 61 void displayInfo(QTreeWidgetItem* item,int ncolumn); 62 63 }; 64 65 #endif 66