ICS

QicsTable Documentation Set

QicsTableCommon Class Reference

Superclass defining table-wide attributes and settings. More...

#include <QicsTableCommon.h>

Inherits QicsGridCommon.

Inherited by QicsTablePrint.

List of all members.

Common Table Properties

QicsTableDisplayOption topHeaderVisible
QicsTableDisplayOption bottomHeaderVisible
QicsTableDisplayOption leftHeaderVisible
QicsTableDisplayOption rightHeaderVisible
int tableMargin
int tableSpacing
int gridSpacing
bool columnHeaderUsesModel
bool rowHeaderUsesModel
bool ignoreModelSizeChanges

Common Grid Properties

int frameLineWidth
int frameStyle
bool horizontalGridLinesVisible
bool verticalGridLinesVisible
int horizontalGridLineWidth
int verticalGridLineWidth
QPalette gridPalette
QicsLineStyle horizontalGridLineStyle
QPen horizontalGridLinePen
QPen verticalGridLinePen
QicsLineStyle verticalGridLineStyle
QicsCellOverflowBehavior cellOverflowBehavior
int maxOverflowCells
bool drawPartialCells
QicsGridCellClipping gridCellClipping
QicsCurrentCellStyle currentCellStyle
QicsSelectionStyle selectionStyle
int currentCellBorderWidth
bool clickToEdit
QicsCellDecorationStyle cellDecorationStyle
bool autoSelectCellContents
QicsTraversalKeyEditBehavior traversalKeyEditBehavior
Qt::Orientation enterTraversalDirection
Qt::Orientation tabTraversalDirection
bool tabTraverseToBegin
bool enterTraverseToBegin
QPixmap moreTextPixmap
bool dragEnabled
Qt::LayoutDirection layoutDirection
QicsIndexType fakeCellsDrawingIndex
QicsCurrentCellDraggingPolicy currentCellDraggingPolicy

Public Types

enum  QicsWideKeyAction { Del_DeleteSelected, CtrlA_SelectAll }
enum  QicsBoxBorders {
  TopBorder = 1, BottomBorder = 2, LeftBorder = 4, RightBorder = 8,
  AllBorders = 1+2+4+8
}
enum  QicsCopyPolicy {
  CopyData = 1, CopyAttributes = 2, CopyDimensions = 4, CopySpans = 8,
  CopyAll = 1+2+4+8
}
enum  QicsClearPolicy { ClearData = 1, ClearAttributes = 2, ClearSpans = 4, ClearAll = 1+2+4 }
enum  QicsSortMode { QicsStableSort = 0, QicsQuickSort }
enum  QicsCellOverflowBehavior { Clip = 0, Overflow, ToolTip }
enum  QicsCurrentCellStyle { Spreadsheet = 0, NormalSelected }
enum  QicsSelectionStyle { Normal = 0, Exclusive }
enum  QicsSelectCurrentCellPolicy { Follow = 0, Static }
enum  QicsFillHandleEventType { FillHandlePressed = 0, FillHandleReleased, FillHandleDoubleClicked, FillHandleDragged }
enum  QicsGridCellClipping { AllowPartial = 0, NoDisplayOnPartial, UseClippedSymbol }
enum  QicsGridType { TableGrid = 0, RowHeaderGrid, ColumnHeaderGrid }
enum  QicsHeaderType { RowHeader = 0, ColumnHeader }
enum  QicsIndexType { NoIndex = 0, RowIndex, ColumnIndex, RowAndColumnIndex }
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 = 1, ScrollDown = 2, ScrollLeft = 4,
  ScrollRight = 8, ScrollToRow = 16, ScrollToColumn = 32
}
enum  QicsSelectionPolicy {
  SelectNone = 0, SelectSingle, SelectMultiple, SelectSingleRow,
  SelectMultipleRow
}
enum  QicsSelectionType {
  SelectionNone = 0, SelectionBegin, SelectionDrag, SelectionEnd,
  SelectionExtend, SelectionAdd, SelectionReplace
}
enum  QicsSortOrder { Ascending = 0, Descending }
enum  QicsTableDisplayOption { DisplayNever = 0, DisplayAlways, DisplayFirstPage }
enum  QicsTraversalKeyEditBehavior { TraverseWithinCell = 0, TraverseBetweenCells }
enum  QicsCurrentCellDraggingPolicy { DragCurrent = 0, DragSelection }
enum  QicsCellWidthMode { ChangeOnlyHeight = 0, ChangeHeightWidth }
enum  QicsCellDecorationStyle { Flat = 0, Styled = 1 }

Public Slots

void setTopHeaderVisible (QicsTableDisplayOption)
void setBottomHeaderVisible (QicsTableDisplayOption)
void setLeftHeaderVisible (QicsTableDisplayOption)
void setRightHeaderVisible (QicsTableDisplayOption)
void setTableMargin (int margin)
void setTableSpacing (int spacing)
void setGridSpacing (int spacing)
void setRowHeaderUsesModel (bool b)
void setColumnHeaderUsesModel (bool b)
void setIgnoreModelSizeChanges (bool b)
void deleteColumn (int column)
void addColumns (int howMany)
void insertColumn (int column)
void deleteRow (int row)
void addRows (int rows)
void insertRow (int row)
void setDefaultRowHeightInPixels (int height)
void setDefaultRowHeightInChars (int height)
void setDefaultColumnWidthInPixels (int width)
void setDefaultColumnWidthInChars (int width)
virtual void setViewport (const QicsRegion &vp)
void removeCellSpan (int start_row, int start_col, bool visual=true)
void setHorizontalGridLinesVisible (bool b)
void setVerticalGridLinesVisible (bool b)
void setHorizontalGridLineWidth (int w)
void setVerticalGridLineWidth (int w)
void setHorizontalGridLineStyle (QicsLineStyle style)
void setVerticalGridLineStyle (QicsLineStyle style)
void setHorizontalGridLinePen (const QPen &pen)
void setVerticalGridLinePen (const QPen &pen)
void setDrawPartialCells (bool b)
void setGridCellClipping (QicsGridCellClipping c)
void setCellOverflowBehavior (QicsCellOverflowBehavior b)
void setMaxOverflowCells (int num)
void setFrameStyle (int style)
void setFrameLineWidth (int lw)
void setCurrentCellStyle (QicsCurrentCellStyle s)
void setSelectionStyle (QicsSelectionStyle s)
void setHighlightSelection (bool s)
void setCurrentCellBorderWidth (int w)
void setClickToEdit (bool b)
void setAutoSelectCellContents (bool b)
void setTraversalKeyEditBehavior (QicsTraversalKeyEditBehavior beh)
void setEnterTraversalDirection (Qt::Orientation dir)
void setTabTraversalDirection (Qt::Orientation dir)
void setTabTraverseToBegin (bool traverse)
void setEnterTraverseToBegin (bool traverse)
void setMoreTextPixmap (const QPixmap &pix)
void setGridPalette (const QPalette &pal)
void setDragEnabled (bool b)
void setLayoutDirection (Qt::LayoutDirection layoutDirection)
bool canAcceptDrops (void) const
void setMargin (int margin)
void setReadOnly (bool b)
void setFont (const QFont &font)
void setSelectedFont (const QFont &font)
void setPalette (const QPalette &pal)
void setForegroundColor (const QColor &p)
void setBackgroundColor (const QColor &p)
void setSelectedForegroundColor (const QColor &p)
void setSelectedBackgroundColor (const QColor &p)
void setEditForegroundColor (const QColor &p)
void setEditBackgroundColor (const QColor &p)
void setHighlightForegroundColor (const QColor &p)
void setHighlightBackgroundColor (const QColor &p)
void setPixmap (const QPixmap &p)
void setPixmap (const QString &file_name)
void setPixmapSpacing (int sp)
void setDisplayer (QicsCellDisplay *d)
void setFormatter (QicsDataItemFormatter *d)
void setAlignment (int flags)
void setEnabled (bool b)
void setTextFlags (int flags)
void setValidator (QValidator *v)
void setPasteValidator (QicsPasteValidator *v)
void setLabel (const QString &label)
void setMaxLength (int len)
void setCursor (const QCursor &c)
void unsetCursor (void)
void setBorderWidth (int bw)
void setTopBorderPen (const QPen &pen)
void setLeftBorderPen (const QPen &pen)
void setRightBorderPen (const QPen &pen)
void setBottomBorderPen (const QPen &pen)
void setUserData (void *data)
void setToolTipText (const QString &txt)
void setAutoRecognition (const bool flag)
void setCanAcceptDrops (const bool)

Signals

void pressed (int row, int col, int button, const QPoint &pos)
void clicked (int row, int col, int button, const QPoint &pos)
void doubleClicked (int row, int col, int button, const QPoint &pos)
void valueChanged (int row, int col)

Public Member Functions

 QicsTableCommon (QObject *parent=0, bool forward_signals=false)
