buildtools/autotools/autolistviewitems.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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
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
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
This file is part of the documentation for KDevelop Version 3.0.4.