 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkDICOMTableView_h
22 #define __ctkDICOMTableView_h
25 #include <QItemSelection>
30 #include "ctkDICOMWidgetsExport.h"
32 class ctkDICOMTableViewPrivate;
46 Q_PROPERTY(
bool filterActive READ filterActive)
47 Q_PROPERTY( QTableView* tblDicomDatabaseView READ tableView )
98 void setQuery (
const QStringList &uids = QStringList());
192 QScopedPointer<ctkDICOMTableViewPrivate>
d_ptr;
198 #endif // __ctkDICOMTableView_h
ctkDICOMTableView(ctkDICOMDatabase *dicomDataBase, QString queryTableName, QWidget *parent=0)
void selectionChanged(const QItemSelection &, const QItemSelection &)
Is emitted when the data selection has changed.
void onDatabaseChanged()
Called when the underlying database changes.
ctkDICOMTableView(QString queryTableName, QWidget *parent=0)
The ctkDICOMTableView displays the content of a specific table of the ctkDICOMDatabase.
void doubleClicked(const QModelIndex &)
void onCustomContextMenuRequested(const QPoint &point)
Translates the local point to a global one.
void selectionChanged(const QStringList &uids)
Is emitted when the selection in the tableview has changed.
void onFilterChanged()
Called when the text of the ctkSearchBox has changed.
QStringList uidsForAllRows() const
Getting the UIDs for all rows.
QStringList currentSelection() const
Returns the uids of the current selected rows.
QScopedPointer< ctkDICOMTableViewPrivate > d_ptr
void onSelectionChanged()
slot is called if the selection of the tableview is changed Within this slot the signal signalSelecti...
void setQueryForeignKey(const QString &foreignKey)
void onUpdateQuery(const QStringList &uids)
Updates the query which is used for displaying the table content.
virtual ~ctkDICOMTableView()
void addSqlWhereCondition(const std::pair< QString, QStringList > &condition)
Add a where condition to the usual select statement.
void setDicomDataBase(ctkDICOMDatabase *dicomDatabase)
Setting the ctkDICOMDatabase which shall be queried.
void setQueryTableName(const QString &tableName)
ctkDICOMTableView(QWidget *parent=0)
void setQuery(const QStringList &uids=QStringList())
void setTableSectionSize(int)
void queryChanged(const QStringList &uids)
Is emitted when the query text has changed.
QTableView * tableView()
Get the actual QTableView, for specific view settings.
virtual bool eventFilter(QObject *obj, QEvent *event)
void onInstanceAdded()
Called if a new instance was added to the database.