#include <QicsSelection.h>
Inherits QVector.
Public Member Functions | |
| QicsSelectionList () | |
| bool | isCellSelected (int row, int col) const |
| bool | isRowSelected (int row) const |
| bool | isColumnSelected (int col) const |
| QicsRegion | region () const |
QicsSelectionList represents a complete QicsTable selection. This list consists of 0 or more QicsSelection objects, each of which represents a contiguous, rectangular set of selected cells.
QicsSelectionList is implemented as a subclass of QValueVector<QicsSelection>. As such, you may use all the usual vector methods when using this class.
| QicsSelectionList::QicsSelectionList | ( | ) |
Constructor for the class
| bool QicsSelectionList::isCellSelected | ( | int | row, | |
| int | col | |||
| ) | const |
Returns true if (row, col ) is selected in the list, or false otherwise.
| bool QicsSelectionList::isRowSelected | ( | int | row | ) | const |
Returns true if the entire row row is selected in the list, or false otherwise.
| bool QicsSelectionList::isColumnSelected | ( | int | col | ) | const |
Returns true if the entire column col is selected in the list, or false otherwise.
| QicsRegion QicsSelectionList::region | ( | ) | const |
Returns QicsRegion covering all the selections, or invalid region if the list is empty.