QicsDataModeldataModel (void) const
virtual void setDataModel (QicsDataModel *dm)
QicsRowrowRef (int rownum)
const QicsRowrowRef (int rownum) const
QicsRowrow (int rownum, bool follow_model=true)
const QicsRowrow (int rownum, bool follow_model=true) const
QicsColumncolumnRef (int colnum)
const QicsColumncolumnRef (int colnum) const
QicsColumncolumn (int colnum, bool follow_model=true)
const QicsColumncolumn (int colnum, bool follow_model=true) const
QicsRepeatingRowrepeatingRowRef (int start_row, unsigned int interval)
const QicsRepeatingRowrepeatingRowRef (int start_row, unsigned int interval) const
QicsRepeatingRowrepeatingRow (int start_row, unsigned int interval)
const QicsRepeatingRowrepeatingRow (int start_row, unsigned int interval) const
QicsRepeatingColumnrepeatingColumnRef (int start_col, unsigned int interval)
const QicsRepeatingColumnrepeatingColumnRef (int start_col, unsigned int interval) const
QicsRepeatingColumnrepeatingColumn (int start_col, unsigned int interval)
const QicsRepeatingColumnrepeatingColumn (int start_col, unsigned int interval) const
QicsCellcellRef (int rownum, int colnum)
const QicsCellcellRef (int rownum, int colnum) const
QicsCellcell (int rownum, int colnum, bool follow_model=true)
const QicsCellcell (int rownum, int colnum, bool follow_model=true) const
QicsMainGridmainGridRef (void)
const QicsMainGridmainGridRef (void) const
QicsMainGridmainGrid (void)
const QicsMainGridmainGrid (void) const
QicsRowHeaderrowHeaderRef (void)
const QicsRowHeaderrowHeaderRef (void) const
QicsRowHeaderrowHeader (void)
const QicsRowHeaderrowHeader (void) const
QicsColumnHeadercolumnHeaderRef (void)
const QicsColumnHeadercolumnHeaderRef (void) const
QicsColumnHeadercolumnHeader (void)
const QicsColumnHeadercolumnHeader (void) const
QicsTableDisplayOption topHeaderVisible (void) const
QicsTableDisplayOption bottomHeaderVisible (void) const
QicsTableDisplayOption leftHeaderVisible (void) const
QicsTableDisplayOption rightHeaderVisible (void) const
int tableMargin (void) const
int tableSpacing (void) const
int gridSpacing (void) const
bool columnHeaderUsesModel (void) const
bool rowHeaderUsesModel (void) const
bool ignoreModelSizeChanges (void) const
void sortRows (const QVector< int > &columns, QicsSortOrder order=Qics::Ascending, int from=0, int to=-1, DataItemComparator func=0)
void sortColumns (const QVector< int > &rows, QicsSortOrder order=Qics::Ascending, int from=0, int to=-1, DataItemComparator func=0)
void setSortingSensitivity (Qt::CaseSensitivity cs)
void moveRows (int target_row, const QVector< int > &rows)
void moveColumns (int target_col, const QVector< int > &cols)
bool setMouseButton (Qt::MouseButton, Qt::Modifier, Qt::MouseButton)
int frameLineWidth (void) const
int frameStyle (void) const
bool horizontalGridLinesVisible (void) const
bool verticalGridLinesVisible (void) const
int horizontalGridLineWidth (void) const
int verticalGridLineWidth (void) const
QPalette gridPalette (void) const
QicsLineStyle horizontalGridLineStyle (void) const
QPen horizontalGridLinePen (void) const
QPen verticalGridLinePen (void) const
QicsLineStyle verticalGridLineStyle (void) const
QicsCellOverflowBehavior cellOverflowBehavior (void) const
int maxOverflowCells (void) const
bool drawPartialCells () const
QicsGridCellClipping gridCellClipping () const
QicsCurrentCellStyle currentCellStyle (void) const
QicsSelectionStyle selectionStyle (void) const
int currentCellBorderWidth (void) const
bool clickToEdit (void) const
Qics::QicsCellDecorationStyle cellDecorationStyle (void) const
bool autoSelectCellContents (void) const
QicsTraversalKeyEditBehavior traversalKeyEditBehavior (void) const
Qt::Orientation enterTraversalDirection (void) const
Qt::Orientation tabTraversalDirection (void) const
bool tabTraverseToBegin () const
bool enterTraverseToBegin () const
QPixmap moreTextPixmap (void) const
bool dragEnabled (void) const
Qt::LayoutDirection layoutDirection (void) const
Qics::QicsIndexType fakeCellsDrawingIndex (void) const
Qics::QicsCurrentCellDraggingPolicy currentCellDraggingPolicy () const
virtual void setInfo (QicsGridInfo *info)
virtual QicsRegion viewport (void) const
bool addCellSpan (QicsSpan span, bool visual=true)
QicsSpanList * cellSpanList (void)
bool highlightSelection (void) const
void setFakeCellsDrawingIndex (Qics::QicsIndexType type)
void setCurrentCellDraggingPolicy (Qics::QicsCurrentCellDraggingPolicy policy)
int exclusiveSelectionBorderWidth () const
void setExclusiveSelectionBorderWidth (int w)
QColor exclusiveSelectionBorderColor () const
void setExclusiveSelectionBorderColor (const QColor &c)
QColor exclusiveSelectionHandleColor () const
void setExclusiveSelectionHandleColor (const QColor &c)
QColor exclusiveSelectionHandleBackColor () const
void setExclusiveSelectionHandleBackColor (const QColor &c)
QColor exclusiveSelectionDragBackColor () const
void setExclusiveSelectionDragBackColor (const QColor &c)
QPen exclusiveSelectionDragPen () const
void setExclusiveSelectionDragPen (const QPen &p)
float exclusiveSelectionDragOpacity () const
void setExclusiveSelectionDragOpacity (float op)
QicsRubberBand::DrawingMode exclusiveSelectionDragMode () const
void setExclusiveSelectionDragMode (QicsRubberBand::DrawingMode mode)
void setCellDecorationStyle (Qics::QicsCellDecorationStyle s)
QicsMouseMapmouseButtonRef (void)
QString label (void) const
bool enabled (void) const
bool readOnly (void) const
virtual bool selected (void) const
QFont font (void) const
QPalette palette (void) const
QColor foregroundColor (void) const
QColor backgroundColor (void) const
QColor selectedForegroundColor (void) const
QColor selectedBackgroundColor (void) const
QPixmap pixmap (void) const
int pixmapSpacing (void) const
const QCursor & cursor (void) const
int alignment (void) const
int textFlags (void) const
int maxLength (void) const
int margin (void) const
int borderWidth (void) const
QPen topBorderPen (void) const
QPen leftBorderPen (void) const
QPen rightBorderPen (void) const
QPen bottomBorderPen (void) const
QString toolTipText (void) const
QColor editForegroundColor (void) const
QColor editBackgroundColor (void) const
bool autoRecognition (void)
QicsPasteValidatorpasteValidator (void) const
QValidator * validator (void) const
QFont selectedFont (void) const
QColor highlightForegroundColor (void) const
QColor highlightBackgroundColor (void) const
QicsCellDisplaydisplayer (void) const
QicsDataItemFormatterformatter (void) const
void * userData (void) const

Public Attributes

QString label
bool enabled
bool readOnly
bool selected
QFont font
QPalette palette
QColor foregroundColor
QColor backgroundColor
QColor selectedForegroundColor
QColor selectedBackgroundColor
QPixmap pixmap
int pixmapSpacing
QCursor cursor
int alignment
int textFlags
int maxLength
int margin
int borderWidth
QPen topBorderPen
QPen leftBorderPen
QPen rightBorderPen
QPen bottomBorderPen
QString toolTipText
QColor editForegroundColor
QColor editBackgroundColor
bool autoRecognition

Protected Slots

virtual void connectGrid (QicsScreenGrid *grid)
virtual void disconnectGrid (QicsScreenGrid *grid)
void handleGridPress (int row, int col, int button, const QPoint &pos)
void handleGridClick (int row, int col, int button, const QPoint &pos)
void handleGridDoubleClick (int row, int col, int button, const QPoint &pos)
void gridDeleted ()

Protected Member Functions

void registerMetaTypes ()
virtual void setAttr (QicsCellStyle::QicsCellStyleProperty attr, const void *val)
virtual void setGridAttr (QicsGridStyle::QicsGridStyleProperty attr, const void *val)
virtual void clearGridAttr (QicsGridStyle::QicsGridStyleProperty attr)
const QicsGridInfogridInfo (void) const
const QicsGridInforhGridInfo (void) const
const QicsGridInfochGridInfo (void) const
QicsGridInfogridInfo (void)
QicsGridInforhGridInfo (void)
QicsGridInfochGridInfo (void)
virtual void * getAttr (QicsCellStyle::QicsCellStyleProperty attr) const
virtual void clearAttr (QicsCellStyle::QicsCellStyleProperty attr)
virtual void * getGridAttr (QicsGridStyle::QicsGridStyleProperty attr) const
virtual void setDMMargin (int margin)
virtual void setDMFont (const QFont &font)
virtual void setDMBorderWidth (int bw)
void initSignals (void)
virtual void setDMFitSize (int, int)
QicsStyleManager & styleManager (void) const
QicsDimensionManager & dimensionManager (void) const

Protected Attributes

QicsGridInfo myMainGridInfo
QicsGridInfo myRowHeaderGridInfo
QicsGridInfo myColumnHeaderGridInfo
QicsDataModelmyRHDataModel
QicsDataModelmyCHDataModel
QicsCellmyCell
QicsRowmyRow
QicsColumnmyColumn
QicsRepeatingRowmyRepeatingRow
QicsRepeatingColumnmyRepeatingColumn
QicsMainGridmyMainGrid
QicsRowHeadermyRowHeader
QicsColumnHeadermyColumnHeader
QicsTableDisplayOption myTopHeaderVisible
QicsTableDisplayOption myBottomHeaderVisible
QicsTableDisplayOption myLeftHeaderVisible
QicsTableDisplayOption myRightHeaderVisible
int myTableMargin
int myTableSpacing
int myGridSpacing
bool myRowHeaderUsesModel
bool myColumnHeaderUsesModel
bool myForwardSignals
QPointer< QicsGridInfomyInfo
bool myFollowModel

Properties

QicsPasteValidator pasteValidator
QValidator validator
bool canAcceptDrops

Friends

class QicsTable
class QicsTablePrint


Detailed Description

Superclass defining table-wide attributes and settings.

QicsTableCommon is a class defining table-wide attributes and settings. It is not meant to be instantiated directly. Rather, it serves as a superclass for QicsTablePrint, and is used by QicsTable.


Member Enumeration Documentation

enum Qics::QicsWideKeyAction [inherited]

Denotes global key actions available for the table grid.

enum Qics::QicsBoxBorders [inherited]

Denotes the box borders of cell region.

enum Qics::QicsCopyPolicy [inherited]

Denotes the copying policy during copy/paste and drag/drop operations.

enum Qics::QicsClearPolicy [inherited]

Denotes the clearing policy during cut and delete operations.

enum Qics::QicsSortMode [inherited]

Denotes the sort algorithm which is used.

enum Qics::QicsCellOverflowBehavior [inherited]

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

enum Qics::QicsCurrentCellStyle [inherited]

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

enum Qics::QicsSelectionStyle [inherited]

enum Qics::QicsSelectCurrentCellPolicy [inherited]

enum Qics::QicsGridCellClipping [inherited]

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

enum Qics::QicsGridType [inherited]

Specifies a type of grid object.

enum Qics::QicsHeaderType [inherited]

Specifies the type of table header.

enum Qics::QicsIndexType [inherited]

Specifies the type of table index.

enum Qics::QicsLineStyle [inherited]

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

enum Qics::QicsRepaintBehavior [inherited]

Specifies the recalculation and repainting behavior of tables and grids.

enum Qics::QicsScrollBarMode [inherited]

Specifies the various modes of QicsTable's scroll bars.

enum Qics::QicsScrollDirection [inherited]

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

enum Qics::QicsSelectionPolicy [inherited]

Denotes the selection policy for the table.

enum Qics::QicsSortOrder [inherited]

Specifies whenever ordering should be ascending or descending.

enum Qics::QicsTableDisplayOption [inherited]

Specifies a printing display policy for elements of the table.

enum Qics::QicsTraversalKeyEditBehavior [inherited]

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

enum Qics::QicsCurrentCellDraggingPolicy [inherited]

Specifies the behavior of drag&drop operations when it has began from current cell.

enum Qics::QicsCellWidthMode [inherited]

Specifies the behavior of set cell font.

enum Qics::QicsCellDecorationStyle [inherited]

Specifies the cell decoration style for headers.


Member Function Documentation

QicsDataModel* QicsTableCommon::dataModel ( void   )  const

Returns the data model object associated with this table.

See also:
setDataModel()

Reimplemented from QicsCellCommon.

virtual void QicsTableCommon::setDataModel ( QicsDataModel dm  )  [virtual]

Sets the data model object associated with this table.

See also:
dataModel()

QicsRow& QicsTableCommon::rowRef ( int  rownum  ) 

Returns a reference to an internal flyweight QicsRow object that refers to row rownum.

See also:
row()

const QicsRow& QicsTableCommon::rowRef ( int  rownum  )  const

