KDevelop API Documentation

buildtools/autotools/autolistviewitems.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2001-2002 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * Copyright (C) 2002 by Victor Röder * 00006 * victor_roeder@gmx.de * 00007 * * 00008 * This program is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU General Public License as published by * 00010 * the Free Software Foundation; either version 2 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 ***************************************************************************/ 00014 00015 #ifndef AUTOLISTVIEWITEMS_H 00016 #define AUTOLISTVIEWITEMS_H 00017 00018 #include <qptrlist.h> 00019 00020 #include <qlistview.h> 00021 00022 class TargetItem; 00023 class FileItem; 00024 00028 class ProjectItem : public QListViewItem 00029 { 00030 public: 00031 enum Type { Subproject, Target, File }; 00032 00033 ProjectItem(Type type, QListView *parent, const QString &text); 00034 ProjectItem(Type type, ProjectItem *parent, const QString &text); 00035 00036 void paintCell(QPainter *p, const QColorGroup &cg, 00037 int column, int width, int alignment); 00038 void setBold(bool b) 00039 { bld = b; } 00040 bool isBold() const 00041 { return bld; } 00042 Type type() 00043 { return typ; } 00044 00045 private: 00046 Type typ; 00047 bool bld; 00048 }; 00049 00050 00054 class SubprojectItem : public ProjectItem 00055 { 00056 public: 00057 SubprojectItem(QListView *parent, const QString &text); 00058 SubprojectItem(SubprojectItem *parent, const QString &text); 00059 00061 QString subdir; 00063 QString path; 00065 QMap<QString, QString> prefixes; 00067 QMap<QString, QString> variables; 00069 QPtrList<TargetItem> targets; 00070 00071 QString relativePath(); 00072 00073 private: 00074 void init(); 00075 }; 00076 00077 00089 class TargetItem : public ProjectItem 00090 { 00091 public: 00092 // enum TargetKind { Program, Library, DataGroup, IconGroup, DocGroup }; 00093 00094 TargetItem(QListView *lv, bool group, const QString &text); 00095 00099 QString name; 00103 QString primary; 00105 QString prefix; 00107 QPtrList<FileItem> sources; 00109 QString ldflags; 00111 QString ldadd; 00113 QString libadd; 00115 QString dependencies; 00116 }; 00117 00118 00119 // Not sure if this complexity is really necessary... 00120 class FileItem : public ProjectItem 00121 { 00122 00123 public: 00124 FileItem(QListView *lv, const QString &text); 00125 00126 QString name; 00127 QString uiFileLink; 00128 }; 00129 00130 #endif 00131
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:38:53 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003