kpilot/kpilot
fileInstallWidget.h00001 #ifndef _KPILOT_FILEINSTALLWIDGET_H
00002 #define _KPILOT_FILEINSTALLWIDGET_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #include "pilotComponent.h"
00036
00037 class TQMultiLineEdit;
00038 class TQPushButton;
00039 class TQIconDragItem;
00040
00041 class KIconView;
00042 class KPilotInstaller;
00043 class FileInstaller;
00044
00045 class FileInstallWidget : public PilotComponent
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 FileInstallWidget(TQWidget* parent, const TQString& dbPath);
00051 virtual ~FileInstallWidget();
00052
00053
00054 void showComponent();
00055 bool preHotSync(TQString &);
00056 void postHotSync();
00057
00058
00059 signals:
00060 void fileInstallWidgetDone();
00061
00062 protected:
00063 void setSaveFileList(bool saveIt) { fSaveFileList = saveIt; }
00064 bool getSaveFileList() { return fSaveFileList; }
00065
00066 void dragEnterEvent(TQDragEnterEvent* event);
00067 void dropEvent(TQDropEvent* drop);
00068 bool eventFilter (TQObject *watched, TQEvent *event );
00069
00070 void contextMenu(TQMouseEvent *event);
00071
00072 KPilotInstaller* getPilotInstallerApp() { return fKPilotInstaller; }
00073
00074 private:
00075 KIconView *fIconView;
00076 bool fSaveFileList;
00077
00078 KPilotInstaller* fKPilotInstaller;
00079 FileInstaller *fInstaller;
00080 TQPushButton *clearButton,*addButton;
00081
00082 protected slots:
00083 void slotClearButton();
00084 void slotAddFile();
00085
00086 void slotDropEvent(TQDropEvent * drop, const TQValueList<TQIconDragItem> & lst);
00087
00088 public slots:
00089 void refreshFileInstallList();
00090 };
00091
00092 #endif
|