ICS

QicsTable Documentation Set

QicsMappedDimensionManager Class Reference

internal manager for row, column, and cell dimension information More...

#include <QicsMappedDimensionManager.h>

List of all members.

Public Member Functions

 QicsMappedDimensionManager (QicsDimensionManager *, QicsGridInfo *)
 ~QicsMappedDimensionManager ()
void setDefaultFont (const QFont &fnt)
void setRowFont (Qics::QicsGridType grid_type, int row, const QFont &fnt)
void unsetRowFont (Qics::QicsGridType grid_type, int row)
void setRepeatingRowFont (Qics::QicsGridType grid_type, int row, unsigned int interval, const QFont &fnt)
void setColumnFont (Qics::QicsGridType grid_type, int col, const QFont &fnt)
void unsetColumnFont (Qics::QicsGridType grid_type, int col)
void setRepeatingColumnFont (Qics::QicsGridType grid_type, int col, unsigned int interval, const QFont &fnt)
void setCellFont (Qics::QicsGridType grid_type, int row, int col, const QFont &fnt)
void unsetCellFont (Qics::QicsGridType grid_type, int row, int col)
void setRowHeightInPixels (int row, int height)
void setRowHeightInChars (int row, int height)
void setRepeatingRowHeightInPixels (int row, unsigned int interval, int height)
void setRepeatingRowHeightInChars (int row, unsigned int interval, int height)
void setColumnWidthInPixels (int col, int width)
void setColumnWidthInChars (int col, int width)
void setRepeatingColumnWidthInPixels (int col, unsigned int interval, int width)
void setRepeatingColumnWidthInChars (int col, unsigned int interval, int width)
int rowHeight (int row) const
int columnWidth (int col) const
void setRowMinHeightInPixels (int row, int height)
void setRowMinHeightInChars (int row, int height)
void setColumnMinWidthInPixels (int col, int width)
void setColumnMinWidthInChars (int col, int width)
int rowMinHeight (int row) const
int rowMaxHeight (int row) const
int columnMinWidth (int col) const
int columnMaxWidth (int row) const
void setDefaultMargin (int margin)
void setRowMargin (Qics::QicsGridType grid_type, int row, int margin)
void setColumnMargin (Qics::QicsGridType grid_type, int col, int margin)
void setCellMargin (Qics::QicsGridType grid_type, int row, int col, int margin)
void setRepeatingRowMargin (Qics::QicsGridType grid_type, int row, unsigned int interval, int margin)
void setRepeatingColumnMargin (Qics::QicsGridType grid_type, int col, unsigned int interval, int margin)
void setDefaultBorderWidth (int bw)
void setRowBorderWidth (Qics::QicsGridType grid_type, int row, int bw)
void setColumnBorderWidth (Qics::QicsGridType grid_type, int col, int bw)
void setCellBorderWidth (Qics::QicsGridType grid_type, int row, int col, int bw)
void setRepeatingRowBorderWidth (Qics::QicsGridType grid_type, int row, unsigned int interval, int bw)
void setRepeatingColumnBorderWidth (Qics::QicsGridType grid_type, int col, unsigned int interval, int bw)
bool isRowStretchable (int row) const
void setRowStretchable (int row, bool set)
bool isColumnStretchable (int col) const
void setColumnStretchable (int col, bool set)
void stretchRows (int start_row, int end_row, int space)
void stretchColumns (int start_col, int end_col, int space)
int regionHeight (const QicsRegion &region) const
int regionWidth (const QicsRegion &region) const
void overrideRowHeight (int row, int height)
void overrideColumnWidth (int col, int width)
void resetRowHeight (int row)
void resetColumnWidth (int col)
int overriddenRowHeight (int row) const
int overriddenColumnWidth (int col) const
void hideRow (int row)
void hideColumn (int col)
void showRow (int row)
void showColumn (int col)
bool isRowHidden (int row) const
bool isColumnHidden (int col) const

Private Attributes

QicsDimensionManager * myDM
QicsGridInfomyInfo


Detailed Description

internal manager for row, column, and cell dimension information

QicsMappedDimensionManager is exists as an aid to the QicsGridInfo to automatically provide the transform from grid coordinates to model coordinates through the grid's sorting vectors. All calls to its members should be in visual grid coordinates.

Internally, it only holds pointers to the underlying DimensionManager which the GridInfo really uses, and the GridInfo. Most calls simply do the transform and forward them.


Constructor & Destructor Documentation

QicsMappedDimensionManager::QicsMappedDimensionManager ( QicsDimensionManager *  ,
QicsGridInfo  
)

Constructor for the class. The style manager sm is used to determine the default font for the table.

QicsMappedDimensionManager::~QicsMappedDimensionManager (  ) 

Class destructor.


Member Function Documentation

void QicsMappedDimensionManager::setDefaultFont ( const QFont &  fnt  ) 

Notifies the dimension manager that a new default font has been set for the entire table.. Calling this method will cause new dimensions to be calculated for all rows and columns.

void QicsMappedDimensionManager::setRowFont ( Qics::QicsGridType  grid_type,
int  row,
const QFont &  fnt 
)

