filepropertydlg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef FILEPROPERTYDLG_H
00013 #define FILEPROPERTYDLG_H
00014
00015 #include "trollprojectwidget.h"
00016 #include "filepropertybase.h"
00017
00018 class QCheckListItem;
00019 class QListViewItem;
00020 class FilePropertyBase;
00021 class FileItem;
00022 class SubqmakeprojectItem;
00023 class GroupItem;
00024
00025 class ScopeItem : public QCheckListItem
00026 {
00027 public:
00028 ScopeItem(QCheckListItem *parent,const QString &text,QStringList *excludeList,bool initialMode);
00029 ScopeItem(QListView *parent,const QString &text,QStringList *excludeList,bool initialMode);
00030 QString& getScopeString() {return m_scopeString;}
00031 void setScopeString(const QString &scopeString) {m_scopeString = scopeString;}
00032 void excludeFromScope(const QString &fileName,bool b);
00033 bool isDirty();
00034
00035 private:
00036 QStringList *m_excludeList;
00037 QString m_scopeString;
00038 bool m_initialMode;
00039 };
00040
00041 class FilePropertyDlg : public FilePropertyBase
00042 {
00043 public:
00044 FilePropertyDlg(SubqmakeprojectItem *spitem, int grtype,FileItem *fitem,
00045 QStringList &dirtyScopes,QWidget *parent=0,
00046 const char* name = 0,bool modal = FALSE, WFlags fl = 0);
00047
00048 private:
00049 void createScopeTree(SubqmakeprojectItem *spitem,ScopeItem *sitem=0);
00050 GroupItem* getInstallRoot(SubqmakeprojectItem *spitem);
00051 GroupItem* getInstallObject(SubqmakeprojectItem *spitem,const QString& objectname);
00052 QStringList* getExcludeList(SubqmakeprojectItem *spitem);
00053 QStringList getExcludedScopes(ScopeItem *sitem=0);
00054 FileItem *m_fileItem;
00055 SubqmakeprojectItem *m_subProjectItem;
00056 QStringList &m_dirtyScopes;
00057 QStringList m_dummy;
00058 QString m_installObjectName;
00059 int m_gtype;
00060
00061 public slots:
00062 virtual void updateFileProperties();
00063 };
00064
00065 #endif
This file is part of the documentation for KDevelop Version 3.1.2.