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;
The ctkDICOMTableView displays the content of a specific table of the ctkDICOMDatabase.
void onDatabaseChanged()
Called when the underlying database changes.
void addSqlWhereCondition(const std::pair< QString, QStringList > &condition)
Add a where condition to the usual select statement.
ctkDICOMTableView(QString queryTableName, QWidget *parent=0)
void doubleClicked(const QModelIndex &)
void selectionChanged(const QStringList &uids)
Is emitted when the selection in the tableview has changed.
void setTableSectionSize(int)
QScopedPointer< ctkDICOMTableViewPrivate > d_ptr
QStringList currentSelection() const
Returns the uids of the current selected rows.
virtual bool eventFilter(QObject *obj, QEvent *event)
void setQueryTableName(const QString &tableName)
void onCustomContextMenuRequested(const QPoint &point)
Translates the local point to a global one.
virtual ~ctkDICOMTableView()
QTableView * tableView()
Get the actual QTableView, for specific view settings.
void selectionChanged(const QItemSelection &, const QItemSelection &)
Is emitted when the data selection has changed.
void setDicomDataBase(ctkDICOMDatabase *dicomDatabase)
Setting the ctkDICOMDatabase which shall be queried.
void onInstanceAdded()
Called if a new instance was added to the database.
void onFilterChanged()
Called when the text of the ctkSearchBox has changed.
void setQuery(const QStringList &uids=QStringList())
void queryChanged(const QStringList &uids)
Is emitted when the query text has changed.
ctkDICOMTableView(ctkDICOMDatabase *dicomDataBase, QString queryTableName, QWidget *parent=0)
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.
ctkDICOMTableView(QWidget *parent=0)
QStringList uidsForAllRows() const
Getting the UIDs for all rows.