#include <QicsScrollBarScroller.h>
Inherits QicsScroller.
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 | |
| virtual int | index (void) const |
| virtual void | setIndex (Qics::QicsIndexType type, int idx) |
| virtual int | minIndex (void) const |
| virtual void | setMinIndex (Qics::QicsIndexType type, int idx) |
| virtual int | maxIndex (void) const |
| virtual void | setMaxIndex (Qics::QicsIndexType type, int idx) |
| void | handleSliderPressed (void) |
| void | handleSliderReleased (void) |
| void | handleActionTriggered (int action) |
Signals | |
| void | indexChanged (Qics::QicsIndexType type, int idx) |
| void | scrollPageAdd (Qics::QicsIndexType type, int idx) |
| void | scrollPageSub (Qics::QicsIndexType type, int idx) |
Public Member Functions | |
| QicsScrollBarScroller (Qics::QicsIndexType type, QWidget *parent) | |
| virtual | ~QicsScrollBarScroller () |
| virtual QAbstractSlider * | widget (void) const |
| virtual void | setWidget (QAbstractSlider *widget) |
| virtual QicsScrollBarMode | mode (void) const |
| virtual void | setMode (QicsScrollBarMode m) |
| bool | scrollSliderDrag (void) const |
| virtual void | setMode (QicsScrollBarMode m)=0 |
| Sets mode of scroller. | |
Protected Slots | |
| void | valueChanged (int val) |
Protected Member Functions | |
| void | checkBounds (void) |
Protected Attributes | |
| QAbstractSlider * | myScrollBar |
| the scrollbar widget | |
| Qics::QicsIndexType | myType |
| the type of this scroller | |
| bool | myInSetIndex |
| flag used in setIndex to avoid recursive signals | |
| bool | myIsSliderPressed |
| flag which store slider press action | |
| int | oldVal |
| QicsScrollBarMode | myMode |
| controls the mode of the scrollbar | |
QicsScrollBarScroller is an implementation of QicsScroller that uses a generic QScrollBar widget as its UI.
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.
| QicsScrollBarScroller::QicsScrollBarScroller | ( | Qics::QicsIndexType | type, | |
| QWidget * | parent | |||
| ) |
The constructor. type specifies if this scroller should control rows or columns. parent specifies the parent of the scrollbar widget. name specifies the name of this object.
| virtual QicsScrollBarScroller::~QicsScrollBarScroller | ( | ) | [virtual] |
The destructor.
| virtual QAbstractSlider* QicsScrollBarScroller::widget | ( | void | ) | const [inline, virtual] |
Returns the QScrollBar widget of this scroller.
Implements QicsScroller.
| virtual void QicsScrollBarScroller::setWidget | ( | QAbstractSlider * | widget | ) | [virtual] |
Sets new widget for this scroller. Old widget deletes automatically.
Implements QicsScroller.
| virtual QicsScrollBarMode QicsScrollBarScroller::mode | ( | void | ) | const [inline, virtual] |
Returns the mode of the scrollbar.
Implements QicsScroller.
| virtual void QicsScrollBarScroller::setMode | ( | QicsScrollBarMode | m | ) | [virtual] |
Sets the mode of the scrollbar.
| bool QicsScrollBarScroller::scrollSliderDrag | ( | void | ) | const [inline] |
Returns true if slider in drag mode.
| virtual int QicsScrollBarScroller::index | ( | void | ) | const [inline, virtual, slot] |
Returns the current index of the scroller.
Implements QicsScroller.
| virtual void QicsScrollBarScroller::setIndex | ( | Qics::QicsIndexType | type, | |
| int | idx | |||
| ) | [virtual, slot] |
Sets the current type index of the scroller to idx. The request is ignored if type is not the same as the type that was passed to the constructor.
Implements QicsScroller.
| virtual int QicsScrollBarScroller::minIndex | ( | void | ) | const [inline, virtual, slot] |
Returns the current minimum index of the scroller.
Implements QicsScroller.
| virtual void QicsScrollBarScroller::setMinIndex | ( | Qics::QicsIndexType | type, | |
| int | idx | |||
| ) | [virtual, slot] |
Sets the current type minimum index of the scroller to idx. The request is ignored if type is not the same as the type that was passed to the constructor.
Implements QicsScroller.
| virtual int QicsScrollBarScroller::maxIndex | ( | void | ) | const [inline, virtual, slot] |
Returns the current maximum index of the scroller.
Implements QicsScroller.
| virtual void QicsScrollBarScroller::setMaxIndex | ( | Qics::QicsIndexType | type, | |
| int | idx | |||
| ) | [virtual, slot] |
Sets the current type maximum index of the scroller to idx. The request is ignored if type is not the same as the type that was passed to the constructor.
Implements QicsScroller.
| void QicsScrollBarScroller::handleSliderPressed | ( | void | ) | [slot] |
This clot handle mouse pressing on slider.
| void QicsScrollBarScroller::handleSliderReleased | ( | void | ) | [slot] |
Handle mouse release on slider.
| void QicsScrollBarScroller::valueChanged | ( | int | val | ) | [protected, slot] |
Called when the scrollbar widget's value changes.
| void QicsScrollBarScroller::checkBounds | ( | void | ) | [protected] |
Checks the min and max indices and hideWhenNotNeeded to determine if the scrollbar should be hidden or shown.
| virtual void QicsScroller::setMode | ( | QicsScrollBarMode | m | ) | [pure virtual, inherited] |
Sets mode of scroller.
| void QicsScroller::indexChanged | ( | Qics::QicsIndexType | type, | |
| int | idx | |||
| ) | [signal, inherited] |
Emitted when the index of this scroller changes. type specifies whether this index is for a row or a column. idx is the new index value.
QAbstractSlider* QicsScrollBarScroller::myScrollBar [protected] |
the scrollbar widget
Qics::QicsIndexType QicsScrollBarScroller::myType [protected] |
the type of this scroller
bool QicsScrollBarScroller::myInSetIndex [protected] |
flag used in setIndex to avoid recursive signals
bool QicsScrollBarScroller::myIsSliderPressed [protected] |
flag which store slider press action
QicsScrollBarMode QicsScrollBarScroller::myMode [protected] |
controls the mode of the scrollbar