ICS

QicsTable Documentation Set

QicsCellCommon Class Reference

Abstract class for setting and retrieving table attributes. More...

#include <QicsCellCommon.h>

Inherits QObject, and Qics.

Inherited by QicsCell, QicsColumn, QicsGridCommon, QicsRepeatingColumn, QicsRepeatingRow, and QicsRow.

List of all members.

Public Types

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

Public Slots

void setMargin (int margin)
void setReadOnly (bool b)
void setFont (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 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 (bool)

Public Member Functions

 QicsCellCommon (QObject *parent=0)
bool autoRecognition (void)
 QicsCellCommon (QicsGridInfo *info, QObject *parent=0)
virtual void setInfo (QicsGridInfo *info)
QicsDataModeldataModel (void) const
int margin (void) const
bool readOnly (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
QColor editForegroundColor (void) const
QColor editBackgroundColor (void) const
QPixmap pixmap (void) const
int pixmapSpacing (void) const
QicsCellDisplaydisplayer (void) const
QicsDataItemFormatterformatter (void) const
int alignment (void) const
bool enabled (void) const
bool selected (void) const
int textFlags (void) const
QValidator * validator (void) const
QicsPasteValidatorpasteValidator (void) const
QString label (void) const
int maxLength (void) const
const QCursor & cursor (void) const
int borderWidth (void) const
QPen topBorderPen (void) const
QPen leftBorderPen (void) const
QPen rightBorderPen (void) const
QPen bottomBorderPen (void) const
void * userData (void) const
QString toolTipText (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 Member Functions

virtual void setAttr (QicsCellStyle::QicsCellStyleProperty attr, const void *val)=0
virtual void * getAttr (QicsCellStyle::QicsCellStyleProperty attr) const =0
virtual void clearAttr (QicsCellStyle::QicsCellStyleProperty attr)=0
virtual void setDMMargin (int margin)=0
virtual void setDMFont (const QFont &font)=0
virtual void setDMBorderWidth (int bw)=0
QicsStyleManager & styleManager (void) const
QicsDimensionManager & dimensionManager (void) const

Protected Attributes

QPointer< QicsGridInfomyInfo
bool myFollowModel

Properties

QicsPasteValidator pasteValidator
QValidator validator


Detailed Description

Abstract class for setting and retrieving table attributes.

QicsCellCommon is an abstract class that defines a number of cell attributes and partially implements the setting and retrieval operations for those attributes. Ancestor classes that inherit from QicsCellCommon will complete the implementation so that setting an attribute results in a cell, row, column, or grid-wide change, depending on the class. New cell attributes should be added here so that all subclasses can use them.


Member Enumeration Documentation

enum Qics::QicsCellOverflowBehavior [inherited]
 

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

  • Clip Cell contents are clipped at the edges of the cell
  • Overflow The grid will attempt to overflow into adjacent cells
  • ToolTip The full contents of the cell will be displayed in a tooltip when the mouse pointer is hovered over the cell

enum Qics::QicsCurrentCellStyle [inherited]
 

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

  • Spreadsheet The current cell will be drawn with a solid border and will always use the cell's background color.
  • NormalSelected The current cell will be drawn the same as all other selected cells. The border will be as specified in the cell's border properties, and the background will be the cell's selected color.

enum Qics::QicsGridCellClipping [inherited]
 

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

  • AllowPartial Shows as much of the text as possible
  • NoDisplayOnPartial Do not display text if it cannot fit in the cell
  • UseClippedSymbol Display a clipped symbol at the end of the partial text

enum Qics::QicsGridType [inherited]
 

Specifies a type of grid object.

  • TableGrid A grid used to display normal table data
  • RowHeaderGrid A grid used to display row header data
  • ColumnHeaderGrid A grid used to display column header data

enum Qics::QicsHeaderType [inherited]
 

Specifies the type of table header.

  • HeaderRow A row header
  • HeaderColumn A column header

enum Qics::QicsIndexType [inherited]
 

Specifies the type of table index.

  • RowIndex A row index
  • ColumnIndex A column index

enum Qics::QicsLineStyle [inherited]
 

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

  • None No line or border
  • Plain A simple, plain line or border
  • Raised A raised line (using shadows)
  • Sunken A sunken line (using shadows)

enum Qics::QicsRepaintBehavior [inherited]
 

Specifies the recalculation and repainting behavior of tables and grids.

  • RepaintOff Do not perform any drawing or dimension calculations
  • RepaintOn Draw as needed, keep all dimensions up to date
  • RepaintCalcOnly Do not draw, but keep all dimensions up to date

enum Qics::QicsScrollBarMode [inherited]
 

Specifies the various modes of QicsTable's scroll bars.

  • Auto QicsTable shows a scroll bar when the content is too large to fit and not otherwise.
  • AlwaysOff QicsTable never shows a scroll bar.
  • AlwaysOn QicsTable always shows a scroll bar.

enum Qics::QicsScrollDirection [inherited]
 

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

  • ScrollNone no scroll allowed
  • ScrollUp scrolling up on a certain number of rows
  • ScrollDown scrolling down on a certain number of rows
  • ScrollLeft scrolling left on a certain number of columns
  • ScrollRight scrolling right on a certain number of columns
  • ScrollToRow scrolling up or down to a certain row
  • ScrollToColumn scrolling left or right to a certain column

enum Qics::QicsSelectionPolicy [inherited]
 

Denotes the selection policy for the table.

  • SelectNone no selection allowed
  • SelectSingle single cell selection
  • SelectionMultiple multiple cell selection (including non-contiguous regions)
  • SelectSingleRow selecting a cell selects the entire row, only one row can be selected
  • SelectMultipleRow selecting a cell selects the entire row, multiple rows can be selected

enum Qics::QicsSortMode [inherited]
 

Denotes the sort algorithm which is used

  • QicsStableSort Used non distructive, stable sort algorithm
  • QicsQuickSort Default quick sort algorithm.

enum Qics::QicsSortOrder [inherited]
 

Specifies whenever ordering should be ascending or descending.

  • Ascending Ascending order
  • Descending Descending order

enum Qics::QicsTableDisplayOption [inherited]
 

Specifies a printing display policy for elements of the table

  • DisplayNever Do not display the element when printing
  • DisplayAlways Always display the element when printing
  • DisplayFirstPage Display the element only when printing the first page of the table

enum Qics::QicsTraversalKeyEditBehavior [inherited]
 

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

  • TraverseWithinCell Traversal keys move the text cursor within the edited cell.
  • TraverseBetweenCells Traversal keys move the current cell highlight between cells in the table.


Member Function Documentation

int QicsCellCommon::alignment void   )  const
 

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

See also:
Qt::Alignment

setAlignment()

bool QicsCellCommon::autoRecognition void   ) 
 

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

See also:
setAutoRecognition()

QColor QicsCellCommon::backgroundColor void   )  const
 

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