Returns a const reference to an internal flyweight QicsRow object that refers to row rownum.

See also:
row()

QicsRow* QicsTableCommon::row ( int  rownum,
bool  follow_model = true 
)

Returns a newly allocated QicsRow object for row rownum. If follow_model is true, the row object will always refer to the row in the data model that is currently being displayed in row rownum, even if rows of the table are reordered. If follow_model is false, the row will always refer to the visual row rownum, but the underlying row in the data model may change.

See also:
rowRef()

const QicsRow* QicsTableCommon::row ( int  rownum,
bool  follow_model = true 
) const

Returns a newly allocated const QicsRow object for row rownum. If follow_model is true, the row object will always refer to the row in the data model that is currently being displayed in row rownum, even if rows of the table are reordered. If follow_model is false, the row will always refer to the visual row rownum, but the underlying row in the data model may change.

See also:
rowRef()

QicsColumn& QicsTableCommon::columnRef ( int  colnum  ) 

Returns a reference to an internal flyweight QicsColumn object that refers to column colnum.

See also:
column()

const QicsColumn& QicsTableCommon::columnRef ( int  colnum  )  const

Returns a const reference to an internal flyweight QicsColumn object that refers to column colnum.

See also:
column()

QicsColumn* QicsTableCommon::column ( int  colnum,
bool  follow_model = true 
)

Returns a newly allocated QicsColumn object for column colnum. If follow_model is true, the column object will always refer to the column in the data model that is currently being displayed in column colnum, even if columns of the table are reordered. If follow_model is false, the column will always refer to the visual column colnum, but the underlying column in the data model may change.

See also:
columnRef()

const QicsColumn* QicsTableCommon::column ( int  colnum,
bool  follow_model = true 
) const

Returns a newly allocated const QicsColumn object for column colnum. If follow_model is true, the column object will always refer to the column in the data model that is currently being displayed in column colnum, even if columns of the table are reordered. If follow_model is false, the column will always refer to the visual column colnum, but the underlying column in the data model may change.

See also:
columnRef()

QicsRepeatingRow& QicsTableCommon::repeatingRowRef ( int  start_row,
unsigned int  interval 
)

Returns a reference to an internal flyweight QicsRepeatingRow object that refers to a repeating sequence starting at start_row and repeating each interval rows.

See also:
repeatingRow()

const QicsRepeatingRow& QicsTableCommon::repeatingRowRef ( int  start_row,
unsigned int  interval 
) const

Returns a const reference to an internal flyweight QicsRepeatingRow object that refers to a repeating sequence starting at start_row and repeating each interval rows.

See also:
repeatingRow()

QicsRepeatingRow* QicsTableCommon::repeatingRow ( int  start_row,
unsigned int  interval 
)

Returns a newly allocated QicsRepeatingRow object for a repeating sequence starting at start_row and repeating each interval rows.

See also:
repeatingRowRef()

const QicsRepeatingRow* QicsTableCommon::repeatingRow ( int  start_row,
unsigned int  interval 
) const

Returns a newly allocated const QicsRepeatingRow object for a repeating sequence starting at start_row and repeating each interval rows.

See also:
repeatingRowRef()

QicsRepeatingColumn& QicsTableCommon::repeatingColumnRef ( int  start_col,
unsigned int  interval 
)

Returns a reference to an internal flyweight QicsRepeatingColumn object that refers to a repeating sequence starting at start_col and repeating each interval columns.

See also:
repeatingColumn()

const QicsRepeatingColumn& QicsTableCommon::repeatingColumnRef ( int  start_col,
unsigned int  interval 
) const

Returns a const reference to an internal flyweight QicsRepeatingColumn object that refers to a repeating sequence starting at start_col and repeating each interval columns.

See also:
repeatingColumn()

QicsRepeatingColumn* QicsTableCommon::repeatingColumn ( int  start_col,
unsigned int  interval 
)

Returns a newly allocated QicsRepeatingColumn object for a repeating sequence starting at start_col and repeating each interval columns.

See also:
repeatingColumnRef()

const QicsRepeatingColumn* QicsTableCommon::repeatingColumn ( int  start_col,
unsigned int  interval 
) const

Returns a newly allocated const QicsRepeatingColumn object for a repeating sequence starting at start_col and repeating each interval columns.

See also:
repeatingColumnRef()

QicsCell& QicsTableCommon::cellRef ( int  rownum,
int  colnum 
)

Returns a reference to an internal flyweight QicsCell object that refers to cell (rownum, colnum).

See also:
cell()

const QicsCell& QicsTableCommon::cellRef ( int  rownum,
int  colnum 
) const

Returns a const reference to an internal flyweight QicsCell object that refers to cell (rownum, colnum).

See also:
cell()

QicsCell* QicsTableCommon::cell ( int  rownum,
int  colnum,
bool  follow_model = true 
)

Returns a newly allocated QicsCell object for cell (rownum, colnum). If follow_model is true, the cell object will always refer to the cell in the data model that is currently being displayed in cell (rownum, colnum), even if rows and columns of the table are reordered. If follow_model is false, the cell will always refer to the visual cell (rownum, colnum), but the underlying cell in the data model may change.

See also:
cellRef()

const QicsCell* QicsTableCommon::cell ( int  rownum,
int  colnum,
bool  follow_model = true 
) const

Returns a newly allocated const QicsCell object for cell (rownum, colnum). If follow_model is true, the cell object will always refer to the cell in the data model that is currently being displayed in cell (rownum, colnum), even if rows and columns of the table are reordered. If follow_model is false, the cell will always refer to the visual cell (rownum, colnum), but the underlying cell in the data model may change.

See also:
cellRef()

QicsMainGrid& QicsTableCommon::mainGridRef ( void   ) 

Returns a reference to an internal flyweight QicsMainGrid object.

See also:
mainGrid()

const QicsMainGrid& QicsTableCommon::mainGridRef ( void   )  const

Returns a const reference to an internal flyweight QicsMainGrid object.

See also:
mainGrid()

QicsMainGrid* QicsTableCommon::mainGrid ( void   ) 

Returns a newly allocated main grid object.

See also:
mainGridRef()

const QicsMainGrid* QicsTableCommon::mainGrid ( void   )  const

Returns a newly allocated const main grid object.

See also:
mainGridRef()

QicsRowHeader& QicsTableCommon::rowHeaderRef ( void   ) 

Returns a reference to an internal flyweight QicsRowHeader object.

See also:
rowHeader()

const QicsRowHeader& QicsTableCommon::rowHeaderRef ( void   )  const

Returns a const reference to an internal flyweight QicsRowHeader object.

See also:
rowHeader()

QicsRowHeader* QicsTableCommon::rowHeader ( void   ) 

Returns a newly allocated row header object.

See also:
rowHeaderRef()

const QicsRowHeader* QicsTableCommon::rowHeader ( void   )  const

Returns a newly allocated const row header object.

See also:
rowHeaderRef()

QicsColumnHeader& QicsTableCommon::columnHeaderRef ( void   ) 

Returns a reference to an internal flyweight QicsColumnHeader object.

See also:
columnHeader()

const QicsColumnHeader& QicsTableCommon::columnHeaderRef ( void   )  const

Returns a const reference to an internal flyweight QicsColumnHeader object.

See also:
columnHeader()

QicsColumnHeader* QicsTableCommon::columnHeader ( void   ) 

Returns a newly allocated column header object.

See also:
columnHeaderRef()

const QicsColumnHeader* QicsTableCommon::columnHeader ( void   )  const

Returns a newly allocated const column header object.

See also:
columnHeaderRef()

QicsTableDisplayOption QicsTableCommon::topHeaderVisible ( void   )  const [inline]

Returns the current value of the top header visibility property. See the "topHeaderVisible" property for details.

See also:
setTopHeaderVisible()

QicsTableDisplayOption QicsTableCommon::bottomHeaderVisible ( void   )  const [inline]

Returns the current value of the bottom header visibility property. See the "bottomHeaderVisible" property for details.

See also:
setBottomHeaderVisible()

QicsTableDisplayOption QicsTableCommon::leftHeaderVisible ( void   )  const [inline]

Returns the current value of the left header visibility property. See the "leftHeaderVisible" property for details.

See also:
setLeftHeaderVisible()

QicsTableDisplayOption QicsTableCommon::rightHeaderVisible ( void   )  const [inline]

Returns the current value of the right header visibility property. See the "rightHeaderVisible" property for details.

See also:
setRightHeaderVisible()

int QicsTableCommon::tableMargin ( void   )  const [inline]

Returns the margin of the table widget. See the "tableMargin" property for details.

int QicsTableCommon::tableSpacing ( void   )  const [inline]

Returns the spacing of the table widget. See the "tableSpacing" property for details.

int QicsTableCommon::gridSpacing ( void   )  const [inline]

Returns the spacing of the grids in the table widget. See the "gridSpacing" property for details.

bool QicsTableCommon::columnHeaderUsesModel ( void   )  const [inline]

Returns whether the first row of data in the table's data model is used as column header data. See the "columnHeaderUsesModel" property for details.

See also:
setColumnHeaderUsesModel()

bool QicsTableCommon::rowHeaderUsesModel ( void   )  const [inline]

Returns whether the first column of data in the table's data model is used as row header data. See the "rowHeaderUsesModel" property for details.

See also:
setRowHeaderUsesModel()

bool QicsTableCommon::ignoreModelSizeChanges ( void   )  const

Returns whether the table should ignore size change signals from the data model. See the "ignoreModelSizeChanges" property for details.

See also:
setIgnoreModelSizeChanges()

void QicsTableCommon::sortRows ( const QVector< int > &  columns,
QicsSortOrder  order = Qics::Ascending,
int  from = 0,
int  to = -1,
DataItemComparator  func = 0 
)

sort the rows

Parameters:
columns the data model columns to sort on
order sort order (default: Ascending)
from only sort the rows between from and to
to only sort the rows between from and to. The default of -1 will cause all rows through the end to be sorted
func optional a comparator function. Specifying 0 will use a default comparator which should work for almost every case. Applications which add new subclasses of QicsDataItem to their tables, should provide type specific comparators with their data elements.
See also:
sortColumns()

void QicsTableCommon::sortColumns ( const QVector< int > &  rows,
QicsSortOrder  order = Qics::Ascending,
int  from = 0,
int  to = -1,
DataItemComparator  func = 0 
)

sort the columns

Parameters:
rows the data model rows to sort on
order sort order (default: Ascending)
from only sort the columns between from and to
to only sort the columns between from and to. The default of -1 will cause all columns through the end to be sorted
func optional a comparator function. Specifying 0 will use a default comparator which should work for almost every case. Applications which add new subclasses of QicsDataItem to their tables, should provide type specific comparators with their data elements.
See also:
sortRows()

void QicsTableCommon::setSortingSensitivity ( Qt::CaseSensitivity  cs  ) 

Sets case sensitivity while sorting to cs.

See also:
sortColumns(), sortRows()
Since:
2.3

void QicsTableCommon::moveRows ( int  target_row,
const QVector< int > &  rows 
)

