buildtools/autotools/addexistingdirectoriesdlg.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 ------------------- 00003 begin : 12/21/2002 00004 copyright : (C) 2002 by Victor R�er 00005 email : victor_roeder@gmx.de 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef _ADDEXISTINGDIRECTORIESDLG_H_ 00018 #define _ADDEXISTINGDIRECTORIESDLG_H_ 00019 00020 #include "addexistingdlgbase.h" 00021 00022 #include <qdialog.h> 00023 #include <kfile.h> 00024 00025 #include "misc.h" 00026 #include "fileselectorwidget.h" 00027 00028 class FileSelectorWidget; 00029 class AutoProjectWidget; 00030 class AutoProjectPart; 00031 class SubprojectItem; 00032 class TargetItem; 00033 class KFileItem; 00034 class KImportIconView; 00035 00036 class AddExistingDirectoriesDialog : public AddExistingDlgBase 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 AddExistingDirectoriesDialog ( AutoProjectPart* part, AutoProjectWidget *widget, SubprojectItem* spitem, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 00042 ~AddExistingDirectoriesDialog(); 00043 00044 private: 00045 FileSelectorWidget* sourceSelector; 00046 KImportIconView* importView; 00047 00048 AutoProjectPart* m_part; 00049 AutoProjectWidget* m_widget; 00050 00051 TargetItem* m_titem; 00052 SubprojectItem* m_spitem; 00053 00054 KFileItemList m_importList; 00055 00056 protected: 00057 void init(); 00058 void importItems (); 00059 00060 protected slots: 00061 void slotAddSelected(); 00062 void slotAddAll(); 00063 void slotRemoveAll(); 00064 void slotRemoveSelected(); 00065 void slotDropped ( QDropEvent* ev ); 00066 00067 void slotOk(); 00068 }; 00069 00070 #endif