Notifies the dimension manager that a new font has been set for row row for grid type grid_type. Calling this method may cause new dimensions to be calculated for this column and for all rows.

void QicsMappedDimensionManager::unsetRowFont ( Qics::QicsGridType  grid_type,
int  row 
)

Notifies the dimension manager that a previous font setting for row row for grid type grid_type should be cancelled. Calling this method may cause new dimensions to be calculated for this row and for all columns.

void QicsMappedDimensionManager::setRepeatingRowFont ( Qics::QicsGridType  grid_type,
int  row,
unsigned int  interval,
const QFont &  fnt 
)

Notifies the dimension manager that a new font (fnt ) has been set for a set of repeating rows (beginning at row row and repeating every interval rows).

void QicsMappedDimensionManager::setColumnFont ( Qics::QicsGridType  grid_type,
int  col,
const QFont &  fnt 
)

Notifies the dimension manager that a new font has been set for column col for grid type grid_type. Calling this method may cause new dimensions to be calculated for this column and for all rows.

void QicsMappedDimensionManager::unsetColumnFont ( Qics::QicsGridType  grid_type,
int  col 
)

Notifies the dimension manager that a previous font setting for column col for grid type grid_type should be cancelled. Calling this method may cause new dimensions to be calculated for this column and for all rows.

void QicsMappedDimensionManager::setRepeatingColumnFont ( Qics::QicsGridType  grid_type,
int  col,
unsigned int  interval,
const QFont &  fnt 
)

Notifies the dimension manager that a new font (fnt ) has been set for a set of repeating columns (beginning at column col and repeating every interval columns).

void QicsMappedDimensionManager::setCellFont ( Qics::QicsGridType  grid_type,
int  row,
int  col,
const QFont &  fnt 
)

Notifies the dimension manager that a new font has been set for cell (row, col ) for grid type grid_type. Calling this method may cause new dimensions to be calculated for the cell's row and column.

void QicsMappedDimensionManager::unsetCellFont ( Qics::QicsGridType  grid_type,
int  row,
int  col 
)

Notifies the dimension manager that a previous font setting for cell (row, col ) for grid type grid_type should be cancelled. Calling this method may cause new dimensions to be calculated for the cell's row and column.

void QicsMappedDimensionManager::setRowHeightInPixels ( int  row,
int  height 
)

Sets the height of row row in pixels.

void QicsMappedDimensionManager::setRowHeightInChars ( int  row,
int  height 
)

Sets the height of row row to height character units (i.e. lines)..

void QicsMappedDimensionManager::setRepeatingRowHeightInPixels ( int  row,
unsigned int  interval,
int  height 
)

Sets the height of a set of repeating rows (beginning at row row and repeating every interval rows) in pixels.

void QicsMappedDimensionManager::setRepeatingRowHeightInChars ( int  row,
unsigned int  interval,
int  height 
)

Sets the height of a set of repeating rows (beginning at row row and repeating every interval rows) in character units.

void QicsMappedDimensionManager::setColumnWidthInPixels ( int  col,
int  width 
)

Sets the width of column col in pixels.

void QicsMappedDimensionManager::setColumnWidthInChars ( int  col,
int  width 
)

Sets the width of column col to width character units.

void QicsMappedDimensionManager::setRepeatingColumnWidthInPixels ( int  col,
unsigned int  interval,
int  width 
)

Sets the width of a set of repeating columns (beginning at column col and repeating every interval columns) in pixels.

void QicsMappedDimensionManager::setRepeatingColumnWidthInChars ( int  col,
unsigned int  interval,
int  width 
)

Sets the width of a set of repeating columns (beginning at column col and repeating every interval columns) in character units.

int QicsMappedDimensionManager::rowHeight ( int  row  )  const

Returns the height of row row in pixels.

int QicsMappedDimensionManager::columnWidth ( int  col  )  const

Returns the width of column col in pixels.

void QicsMappedDimensionManager::setRowMinHeightInPixels ( int  row,
int  height 
)

Sets the minimum height of row row in pixels.

void QicsMappedDimensionManager::setRowMinHeightInChars ( int  row,
int  height 
)

Sets the minimum height of row row to height character units (i.e. lines)..

void QicsMappedDimensionManager::setColumnMinWidthInPixels ( int  col,
int  width 
)

Sets the minimum width of column col in pixels.

void QicsMappedDimensionManager::setColumnMinWidthInChars ( int  col,
int  width 
)

Sets the minimum width of column col to width character units.

int QicsMappedDimensionManager::rowMinHeight ( int  row  )  const

Returns the minimum height of row row in pixels.

int QicsMappedDimensionManager::rowMaxHeight ( int  row  )  const

Returns the maximum height of row row in pixels.

int QicsMappedDimensionManager::columnMinWidth ( int  col  )  const

Returns the minimum width of column col in pixels.

int QicsMappedDimensionManager::columnMaxWidth ( int  row  )  const

Returns the maximum width of column col in pixels.

void QicsMappedDimensionManager::setDefaultMargin ( int  margin  ) 

Sets the margin of all cells in the table to margin.

