ICS

QicsTable Documentation Set

QicsStyleManager Class Reference

#include <QicsStyleManager.h>

Inherits Qics.

List of all members.

Public Types

enum  QicsSortMode { QicsStableSort = 0, QicsQuickSort }
enum  QicsCellOverflowBehavior { Clip = 0, Overflow, ToolTip }
enum  QicsCurrentCellStyle { Spreadsheet = 0, NormalSelected }
enum  QicsGridCellClipping { AllowPartial = 0, NoDisplayOnPartial, UseClippedSymbol }
enum  QicsGridType { TableGrid = 0, RowHeaderGrid, ColumnHeaderGrid }
enum  QicsHeaderType { RowHeader = 0, ColumnHeader }
enum  QicsIndexType { RowIndex, ColumnIndex }
enum  QicsLineStyle { None = 0, Plain, Raised, Sunken }
enum  QicsRepaintBehavior { RepaintOff = 0, RepaintOn = 1, RepaintCalcOnly = 2 }
enum  QicsScrollBarMode { Auto = 0, AlwaysOff, AlwaysOn }
enum  QicsScrollDirection {
  ScrollNone = 0, ScrollUp, ScrollDown, ScrollLeft,
  ScrollRight, ScrollToRow, ScrollToColumn
}
enum  QicsSelectionPolicy {
  SelectNone = 0, SelectSingle, SelectMultiple, SelectSingleRow,
  SelectMultipleRow
}
enum  QicsSelectionType {
  SelectionNone = 0, SelectionBegin, SelectionDrag, SelectionEnd,
  SelectionExtend, SelectionAdd
}
enum  QicsSortOrder { Ascending = 0, Descending }
enum  QicsTableDisplayOption { DisplayNever = 0, DisplayAlways, DisplayFirstPage }
enum  QicsTraversalKeyEditBehavior { TraverseWithinCell = 0, TraverseBetweenCells }

Public Slots

void insertRows (int num, int start_position)
void insertColumns (int num, int start_position)
void deleteRows (int num, int start_position)
void deleteColumns (int num, int start_position)

Signals

void cellPropertyChanged (QicsRegion reg, QicsCellStyle::QicsCellStyleProperty prop, bool visual_coords)
void gridPropertyChanged (QicsGridStyle::QicsGridStyleProperty prop)
void spanChanged (QicsSpan reg)

Public Member Functions

 QicsStyleManager (QicsGridType type, QicsGridInfo *grid_info, QWidget *template_widget)
 QicsStyleManager (QicsStyleManager *base_sm, QicsGridInfo *grid_info)
 ~QicsStyleManager ()
QicsGridType type (void) const
void * getCellProperty (int row, int col, QicsCellStyle::QicsCellStyleProperty name, int visual_row=-1, int visual_col=-1) const
void * getRowProperty (int row, QicsCellStyle::QicsCellStyleProperty name, int visual_row=-1) const
void * getColumnProperty (int col, QicsCellStyle::QicsCellStyleProperty name, int visual_col=-1) const
void * getRepeatingRowProperty (int row, unsigned int interval, QicsCellStyle::QicsCellStyleProperty name) const
void * getRepeatingColumnProperty (int col, unsigned int interval, QicsCellStyle::QicsCellStyleProperty name) const
void * getDefaultProperty (QicsCellStyle::QicsCellStyleProperty name) const
void setCellProperty (int row, int col, bool visual_coords, QicsCellStyle::QicsCellStyleProperty name, const void *val)
void setRowProperty (int row, bool visual_coords, QicsCellStyle::QicsCellStyleProperty name, const void *val, bool override=true)
void setColumnProperty (int col, bool visual_coords, QicsCellStyle::QicsCellStyleProperty name, const void *val, bool override=true)
void setRepeatingRowProperty (int row, unsigned int interval, QicsCellStyle::QicsCellStyleProperty name, const void *val)
void setRepeatingColumnProperty (int col, unsigned int interval, QicsCellStyle::QicsCellStyleProperty name, const void *val)
void setDefaultProperty (QicsCellStyle::QicsCellStyleProperty name, const void *val)
void clearRowProperty (int row, bool visual_coords, QicsCellStyle::QicsCellStyleProperty name)
void clearColumnProperty (int col, bool visual_coords, QicsCellStyle::QicsCellStyleProperty name)
void clearRepeatingRowProperty (int row, unsigned int interval, QicsCellStyle::QicsCellStyleProperty name)
void clearRepeatingColumnProperty (int col, unsigned int interval, QicsCellStyle::QicsCellStyleProperty name)
void clearCellProperty (int row, int col, bool visual_coords, QicsCellStyle::QicsCellStyleProperty name)
void setGridProperty (QicsGridStyle::QicsGridStyleProperty name, const void *val)
void * getGridProperty (QicsGridStyle::QicsGridStyleProperty name) const
void setReportChanges (bool report)
bool isReportingChanges (void) const
QicsSpanManagerspanManager (void) const