Moves a set of (possibly discontiguous) rows to a new location.

Parameters:
target_row the row before which the moved rows will be placed
rows a list of row indices to be moved
See also:
moveColumns()

void QicsTableCommon::moveColumns ( int  target_col,
const QVector< int > &  cols 
)

Moves a set of (possibly discontiguous) columns to a new location.

Parameters:
target_col the column before which the moved columns will be placed
cols a list of column indices to be moved
See also:
moveRows()

bool QicsTableCommon::setMouseButton ( Qt::MouseButton  ,
Qt::Modifier  ,
Qt::MouseButton   
)

This method set mouse button mapping inside

See also:
QicsTable. Usefull for Apple mouse, 2-button mouse or for individual remapping. First paramater action button, second keyboard modifier, third result button (which emulate).

Reimplemented from QicsGridCommon.

void QicsTableCommon::setTopHeaderVisible ( QicsTableDisplayOption   )  [slot]

Sets the value of the topHeaderVisible property. See the "topHeaderVisible" property for details.

See also:
topHeaderVisible()

void QicsTableCommon::setBottomHeaderVisible ( QicsTableDisplayOption   )  [slot]

Sets the value of the bottomHeaderVisible property. At the present time, only DisplayNever and DisplayAlways are supported. See the "bottomHeaderVisible" property for details.

See also:
bottomHeaderVisible()

void QicsTableCommon::setLeftHeaderVisible ( QicsTableDisplayOption   )  [slot]

Sets the value of the leftHeaderVisible property. See the "leftHeaderVisible" property for details.

See also:
leftHeaderVisible()

void QicsTableCommon::setRightHeaderVisible ( QicsTableDisplayOption   )  [slot]

Sets the value of the rightHeaderVisible property. At the present time, only DisplayNever and DisplayAlways are supported. See the "rightHeaderVisible" property for details.

See also:
rightHeaderVisible()

void QicsTableCommon::setTableMargin ( int  margin  )  [slot]

Sets the margin of the table widget. See the "tableMargin" property for details.

void QicsTableCommon::setTableSpacing ( int  spacing  )  [slot]

Sets the spacing of the table widget. See the "tableSpacing" property for details.

void QicsTableCommon::setGridSpacing ( int  spacing  )  [slot]

Sets the spacing of the grids in the table widget. See the "gridSpacing" property for details.

void QicsTableCommon::setRowHeaderUsesModel ( bool  b  )  [slot]

Controls whether the first column of data in the table's data model is used as row header data. See the "rowHeaderUsesModel" property for details.

See also:
rowHeaderUsesModel()

void QicsTableCommon::setColumnHeaderUsesModel ( bool  b  )  [slot]

Controls whether the first row of data in the table's data model is used as column header data. See the "columnHeaderUsesModel" property for details.

See also:
columnHeaderUsesModel()

void QicsTableCommon::setIgnoreModelSizeChanges ( bool  b  )  [slot]

Controls whether the table should ignore size change signals from the data model. See the "ignoreModelSizeChanges" property for details.

See also:
ignoreModelSizeChanges()

void QicsTableCommon::deleteColumn ( int  column  )  [slot]

Delete a column from the table.

void QicsTableCommon::addColumns ( int  howMany  )  [slot]

Append a column or more to the table.

void QicsTableCommon::insertColumn ( int  column  )  [slot]

Insert a column into the table before column.

void QicsTableCommon::deleteRow ( int  row  )  [slot]

Delete a row from the table.

void QicsTableCommon::addRows ( int  rows  )  [slot]

Append a row or more to the table.

void QicsTableCommon::insertRow ( int  row  )  [slot]

Insert a row into the table before row.

void QicsTableCommon::setDefaultRowHeightInPixels ( int  height  )  [slot]

Sets the default row height to height pixels for the the entire table.

void QicsTableCommon::setDefaultRowHeightInChars ( int  height  )  [slot]

Sets the default row height to height character units (i.e. lines) for the the entire table.

void QicsTableCommon::setDefaultColumnWidthInPixels ( int  width  )  [slot]

Sets the default column width to width pixels for the the entire table.

void QicsTableCommon::setDefaultColumnWidthInChars ( int  width  )  [slot]

Sets the default column width to width character units for the the entire table.

int QicsGridCommon::frameLineWidth ( void   )  const [inherited]

Returns the frame line width of the grid. See the "frameLineWidth" property for details.

See also:
setFrameLineWidth()

int QicsGridCommon::frameStyle ( void   )  const [inherited]

Returns the frame style of the grid. See the "frameStyle" property for details.

See also:
setFrameStyle()

bool QicsGridCommon::horizontalGridLinesVisible ( void   )  const [inherited]

Returns the current horizontalGridLinesVisible property setting. See the "horizontalGridLinesVisible" property for details.

See also:
setHorizontalGridLinesVisible()

bool QicsGridCommon::verticalGridLinesVisible ( void   )  const [inherited]

Returns the current verticalGridLinesVisible property setting. See the "verticalGridLinesVisible" property for details.

See also:
setVerticalGridLinesVisible()

int QicsGridCommon::horizontalGridLineWidth ( void   )  const [inherited]

Returns the value of the width of the grid's horizontal grid lines. See the "horizontalGridLineWidth" property for details.

See also:
setHorizontalGridLineWidth()

int QicsGridCommon::verticalGridLineWidth ( void   )  const [inherited]

Returns the value of the width of the grid's vertical grid lines. See the "verticalGridLineWidth" property for details.

See also:
setVerticalGridLineWidth()

QPalette QicsGridCommon::gridPalette ( void   )  const [inherited]

Returns the palette that is used to draw this grid's grid lines. See the "gridPalette" property for details.

See also:
setGridPalette()

QicsLineStyle QicsGridCommon::horizontalGridLineStyle ( void   )  const [inherited]

Returns the horizontal grid line style for the grid. See the "horizontalGridLineStyle" property for details.

See also:
setHorizontalGridLineStyle()

QPen QicsGridCommon::horizontalGridLinePen ( void   )  const [inherited]

Returns the pen used to draw the grid's horizontal grid lines. See the "horizontalGridLinePen" property for details.

See also:
setHorizontalGridLinePen()

QPen QicsGridCommon::verticalGridLinePen ( void   )  const [inherited]

Returns the pen used to draw the grid's vertical grid lines. See the "verticalGridLinePen" property for details.

See also:
setVerticalGridLinePen()

QicsLineStyle QicsGridCommon::verticalGridLineStyle ( void   )  const [inherited]

Returns the vertical grid line style for the grid. See the "verticalGridLineStyle" property for details.

See also:
setVerticalGridLineStyle()

QicsCellOverflowBehavior QicsGridCommon::cellOverflowBehavior ( void   )  const [inherited]

Returns the grid's cell overflow behavior. See the "cellOverflowBehavior" property for details.

See also:
setCellOverflowBehavior()

int QicsGridCommon::maxOverflowCells ( void   )  const [inherited]

Returns the maximum number of overflow cells for the grid. See the "maxOverflowCells" property for details.

See also:
setMaxOverflowCells()

bool QicsGridCommon::drawPartialCells (  )  const [inherited]

Returns the partial cell display policy. See the "drawPartialCells" property for details.

See also:
setDrawPartialCells()

QicsGridCellClipping QicsGridCommon::gridCellClipping (  )  const [inherited]

Returns the cell clipping display policy. See the "gridCellClipping" property for details.

See also:
setGridCellClipping()

QicsCurrentCellStyle QicsGridCommon::currentCellStyle ( void   )  const [inherited]

Returns the style of the current cell in the table. See the "currentCellStyle" property for details.

See also:
setCurrentCellStyle()

QicsSelectionStyle QicsGridCommon::selectionStyle ( void   )  const [inherited]

Returns the style of the selection in the table. See the "selectionStyle" property for details.

See also:
setSelectionStyle()

int QicsGridCommon::currentCellBorderWidth ( void   )  const [inherited]

Returns the width of the border that is drawn around the current cell in the table. See the "currentCellBorderWidth" property for details.

See also:
setCurrentCellBorderWidth()

bool QicsGridCommon::clickToEdit ( void   )  const [inherited]

Returns whether the user must first click in a cell before being able to edit the cell by typing. See the "clickToEdit" property for details.

See also:
setClickToEdit()

Qics::QicsCellDecorationStyle QicsGridCommon::cellDecorationStyle ( void   )  const [inherited]

Returns cell decoration style. See the "cellDecorationStyle" property for details.

See also:
setCellDecorationStyle();
Since:
2.3

bool QicsGridCommon::autoSelectCellContents ( void   )  const [inherited]

Returns whether the contents of a cell are automatically selected when the table begins a cell edit operation. See the "autoSelectCellContents" property for details.

See also:
setAutoSelectCellContents()

QicsTraversalKeyEditBehavior QicsGridCommon::traversalKeyEditBehavior ( void   )  const [inherited]

Returns the behavior of traversal keys within an edited cell. See the "traversalKeyEditBehavior" property for details.

See also:
setTraversalKeyEditBehavior

Qt::Orientation QicsGridCommon::enterTraversalDirection ( void   )  const [inherited]

Returns the direction that the table will traverse when the user types Enter or Shift-Enter. See the "enterTraversalDirection" property for details.

See also:
setEnterTraversalDirection()

Qt::Orientation QicsGridCommon::tabTraversalDirection ( void   )  const [inherited]

Returns the direction that the table will traverse when the user types Tab or Shift-Tab. See the "tabTraversalDirection" property for details.

See also:
setTabTraversalDirection()

bool QicsGridCommon::tabTraverseToBegin (  )  const [inherited]

Returns traversal cell behavior (for Tab key) when it reaches the end of row/column. If true it jumps to the first cell of next row/column, else does nothing.

See also:
setTabTraverseToBegin(bool)

bool QicsGridCommon::enterTraverseToBegin (  )  const [inherited]

Returns traversal cell behavior (for Enter key) when it reaches the end of row/column. If true it jumps to the first cell of next row/column, else does nothing.

See also:
setTabTraverseToBegin(bool)

QPixmap QicsGridCommon::moreTextPixmap ( void   )  const [inherited]

Returns the pixmap that is used in this grid to show that text in a cell has been clipped (i.e. it could not completely fit in the cell). See the "moreTextPixmap" property for details.

See also:
setMoreTextPixmap()

bool QicsGridCommon::dragEnabled ( void   )  const [inherited]

Returns whether the user is allowed to drag from this table. See the "dragEnabled" property for details.

See also:
setDragEnabled

Qt::LayoutDirection QicsGridCommon::layoutDirection ( void   )  const [inherited]

Returns layout direction of the grid. See the "layoutDirection" property for details.

See also:
setLayoutDirection

Qics::QicsIndexType QicsGridCommon::fakeCellsDrawingIndex ( void   )  const [inherited]

Returns the FakeCellsDrawingIndex for drawing fake cells. See the "fakeCellsDrawingIndex" property for details.

Qics::QicsCurrentCellDraggingPolicy QicsGridCommon::currentCellDraggingPolicy (  )  const [inherited]

