Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / libs / plasma / uiloader.h
blob8f292be00f1003eb6d4522e78ae2c751eaa42ae7
1 /*
2 * Copyright 2007 Richard J. Moore <rich@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef PLASMA_UILOADER_H
21 #define PLASMA_UILOADER_H
23 #include <QtCore/QObject>
25 #include <plasma/plasma_export.h>
27 class QGraphicsItem;
28 class QGraphicsLayout;
29 class QGraphicsLayoutItem;
31 namespace Plasma
34 class Widget;
36 /**
37 * Dynamically create plasma Widgets and Layouts.
39 * @author Richard J. Moore, <rich@kde.org>
41 class PLASMA_EXPORT UiLoader : public QObject
43 Q_OBJECT
45 public:
46 UiLoader(QObject *parent = 0);
47 virtual ~UiLoader();
49 QStringList availableWidgets() const;
50 Widget *createWidget(const QString &className, Widget *parent = 0);
52 QStringList availableLayouts() const;
53 QGraphicsLayout *createLayout(const QString &className, QGraphicsLayoutItem *parent);
55 private:
56 class Private;
57 Private *const d;
62 #endif // PLASMA_UILOADER_H