Protected Member Functions

void * cellProp (int row, int col, QicsCellStyle::QicsCellStyleProperty prop, const QicsCellStylePVPV &styles) const
void * rowProp (int row, QicsCellStyle::QicsCellStyleProperty prop, const QicsCellStylePV &styles) const
void * columnProp (int col, QicsCellStyle::QicsCellStyleProperty prop, const QicsCellStylePV &styles) const
void * repeatingRowProp (int start_row, unsigned int interval, QicsCellStyle::QicsCellStyleProperty prop, const QicsRepeatingCellStylePV &styles) const
void * repeatingRowProp (int row, QicsCellStyle::QicsCellStyleProperty prop, const QicsRepeatingCellStylePV &styles) const
void * repeatingColumnProp (int col, unsigned int interval, QicsCellStyle::QicsCellStyleProperty prop, const QicsRepeatingCellStylePV &styles) const
void * repeatingColumnProp (int col, QicsCellStyle::QicsCellStyleProperty prop, const QicsRepeatingCellStylePV &styles) const
void * defaultProp (QicsCellStyle::QicsCellStyleProperty prop) const
void clearStyleGivenVectorOfRows (QicsCellStylePV &row_vec, int row, QicsCellStyle::QicsCellStyleProperty name, bool save_space)
QicsGridInfogridInfo (void) const

Protected Attributes

QicsGridType myType
QicsCellStylemyDefaultStyle
QicsGridStylemyGridStyle
QicsCellStylePV myVectorOfModelRowStyles
QicsCellStylePV myVectorOfModelColumnStyles
QicsCellStylePV myVectorOfVisualRowStyles
QicsCellStylePV myVectorOfVisualColumnStyles
QicsCellStylePVPV myVectorOfModelColumns
QicsCellStylePVPV myVectorOfVisualColumns
bool myReportChanges
QicsSpanManagermySpanManager
QicsStyleManagermyBaseSM
QicsRepeatingCellStylePV myVectorOfRepeatingRowStyles
QicsRepeatingCellStylePV myVectorOfRepeatingColumnStyles
QicsGridInfomyGridInfo

Private Member Functions

void deleteCellStyleVectors (QicsCellStylePVPV &vcols)
void deleteCellStyles (QicsCellStylePV &csv)
void deleteRepeatingCellStyles (QicsRepeatingCellStylePV &csv)


Member Enumeration Documentation

enum Qics::QicsSortMode [inherited]

Denotes the sort algorithm wich used

Enumerator:
QicsStableSort 
QicsQuickSort 

enum Qics::QicsCellOverflowBehavior [inherited]

Denotes the behavior of grids when handling cells whose contents cannot be displayed in the boundaries of the cell.

Enumerator:
Clip 
Overflow 
ToolTip 

enum Qics::QicsCurrentCellStyle [inherited]

Denotes the visual style that the current cell of the table will be drawn with.

Enumerator:
Spreadsheet 
NormalSelected 

enum Qics::QicsGridCellClipping [inherited]

Denotes the policy for displaying text that is too long to fit in its cell

Enumerator:
AllowPartial 
NoDisplayOnPartial 
UseClippedSymbol 

enum Qics::QicsGridType [inherited]

Specifies a type of grid object.

Enumerator:
TableGrid 
RowHeaderGrid 
ColumnHeaderGrid 

enum Qics::QicsHeaderType [inherited]

Specifies the type of table header.

Enumerator:
RowHeader 
ColumnHeader 

enum Qics::QicsIndexType [inherited]

Specifies the type of table index.

Enumerator:
RowIndex 
ColumnIndex 

enum Qics::QicsLineStyle [inherited]

Denotes the style of lines and borders in the table widget.

Enumerator:
None 
Plain 
Raised 
Sunken 

enum Qics::QicsRepaintBehavior [inherited]

Specifies the recalculation and repainting behavior of tables and grids.