void QicsMappedDimensionManager::setRowMargin ( Qics::QicsGridType  grid_type,
int  row,
int  margin 
)

Sets the margin of all cells in row row to margin.

void QicsMappedDimensionManager::setColumnMargin ( Qics::QicsGridType  grid_type,
int  col,
int  margin 
)

Sets the margin of all cells in column col to margin.

void QicsMappedDimensionManager::setCellMargin ( Qics::QicsGridType  grid_type,
int  row,
int  col,
int  margin 
)

Sets the margin of cell (row, col) to margin.

void QicsMappedDimensionManager::setRepeatingRowMargin ( Qics::QicsGridType  grid_type,
int  row,
unsigned int  interval,
int  margin 
)

Sets the margin of all cells in a set of repeating rows (beginning at row row and repeating every interval rows) to margin.

void QicsMappedDimensionManager::setRepeatingColumnMargin ( Qics::QicsGridType  grid_type,
int  col,
unsigned int  interval,
int  margin 
)

Sets the margin of all cells in a set of repeating columns (beginning at column col and repeating every interval columns) to margin.

void QicsMappedDimensionManager::setDefaultBorderWidth ( int  bw  ) 

Sets the border width of all cells in the table to bw.

void QicsMappedDimensionManager::setRowBorderWidth ( Qics::QicsGridType  grid_type,
int  row,
int  bw 
)

Sets the borderWidth of all cells in row row to bw.

void QicsMappedDimensionManager::setColumnBorderWidth ( Qics::QicsGridType  grid_type,
int  col,
int  bw 
)

Sets the border width of all cells in column col to bw.

void QicsMappedDimensionManager::setCellBorderWidth ( Qics::QicsGridType  grid_type,
int  row,
int  col,
int  bw 
)

Sets the border width of cell (row, col) to bw.

void QicsMappedDimensionManager::setRepeatingRowBorderWidth ( Qics::QicsGridType  grid_type,
int  row,
unsigned int  interval,
int  bw 
)

Sets the border width of all cells in a set of repeating rows (beginning at row row and repeating every interval rows) to bw.

void QicsMappedDimensionManager::setRepeatingColumnBorderWidth ( Qics::QicsGridType  grid_type,
int  col,
unsigned int  interval,
int  bw 
)

Sets the border width of all cells in a set of repeating columns (beginning at column col and repeating every interval columns) to bw.

bool QicsMappedDimensionManager::isRowStretchable ( int  row  )  const

Returns whether this row is stretchable.

void QicsMappedDimensionManager::setRowStretchable ( int  row,
bool  set 
)

Controls whether row row is stretchable.

bool QicsMappedDimensionManager::isColumnStretchable ( int  col  )  const

Returns whether this column is stretchable.

void QicsMappedDimensionManager::setColumnStretchable ( int  col,
bool  set 
)

Controls whether column col is stretchable.

void QicsMappedDimensionManager::stretchRows ( int  start_row,
int  end_row,
int  space 
)

Attempt to stretch row heights to accomodate the extra (or lost) space specified by space.

void QicsMappedDimensionManager::stretchColumns ( int  start_col,
int  end_col,
int  space 
)

Attempt to stretch column widths to accomodate the extra (or lost) space specified by space.

int QicsMappedDimensionManager::regionHeight ( const QicsRegion region  )  const

Computes and returns the height of the table region defined by region.

int QicsMappedDimensionManager::regionWidth ( const QicsRegion region  )  const

Computes and returns the width of the table region defined by region.

void QicsMappedDimensionManager::overrideRowHeight ( int  row,
int  height 
)

Temporarily override the height of row row to pixels. The height of the row can be reset by calling resetRowHeight().

void QicsMappedDimensionManager::overrideColumnWidth ( int  col,
int  width 
)

Temporarily override the width of column col to pixels. The width of the column can be reset by calling resetColumnWidth().

void QicsMappedDimensionManager::resetRowHeight ( int  row  ) 

Reset the height of row row from its temporary, overridden value to its normal height.

void QicsMappedDimensionManager::resetColumnWidth ( int  col  ) 

Reset the width of column col from its temporary, overridden value to its normal width.

int QicsMappedDimensionManager::overriddenRowHeight ( int  row  )  const

Returns true if the height of row row has been temporarily overridden, or false otherwise.

int QicsMappedDimensionManager::overriddenColumnWidth ( int  col  )  const

Returns true if the width of column col has been temporarily overridden, or false otherwise.

void QicsMappedDimensionManager::hideRow ( int  row  ) 

Marks row as hidden.

void QicsMappedDimensionManager::hideColumn ( int  col  ) 

Marks col as hidden.

void QicsMappedDimensionManager::showRow ( int  row  ) 

Marks row as shown.

void QicsMappedDimensionManager::showColumn ( int  col  ) 

Marks col as shown.

bool QicsMappedDimensionManager::isRowHidden ( int  row  )  const

Returns true is row is hidden, or false otherwise.

bool QicsMappedDimensionManager::isColumnHidden ( int  col  )  const

Returns true is col is hidden, or false otherwise.


The documentation for this class was generated from the following file:

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2007 Integrated Computer Solutions, Inc.