source: projectionDesigner/trunk/projdesigner/include/gui/plugindialog.h @ 311

Last change on this file since 311 was 4, checked in by Torben Dannhauer, 15 years ago
File size: 1.8 KB
RevLine 
[4]1/****************************************************************************
2**
3** Copyright (C) 2005-2006 Trolltech ASA. All rights reserved.
4**
5** This file is part of the example classes of the Qt Toolkit.
6**
7** This file may be used under the terms of the GNU General Public
8** License version 2.0 as published by the Free Software Foundation
9** and appearing in the file LICENSE.GPL included in the packaging of
10** this file.  Please review the following information to ensure GNU
11** General Public Licensing requirements will be met:
12** http://www.trolltech.com/products/qt/opensource.html
13**
14** If you are unsure which license is appropriate for your use, please
15** review the following information:
16** http://www.trolltech.com/products/qt/licensing.html or contact the
17** sales department at sales@trolltech.com.
18**
19** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21**
22****************************************************************************/
23
24#ifndef PLUGINDIALOG_H
25#define PLUGINDIALOG_H
26
27#include <QDialog>
28#include <QIcon>
29
30class QLabel;
31class QPushButton;
32class QStringList;
33class QTreeWidget;
34class QTreeWidgetItem;
35
36class PluginDialog : public QDialog
37{
38    Q_OBJECT
39
40public:
41    PluginDialog(const QString &path, const QStringList &fileNames,
42                 QWidget *parent = 0);
43
44private:
45    void findPlugins(const QString &path, const QStringList &fileNames);
46    void populateTreeWidget(QObject *plugin, const QString &text);
47    void addItems(QTreeWidgetItem *pluginItem, const char *interfaceName,
48                  const QStringList &features);
49
50    QLabel *label;
51    QTreeWidget *treeWidget;
52    QPushButton *okButton;
53    QIcon interfaceIcon;
54    QIcon featureIcon;
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.