Enumerator:
RepaintOff 
RepaintOn 
RepaintCalcOnly 

enum Qics::QicsScrollBarMode [inherited]

Specifies the various modes of QicsTable's scroll bars.

Enumerator:
Auto 
AlwaysOff 
AlwaysOn 

enum Qics::QicsScrollDirection [inherited]

Denotes a direction for scrolling operations, or that an absolute scroll should occur.

Enumerator:
ScrollNone 
ScrollUp 
ScrollDown 
ScrollLeft 
ScrollRight 
ScrollToRow 
ScrollToColumn 

enum Qics::QicsSelectionPolicy [inherited]

Denotes the selection policy for the table.

Enumerator:
SelectNone 
SelectSingle 
SelectMultiple 
SelectSingleRow 
SelectMultipleRow 

enum Qics::QicsSelectionType [inherited]

Enumerator:
SelectionNone 
SelectionBegin 
SelectionDrag 
SelectionEnd 
SelectionExtend 
SelectionAdd 

enum Qics::QicsSortOrder [inherited]

Specifies if ordering should be ascending or descending.

Enumerator:
Ascending 
Descending 

enum Qics::QicsTableDisplayOption [inherited]

Specifies a printing display policy for elements of the table

Enumerator:
DisplayNever 
DisplayAlways 
DisplayFirstPage 

enum Qics::QicsTraversalKeyEditBehavior [inherited]

Specifies the behavior of the traversal keys (left, right, up, down, etc) while editing a cell.

Enumerator:
TraverseWithinCell 
TraverseBetweenCells 


Constructor & Destructor Documentation

QicsStyleManager::QicsStyleManager ( QicsGridType  type,
QicsGridInfo grid_info,
QWidget *  template_widget 
)

QicsStyleManager::QicsStyleManager ( QicsStyleManager base_sm,
QicsGridInfo grid_info 
)

Constructor for a style manager which "shadows" a base style manager. The new style manager begins empty, without a default table style. If a call to getCellProperty, getRowProperty, getColumnProperty, or getDefaultProperty would result in no value being returned, the "shadowed" base style manager is used to retrieve the appropriate value for the requested property.

QicsStyleManager::~QicsStyleManager (  ) 


Member Function Documentation

QicsGridType QicsStyleManager::type ( void   )  const [inline]

void* QicsStyleManager::getCellProperty ( int  row,
int  col,
QicsCellStyle::QicsCellStyleProperty  name,
int  visual_row = -1,
int  visual_col = -1 
) const

void* QicsStyleManager::getRowProperty ( int  row,
QicsCellStyle::QicsCellStyleProperty  name,
int  visual_row = -1 
) const

void* QicsStyleManager::getColumnProperty ( int  col,
QicsCellStyle::QicsCellStyleProperty  name,
int  visual_col = -1 
) const

void* QicsStyleManager::getRepeatingRowProperty ( int  row,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  name 
) const

void* QicsStyleManager::getRepeatingColumnProperty ( int  col,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  name 
) const

void* QicsStyleManager::getDefaultProperty ( QicsCellStyle::QicsCellStyleProperty  name  )  const

void QicsStyleManager::setCellProperty ( int  row,
int  col,
bool  visual_coords,
QicsCellStyle::QicsCellStyleProperty  name,
const void *  val 
)

void QicsStyleManager::setRowProperty ( int  row,
bool  visual_coords,
QicsCellStyle::QicsCellStyleProperty  name,
const void *  val,
bool  override = true 
)

void QicsStyleManager::setColumnProperty ( int  col,
bool  visual_coords,
QicsCellStyle::QicsCellStyleProperty  name,
const void *  val,
bool  override = true 
)

void QicsStyleManager::setRepeatingRowProperty ( int  row,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  name,
const void *  val 
)

void QicsStyleManager::setRepeatingColumnProperty ( int  col,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  name,
const void *  val 
)

void QicsStyleManager::setDefaultProperty ( QicsCellStyle::QicsCellStyleProperty  name,
const void *  val 
)

void QicsStyleManager::clearRowProperty ( int  row,
bool  visual_coords,
QicsCellStyle::QicsCellStyleProperty  name 
)

void QicsStyleManager::clearColumnProperty ( int  col,
bool  visual_coords,
QicsCellStyle::QicsCellStyleProperty  name 
)

void QicsStyleManager::clearRepeatingRowProperty ( int  row,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  name 
)

void QicsStyleManager::clearRepeatingColumnProperty ( int  col,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  name 
)

