table viewer class.
![]() | TableViewer (Config *c, TableWindow *t) creation |
![]() | ~TableViewer () deletion |
![]() | SetTable (Table *t) |
![]() | Initialize () create table of (defaultNumberOf)Rows x (defaultNumberOf)Columns. |
![]() | InitTable (unsigned rows, unsigned columns) |
![]() | SetVisible (bool b) Make all cells and lines (in)visible |
![]() | Draw () draw all cells and labels |
![]() | Undraw () erase all cells and labels |
![]() | TextMode (CellText *c) start edit object initialized with c |
![]() | TextModeOff () stop edit object and update cell-text. |
![]() | KeyTyped (int x, int y, int key) key is pressed at (x,y) |
![]() | Select (int x, int y) button1 is pressed at (x,y) |
![]() | Adjust (int x, int y) button2 is pressed at (x,y) |
![]() | MovingPointer (int x, int y) mouse pointer moved to (x,y) |
![]() | Drag (int x, int y) button1 is dragged to (x,y) |
![]() | Connect (int x, int y) button2 is dragged to (x,y) |
![]() | HitCell (int x, int y) return cell iff (x,y) is in cell, |
![]() | HitCellText (int x, int y) return cell-text iff (x,y) is in text, |
![]() | HitVLinePiece (int x, int y) return line iff (x,y) is on vertical line, |
![]() | HitHLinePiece (int x, int y) return line iff (x,y) is on horizontal line, |
![]() | HitRowLabel (int x, int y) return row label iff (x,y) is in row-label, |
![]() | HitColumnLabel (int x, int y) return column label iff (x,y) is in column-label, |
![]() | HitRow (int x, int y) return rownr if (x,y) is in row, |
![]() | HitColumn (int x, int y) return colnr if (x,y) is in column, |
![]() | ShowRowColumnLabels (bool b) |
![]() | PrintRowColumnLabels (bool b) |
![]() | IsShowRowColumnLabels () const |
![]() | IsPrintRowColumnLabels () const |
![]() | RecomputeSizeCell (Cell *c) adapt cell size (row + column) to fit its cell text. |
![]() | UpdateText (Cell *c, const string *newtext) update the text in cell c. |
![]() | MoveRow (CellRow *r, unsigned newpos) move row from oldpos to newpos. |
![]() | MoveColumn (CellColumn *c, unsigned newpos) move column from oldpos to newpos. |
![]() | AddRow (CellRow *c) add row to end of table. |
![]() | AddColumn (CellColumn *c) add column to right of table. |
![]() | InsertRow (CellRow *c) insert row into table (automatically shifting). |
![]() | InsertColumn (CellColumn *c) insert column into table (automatically shifting) |
![]() | DeleteRow (CellRow *c) delete row from table. |
![]() | DeleteColumn (CellColumn *c) delete column from table. |
![]() | ResizeRow (CellRow *r, int newSize) |
![]() | ResizeColumn (CellColumn *c, int newSize) |
![]() | Move (const Point *delta) move entire table. |
![]() | GiveRow (unsigned r) return r-th row. |
![]() | GiveColumn (unsigned c) return c-th column. |
![]() | GetSelectedRows (List<CellRow *> *r) |
![]() | GetSelectedColumns (List<CellColumn *> *c) |
![]() | GetEmptyRows (List<CellRow *> *r) |
![]() | GetEmptyColumns (List<CellColumn *> *c) |
![]() | DeselectAll () |
![]() | SelectAll () |
![]() | SelectCell (Cell *c) |
![]() | DeselectCell (Cell *c) |
![]() | SelectVector (CellVector *v) |
![]() | DeselectVector (CellVector *v) |
![]() | IsAllSelected (CellVector *v) |
![]() | MoveSelection (int key) |
![]() | CalcSizeElements (Point &topLeft, Point &bottomRight) |
![]() | CalcSizeSelection (Point &topLeft, Point &bottomRight) |
![]() | UpdateMarginWidth (int newWidth) |
![]() | UpdateMarginHeight (int newHeight) |
![]() | UpdateDefaultRowHeight (int n) |
![]() | UpdateDefaultColumnWidth (int n) |
![]() | GetDefaultRowHeight () const |
![]() | GetDefaultColumnWidth () const |
![]() | GetNumberOfColumns () const |
![]() | GetNumberOfRows () const |
![]() | GetDefaultNumberOfColumns () const |
![]() | GetDefaultNumberOfRows () const |
![]() | GetDefaultRowAlignment () const |
![]() | GetDefaultColumnAlignment () const |
![]() | GetRowHeight (unsigned row) |
![]() | GetColumnWidth (unsigned column) |
![]() | GetTopLeft () const |
![]() | GetWidth () const |
![]() | GetHeight () const |
![]() | GetMarginWidth () const |
![]() | GetMarginHeight () const |
![]() | GetRowTopLeft (unsigned row) |
![]() | GetColumnTopLeft (unsigned column) |
![]() | SetGrafport (Grafport *g) |
![]() | GetBuffer () const |
![]() | GetTopSelectionRow () return index of topmost selected row, or -1 if selection is empty. |
![]() | GetLeftSelectionColumn () return index of leftmost selected column, -1 if selection is empty. |
![]() | GetSelection () const |
![]() | NrSelected () const |
![]() | GetCurrentRow () const |
![]() | GetCurrentColumn () const |
![]() | SetCurrentRow (unsigned n) |
![]() | SetCurrentColumn (unsigned n) |
![]() | GetCells (List<Cell *> *cell, const string *s, bool sens, bool substring) get cell containing s as text (case sensitive, substring). |
![]() | GetNextCell (const string *s, bool sens, bool substring) return the next cell containing s as text. |
![]() | SetDefaultColumnAlignment (TextAlign::Type a) |
![]() | SetDefaultRowAlignment (TextAlign::Type a) |
![]() | SetLineStyle (Side::Type side, LineStyle::Type style) |
![]() | SetDefaultNumberOfRows (unsigned) |
![]() | SetDefaultNumberOfColumns (unsigned) |
![]() | UpdateLineWidthSelection (unsigned wd) |
![]() | UpdateLineStyleSelection (LineStyle::Type l) |
![]() | UpdateTextAlignmentSelection (TextAlign::Type a) |
![]() | UpdateLineColorSelection (const string *color) |
![]() | UpdateTextColorSelection (const string *color) |
![]() | UpdateFillColorSelection (const string *color, FillStyle::Type f) |
![]() | SetDefaultFont (XFont *ft) |
![]() | UpdateFontSelection (int f, int s, int p) set font family, style, size (no update when value < 0). |
![]() | ReadAttributes (InputFile *f, bool appending, unsigned &rowsToAdd, unsigned &columnsToAdd, double format) |
![]() | ReadColumns (InputFile *f, unsigned nr, unsigned fromRow, unsigned fromColumn, double format) |
![]() | ReadRows (InputFile *f, unsigned nr, unsigned fromRow, unsigned fromColumn, double format) |
![]() | WriteAttributes (OutputFile *f) |
![]() | WriteColumns (OutputFile *f) |
![]() | WriteRows (OutputFile *f) |
![]() | WriteSelection (OutputFile *f) |
![]() | GetRows () const |
![]() | GetColumns () const |
![]() | SetDefaultColumnWidth (int w) |
![]() | SetDefaultRowHeight (int h) |
![]() | SetMarginWidth (int w) |
![]() | SetMarginHeight (int h) |
table viewer class.
virtual ~TableViewer()
void SetTable(Table *t)
virtual void Initialize()
void InitTable(unsigned rows, unsigned columns)
void SetVisible(bool b)
void Draw()
void Undraw()
bool TextMode(CellText *c)
void TextModeOff()
void KeyTyped(int x, int y, int key)
void Select(int x, int y)
void Adjust(int x, int y)
void MovingPointer(int x, int y)
Command* Drag(int x, int y)
Command* Connect(int x, int y)
Cell* HitCell(int x, int y)
CellText* HitCellText(int x, int y)
LinePiece* HitVLinePiece(int x, int y)
LinePiece* HitHLinePiece(int x, int y)
RowColumnLabel* HitRowLabel(int x, int y)
RowColumnLabel* HitColumnLabel(int x, int y)
int HitRow(int x, int y)
int HitColumn(int x, int y)
void ShowRowColumnLabels(bool b)
void PrintRowColumnLabels(bool b)
bool IsShowRowColumnLabels() const
bool IsPrintRowColumnLabels() const
void RecomputeSizeCell(Cell *c)
void UpdateText(Cell *c, const string *newtext)
virtual void MoveRow(CellRow *r, unsigned newpos)
virtual void MoveColumn(CellColumn *c, unsigned newpos)
virtual void AddRow(CellRow *c)
virtual void AddColumn(CellColumn *c)
virtual void InsertRow(CellRow *c)
virtual void InsertColumn(CellColumn *c)
virtual void DeleteRow(CellRow *c)
virtual void DeleteColumn(CellColumn *c)
void ResizeRow(CellRow *r, int newSize)
void ResizeColumn(CellColumn *c, int newSize)
void Move(const Point *delta)
CellRow* GiveRow(unsigned r)
CellColumn* GiveColumn(unsigned c)
void GetSelectedRows(List<CellRow *> *r)
void GetSelectedColumns(List<CellColumn *> *c)
void GetEmptyRows(List<CellRow *> *r)
void GetEmptyColumns(List<CellColumn *> *c)
void DeselectAll()
void SelectAll()
void SelectCell(Cell *c)
void DeselectCell(Cell *c)
void SelectVector(CellVector *v)
void DeselectVector(CellVector *v)
bool IsAllSelected(CellVector *v)
void MoveSelection(int key)
void CalcSizeElements(Point &topLeft, Point &bottomRight)
void CalcSizeSelection(Point &topLeft, Point &bottomRight)
void UpdateMarginWidth(int newWidth)
void UpdateMarginHeight(int newHeight)
void UpdateDefaultRowHeight(int n)
void UpdateDefaultColumnWidth(int n)
int GetDefaultRowHeight() const
int GetDefaultColumnWidth() const
unsigned GetNumberOfColumns() const
unsigned GetNumberOfRows() const
unsigned GetDefaultNumberOfColumns() const
unsigned GetDefaultNumberOfRows() const
TextAlign::Type GetDefaultRowAlignment() const
TextAlign::Type GetDefaultColumnAlignment() const
int GetRowHeight(unsigned row)
int GetColumnWidth(unsigned column)
const Point* GetTopLeft() const
int GetWidth() const
int GetHeight() const
int GetMarginWidth() const
int GetMarginHeight() const
Point GetRowTopLeft(unsigned row)
Point GetColumnTopLeft(unsigned column)
void SetGrafport(Grafport *g)
CellTextBuffer* GetBuffer() const
int GetTopSelectionRow()
int GetLeftSelectionColumn()
List <Cell *> * GetSelection() const
unsigned NrSelected() const
unsigned GetCurrentRow() const
unsigned GetCurrentColumn() const
void SetCurrentRow(unsigned n)
void SetCurrentColumn(unsigned n)
void GetCells(List<Cell *> *cell, const string *s, bool sens, bool substring)
Cell* GetNextCell(const string *s, bool sens, bool substring)
void SetDefaultColumnAlignment(TextAlign::Type a)
void SetDefaultRowAlignment(TextAlign::Type a)
void SetLineStyle(Side::Type side, LineStyle::Type style)
void SetDefaultNumberOfRows(unsigned)
void SetDefaultNumberOfColumns(unsigned)
void UpdateLineWidthSelection(unsigned wd)
void UpdateLineStyleSelection(LineStyle::Type l)
void UpdateTextAlignmentSelection(TextAlign::Type a)
void UpdateLineColorSelection(const string *color)
void UpdateTextColorSelection(const string *color)
void UpdateFillColorSelection(const string *color, FillStyle::Type f)
void SetDefaultFont(XFont *ft)
void UpdateFontSelection(int f, int s, int p)
bool ReadAttributes(InputFile *f, bool appending, unsigned &rowsToAdd, unsigned &columnsToAdd, double format)
bool ReadColumns(InputFile *f, unsigned nr, unsigned fromRow, unsigned fromColumn, double format)