Returns behavior of drag&drop operations when it has began from current cell. See the "currentCellDraggingPolicy" property for details.

virtual QicsRegion QicsGridCommon::viewport ( void   )  const [virtual, inherited]

Returns the current viewport of the grid. The viewport specifies an area of the data model that is allowed to be displayed.

See also:
setViewport()

bool QicsGridCommon::addCellSpan ( QicsSpan  span,
bool  visual = true 
) [inherited]

Adds a cell spanning region to the grid. The contents of the cell at the top, left of span will be drawn across all cells in span. Two cell spanning regions cannot overlap. If addCellSpan is called with a spanning region that overlaps an existing spanning region, the method will return false. If the new spanning region is accepted, the method will return true. If visual is true (default), it is assumed that the span is given in visual coordinates, else model coordinates are used.

See also:
removeCellSpan()

cellSpanList()

QicsSpanList* QicsGridCommon::cellSpanList ( void   )  [inherited]

Returns the grid's cell spanning list. The returned value is a copy of the grid's internal list, and it is the responsibility of the caller to delete it when it is no longer used. Modifications to this list will not affect the grid -- use addCellSpan() and removeCellSpan() instead.

See also:
removeCellSpan()

cellSpanList()

bool QicsGridCommon::highlightSelection ( void   )  const [inherited]

Returns true if selection is highlighted on headers. See the "highlightSelection" property for details.

See also:
setHighlightSelection(), QicsCellCommon::highlightForegroundColor(), QicsCellCommon::highlightBackgroundColor()
Since:
2.3

void QicsGridCommon::setFakeCellsDrawingIndex ( Qics::QicsIndexType  type  )  [inherited]

Sets the table's FakeCellsDrawingIndex for drawing fake cells See the "fakeCellsDrawingIndex" property for details.

void QicsGridCommon::setCurrentCellDraggingPolicy ( Qics::QicsCurrentCellDraggingPolicy  policy  )  [inherited]

Sets behavior of drag&drop operations when it has began from current cell. See the "currentCellDraggingPolicy" property for details.

int QicsGridCommon::exclusiveSelectionBorderWidth (  )  const [inherited]

Returns border width of the exclusive selection frame. See the "exclusiveSelectionBorderWidth" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionBorderWidth ( int  w  )  [inherited]

Sets border width of the exclusive selection frame. See the "exclusiveSelectionBorderWidth" property for details.

Since:
2.3

QColor QicsGridCommon::exclusiveSelectionBorderColor (  )  const [inherited]

Returns color of the exclusive selection frame. See the "exclusiveSelectionBorderColor" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionBorderColor ( const QColor &  c  )  [inherited]

Sets color of the exclusive selection frame. See the "exclusiveSelectionBorderColor" property for details.

Since:
2.3

QColor QicsGridCommon::exclusiveSelectionHandleColor (  )  const [inherited]

Returns handle's color of the exclusive selection frame. See the "exclusiveSelectionHandleColor" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionHandleColor ( const QColor &  c  )  [inherited]

Sets handle's color of the exclusive selection frame. See the "exclusiveSelectionHandleColor" property for details.

Since:
2.3

QColor QicsGridCommon::exclusiveSelectionHandleBackColor (  )  const [inherited]

Returns handle's background color of the exclusive selection frame. See the "exclusiveSelectionHandleBackColor" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionHandleBackColor ( const QColor &  c  )  [inherited]

Sets handle's background color of the exclusive selection frame. See the "exclusiveSelectionHandleBackColor" property for details.

Since:
2.3

QColor QicsGridCommon::exclusiveSelectionDragBackColor (  )  const [inherited]

Returns background color of the exclusive selection frame during dragging by fill handle. See the "setExclusiveSelectionDragBackColor" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionDragBackColor ( const QColor &  c  )  [inherited]

Sets background color of the exclusive selection frame during dragging by fill handle. See the "setExclusiveSelectionDragBackColor" property for details.

Since:
2.3

QPen QicsGridCommon::exclusiveSelectionDragPen (  )  const [inherited]

Returns pen of the exclusive selection frame during dragging by fill handle. See the "setExclusiveSelectionDragPen" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionDragPen ( const QPen &  p  )  [inherited]

Sets pen of the exclusive selection frame during dragging by fill handle. See the "setExclusiveSelectionDragPen" property for details.

Since:
2.3

float QicsGridCommon::exclusiveSelectionDragOpacity (  )  const [inherited]

Returns opacity of the exclusive selection frame during dragging by fill handle. See the "setExclusiveSelectionDragOpacity" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionDragOpacity ( float  op  )  [inherited]

Sets opacity of the exclusive selection frame during dragging by fill handle. op must be in ranges 0.0 (full transparency) to 1.0 (full opacity). Default value is 0.5. See the "setExclusiveSelectionDragOpacity" property for details.

Since:
2.3

QicsRubberBand::DrawingMode QicsGridCommon::exclusiveSelectionDragMode (  )  const [inherited]

Returns drawing mode of the exclusive selection frame during dragging by fill handle. See the "setExclusiveSelectionDragMode" property for details.

Since:
2.3

void QicsGridCommon::setExclusiveSelectionDragMode ( QicsRubberBand::DrawingMode  mode  )  [inherited]

Sets drawing mode of the exclusive selection frame during dragging by fill handle. Default value is QicsRubberBand::DM_CUSTOM. See the "setExclusiveSelectionDragMode" property for details.

Since:
2.3

void QicsGridCommon::setCellDecorationStyle ( Qics::QicsCellDecorationStyle  s  )  [inherited]

Sets cell decoration style to s. See the "cellDecorationStyle" property for details.

Since:
2.3

virtual void QicsGridCommon::setViewport ( const QicsRegion vp  )  [virtual, slot, inherited]

Restricts the grid to show a subset of the data model values.

Parameters:
vp the area of the data model that is allowed to be displayed.
See also:
viewport()

void QicsGridCommon::removeCellSpan ( int  start_row,
int  start_col,
bool  visual = true 
) [slot, inherited]

Removes a cell spanning region from the grid. Because cell spanning regions cannot overlap, it is sufficient to specify the existing span by giving its starting cell. If visual is true (default), it is assumed that the span is given in visual coordinates, else model coordinates are used.

See also:
addCellSpan()

cellSpanList()

void QicsGridCommon::setHorizontalGridLinesVisible ( bool  b  )  [slot, inherited]

Controls the display of horizontal grid lines in the grid. See the "horizontalGridLinesVisible" property for details.

See also:
horizontalGridLinesVisible()

void QicsGridCommon::setVerticalGridLinesVisible ( bool  b  )  [slot, inherited]

Controls the display of vertical grid lines in the grid. See the "verticalGridLinesVisible" property for details.

See also:
verticalGridLinesVisible()

void QicsGridCommon::setHorizontalGridLineWidth ( int  w  )  [slot, inherited]

Sets the value of the width of the grid's horizontal grid lines. See the "horizontalGridLineWidth" property for details.

See also:
horizontalGridLineWidth()

void QicsGridCommon::setVerticalGridLineWidth ( int  w  )  [slot, inherited]

Sets the value of the width of the grid's vertical grid lines. See the "verticalGridLineWidth" property for details.

See also:
verticalGridLineWidth()

void QicsGridCommon::setHorizontalGridLineStyle ( QicsLineStyle  style  )  [slot, inherited]

Sets the horizontal grid line style for the grid. See the "horizontalGridLineStyle" property for details.

See also:
horizontalGridLineStyle()

void QicsGridCommon::setVerticalGridLineStyle ( QicsLineStyle  style  )  [slot, inherited]

Sets the vertical grid line style for the grid. See the "verticalGridLineStyle" property for details.

See also:
verticalGridLineStyle()

void QicsGridCommon::setHorizontalGridLinePen ( const QPen &  pen  )  [slot, inherited]

Sets the pen used to draw the grid's horizontal grid lines. See the "horizontalGridLinePen" property for details.

See also:
horizontalGridLinePen()

void QicsGridCommon::setVerticalGridLinePen ( const QPen &  pen  )  [slot, inherited]

Sets the pen used to draw the grid's vertical grid lines. See the "verticalGridLinePen" property for details.

See also:
verticalGridLinePen()

void QicsGridCommon::setDrawPartialCells ( bool  b  )  [slot, inherited]

Sets the partial cell display policy. See the "drawPartialCells" property for details.

See also:
drawPartialCells()

void QicsGridCommon::setGridCellClipping ( QicsGridCellClipping  c  )  [slot, inherited]

Sets the cell clipping display policy. See the "gridCellClipping" property for details.

See also:
gridCellClipping()

void QicsGridCommon::setCellOverflowBehavior ( QicsCellOverflowBehavior  b  )  [slot, inherited]

Sets the grid's cell overflow behavior. See the "cellOverflowBehavior" property for details.

See also:
cellOverflowBehavior()

void QicsGridCommon::setMaxOverflowCells ( int  num  )  [slot, inherited]

Sets the maximum number of overflow cells for the grid. See the "maxOverflowCells" property for details.

See also:
maxOverflowCells()

void QicsGridCommon::setFrameStyle ( int  style  )  [slot, inherited]

Sets the frame style of the grid. See the "frameStyle" property for details.

See also:
frameStyle()

void QicsGridCommon::setFrameLineWidth ( int  lw  )  [slot, inherited]

Sets the frame line width of the grid. See the "frameLineWidth" property for details.

See also:
frameLineWidth()

void QicsGridCommon::setCurrentCellStyle ( QicsCurrentCellStyle  s  )  [slot, inherited]

Sets the style of the current cell in the table. See the "currentCellStyle" property for details.

See also:
currentCellStyle()

void QicsGridCommon::setSelectionStyle ( QicsSelectionStyle  s  )  [slot, inherited]

Sets the style of the selection in the table. See the "selectionStyle" property for details.

See also:
selectionStyle()

void QicsGridCommon::setHighlightSelection ( bool  s  )  [slot, inherited]

Sets selection highlighting on headers. See the "highlightSelection" property for details.

See also:
highlightSelection(), QicsCellCommon::highlightForegroundColor(), QicsCellCommon::highlightBackgroundColor()
Since:
2.3

void QicsGridCommon::setCurrentCellBorderWidth ( int  w  )  [slot, inherited]

Sets the width of the border that is drawn around the current cell in the table. See the "currentCellBorderWidth" property for details.

See also:
currentCellBorderWidth()

void QicsGridCommon::setClickToEdit ( bool  b  )  [slot, inherited]

Sets whether the user must first click in a cell before being able to edit the cell by typing. See the "clickToEdit" property for details.

See also:
clickToEdit()

void QicsGridCommon::setAutoSelectCellContents ( bool  b  )  [slot, inherited]

Sets whether the contents of a cell are automatically selected when the table begins a cell edit operation. See the "autoSelectCellContents" property for details.

See also:
autoSelectCellContents()

void QicsGridCommon::setTraversalKeyEditBehavior ( QicsTraversalKeyEditBehavior  beh  )  [slot, inherited]

Sets the behavior of traversal keys within an edited cell. See the "traversalKeyEditBehavior" property for details.

