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 )
84 void setQueryTableName(const QString &tableName);
91 void setQueryForeignKey(const QString &foreignKey);
98 void setQuery (const QStringList &uids = QStringList());
104 void addSqlWhereCondition(const std::pair<QString, QStringList>& condition);
110 QStringList currentSelection() const;
116 QStringList uidsForAllRows() const;
120 void setTableSectionSize(
int);
121 int tableSectionSize();
127 QTableView* tableView();
135 void onSelectionChanged();
141 void onUpdateQuery(const QStringList &uids);
148 void onCustomContextMenuRequested(const QPoint &point);
154 void onDatabaseChanged();
159 void onFilterChanged();
164 void onInstanceAdded();
169 virtual
bool eventFilter(QObject *obj, QEvent *event);
176 void selectionChanged(const QStringList &uids);
181 void selectionChanged(const QItemSelection&,const QItemSelection&);
187 void queryChanged(const QStringList &uids);
189 void doubleClicked(const QModelIndex&);
192 QScopedPointer<ctkDICOMTableViewPrivate> d_ptr;
198 #endif // __ctkDICOMTableView_h The ctkDICOMTableView displays the content of a specific table of the ctkDICOMDatabase.