#include <QicsSelectionManager.h>
Inherits QObject, and Qics.
Public Types | |
| enum | QicsWideKeyAction { Del_DeleteSelected, CtrlA_SelectAll, CtrlC_Copy, CtrlV_Paste, CtrlX_Cut } |
| 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 { NoChange = 0, ChangeOnlyHeight, ChangeHeightWidth } |
| enum | QicsCellDecorationStyle { Flat = 0, Styled = 1 } |
| enum | QicsHeaderDragStyle { SimpleDrag = 0, StyledDrag = 1 } |
| enum | QicsAutoFitMode { Native = 0, Excel } |
Public Slots | |
| void | orderChanged (Qics::QicsIndexType, QVector< int > &) |
| void | deleteRows (int num, int start_position) |
| void | deleteColumns (int num, int start_position) |
Signals | |
| void | selectionListChanged (bool in_progress) |
| void | selectionListChangedExternal (bool in_progress) |
| void | selectionCellsChanged (QicsRegion) |
| void | rowSelected (int row, bool selected) |
| void | columnSelected (int col, bool selected) |
Public Member Functions | |
| QicsDataModel * | dataModel (void) const |
| void | setDataModel (QicsDataModel *sm) |
| QicsStyleManager * | styleManager (void) const |
| void | setStyleManager (QicsStyleManager *sm) |
| void | setGridInfo (QicsGridInfo *) |
| void | addHeader (QicsHeaderGrid *hdr) |
| void | removeHeader (QObject *hdr) |
| QicsSelectionList * | selectionList (bool nocopy=false) const |
| void | setSelectionList (const QicsSelectionList &sel_list) |
| void | clearSelectionList (void) |
| QicsRegion | selectedRegion () const |
| QicsSelectionList * | selectionActionList (void) const |
| void | addSelection (QicsSelection &selection) |
| QicsSelectionPolicy | selectionPolicy (void) const |
| void | setSelectionPolicy (QicsSelectionPolicy policy) |
| QicsSelectCurrentCellPolicy | selectCurrentCellPolicy (void) const |
| void | setSelectCurrentCellPolicy (QicsSelectCurrentCellPolicy policy) |
| void | processSelectionEvent (QicsSelectionType stype, int begin_row, int begin_col, int end_row, int end_col) |
| bool | canSelectMultiple (void) const |
| const QicsSelection * | exclusiveSelection () const |
| const QicsSelection * | currentSelection () const |
Static Public Attributes | |
| static const int | QicsLAST_ROW = INT_MAX-1 |
| static const int | QicsLAST_COLUMN = INT_MAX-1 |
Protected Types | |
| enum | QicsSelectState { QicsSelectFalse, QicsSelectTrue, QicsSelectFalseRevert, QicsSelectTrueRevert } |
| typedef QVector< QicsGrid * > | QicsGridPV |
| typedef QVector< QicsHeaderGrid * > | QicsHeaderGridPV |
Protected Member Functions | |
| void | beginSelection (int begin_row, int begin_col, int end_row, int end_col) |
| void | dragSelection (int begin_row, int begin_col, int end_row, int end_col) |
| void | extendSelection (int begin_row, int begin_col, int end_row, int end_col) |
| void | addSelection (int begin_row, int begin_col, int end_row, int end_col) |
| void | endSelection (int begin_row, int begin_col, int end_row, int end_col) |
| void | deleteSelection (void) |
| void | invalidateSelection (const QicsSelection &sel) |
| void | replaceSelection (int begin_row, int begin_col, int end_row, int end_col) |
| void | validateSelection (const QicsSelection &sel) |
| void | setSelectionProperty (const QicsSelection &selection, QicsSelectionManager::QicsSelectState sel) |
| void | setSelectionProperty (int begin_row, int begin_col, int end_row, int end_col, QicsSelectionManager::QicsSelectState sel) |
| void | setRowSelectionProperty (QicsGridInfo &, int row, QicsSelectionManager::QicsSelectState sel, QicsStyleManager *sm) |
| void | setColumnSelectionProperty (QicsGridInfo &, int col, QicsSelectionManager::QicsSelectState sel, QicsStyleManager *sm) |
| void | addToSelectionList (const QicsSelection &sel) |
| QicsSelection & | findSelectionBlock (int anchor_row, int anchor_col) |
| void | announceChanges (bool in_progress) |
Protected Attributes | |
| QicsGridInfo * | myGridInfo |
| QicsStyleManager * | myStyleManager |
| QicsDataModel * | myDataModel |
| QicsSelection | myCurrentSelection |
| QicsSelection | myExclusiveSelection |
| QicsSelectState | myCurrentDragAction |
| QicsSelectionList | mySelectionList |
| QicsSelectionList * | mySelectionActionList |
| QicsHeaderGridPV | myHeaderList |
| QicsRegion | myAffectedRegion |
| QicsSelectionPolicy | mySelectionPolicy |
| QicsSelectCurrentCellPolicy | mySelectCurrentCellPolicy |
| bool | mySelectionChangedFlag |
QicsSelectionManager handles cell selection in the QicsTable widget. The object receives messages from the QicsGrid widget specifying selection actions that the user has taken. Selection actions can also be performed by the programmer through the QicsTable API.
When selection actions are made, the selection manager updates its internal state, and also updates the style manager so that affected cells have the correct QicsCellStyle::Selected state.
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.
enum Qics::QicsHeaderDragStyle [inherited] |
Specifies row/column drag style for headers.
enum Qics::QicsAutoFitMode [inherited] |
Specifies autofit modes.
| QicsRegion QicsSelectionManager::selectedRegion | ( | ) | const [inline] |
Returns QicsRegion covering all the selections, or invalid region if the list is empty.
References QicsSelectionList::region().