See also:
traversalKeyEditBehavior

void QicsGridCommon::setEnterTraversalDirection ( Qt::Orientation  dir  )  [slot, inherited]

Sets the direction that the table will traverse when the user types Enter or Shift-Enter. See the "enterTraversalDirection" property for details.

See also:
enterTraversalDirection()

void QicsGridCommon::setTabTraversalDirection ( Qt::Orientation  dir  )  [slot, inherited]

Sets the direction that the table will traverse when the user types Tab or Shift-Tab. See the "tabTraversalDirection" property for details.

See also:
tabTraversalDirection()

void QicsGridCommon::setTabTraverseToBegin ( bool  traverse  )  [slot, inherited]

Sets traversal cell behavior (for Tab key) when it reaches the end of row/column. If traverse is true it jumps to the first cell of next row/column, else does nothing.

See also:
tabTraverseToBegin()

void QicsGridCommon::setEnterTraverseToBegin ( bool  traverse  )  [slot, inherited]

Sets traversal cell behavior (for Enter key) when it reaches the end of row/column. If traverse is true it jumps to the first cell of next row/column, else does nothing.

See also:
tabTraverseToBegin()

void QicsGridCommon::setMoreTextPixmap ( const QPixmap &  pix  )  [slot, inherited]

Sets the pixmap that is used in this grid to show that text in a cell has been clipped (i.e. it could not completely fit in the cell). See the "moreTextPixmap" property for details.

See also:
moreTextPixmap()

void QicsGridCommon::setGridPalette ( const QPalette &  pal  )  [slot, inherited]

Sets the palette that is used to draw this grid's grid lines. See the "gridPalette" property for details.

See also:
gridPalette()

void QicsGridCommon::setDragEnabled ( bool  b  )  [slot, inherited]

Sets whether the user is allowed to drag from this table. See the "dragEnabled" property for details.

See also:
setDragEnabled

void QicsGridCommon::setLayoutDirection ( Qt::LayoutDirection  layoutDirection  )  [slot, inherited]

Set the layout direction for a table See the "layoutDirection" property for details.

See also:
setLayoutDirection

void QicsGridCommon::pressed ( int  row,
int  col,
int  button,
const QPoint &  pos 
) [signal, inherited]

This signal is emitted when the user presses a mouse button in the grid. The indices of the cell, the button that was pressed, and the position of the mouse pointer in the table are passed as parameters.

See also:
clicked(), doubleClicked()

void QicsGridCommon::clicked ( int  row,
int  col,
int  button,
const QPoint &  pos 
) [signal, inherited]

This signal is emitted when the user clicks (presses and releases in the same cell) a mouse button in the grid. The indices of the cell, the button that was pressed, and the position of the mouse pointer in the table are passed as parameters.

See also:
pressed(), doubleClicked()

void QicsGridCommon::doubleClicked ( int  row,
int  col,
int  button,
const QPoint &  pos 
) [signal, inherited]

This signal is emitted when the user double clicks a mouse button in the grid. The indices of the cell, the button that was pressed, and the position of the mouse pointer in the table are passed as parameters.

See also:
clicked()

void QicsGridCommon::valueChanged ( int  row,
int  col 
) [signal, inherited]

This signal is emitted when a the value of a cell in the grid changes. The cell (row, col ) is expressed in visual coordinates.

QString QicsCellCommon::label ( void   )  const [inherited]

Returns the label attribute of this cell. This string may be used by the cell displayer when rendering the contents of this cell. See the "label" property for details.

See also:
setLabel()

bool QicsCellCommon::enabled ( void   )  const [inherited]

Returns the enabled attribute of the cell. See the "enabled" property for details.

See also:
setEnabled()

bool QicsCellCommon::readOnly ( void   )  const [inherited]

Returns the read-only attribute of the cell. See the "readOnly" property for details.

See also:
setReadOnly()

virtual bool QicsCellCommon::selected ( void   )  const [virtual, inherited]

Returns the selected attribute of the cell. See the "selected" property for details.

Reimplemented in QicsCell, QicsColumn, and QicsRow.

QFont QicsCellCommon::font ( void   )  const [inherited]

Returns the font attribute of the cell. See the "font" property for details.

See also:
setFont()

QPalette QicsCellCommon::palette ( void   )  const [inherited]

Returns the palette attribute of the cell. See the "palette" property for details.

See also:
setPalette()

QColor QicsCellCommon::foregroundColor ( void   )  const [inherited]

Returns the cell's foreground color. See the "foregroundColor" property for details.

See also:
setForegroundColor()

QColor QicsCellCommon::backgroundColor ( void   )  const [inherited]

Returns the cell's background color. See the "backgroundColor" property for details.

See also:
setBackgroundColor()

QColor QicsCellCommon::selectedForegroundColor ( void   )  const [inherited]

Returns the cell's selected foreground color. See the "selectedForegroundColor" property for details.

See also:
setSelectedForegroundColor()

QColor QicsCellCommon::selectedBackgroundColor ( void   )  const [inherited]

Returns the cell's selected background color. See the "selectedBackgroundColor" property for details.

See also:
setSelectedBackgroundColor()

QPixmap QicsCellCommon::pixmap ( void   )  const [inherited]

Returns the cell's pixmap. See the "pixmap" property for details.

See also:
setPixmap()

int QicsCellCommon::pixmapSpacing ( void   )  const [inherited]

Returns the cell's pixmap spacing See the "pixmapSpacing" property for details.

See also:
setPixmap()

const QCursor& QicsCellCommon::cursor ( void   )  const [inherited]

Returns the cursor for this cell. See the "cursor" property for details.

See also:
setCursor()

unsetCursor()

int QicsCellCommon::alignment ( void   )  const [inherited]

Returns the alignment options for this cell. See the "alignment" property for details.

See also:
Qt::Alignment

setAlignment()

int QicsCellCommon::textFlags ( void   )  const [inherited]

Returns the text flags attribute of the cell. See the "textFlags" property for details.

See also:
Qt::TextFlags

setTextFlags()

int QicsCellCommon::maxLength ( void   )  const [inherited]

Returns the maximum length of the value in this cell. See the "maxLength" property for details.

See also:
setMaxLength()

int QicsCellCommon::margin ( void   )  const [inherited]

Returns the margin of the cell (in pixels). See the "margin" property for details.

See also:
setMargin()

int QicsCellCommon::borderWidth ( void   )  const [inherited]

Returns the border width of this cell. See the "borderWidth" property for details.

See also:
setBorderWidth()

QPen QicsCellCommon::topBorderPen ( void   )  const [inherited]

Returns the pen used to draw the top border of this cell. See the "topBorderPen" property for details.

See also:
setTopBorderPen()

QPen QicsCellCommon::leftBorderPen ( void   )  const [inherited]

Returns the pen used to draw the left border of this cell. See the "leftBorderPen" property for details.

See also:
setLeftBorderPen()

QPen QicsCellCommon::rightBorderPen ( void   )  const [inherited]

Returns the pen used to draw the right border of this cell. See the "rightBorderPen" property for details.

See also:
setRightBorderPen()

QPen QicsCellCommon::bottomBorderPen ( void   )  const [inherited]

Returns the pen used to draw the bottom border of this cell. See the "bottomBorderPen" property for details.

See also:
setBottomBorderPen()

QString QicsCellCommon::toolTipText ( void   )  const [inherited]

Returns the tool tip attribute of this cell. This string will be displayed in a tooltip when the mouse is hovered over the cell. See the "toolTipText" property for details.

See also:
setToolTipText()

QColor QicsCellCommon::editForegroundColor ( void   )  const [inherited]

Returns the cell's edit foreground color. See the "editForegroundColor" property for details.

See also:
setEditForegroundColor()

QColor QicsCellCommon::editBackgroundColor ( void   )  const [inherited]

Returns the cell's edit background color. See the "editBackgroundColor" property for details.

See also:
setEditBackgroundColor()

bool QicsCellCommon::autoRecognition ( void   )  [inherited]

Returns auto recognition flag for cell. See the "autoRecognition" property for details.

See also:
setAutoRecognition()

QicsPasteValidator* QicsCellCommon::pasteValidator ( void   )  const [inherited]

Returns the paste validator object for this cell. See the "pasteValidator" property for details.

See also:
setPasteValidator()

QValidator* QicsCellCommon::validator ( void   )  const [inherited]

Returns the default cell validator object. This validator will be used when cells are edited. See the "validator" property for details.

See also:
setValidator()

bool QicsCellCommon::canAcceptDrops ( void   )  const [slot, inherited]

This method returns true is cell can recive any drag data, othervise returns false. Se also "setCanAcceptDrops" function.

QFont QicsCellCommon::selectedFont ( void   )  const [inherited]

Returns the selected font attribute of the cell. See the "selectedFont" property for details.

See also:
setSelectedFont()

QColor QicsCellCommon::highlightForegroundColor ( void   )  const [inherited]

Returns the cell's highlight foreground color. See the "highlightForegroundColor" property for details.

See also:
setHighlightForegroundColor()
Since:
2.3

QColor QicsCellCommon::highlightBackgroundColor ( void   )  const [inherited]

Returns the cell's highlight background color. See the "highlightBackgroundColor" property for details.

See also:
setHighlightBackgroundColor()
Since:
2.3

QicsCellDisplay* QicsCellCommon::displayer ( void   )  const [inherited]

Returns the QicsCellDisplay object for this cell. The cell display object controls aspects of displaying and editing the cell. See QicsCellDisplay and its subclasses for details.

See also:
setDisplayer()

QicsDataItemFormatter* QicsCellCommon::formatter ( void   )  const [inherited]

Returns the QicsDataItemFormatter object for this cell. The formatter object controls the formatting of data values that are displayed in this cell. See QicsDataItemFormatter and its subclasses for details.

See also:
setFormatter()

void* QicsCellCommon::userData ( void   )  const [inherited]

Returns a user-supplied pointer for this cell.

void QicsCellCommon::setMargin ( int  margin  )  [slot, inherited]

Sets the margin of the cell (in pixels). See the "margin" property for details.

See also:
margin()

void QicsCellCommon::setReadOnly ( bool  b  )  [slot, inherited]

Sets the read-only attribute of the cell. See the "readOnly" property for details.

See also:
readOnly()

void QicsCellCommon::setFont ( const QFont &  font  )  [slot, inherited]

Sets the font attribute of the cell. See the "font" property for details.

See also:
font()

void QicsCellCommon::setSelectedFont ( const QFont &  font  )  [slot, inherited]

Sets the selected font attribute of the cell. See the "selectedFont" property for details.

See also:
selectedFont()

void QicsCellCommon::setPalette ( const QPalette &  pal  )  [slot, inherited]

Sets the palette attribute of the cell. See the "palette" property for details.

See also:
palette()

void QicsCellCommon::setForegroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's foreground color. See the "foregroundColor" property for details.

See also:
foregroundColor()

void QicsCellCommon::setBackgroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's background color. See the "backgroundColor" property for details.

See also:
backgroundColor()

