ICS

QicsTable Documentation Set

QicsSelectionList Class Reference

Represents a complete table selection. More...

#include <QicsSelection.h>

Inherits QVector.

List of all members.

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


Detailed Description

Represents a complete table selection.

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.


Constructor & Destructor Documentation

QicsSelectionList::QicsSelectionList (  ) 

Constructor for the class


Member Function Documentation

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.

Since:
2.2

Referenced by QicsSelectionManager::selectedRegion().

QList<int> QicsSelectionList::rows (  )  const

Returns vector of selected rows.

Since:
2.3

QList<int> QicsSelectionList::columns (  )  const

Returns vector of selected columns.

Since:
2.3


The documentation for this class was generated from the following file:

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright ©1999-2007 Integrated Computer Solutions, Inc.