autodetailsview.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 ------------------- 00003 begin : 19.01.2003 00004 copyright : (C) 2002 by Victor Rder 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 AUTODETAILSVIEW_H 00018 #define AUTODETAILSVIEW_H 00019 00020 #include <qwidget.h> 00021 00022 #include <klistview.h> 00023 00024 #include "domutil.h" 00025 #include "autolistviewitems.h" 00026 00027 class KAction; 00028 00029 class AutoProjectPart; 00030 class AutoProjectWidget; 00031 00032 class AutoDetailsView : public KListView 00033 { 00034 friend class RemoveFileDialog; 00035 friend class FileItem; 00036 Q_OBJECT 00037 00038 public: 00039 AutoDetailsView(AutoProjectWidget* widget, AutoProjectPart* part, QWidget *parent, const char *name); 00040 virtual ~AutoDetailsView(); 00041 00042 QString getUiFileLink(const QString &path, const QString& filename); 00043 00044 protected: 00045 void initActions (); 00046 virtual void focusOutEvent(QFocusEvent *e); 00047 00048 private slots: 00049 void slotDetailsExecuted(QListViewItem *item); 00050 void slotDetailsContextMenu(KListView *, QListViewItem *item, const QPoint &p); 00051 00052 void slotTargetOptions (); 00053 void slotAddNewFile(); 00054 void slotAddExistingFile(); 00055 void slotAddIcon(); 00056 void slotBuildTarget(); 00057 void slotExecuteTarget(); 00058 void slotRemoveDetail(); 00059 void slotSetActiveTarget(); 00060 00061 private: 00062 AutoProjectWidget* m_widget; 00063 AutoProjectPart* m_part; 00064 00065 DomUtil::PairList m_subclasslist; 00066 00067 KAction* targetOptionsAction; 00068 KAction* addNewFileAction; 00069 KAction* addExistingFileAction; 00070 KAction* addIconAction; 00071 KAction* buildTargetAction; 00072 KAction* executeTargetAction; 00073 KAction* setActiveTargetAction; 00074 KAction* removeDetailAction; 00075 00076 }; 00077 00078 #endif