class CellRow : public CellVector

(table) row class.

Inheritance:


Public Methods

CellRow (TableViewer *v, unsigned rowNumber, int height)
friend int Compare (CellRow *r1, CellRow *r2)
void UpdateHeight (int height)
each cell will be this height.
void UpdatePosition (int delta)
each cell is moved delta up/down
void UpdateWidth (unsigned celnr)
resize cells and lines from index cellnr and higher.
Cell* HitCell (int x, int y)
if (x,y) is in a cell, return it.
LinePiece* HitLinePiece (int x, int y)
if (x,y) is on a line piece, return it.
void AddCell (Cell *c, bool redraw=True)
append cell to row.
void DeleteCell (Cell *c, bool redraw=True)
delete cell from row.
void InsertCell (Cell *c, unsigned p, bool redraw=True)
insert cell in row, at position p.
void Write (OutputFile *f)
write attributes (including cell contents to file.
void WritePartial (OutputFile *f, int i, List *columnNumbers)
write part of row to file (only given columns).
bool Read (InputFile *f, unsigned fromColumn, double format)
read attributes back from file starting at position n.
bool ContainsPt (int x, int y) const
int GetMinimalHeight ()
int GetHeight () const
int GetMarginHeight () const
void UpdateTextPositions ()
recalculate text positions in cells.
void SetTextSizes ()
recalculate text size in cells.
void CalcLabelPositions ()

Inherited from CellVector:

Public Methods

friend int operator==(const CellVector &c1, const CellVector &c2)
void Draw()
void Undraw()
void DrawCells()
void UndrawCells()
void DrawLines()
void UndrawLines()
void DrawLabels()
void UndrawLabels()
void SetGrafport(Grafport *g)
void SetVisible(bool b)
TableViewer* GetViewer() const
bool HasCell(Cell *c)
RowColumnLabel* HitLabel(int x, int y) const
TextAlign::Type GetAlignment() const
void SetAlignment(TextAlign::Type a)
void UpdateAlignment(TextAlign::Type a)
virtual void UpdateNumber(unsigned nr)
virtual void SetLabelsVisible(bool s)
void SetNumber(unsigned nr)
Cell* FirstCell()
Cell* NextCell()
Cell* NthCell(unsigned n)
LinePiece* FirstLine()
LinePiece* NextLine()
LinePiece* NthLine(unsigned n)
unsigned GetNumber() const
RowColumnLabel* GetLabel1() const
RowColumnLabel* GetLabel2() const
void UpdateLabel1(const string *txt)
void UpdateLabel2(const string *txt)
unsigned NrCells() const
int GetIndex(LinePiece *l)
unsigned HasEmptyText()
unsigned HasText(const string *s)
bool IsAllEmpty()
void EmptyCells()

Protected Fields

List <Cell *> * cells
List <LinePiece *> * lines

Protected Methods

Grafport* GetGrafport() const

Documentation

(table) row class.
CellRow(TableViewer *v, unsigned rowNumber, int height)

friend int Compare(CellRow *r1, CellRow *r2)

void UpdateHeight(int height)
each cell will be this height.

void UpdatePosition(int delta)
each cell is moved delta up/down

void UpdateWidth(unsigned celnr)
resize cells and lines from index cellnr and higher.

Cell* HitCell(int x, int y)
if (x,y) is in a cell, return it.

LinePiece* HitLinePiece(int x, int y)
if (x,y) is on a line piece, return it.

void AddCell(Cell *c, bool redraw=True)
append cell to row.

void DeleteCell(Cell *c, bool redraw=True)
delete cell from row.

void InsertCell(Cell *c, unsigned p, bool redraw=True)
insert cell in row, at position p.

void Write(OutputFile *f)
write attributes (including cell contents to file.

void WritePartial(OutputFile *f, int i, List *columnNumbers)
write part of row to file (only given columns).

bool Read(InputFile *f, unsigned fromColumn, double format)
read attributes back from file starting at position n.

bool ContainsPt(int x, int y) const

int GetMinimalHeight()

int GetHeight() const

int GetMarginHeight() const

void UpdateTextPositions()
recalculate text positions in cells.

void SetTextSizes()
recalculate text size in cells.

void CalcLabelPositions()


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de