00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TOPLEVEL_H
00023 #define TOPLEVEL_H
00024
00025 #include <kdialog.h>
00026
00027 #include <tqstringlist.h>
00028
00029 #include "common.h"
00030
00031 class KProgress;
00032 class TQLabel;
00033 class TQListView;
00034 class TQPushButton;
00035
00036 class TopLevel : public KDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 TopLevel( const TQString &destDir, TQWidget *parent = 0, const char *name = 0 );
00042 ~TopLevel();
00043
00044 public slots:
00045 void slotScan();
00046 void slotCreate();
00047 void slotSelectAll();
00048 void slotUnselectAll();
00049
00050 private:
00051 TQListViewItem *addGroupItem( TQListViewItem *parent, const TQString &relPath,
00052 const TQString &name );
00053
00054 KProgress *mProgress;
00055 TQLabel *mSummary;
00056 TQListView *mListView;
00057 TQPushButton *mApplyButton;
00058 TQPushButton *mQuitButton;
00059 TQPushButton *mScanButton;
00060 TQPushButton *mSelectButton;
00061 TQPushButton *mUnSelectButton;
00062 TQString mDestDir;
00063 TQStringList mTemplates;
00064
00065 TQPtrList<AppLnkCache> mAppCache;
00066
00067 int mFound, mAdded;
00068 };
00069
00070 #endif