See also:
setBackgroundColor()

int QicsCellCommon::borderWidth void   )  const
 

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

See also:
setBorderWidth()

QPen QicsCellCommon::bottomBorderPen void   )  const
 

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

See also:
setBottomBorderPen()

const QCursor& QicsCellCommon::cursor void   )  const
 

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

See also:
setCursor()

unsetCursor()

QicsDataModel* QicsCellCommon::dataModel void   )  const [inline]
 

Returns the data model associated with this object.

Reimplemented in QicsTableCommon.

QicsCellDisplay* QicsCellCommon::displayer void   )  const
 

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()

QColor QicsCellCommon::editBackgroundColor void   )  const
 

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

See also:
setEditBackgroundColor()

QColor QicsCellCommon::editForegroundColor void   )  const
 

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

See also:
setEditForegroundColor()

bool QicsCellCommon::enabled void   )  const
 

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

See also:
setEnabled()

QFont QicsCellCommon::font void   )  const
 

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

See also:
setFont()

QColor QicsCellCommon::foregroundColor void   )  const
 

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

See also:
setForegroundColor()

QicsDataItemFormatter* QicsCellCommon::formatter void   )  const
 

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()

QString QicsCellCommon::label void   )  const
 

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()

QPen QicsCellCommon::leftBorderPen void   )  const
 

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

See also:
setLeftBorderPen()

int QicsCellCommon::margin void   )  const
 

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

See also:
setMargin()

int QicsCellCommon::maxLength void   )  const
 

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

See also:
setMaxLength()

QPalette QicsCellCommon::palette void   )  const
 

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

See also:
setPalette()

QicsPasteValidator* QicsCellCommon::pasteValidator void   )  const
 

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

See also:
setPasteValidator()

QPixmap QicsCellCommon::pixmap void   )  const
 

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

See also:
setPixmap()

int QicsCellCommon::pixmapSpacing void   )  const
 

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

See also:
setPixmap()

bool QicsCellCommon::readOnly void   )  const
 

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

See also:
setReadOnly()

QPen QicsCellCommon::rightBorderPen void   )  const
 

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

See also:
setRightBorderPen()

bool QicsCellCommon::selected void   )  const
 

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

QColor QicsCellCommon::selectedBackgroundColor void   )  const
 

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

See also:
setSelectedBackgroundColor()

QColor QicsCellCommon::selectedForegroundColor void   )  const
 

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

