not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / shells / common / openwidgetassistant_p.h
blob2cc39d7ea6d912488340fa6c58f67ff796f6a3a5
1 /*
2 * Copyright (C) 2008 Aaron Seigo <aseigo@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library/Lesser General Public License
6 * version 2, or (at your option) any later version, as published by the
7 * Free Software Foundation
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/Lesser 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_OPENWIDGETASSISTANT_P_H
21 #define PLASMA_OPENWIDGETASSISTANT_P_H
23 #include <KAssistantDialog>
24 #include <KService>
26 class KFileWidget;
27 class KListWidget;
28 class QListWidgetItem;
30 namespace Plasma
33 class OpenWidgetAssistant : public KAssistantDialog
35 Q_OBJECT
37 public:
38 enum {
39 PackageStructureRole = Qt::UserRole + 1
42 OpenWidgetAssistant(QWidget *parent);
44 protected Q_SLOTS:
45 void prepPage(KPageWidgetItem *current, KPageWidgetItem *before);
46 void finished();
47 void slotHelpClicked();
48 void slotItemChanged();
50 private:
51 KPageWidgetItem *m_typePage;
52 KPageWidgetItem *m_filePage;
53 KFileWidget *m_fileDialog;
54 QWidget *m_filePageWidget;
55 KListWidget *m_widgetTypeList;
56 KService::Ptr m_packageStructureService;
59 } // Plasma namespace
61 #endif