void QicsStyleManager::clearCellProperty ( int  row,
int  col,
bool  visual_coords,
QicsCellStyle::QicsCellStyleProperty  name 
)

void QicsStyleManager::setGridProperty ( QicsGridStyle::QicsGridStyleProperty  name,
const void *  val 
)

void* QicsStyleManager::getGridProperty ( QicsGridStyle::QicsGridStyleProperty  name  )  const

void QicsStyleManager::setReportChanges ( bool  report  )  [inline]

bool QicsStyleManager::isReportingChanges ( void   )  const [inline]

QicsSpanManager* QicsStyleManager::spanManager ( void   )  const [inline]

void QicsStyleManager::insertRows ( int  num,
int  start_position 
) [slot]

void QicsStyleManager::insertColumns ( int  num,
int  start_position 
) [slot]

void QicsStyleManager::deleteRows ( int  num,
int  start_position 
) [slot]

void QicsStyleManager::deleteColumns ( int  num,
int  start_position 
) [slot]

void QicsStyleManager::cellPropertyChanged ( QicsRegion  reg,
QicsCellStyle::QicsCellStyleProperty  prop,
bool  visual_coords 
) [signal]

void QicsStyleManager::gridPropertyChanged ( QicsGridStyle::QicsGridStyleProperty  prop  )  [signal]

void QicsStyleManager::spanChanged ( QicsSpan  reg  )  [signal]

void* QicsStyleManager::cellProp ( int  row,
int  col,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsCellStylePVPV styles 
) const [protected]

void* QicsStyleManager::rowProp ( int  row,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsCellStylePV styles 
) const [protected]

void* QicsStyleManager::columnProp ( int  col,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsCellStylePV styles 
) const [protected]

void* QicsStyleManager::repeatingRowProp ( int  start_row,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsRepeatingCellStylePV styles 
) const [protected]

void* QicsStyleManager::repeatingRowProp ( int  row,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsRepeatingCellStylePV styles 
) const [protected]

void* QicsStyleManager::repeatingColumnProp ( int  col,
unsigned int  interval,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsRepeatingCellStylePV styles 
) const [protected]

void* QicsStyleManager::repeatingColumnProp ( int  col,
QicsCellStyle::QicsCellStyleProperty  prop,
const QicsRepeatingCellStylePV styles 
) const [protected]

void* QicsStyleManager::defaultProp ( QicsCellStyle::QicsCellStyleProperty  prop  )  const [protected]

void QicsStyleManager::clearStyleGivenVectorOfRows ( QicsCellStylePV row_vec,
int  row,
QicsCellStyle::QicsCellStyleProperty  name,
bool  save_space 
) [protected]

QicsGridInfo* QicsStyleManager::gridInfo ( void   )  const [inline, protected]

void QicsStyleManager::deleteCellStyleVectors ( QicsCellStylePVPV vcols  )  [private]

void QicsStyleManager::deleteCellStyles ( QicsCellStylePV csv  )  [private]

void QicsStyleManager::deleteRepeatingCellStyles ( QicsRepeatingCellStylePV csv  )  [private]


Member Data Documentation

QicsGridType QicsStyleManager::myType [protected]

QicsCellStyle* QicsStyleManager::myDefaultStyle [protected]

QicsGridStyle* QicsStyleManager::myGridStyle [protected]

QicsCellStylePV QicsStyleManager::myVectorOfModelRowStyles [protected]

QicsCellStylePV QicsStyleManager::myVectorOfModelColumnStyles [protected]

QicsCellStylePV QicsStyleManager::myVectorOfVisualRowStyles [protected]

QicsCellStylePV QicsStyleManager::myVectorOfVisualColumnStyles [protected]

QicsCellStylePVPV QicsStyleManager::myVectorOfModelColumns [protected]

QicsCellStylePVPV QicsStyleManager::myVectorOfVisualColumns [protected]

bool QicsStyleManager::myReportChanges [protected]

QicsSpanManager* QicsStyleManager::mySpanManager [protected]

QicsStyleManager* QicsStyleManager::myBaseSM [protected]

QicsRepeatingCellStylePV QicsStyleManager::myVectorOfRepeatingRowStyles [protected]

QicsRepeatingCellStylePV QicsStyleManager::myVectorOfRepeatingColumnStyles [protected]

QicsGridInfo* QicsStyleManager::myGridInfo [protected]


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-2006 Integrated Computer Solutions, Inc.