2 * TableColumnInfo.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003 by Chris Schlaeger <cs@suse.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
13 #ifndef _TableColumnInfo_h_
14 #define _TableColumnInfo_h_
22 * @short A column of a report.
23 * @author Chris Schlaeger <cs@suse.de>
28 TableColumnInfo(uint sc, const QString& n) : name(n)
30 hideCellText = hideCellURL = 0;
42 const QString& getName() const { return name; }
44 void setTitle(const QString& t) { title = t; }
45 const QString& getTitle() const { return title; }
47 void setTitleURL(const QString& t) { titleURL = t; }
48 const QString& getTitleURL() const { return titleURL; }
50 void setSubTitle(const QString& t) { subTitle = t; }
51 const QString& getSubTitle() const { return subTitle; }
53 void setSubTitleURL(const QString& t) { subTitleURL = t; }
54 const QString& getSubTitleURL() const { return subTitleURL; }
56 void setCellText(const QString& t) { cellText = t; }
57 const QString& getCellText() const { return cellText; }
59 void setCellURL(const QString& t) { cellURL = t; }
60 const QString& getCellURL() const { return cellURL; }
62 void setHideCellText(ExpressionTree* et) { hideCellText = et; }
63 ExpressionTree* getHideCellText() const { return hideCellText; }
65 void setHideCellURL(ExpressionTree* et) { hideCellURL = et; }
66 ExpressionTree* getHideCellURL() const { return hideCellURL; }
70 void addToSum(uint sc, const QString& key, double val);
71 double getSum(uint sc, const QString& key) const { return sum[sc][key]; }
72 QMap<QString, double>* getSum() { return sum; }
73 void addSumToMemory(bool subtract);
86 ExpressionTree* hideCellText;
87 ExpressionTree* hideCellURL;
89 QMap<QString, double>* sum;
90 QMap<QString, double>* memory;