#include <QicsSelection.h>
Inherits QVector.
Public Member Functions | |
| QicsSelectionList () | |
| bool | isCellSelected (int row, int col) const |
| bool | isRowSelected (int row, bool complete=true) const |
| bool | isColumnSelected (int col, bool complete=true) const |
| QicsRegion | region () const |
| QList< int > | rows () const |
| QList< int > | columns () 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, | |
| bool | complete = true | |||
| ) | const |
Returns true if the row is selected in the list, or false otherwise. If complete is true, then true will be returned only if the whole row is selected.
| bool QicsSelectionList::isColumnSelected | ( | int | col, | |
| bool | complete = true | |||
| ) | const |
Returns true if the column col is selected in the list, or false otherwise. If complete is true, then true will be returned only if the whole column is selected.
| QicsRegion QicsSelectionList::region | ( | ) | const |
Returns QicsRegion covering all the selections, or invalid region if the list is empty.
Referenced by QicsSelectionManager::selectedRegion().
| QList<int> QicsSelectionList::rows | ( | ) | const |
Returns vector of selected rows.
| QList<int> QicsSelectionList::columns | ( | ) | const |
Returns vector of selected columns.