#include <QicsRepeatingRow.h>
Inherits QicsCellCommon.
Repeating Row Properties | |
| int | startRowIndex |
| int | interval |
| int | heightInPixels |
| int | heightInChars |
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 | setStartRowIndex (int idx) |
| void | setInterval (int interval) |
| void | setHeightInPixels (int height) |
| void | setHeightInChars (int height) |
| 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) |
| QicsGridInfo & | gridInfo () |
Public Member Functions | |
| QicsRepeatingRow (int start_row, unsigned int interval, QicsTable *table) | |
| QicsRepeatingRow (int start_row, unsigned int interval, QicsGridInfo *info, QObject *parent=0) | |
| int | startRowIndex (void) const |
| int | interval (void) const |
| int | heightInPixels (void) const |
| int | heightInChars (void) const |
| 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) |
| QicsPasteValidator * | pasteValidator (void) const |
| QValidator * | validator (void) const |
| virtual void | setInfo (QicsGridInfo *info) |
| QicsDataModel * | dataModel (void) const |
| QFont | selectedFont (void) const |
| QColor | highlightForegroundColor (void) const |
| QColor | highlightBackgroundColor (void) const |
| QicsCellDisplay * | displayer (void) const |
| QicsDataItemFormatter * | formatter (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 Member Functions | |
| void | init (int start_row, unsigned int interval) |
| virtual void | setAttr (QicsCellStyle::QicsCellStyleProperty attr, const void *val) |
| virtual void * | getAttr (QicsCellStyle::QicsCellStyleProperty attr) const |
| virtual void | clearAttr (QicsCellStyle::QicsCellStyleProperty attr) |
| virtual void | setDMMargin (int margin) |
| virtual void | setDMFont (const QFont &font) |
| virtual void | setDMBorderWidth (int bw) |
| virtual void | setDMFitSize (int, int) |
| QicsStyleManager & | styleManager (void) const |
| QicsDimensionManager & | dimensionManager (void) const |
Protected Attributes | |
| int | myStartRow |
| int | myInterval |
| QPointer< QicsGridInfo > | myInfo |
| bool | myFollowModel |
Properties | |
| QicsPasteValidator | pasteValidator |
| QValidator | validator |
| bool | canAcceptDrops |
Friends | |
| class | QicsTableCommon |
| class | QicsHeader |
QicsRepeatingRow is the programmer's access point for attribute settings for a repeating set of rows. These rows are specified by a starting row, and an repeat interval. All attributes of individual rows can be set using this class. Retrieving attributes of this class is rarely useful. Retrieving attributes of the class will always return the value of the attribute in the starting row. This value may have been set by a repeating row setting, it may have been explicitly set on this individual row, or it may be the default value for the grid if no value was set for this row.
QicsRepeatingRow is a flyweight class representing a repeating set of rows in the table. Instances of this object are created only when necessary -- there is no large array of repeating row objects contained in the table. Rather, they are created directly (via the public constructor) or indirectly (via QicsTable::repeatingRow(), QicsTable::repeatingRowRef(), QicsHeader::repeatingRow(), or QicsHeader::repeatingRowRef()) by the programmer when needed.
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] |
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.
| QicsRepeatingRow::QicsRepeatingRow | ( | int | start_row, | |
| unsigned int | interval, | |||
| QicsTable * | table | |||
| ) |
Constructor for the class.
| start_row | starting row index | |
| interval | how often to repeat these settings | |
| table | the cell's table |
| int QicsRepeatingRow::startRowIndex | ( | void | ) | const [inline] |
Returns the starting row index of this repeating row object.
| int QicsRepeatingRow::interval | ( | void | ) | const [inline] |
Returns the interval setting of this repeating row object. property for details.
| int QicsRepeatingRow::heightInPixels | ( | void | ) | const |
Returns the height of this repeating row in pixels. See the "heightInPixels" property for details.
| int QicsRepeatingRow::heightInChars | ( | void | ) | const |
Returns the height of this repeating row in character units (i.e. lines). See the "heightInChars" property for details.
| void QicsRepeatingRow::setStartRowIndex | ( | int | idx | ) | [inline, slot] |
Sets the the starting row index of this object to idx.
| void QicsRepeatingRow::setInterval | ( | int | interval | ) | [inline, slot] |
Sets the the row interval of this object to interval.
| void QicsRepeatingRow::setHeightInPixels | ( | int | height | ) | [slot] |
Sets the height of this repeating row in pixels. See the "heightInPixels" property for details.
| void QicsRepeatingRow::setHeightInChars | ( | int | height | ) | [slot] |
Sets the height of this repeating row in character units (i.e. lines). See the "heightInChars" property for details.
| 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.
| bool QicsCellCommon::enabled | ( | void | ) | const [inherited] |
Returns the enabled attribute of the cell. See the "enabled" property for details.
| bool QicsCellCommon::readOnly | ( | void | ) | const [inherited] |
Returns the read-only attribute of the cell. See the "readOnly" property for details.
| 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] |
| QPalette QicsCellCommon::palette | ( | void | ) | const [inherited] |
Returns the palette attribute of the cell. See the "palette" property for details.
| QColor QicsCellCommon::foregroundColor | ( | void | ) | const [inherited] |
Returns the cell's foreground color. See the "foregroundColor" property for details.
| QColor QicsCellCommon::backgroundColor | ( | void | ) | const [inherited] |
Returns the cell's background color. See the "backgroundColor" property for details.
| QColor QicsCellCommon::selectedForegroundColor | ( | void | ) | const [inherited] |
Returns the cell's selected foreground color. See the "selectedForegroundColor" property for details.
| QColor QicsCellCommon::selectedBackgroundColor | ( | void | ) | const [inherited] |
Returns the cell's selected background color. See the "selectedBackgroundColor" property for details.
| QPixmap QicsCellCommon::pixmap | ( | void | ) | const [inherited] |
Returns the cell's pixmap. See the "pixmap" property for details.
| int QicsCellCommon::pixmapSpacing | ( | void | ) | const [inherited] |
Returns the cell's pixmap spacing See the "pixmapSpacing" property for details.
| const QCursor& QicsCellCommon::cursor | ( | void | ) | const [inherited] |
Returns the cursor for this cell. See the "cursor" property for details.
| int QicsCellCommon::alignment | ( | void | ) | const [inherited] |
Returns the alignment options for this cell. See the "alignment" property for details.
| int QicsCellCommon::textFlags | ( | void | ) | const [inherited] |
Returns the text flags attribute of the cell. See the "textFlags" property for details.
| int QicsCellCommon::maxLength | ( | void | ) | const [inherited] |
Returns the maximum length of the value in this cell. See the "maxLength" property for details.
| int QicsCellCommon::margin | ( | void | ) | const [inherited] |
Returns the margin of the cell (in pixels). See the "margin" property for details.
| int QicsCellCommon::borderWidth | ( | void | ) | const [inherited] |
Returns the border width of this cell. See the "borderWidth" property for details.
| QPen QicsCellCommon::topBorderPen | ( | void | ) | const [inherited] |
Returns the pen used to draw the top border of this cell. See the "topBorderPen" property for details.
| QPen QicsCellCommon::leftBorderPen | ( | void | ) | const [inherited] |
Returns the pen used to draw the left border of this cell. See the "leftBorderPen" property for details.
| QPen QicsCellCommon::rightBorderPen | ( | void | ) | const [inherited] |
Returns the pen used to draw the right border of this cell. See the "rightBorderPen" property for details.
| QPen QicsCellCommon::bottomBorderPen | ( | void | ) | const [inherited] |
Returns the pen used to draw the bottom border of this cell. See the "bottomBorderPen" property for details.
| 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.
| QColor QicsCellCommon::editForegroundColor | ( | void | ) | const [inherited] |
Returns the cell's edit foreground color. See the "editForegroundColor" property for details.
| QColor QicsCellCommon::editBackgroundColor | ( | void | ) | const [inherited] |
Returns the cell's edit background color. See the "editBackgroundColor" property for details.
| bool QicsCellCommon::autoRecognition | ( | void | ) | [inherited] |
Returns auto recognition flag for cell. See the "autoRecognition" property for details.
| QicsPasteValidator* QicsCellCommon::pasteValidator | ( | void | ) | const [inherited] |
Returns the paste validator object for this cell. See the "pasteValidator" property for details.
| 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.
| 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.
| QicsDataModel* QicsCellCommon::dataModel | ( | void | ) | const [inline, inherited] |
Returns the data model associated with this object.
Reimplemented in QicsTableCommon.
| QFont QicsCellCommon::selectedFont | ( | void | ) | const [inherited] |
Returns the selected font attribute of the cell. See the "selectedFont" property for details.
| QColor QicsCellCommon::highlightForegroundColor | ( | void | ) | const [inherited] |
Returns the cell's highlight foreground color. See the "highlightForegroundColor" property for details.
| QColor QicsCellCommon::highlightBackgroundColor | ( | void | ) | const [inherited] |
Returns the cell's highlight background color. See the "highlightBackgroundColor" property for details.
| 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.
| 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.
| void* QicsCellCommon::userData | ( | void | ) | const [inherited] |
Returns a user-supplied pointer for this cell.
| void QicsCellCommon::setMargin | ( | int | margin | ) | [slot, inherited] |
| void QicsCellCommon::setReadOnly | ( | bool | b | ) | [slot, inherited] |
Sets the read-only attribute of the cell. See the "readOnly" property for details.
| void QicsCellCommon::setFont | ( | const QFont & | font | ) | [slot, inherited] |
| void QicsCellCommon::setSelectedFont | ( | const QFont & | font | ) | [slot, inherited] |
Sets the selected font attribute of the cell. See the "selectedFont" property for details.
| void QicsCellCommon::setPalette | ( | const QPalette & | pal | ) | [slot, inherited] |
| void QicsCellCommon::setForegroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's foreground color. See the "foregroundColor" property for details.
| void QicsCellCommon::setBackgroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's background color. See the "backgroundColor" property for details.
| void QicsCellCommon::setSelectedForegroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's selected foreground color. See the "selectedForegroundColor" property for details.
| void QicsCellCommon::setSelectedBackgroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's selected background color. See the "selectedBackgroundColor" property for details.
| void QicsCellCommon::setEditForegroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's edit foreground color. See the "editForegroundColor" property for details.
| void QicsCellCommon::setEditBackgroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's edit background color. See the "editBackgroundColor" property for details.
| void QicsCellCommon::setHighlightForegroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's highlight foreground color. See the "highlightForegroundColor" property for details.
| void QicsCellCommon::setHighlightBackgroundColor | ( | const QColor & | p | ) | [slot, inherited] |
Sets the cell's highlight background color. See the "highlightBackgroundColor" property for details.
| void QicsCellCommon::setPixmap | ( | const QPixmap & | p | ) | [slot, inherited] |
| void QicsCellCommon::setPixmap | ( | const QString & | file_name | ) | [slot, inherited] |
| void QicsCellCommon::setPixmapSpacing | ( | int | sp | ) | [slot, inherited] |
Sets the cell's pixmap spacing. See the "pixmapSpacing" property for details.
| 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.
| 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.
| void QicsCellCommon::setAlignment | ( | int | flags | ) | [slot, inherited] |
Sets the alignment options for this cell. See the "alignment" property for details.
| void QicsCellCommon::setEnabled | ( | bool | b | ) | [slot, inherited] |
| void QicsCellCommon::setTextFlags | ( | int | flags | ) | [slot, inherited] |
Sets the text flags attribute of the cell. See the "textFlags" property for details.
| 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.
| void QicsCellCommon::setPasteValidator | ( | QicsPasteValidator * | v | ) | [slot, inherited] |
Sets the paste validator object for this cell. See the "pasteValidator" property for details.
| void QicsCellCommon::setLabel | ( | const QString & | label | ) | [slot, inherited] |
| void QicsCellCommon::setMaxLength | ( | int | len | ) | [slot, inherited] |
Sets the maximum length of the value in this cell. See the "maxLength" property for details.
| void QicsCellCommon::setCursor | ( | const QCursor & | c | ) | [slot, inherited] |
| void QicsCellCommon::unsetCursor | ( | void | ) | [slot, inherited] |
| void QicsCellCommon::setBorderWidth | ( | int | bw | ) | [slot, inherited] |
Sets the border width of this cell. See the "borderWidth" property for details.
| 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.
| 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.
| 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.
| 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.
| 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.
| void QicsCellCommon::setAutoRecognition | ( | const bool | flag | ) | [slot, inherited] |
Sets automatical recognition for cell. See the "autoRecognition" property for details.
| 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"
Specifies the starting visual row index of this object.
Specifies the row interval of this object.
Specifies the height of the repeating rows in pixels. If the height of the rows have been set in character units, retrieving this property will return the equivalent height in pixels.
The default value of this property is dependent on the height of the default font.
Specifies the height of the repeating rows in character units. This means that setting this value to 1 will change the height of the rows to be just large enough to display one line of text (plus the margin size and border width). If the height of the rows has been set by pixel, retrieving this property will return the equivalent height in character units based on the current font.
The default value of this property is dependent on the height of the default font.
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.
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.
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).
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.