21 #ifndef __ctkDICOMTableView_h 22 #define __ctkDICOMTableView_h 25 #include <QItemSelection> 30 #include "ctkDICOMWidgetsExport.h" 32 class ctkDICOMTableViewPrivate;
45 Q_PROPERTY(
bool filterActive READ filterActive)
82 void setQueryTableName(
const QString &tableName);
89 void setQueryForeignKey(
const QString &foreignKey);
96 void setQuery (
const QStringList &uids = QStringList());
102 void addSqlWhereCondition(
const std::pair<QString, QStringList>& condition);
108 QStringList currentSelection()
const;
114 QStringList uidsForAllRows()
const;
118 void setTableSectionSize(
int);
119 int tableSectionSize();
127 void onSelectionChanged();
133 void onUpdateQuery(
const QStringList &uids);
140 void onCustomContextMenuRequested(
const QPoint &point);
146 void onDatabaseChanged();
151 void onFilterChanged();
156 void onInstanceAdded();
161 virtual bool eventFilter(QObject *obj, QEvent *event);
168 void selectionChanged(
const QStringList &uids);
173 void selectionChanged(
const QItemSelection&,
const QItemSelection&);
179 void queryChanged(
const QStringList &uids);
181 void doubleClicked(
const QModelIndex&);
184 QScopedPointer<ctkDICOMTableViewPrivate>
d_ptr;
190 #endif // __ctkDICOMTableView_h The ctkDICOMTableView displays the content of a specific table of the ctkDICOMDatabase.
QScopedPointer< ctkDICOMTableViewPrivate > d_ptr