2 * TableCellInfo.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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 _TableCellInfo_h_
14 #define _TableCellInfo_h_
16 class TableColumnFormat;
18 class TableColumnInfo;
23 TableCellInfo(TableColumnFormat* tcf_, TableLineInfo* tli_,
24 TableColumnInfo* tci_) :
43 void setRows(int r) { rows = r; }
44 int getRows() const { return rows; }
46 void setColumns(int c) { columns = c; }
47 int getColumns() const { return columns; }
49 void setRightPadding(int rp) { rightPadding = rp; }
50 int getRightPadding() const { return rightPadding; }
52 void setLeftPadding(int lp) { leftPadding = lp; }
53 int getLeftPadding() const { return leftPadding; }
55 void setHAlign(const QString& a) { hAlign = a; }
56 const QString& getHAlign() const { return hAlign; }
58 void setBgColor(const QColor& bgc) { bgColor = bgc; }
59 const QColor& getBgColor() const { return bgColor; }
61 void setBoldText(bool b) { boldText = b; }
62 bool getBoldText() const { return boldText; }
64 void setFontFactor(int ff) { fontFactor = ff; }
65 int getFontFactor() const { return fontFactor; }
67 void setStatusText(const QString& s) { statusText = s; }
68 const QString& getStatusText() const { return statusText; }
70 void setToolTipID(const QString& s) { toolTipID = s; }
71 const QString& getToolTipID() const { return toolTipID; }
73 void setToolTipText(const QString& s) { toolTipText = s; }
74 const QString& getToolTipText() const { return toolTipText; }
76 TableColumnFormat* const tcf;
77 TableLineInfo* const tli;
78 TableColumnInfo* const tci;