See also:
setSelectedForegroundColor()

void QicsCellCommon::setAlignment int  flags  )  [slot]
 

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

See also:
Qt::Alignment

alignment()

void QicsCellCommon::setAutoRecognition bool   )  [slot]
 

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

See also:
autoRecognition()

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

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

See also:
backgroundColor()

void QicsCellCommon::setBorderWidth int  bw  )  [slot]
 

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

See also:
borderWidth()

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

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

See also:
bottomBorderPen()

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

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

See also:
cursor()

unsetCursor()

void QicsCellCommon::setDisplayer QicsCellDisplay d  )  [slot]
 

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::setEditBackgroundColor const QColor &  p  )  [slot]
 

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

See also:
editBackgroundColor()

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

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

See also:
editForegroundColor()

void QicsCellCommon::setEnabled bool  b  )  [slot]
 

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

See also:
enabled()

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

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

See also:
font()

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

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

See also:
foregroundColor()

void QicsCellCommon::setFormatter QicsDataItemFormatter d  )  [slot]
 

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::setLabel const QString &  label  )  [slot]
 

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::setLeftBorderPen const QPen &  pen  )  [slot]
 

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

See also:
leftBorderPen()

void QicsCellCommon::setMargin int  margin  )  [slot]
 

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

See also:
margin()

void QicsCellCommon::setMaxLength int  len  )  [slot]
 

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

See also:
maxLength()

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

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

See also:
palette()

void QicsCellCommon::setPasteValidator QicsPasteValidator v  )  [slot]
 

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

See also:
pasteValidator()

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

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

See also:
pixmap()

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

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

See also:
pixmap()

void QicsCellCommon::setPixmapSpacing int  sp  )  [slot]
 

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

See also:
pixmap()

void QicsCellCommon::setReadOnly bool  b  )  [slot]
 

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

See also:
readOnly()

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

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

See also:
rightBorderPen()

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

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

See also:
selectedBackgroundColor()

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

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

See also:
selectedForegroundColor()

void QicsCellCommon::setTextFlags int  flags  )  [slot]
 

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

See also:
Qt::TextFlags

textFlags()

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

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::setTopBorderPen const QPen &  pen  )  [slot]
 

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

See also:
topBorderPen()

void QicsCellCommon::setUserData void *  data  )  [slot]
 

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::setValidator QValidator *  v  )  [slot]
 

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

See also:
validator()

int QicsCellCommon::textFlags void   )  const
 

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

See also:
Qt::TextFlags

setTextFlags()

QString QicsCellCommon::toolTipText void   )  const
 

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()

QPen QicsCellCommon::topBorderPen void   )  const
 

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

See also:
setTopBorderPen()

void QicsCellCommon::unsetCursor void   )  [slot]
 

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

See also:
cursor()

setCursor()

void* QicsCellCommon::userData void   )  const
 

Returns a user-supplied pointer for this cell.

QValidator* QicsCellCommon::validator void   )  const
 

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

See also:
setValidator()


Member Data Documentation

int QicsCellCommon::alignment
 

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

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

See also:
Qt::Alignment

bool QicsCellCommon::autoRecognition
 

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).

QColor QicsCellCommon::backgroundColor
 

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

int QicsCellCommon::borderWidth
 

Specifies the border width of the cell(s).

The default value of this property is 1.

QPen QicsCellCommon::bottomBorderPen
 

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.

QCursor QicsCellCommon::cursor
 

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.

QColor QicsCellCommon::editBackgroundColor
 

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.

QColor QicsCellCommon::editForegroundColor
 

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.

bool QicsCellCommon::enabled
 

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.

QFont QicsCellCommon::font
 

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.

QColor QicsCellCommon::foregroundColor
 

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

QString QicsCellCommon::label
 

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.

QPen QicsCellCommon::leftBorderPen
 

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.

int QicsCellCommon::margin
 

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::maxLength
 

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

The default value of this property is 32767.

QPalette QicsCellCommon::palette
 

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.

QPixmap QicsCellCommon::pixmap
 

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
 

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

The default value of this property is 6.

bool QicsCellCommon::readOnly
 

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

The default value of this property is false.

QPen QicsCellCommon::rightBorderPen
 

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.

bool QicsCellCommon::selected
 

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

The default value of this property is false.

QColor QicsCellCommon::selectedBackgroundColor
 

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

QColor QicsCellCommon::selectedForegroundColor
 

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

int QicsCellCommon::textFlags
 

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

QString QicsCellCommon::toolTipText
 

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.

QPen QicsCellCommon::topBorderPen
 

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.


Property Documentation

QicsPasteValidator QicsCellCommon::pasteValidator [read, write]
 

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]
 

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


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.