The ctkDICOMTableView displays the content of a specific table of the ctkDICOMDatabase.
More...
#include <Libs/DICOM/Widgets/ctkDICOMTableView.h>
|
QScopedPointer< ctkDICOMTableViewPrivate > | d_ptr |
|
The ctkDICOMTableView displays the content of a specific table of the ctkDICOMDatabase.
The ctkDICOMTableView holds a QTableView which displays the content of the selected ctkDICOMDatabase. It also holds a ctkSearchBox which allows filtering of the table content.
Definition at line 42 of file ctkDICOMTableView.h.
ctkDICOMTableView::ctkDICOMTableView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
ctkDICOMTableView::ctkDICOMTableView |
( |
QString |
queryTableName, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
ctor with tablename as parameter
- Parameters
-
parent | the parent widget |
queryTableName | the name of the table of the ctkDICOMDatabase which shall be displayed |
ctkDICOMTableView::ctkDICOMTableView |
( |
ctkDICOMDatabase * |
dicomDataBase, |
|
|
QString |
queryTableName, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
ctor with tablename and database as parameter
- Parameters
-
ctkDicomDataBase | the ctkDICOMDatabase which shall be used |
parent | the parent widget |
queryTableName | the name of the table of the ctkDICOMDatabase which shall be displayed |
virtual ctkDICOMTableView::~ctkDICOMTableView |
( |
| ) |
|
|
virtual |
void ctkDICOMTableView::addSqlWhereCondition |
( |
const std::pair< QString, QStringList > & |
condition | ) |
|
Add a where condition to the usual select statement.
- Parameters
-
condition | std::pair with column name and a value list |
QStringList ctkDICOMTableView::currentSelection |
( |
| ) |
const |
Returns the uids of the current selected rows.
- Returns
- a list containing all the uids of the selected rows
void ctkDICOMTableView::doubleClicked |
( |
const QModelIndex & |
| ) |
|
|
signal |
virtual bool ctkDICOMTableView::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
bool ctkDICOMTableView::filterActive |
( |
| ) |
|
void ctkDICOMTableView::onCustomContextMenuRequested |
( |
const QPoint & |
point | ) |
|
|
slot |
Translates the local point to a global one.
- Parameters
-
point | the local point to translate to global Emits customContextMenuRequested with the global point |
void ctkDICOMTableView::onDatabaseChanged |
( |
| ) |
|
|
protectedslot |
Called when the underlying database changes.
void ctkDICOMTableView::onFilterChanged |
( |
| ) |
|
|
protectedslot |
void ctkDICOMTableView::onInstanceAdded |
( |
| ) |
|
|
protectedslot |
Called if a new instance was added to the database.
void ctkDICOMTableView::onSelectionChanged |
( |
| ) |
|
|
slot |
slot is called if the selection of the tableview is changed Within this slot the signal signalSelectionChanged is emitted
void ctkDICOMTableView::onUpdateQuery |
( |
const QStringList & |
uids | ) |
|
|
slot |
Updates the query which is used for displaying the table content.
- Parameters
-
uids | the uids of the table entries which shall be displayed |
void ctkDICOMTableView::queryChanged |
( |
const QStringList & |
uids | ) |
|
|
signal |
Is emitted when the query text has changed.
- Parameters
-
uids | the list of uids of the objects included in the query |
void ctkDICOMTableView::selectAll |
( |
| ) |
|
|
protectedslot |
void ctkDICOMTableView::selectionChanged |
( |
const QStringList & |
uids | ) |
|
|
signal |
Is emitted when the selection in the tableview has changed.
- Parameters
-
uids | the list of uids of the selected objects |
void ctkDICOMTableView::selectionChanged |
( |
const QItemSelection & |
, |
|
|
const QItemSelection & |
|
|
) |
| |
|
signal |
Is emitted when the data selection has changed.
Setting the ctkDICOMDatabase which shall be queried.
- Parameters
-
dicomDataBase | the underlying database |
void ctkDICOMTableView::setQuery |
( |
const QStringList & |
uids = QStringList() | ) |
|
Set the query for the underlying database. If the uid list is not empty just the entries with the according uids are selected
- Parameters
-
uids | a list of uids which should be selected |
void ctkDICOMTableView::setQueryForeignKey |
( |
const QString & |
foreignKey | ) |
|
Setting the foreign key for the database query. This is usefull if e.g. you want to select the studies for a certain patient
- Parameters
-
foreignKey | the foreign key which will be used for the query |
void ctkDICOMTableView::setQueryTableName |
( |
const QString & |
tableName | ) |
|
Setting the table name which shall be used for the database query
- Parameters
-
tableName | the name of the database table |
void ctkDICOMTableView::setTableSectionSize |
( |
int |
| ) |
|
int ctkDICOMTableView::tableSectionSize |
( |
| ) |
|
QStringList ctkDICOMTableView::uidsForAllRows |
( |
| ) |
const |
Getting the UIDs for all rows.
- Returns
- a QStringList with the uids for all rows
QScopedPointer<ctkDICOMTableViewPrivate> ctkDICOMTableView::d_ptr |
|
protected |
bool ctkDICOMTableView::filterActive |
|
read |
The documentation for this class was generated from the following file: