1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
/*
* The TaskJuggler Project Management Software
*
* Copyright (c) 2001, 2002, 2003, 2004, 2005 by Chris Schlaeger <cs@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* $Id: TjReportColumn.h 1307 2006-07-19 13:09:16Z cs $
*/
#ifndef _TjReportColumn_h_
#define _TjReportColumn_h_
#include "TjReportCell.h"
class TableColumnFormat;
class TjReportColumn
{
public:
TjReportColumn()
{
leftX = width = 0;
xPage = -1;
maxIndentLevel = 1;
isGantt = lastOnPage = FALSE;
}
~TjReportColumn() { }
void setLeftX(int x) { leftX = x; }
int getLeftX() const { return leftX; }
void setWidth(int w) { width = w; }
int getWidth() const { return width; }
void setXPage(int x) { xPage = x; }
int getXPage() const { return xPage; }
void setTableColumnFormat(const TableColumnFormat* t) { tcf = t; }
const TableColumnFormat* getTableColumnFormat() const { return tcf; }
void setMaxIndentLevel(int level) { maxIndentLevel = level; }
int getMaxIndentLevel() const { return maxIndentLevel; }
void setLastOnPage(bool lop) { lastOnPage = lop; }
bool getLastOnPage() const { return lastOnPage; }
void setIsGantt(bool ig) { isGantt = ig; }
bool getIsGantt() const { return isGantt; }
void setTitle(const QString& t) { title = t; }
const QString& getTitle() const { return title; }
private:
// The leftmost pixel of the column
int leftX;
// The column width in pixels
int width;
// The horizontal page number of the page this column is on.
int xPage;
int maxIndentLevel;
const TableColumnFormat* tcf;
// True if this column is the last column on the page.
bool lastOnPage;
// This flag is set if the column contains the GANTT chart.
bool isGantt;
// The column title
QString title;
} ;
#endif
|