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 43 of file ctkDICOMTableView.h.
◆ Superclass
◆ ctkDICOMTableView() [1/3]
ctkDICOMTableView::ctkDICOMTableView |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ctkDICOMTableView() [2/3]
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() [3/3]
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 |
◆ ~ctkDICOMTableView()
virtual ctkDICOMTableView::~ctkDICOMTableView |
( |
| ) |
|
|
virtual |
◆ addSqlWhereCondition()
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 |
◆ currentSelection()
QStringList ctkDICOMTableView::currentSelection |
( |
| ) |
const |
Returns the uids of the current selected rows.
- Returns
- a list containing all the uids of the selected rows
◆ doubleClicked
void ctkDICOMTableView::doubleClicked |
( |
const QModelIndex & |
| ) |
|
|
signal |
◆ eventFilter()
virtual bool ctkDICOMTableView::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
◆ filterActive()
bool ctkDICOMTableView::filterActive |
( |
| ) |
|
◆ onCustomContextMenuRequested
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 |
◆ onDatabaseChanged
void ctkDICOMTableView::onDatabaseChanged |
( |
| ) |
|
|
protectedslot |
Called when the underlying database changes.
◆ onFilterChanged
void ctkDICOMTableView::onFilterChanged |
( |
| ) |
|
|
protectedslot |
◆ onInstanceAdded
void ctkDICOMTableView::onInstanceAdded |
( |
| ) |
|
|
protectedslot |
Called if a new instance was added to the database.
◆ onSelectionChanged
void ctkDICOMTableView::onSelectionChanged |
( |
| ) |
|
|
slot |
slot is called if the selection of the tableview is changed Within this slot the signal signalSelectionChanged is emitted
◆ onUpdateQuery
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 |
◆ queryChanged
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 |
◆ selectAll
void ctkDICOMTableView::selectAll |
( |
| ) |
|
|
protectedslot |
◆ selectionChanged [1/2]
void ctkDICOMTableView::selectionChanged |
( |
const QItemSelection & |
, |
|
|
const QItemSelection & |
|
|
) |
| |
|
signal |
Is emitted when the data selection has changed.
◆ selectionChanged [2/2]
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 |
◆ setDicomDataBase()
Setting the ctkDICOMDatabase which shall be queried.
- Parameters
-
dicomDataBase | the underlying database |
◆ setQuery()
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 |
◆ setQueryForeignKey()
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 |
◆ setQueryTableName()
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 |
◆ setTableSectionSize()
void ctkDICOMTableView::setTableSectionSize |
( |
int |
| ) |
|
◆ tableSectionSize()
int ctkDICOMTableView::tableSectionSize |
( |
| ) |
|
◆ tableView()
QTableView* ctkDICOMTableView::tableView |
( |
| ) |
|
Get the actual QTableView, for specific view settings.
- Returns
- a pointer to QTableView* tblDicomDatabaseView
◆ uidsForAllRows()
QStringList ctkDICOMTableView::uidsForAllRows |
( |
| ) |
const |
Getting the UIDs for all rows.
- Returns
- a QStringList with the uids for all rows
◆ d_ptr
QScopedPointer<ctkDICOMTableViewPrivate> ctkDICOMTableView::d_ptr |
|
protected |
◆ filterActive
bool ctkDICOMTableView::filterActive |
|
read |
◆ tblDicomDatabaseView
QTableView* ctkDICOMTableView::tblDicomDatabaseView |
|
read |
The documentation for this class was generated from the following file: