add more spacing
[personal-kdebase.git] / apps / kappfinder / toplevel.h
blob539adf27b21a3381c699b4e3fe1d2d721f9f2f5f
1 /*
2 KAppfinder, the KDE application finder
4 Copyright (c) 2002-2003 Tobias Koenig <tokoe@kde.org>
6 Based on code written by Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of version 2 of the GNU General Public
10 License as published by the Free Software Foundation.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef TOPLEVEL_H
23 #define TOPLEVEL_H
25 #include <kdialog.h>
27 #include <QtCore/QStringList>
28 #include <QtGui/QTreeWidget>
30 #include "common.h"
32 class QProgressBar;
33 class QLabel;
35 class TopLevel : public KDialog
37 Q_OBJECT
39 public:
40 explicit TopLevel( const QString &destDir, QWidget *parent = 0 );
41 ~TopLevel();
43 public Q_SLOTS:
44 void slotScan();
45 void slotCreate();
46 void slotSelectAll();
47 void slotUnselectAll();
49 private:
50 QTreeWidgetItem *addGroupItem( QTreeWidgetItem *parent, const QString &relPath,
51 const QString &name );
53 QProgressBar *mProgress;
54 QLabel *mSummary;
55 QTreeWidget *mListView;
56 QString mDestDir;
57 QStringList mTemplates;
59 QList<AppLnkCache*> mAppCache;
61 int mFound, mAdded;
64 #endif