void QicsCellCommon::setSelectedForegroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's selected foreground color. See the "selectedForegroundColor" property for details.

See also:
selectedForegroundColor()

void QicsCellCommon::setSelectedBackgroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's selected background color. See the "selectedBackgroundColor" property for details.

See also:
selectedBackgroundColor()

void QicsCellCommon::setEditForegroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's edit foreground color. See the "editForegroundColor" property for details.

See also:
editForegroundColor()

void QicsCellCommon::setEditBackgroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's edit background color. See the "editBackgroundColor" property for details.

See also:
editBackgroundColor()

void QicsCellCommon::setHighlightForegroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's highlight foreground color. See the "highlightForegroundColor" property for details.

See also:
highlightForegroundColor(), QicdGridCommon::highlightSelection()
Since:
2.3

void QicsCellCommon::setHighlightBackgroundColor ( const QColor &  p  )  [slot, inherited]

Sets the cell's highlight background color. See the "highlightBackgroundColor" property for details.

See also:
highlightBackgroundColor(), QicdGridCommon::setHighlightSelection()
Since:
2.3

void QicsCellCommon::setPixmap ( const QPixmap &  p  )  [slot, inherited]

Sets the cell's pixmap attribute. See the "pixmap" property for details.

See also:
pixmap()

void QicsCellCommon::setPixmap ( const QString &  file_name  )  [slot, inherited]

Sets the cell's pixmap attribute from a file. See the "pixmap" property for details.

See also:
pixmap()

void QicsCellCommon::setPixmapSpacing ( int  sp  )  [slot, inherited]

Sets the cell's pixmap spacing. See the "pixmapSpacing" property for details.

See also:
pixmap()

void QicsCellCommon::setDisplayer ( QicsCellDisplay d  )  [slot, inherited]

Sets the QicsCellDisplay object for this cell. The cell display object controls aspects of displaying and editing the cell. See QicsCellDisplay and its subclasses for details. Setting this value to 0 will cause the table to use the default cell display object for this cell.

See also:
displayer()

void QicsCellCommon::setFormatter ( QicsDataItemFormatter d  )  [slot, inherited]

Sets the QicsDataItemFormatter object for this cell. The formatter object controls the formatting of data values that are displayed in this cell. See QicsDataItemFormatter and its subclasses for details.

See also:
formatter()

void QicsCellCommon::setAlignment ( int  flags  )  [slot, inherited]

Sets the alignment options for this cell. See the "alignment" property for details.

See also:
Qt::Alignment

alignment()

void QicsCellCommon::setEnabled ( bool  b  )  [slot, inherited]

Sets the enabled attribute of the cell. See the "enabled" property for details.

See also:
enabled()

void QicsCellCommon::setTextFlags ( int  flags  )  [slot, inherited]

Sets the text flags attribute of the cell. See the "textFlags" property for details.

See also:
Qt::TextFlags

textFlags()

void QicsCellCommon::setValidator ( QValidator *  v  )  [slot, inherited]

Sets the default cell validator object. This validator will be used when cells are edited. See the "validator" property for details.

See also:
validator()

void QicsCellCommon::setPasteValidator ( QicsPasteValidator v  )  [slot, inherited]

Sets the paste validator object for this cell. See the "pasteValidator" property for details.

See also:
pasteValidator()

void QicsCellCommon::setLabel ( const QString &  label  )  [slot, inherited]

Sets the label attribute of this cell. This string may be used by the cell displayer when rendering the contents of this cell. See the "label" property for details.

See also:
label()

void QicsCellCommon::setMaxLength ( int  len  )  [slot, inherited]

Sets the maximum length of the value in this cell. See the "maxLength" property for details.

See also:
maxLength()

void QicsCellCommon::setCursor ( const QCursor &  c  )  [slot, inherited]

Sets the cursor for this cell. See the "cursor" property for details.

See also:
cursor()

unsetCursor()

void QicsCellCommon::unsetCursor ( void   )  [slot, inherited]

Unsets the cursor for this cell. See the "cursor" property for details.

See also:
cursor()

setCursor()

void QicsCellCommon::setBorderWidth ( int  bw  )  [slot, inherited]

Sets the border width of this cell. See the "borderWidth" property for details.

See also:
borderWidth()

void QicsCellCommon::setTopBorderPen ( const QPen &  pen  )  [slot, inherited]

Sets the pen used to draw the top border of this cell. See the "topBorderPen" property for details.

See also:
topBorderPen()

void QicsCellCommon::setLeftBorderPen ( const QPen &  pen  )  [slot, inherited]

Sets the pen used to draw the left border of this cell. See the "leftBorderPen" property for details.

See also:
leftBorderPen()

void QicsCellCommon::setRightBorderPen ( const QPen &  pen  )  [slot, inherited]

Sets the pen used to draw the right border of this cell. See the "rightBorderPen" property for details.

See also:
rightBorderPen()

void QicsCellCommon::setBottomBorderPen ( const QPen &  pen  )  [slot, inherited]

Sets the pen used to draw the bottom border of this cell. See the "bottomBorderPen" property for details.

See also:
bottomBorderPen()

void QicsCellCommon::setUserData ( void *  data  )  [slot, inherited]

Sets a user-supplied pointer for this cell. The table will not use or delete this pointer. It remains under the programmer's control.

void QicsCellCommon::setToolTipText ( const QString &  txt  )  [slot, inherited]

Sets the tool tip attribute of this cell. This string will be displayed in a tooltip when the mouse is hovered over the cell. See the "toolTipText" property for details.

See also:
toolTip()

void QicsCellCommon::setAutoRecognition ( const bool  flag  )  [slot, inherited]

Sets automatical recognition for cell. See the "autoRecognition" property for details.

See also:
autoRecognition()

void QicsCellCommon::setCanAcceptDrops ( const   bool  )  [slot, inherited]

Sets allowing cell to recive drag and drop data. If you sets to false, cell will not recive and cannot send any drag data. By default all cells can recive and send/move they dataItems. Se get method "canAcceptDrops"


Member Data Documentation

QicsTableDisplayOption QicsTableCommon::topHeaderVisible

Specifies whether the top header is visible. The default value of this property is DisplayAlways.

QicsTableDisplayOption QicsTableCommon::bottomHeaderVisible

Specifies whether the bottom header is visible. The default value of this property is DisplayNever.

QicsTableDisplayOption QicsTableCommon::leftHeaderVisible

Specifies whether the left header is visible. The default value of this property is DisplayAlways.

QicsTableDisplayOption QicsTableCommon::rightHeaderVisible

Specifies whether the right header is visible. The default value of this property is DisplayNever.

int QicsTableCommon::tableMargin

Specifies the number of pixels between the edge of the table widget and its subwidgets (title widgets, headers, etc). The default value of this property is 10.

int QicsTableCommon::tableSpacing

Specifies the number of pixels between each of the table widget's elements (title widgets, corner widgets, etc). This property does not control the spacing between grids in the table. Use "gridSpacing" in that case. The default value of this property is 10.

int QicsTableCommon::gridSpacing

Specifies the number of pixels between each of the grids in the table widget. This property does not control the spacing between other element in the table. Use "tableSpacing" in that case. The default value of this property is 0.

bool QicsTableCommon::columnHeaderUsesModel

Specifies whether the values in the first row of the table's associated QicsDataModel should be interpreted as column header data. If this value is true, the value of cell(0, colnum) will be shown as the column header for column colnum, and row 0 will never be shown as data in the table.

The default value of this property is false.

bool QicsTableCommon::rowHeaderUsesModel

Specifies whether the values in the first column of the table's associated QicsDataModel should be interpreted as row header data. If this value is true, the value of cell(rownum, 0) will be shown as the row header for row rownum, and column 0 will never be shown as data in the table.

The default value of this property is false.

bool QicsTableCommon::ignoreModelSizeChanges

Specifies whether the table should ignore changes to the size of the model. This can be very useful when you are clearing all rows and columns from the table, but you wish to retain model attribute settings on the table display. If this value is true, these settings will be retained. If this value is false, row and column addition and deletion will result in the appropriate changes to the attribute settings and row and column widths of the table.

int QicsGridCommon::frameLineWidth [inherited]

Specifies the line width of the frame bordering the table grid and all headers in the table.

The default value of this property is 2.

int QicsGridCommon::frameStyle [inherited]

Specifies the style of the frame bordering the table grid. This value has the same possible values as QFrame::frameStyle().

The default value of this property is (QFrame::StyledPanel | QFrame::Sunken

bool QicsGridCommon::horizontalGridLinesVisible [inherited]

Specifies whether horizontal separator lines between cells are drawn

The default value of this property is true.

bool QicsGridCommon::verticalGridLinesVisible [inherited]

Specifies whether vertical separator lines between cells are drawn

The default value of this property is true.

int QicsGridCommon::horizontalGridLineWidth [inherited]

Specifies the width of the grid's horizontal grid lines.

The default value of this property is 1.

int QicsGridCommon::verticalGridLineWidth [inherited]

Specifies the width of the grid's vertical grid lines.

The default value of this property is 1.

QPalette QicsGridCommon::gridPalette [inherited]

Specifies the palette used when drawing grid lines and shadows. The default value of this property is the palette of the table widget.

QicsLineStyle QicsGridCommon::horizontalGridLineStyle [inherited]

Specifies the style of the horizontal grid lines in the grid. See QicsLineStyle for details on the available styles.

The default value of this property is Plain.

QPen QicsGridCommon::horizontalGridLinePen [inherited]

Specifies the pen of the horizontal grid lines in the grid.

The default value of property is transparent solid pen.

QPen QicsGridCommon::verticalGridLinePen [inherited]

Specifies the pen of the horizontal grid lines in the grid. Default value is transparent solid pen.

The default value of property is transparent solid pen.

QicsLineStyle QicsGridCommon::verticalGridLineStyle [inherited]

Specifies the style of the vertical grid lines in the grid. See QicsLineStyle for details on the available styles.

The default value of this property is Plain.

QicsCellOverflowBehavior QicsGridCommon::cellOverflowBehavior [inherited]

Specifies the overflow behavior of the grid. See Qics::QicsCellOverflowBehavior for details.

The default value of this property is Clip.

int QicsGridCommon::maxOverflowCells [inherited]

Specifies the maximum number of cells that a given cell can overflow into (when the cellOverflowBehavior property is set to Overflow ).

The default value of this property is 10.

bool QicsGridCommon::drawPartialCells [inherited]

Specifies whether cells that would only partially be shown at the right or bottom edge of the grid should be drawn. If this value is false, a cell will only be drawn if it can be completely shown.

QicsGridCellClipping QicsGridCommon::gridCellClipping [inherited]

Specifies the policy for text that is too large to fit into a cell. If the value is AllowPartial, as much of the text as possible will be displayed. If the value is NoDisplayOnPartial, none of the text will be displayed. If the value is UseClippedSymbol, some text will be displayed, and a clipped symbol will then be displayed, signifying that not all of the text could be displayed.

The default value of this property is AllowPartial.

QicsCurrentCellStyle QicsGridCommon::currentCellStyle [inherited]

Specifies the style of the current cell in the grid. See QicsCurrentCellStyle for details.

The default value of this property is Spreadsheet.

QicsSelectionStyle QicsGridCommon::selectionStyle [inherited]

Specifies the style of selection. The default value of this property is NORMAL (The selection will be drawn by the normal way.) When selection style is EXCLUSIVE the selection will be drawn with border like in MS Excell.

int QicsGridCommon::currentCellBorderWidth [inherited]

Specifies the width of the border that is drawn around the current cell in the grid.

The default value of this property is 3.

bool QicsGridCommon::clickToEdit [inherited]

Specifies whether the user must first click in a cell before being able to edit the cell by typing. If true, the user must left click in the cell before keystrokes will be accepted. If false, keystrokes will immediately be accepted.

The default value of this property is false.

QicsCellDecorationStyle QicsGridCommon::cellDecorationStyle [inherited]

Specifies the cell decoration style for headers.

The default value of this property is Flat.

bool QicsGridCommon::autoSelectCellContents [inherited]

Specifies whether the contents of a cell are automatically selected when the table begins a cell edit operation. If true, the contents of each cell will be selected when beginning an edit (and thus typing any character will erase the previous contents). If false, the contents of each sell will not be selected (and thus typing any character will append to the previous contents).

The default value of this property is true.

QicsTraversalKeyEditBehavior QicsGridCommon::traversalKeyEditBehavior [inherited]

Specifies the behavior of traversal keys (Left, Right, Up, Down, etc) within an edited cell (using QicsTextCellDisplay). If TraverseWithinCell, traversal keys will move the text cursor within the edited cell. If TraverseBetweenCells, traversal keys move the current cell highlight between cells in the table.

The default value of this property is TraverseWithinCell.

Qt::Orientation QicsGridCommon::enterTraversalDirection [inherited]

Specifies the direction that the grid will traverse when the user types Enter or Shift-Enter. If the property is Vertical, Enter will traverse down one cell, and Shift-Enter will traverse up one cell. If the property is Horizontal, Enter will traverse right one cell, and Shift-Enter will traverse left one cell.

The default value of this property is Vertical.

Qt::Orientation QicsGridCommon::tabTraversalDirection [inherited]

Specifies the direction that the grid will traverse when the user types Tab or Shift-Tab. If the property is Vertical, Tab will traverse down one cell, and Shift-Tab will traverse up one cell. If the property is Horizontal, Tab will traverse right one cell, and Shift-Tab will traverse left one cell.

The default value of this property is Horizontal.

bool QicsGridCommon::tabTraverseToBegin [inherited]

Specifies traversal cell behavior (for Tab key) when it reaches the end of row/column. If true it jumps to the first cell of next row/column, else does nothing.

bool QicsGridCommon::enterTraverseToBegin [inherited]

Specifies traversal cell behavior (for Enter key) when it reaches the end of row/column. If true it jumps to the first cell of next row/column, else does nothing.

QPixmap QicsGridCommon::moreTextPixmap [inherited]

Specifies the pixmap that is used in this grid to show that text in a cell has been clipped (i.e. it could not completely fit in the cell).

The default value of this property is a "right arrow" pixmap.

bool QicsGridCommon::dragEnabled [inherited]

Specifies whether the user is allowed to drag cell contents to other cells, tables, and/or other applications.

The default value of this property is true.

Qt::LayoutDirection QicsGridCommon::layoutDirection [inherited]

This property set the layout direction for a grid

The default value of this property is Qt::LeftToRight.

QicsIndexType QicsGridCommon::fakeCellsDrawingIndex [inherited]

Setting FakeCellsDrawingIndex forcing table to draw empty not editable cells witch are using default style default value of this property is Qics::NoIndex

QString QicsCellCommon::label [inherited]

Specifies the label of the cell(s). This string may be used by the cell displayer when rendering the contents of the cell(s).

The default value of this property is the null string.

bool QicsCellCommon::enabled [inherited]

Specifies the enabled attribute of the cell(s). If the value of this property is false, the cell cannot be traversed to.

The default value of this property is true.

bool QicsCellCommon::readOnly [inherited]

Specifies if the cell(s) is/are not allowed to be modified.

The default value of this property is false.

bool QicsCellCommon::selected [inherited]

Specifies the current selection state of this cell/row/column.

The default value of this property is false.

QFont QicsCellCommon::font [inherited]

Specifies the font that will be used to draw text in the cell(s).

The default value of this property is the default font of the QicsTable widget.

QPalette QicsCellCommon::palette [inherited]

Specifies the palette that will be used when drawing in the cell(s).

The default value of this property is the default palette of the QicsTable widget.

QColor QicsCellCommon::foregroundColor [inherited]

This is convenience property which specifies the foreground color of the cell(s) by changing palette property. This color will be used when drawing any text in the cell(s) when it is not selected.

The default value of this property is the default foreground color of the QicsTable widget.

Note: Since setting property on row/column overrides cells property as well as setting table's property overrides rows/columns property, and foreground color is really part of palette property, setting foreground color on row/column will override any other color settings of cells in that row/column. For example, if you set the foreground on a cell, and then set the background on a row, the foreground of the cell will also be changed to default palette. To obtain desired behavior user should set colors in next sequence: 1. Set the table colors 2. Set the row/column colors 3. Set the cell colors

QColor QicsCellCommon::backgroundColor [inherited]

This is convenience property which specifies the background color of the cell(s) by changing palette property. This color will be used when the cell is not selected.

The default value of this property is the default background color of the QicsTable widget.

Note: Since setting property on row/column overrides cells property as well as setting table's property overrides rows/columns property, and background color is really part of palette property, setting background color on row/column will override any other color settings of cells in that row/column. For example, if you set the foreground on a cell, and then set the background on a row, the foreground of the cell will also be changed to default palette. To obtain desired behavior user should set colors in next sequence: 1. Set the table colors 2. Set the row/column colors 3. Set the cell colors

QColor QicsCellCommon::selectedForegroundColor [inherited]

This is convenience property which specifies the selected foreground color of the cell(s) by changing palette property. This color will be used when drawing any text in the cell when the cell is selected.

The default value of this property is the default selectedForeground color of the QicsTable widget.

Note: Since setting property on row/column overrides cells property as well as setting table's property overrides rows/columns property, and selected foreground color is really part of palette property, setting selected foreground color on row/column will override any other color settings of cells in that row/column. For example, if you set the foreground on a cell, and then set the background on a row, the foreground of the cell will also be changed to default palette. To obtain desired behavior user should set colors in next sequence: 1. Set the table colors 2. Set the row/column colors 3. Set the cell colors

QColor QicsCellCommon::selectedBackgroundColor [inherited]

This is convenience property which specifies the selected background color of the cell(s) by changing palette property. This color will be used when the cell is selected.

The default value of this property is the default selectedBackground color of the QicsTable widget.

Note: Since setting property on row/column overrides cells property as well as setting table's property overrides rows/columns property, and selected background color is really part of palette property, setting selected background color on row/column will override any other color settings of cells in that row/column. For example, if you set the foreground on a cell, and then set the background on a row, the foreground of the cell will also be changed to default palette. To obtain desired behavior user should set colors in next sequence: 1. Set the table colors 2. Set the row/column colors 3. Set the cell colors

QPixmap QicsCellCommon::pixmap [inherited]

Specifies the pixmap to use when drawing the cell(s). If set, the pixmap is drawn in the cell. If the cell also has a value in the QicsDataModel, the pixmap will be drawn at the left of the cell, and the value will be drawn to the right of the pixmap. If the pixmap is a null pixmap, no pixmap will be shown.

The default value of this property is the null pixmap.

int QicsCellCommon::pixmapSpacing [inherited]

Specifies the number of pixels between the pixmap and the text in the cell(s).

The default value of this property is 6.

QCursor QicsCellCommon::cursor [inherited]

Specifies the cursor for the cell(s). This cursor will be displayed whenever the mouse pointer is within the cell.

The default value of this property is the null cursor, which means that the default cursor for the table widget will be displayed.

int QicsCellCommon::alignment [inherited]

Specifies the alignment setting used when drawing the cell(s).

The default value of this property is Qt::AlignLeft.

See also:
Qt::Alignment

int QicsCellCommon::textFlags [inherited]

Specifies the text flag setting used when drawing the cell(s). The Qt::DontClip modifier will be ignored. The default value of this property is 0.

See also:
Qt::TextFlags

int QicsCellCommon::maxLength [inherited]

Specifies the maximum length of the value in the cell(s).

The default value of this property is 32767.

int QicsCellCommon::margin [inherited]

Specifies the cell margin (in pixels). The margin is the area between the cell border and the body of the cell that is not used for information display. It will always be filled with the background color of the cell(s).

The default value of this property is 1.

int QicsCellCommon::borderWidth [inherited]

Specifies the border width of the cell(s).

The default value of this property is 1.

QPen QicsCellCommon::topBorderPen [inherited]

Specifies the pen that will be used to draw the top border of the cell(s).

The default value of this property is the default QPen.

QPen QicsCellCommon::leftBorderPen [inherited]

Specifies the pen that will be used to draw the left border of the cell(s).

The default value of this property is the default QPen.

QPen QicsCellCommon::rightBorderPen [inherited]

Specifies the pen that will be used to draw the right border of the cell(s).

The default value of this property is the default QPen.

QPen QicsCellCommon::bottomBorderPen [inherited]

Specifies the pen that will be used to draw the bottom border of the cell(s).

The default value of this property is the default QPen.

QString QicsCellCommon::toolTipText [inherited]

Specifies text to be shown as a tool tip when the mouse pointer is hovered over the cell(s).

The default value of this property is the null string, which will cause no tool tip to be displayed.

QColor QicsCellCommon::editForegroundColor [inherited]

Specifies the edit foreground color of the cell(s). This color will be used when the cell is being edited.

The default value of this property is the default text color of the QicsTable widget.

QColor QicsCellCommon::editBackgroundColor [inherited]

Specifies the edit background color of the cell(s). This color will be used when the cell is being edited.

The default value of this property is the default base color of the QicsTable widget.

bool QicsCellCommon::autoRecognition [inherited]

Specifies the style of input data in cell. If set's true the QicsTable do recognizing of input data into cell (QicsDataInt, QicsDataString, QicsDataDate, QicsDataDateTime, QicsDataTime).


Property Documentation

QicsCurrentCellDraggingPolicy QicsGridCommon::currentCellDraggingPolicy [read, write, inherited]

Specifies the behavior of drag&drop operations when it has began from current cell. The default value of this property is Qics::DragCurrent.

QicsPasteValidator QicsCellCommon::pasteValidator [read, write, inherited]

Specifies validator object that will be used for cell input validation. This validator will be used when data pasted in cell/cells(through drag&drop or QicsTable::paste() method).

QValidator QicsCellCommon::validator [read, write, inherited]

Specifies validator object that will be used for cell input validation This validator will be used when this cell is edited.

bool QicsCellCommon::canAcceptDrops [inherited]

Specifies how cell object react on reciving drag-data. By default all cell's of QicsTable hase allow to use Drag'n'Drop feature.


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.