CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Loading...
Searching...
No Matches
ctkDICOMObjectListWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Library: CTK
4
5 Copyright (c) Brigham and Women's Hospital (BWH).
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0.txt
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19=========================================================================*/
20
21#ifndef __ctkDICOMObjectListWidget_h
22#define __ctkDICOMObjectListWidget_h
23
24// Qt includes
25#include <QItemSelection>
26#include <QWidget>
27
28#include "ctkDICOMWidgetsExport.h"
29
30class ctkDICOMObjectListWidgetPrivate;
31
33class CTK_DICOM_WIDGETS_EXPORT ctkDICOMObjectListWidget : public QWidget
34{
35 Q_OBJECT
36 Q_PROPERTY(QString currentFile READ currentFile WRITE setCurrentFile)
37 Q_PROPERTY(QStringList fileList READ fileList WRITE setFileList)
38 Q_PROPERTY(QString filterExpression READ filterExpression WRITE setFilterExpression)
39
40public:
41 typedef QWidget Superclass;
42 explicit ctkDICOMObjectListWidget(QWidget* parent=0);
44
45 QString currentFile();
46 QStringList fileList();
47
54
56 QString metadataAsText(bool allFiles = false);
57
59 void openLookupUrl(QString tag);
60
61protected:
62 QScopedPointer<ctkDICOMObjectListWidgetPrivate> d_ptr;
63
64private:
65 Q_DECLARE_PRIVATE(ctkDICOMObjectListWidget);
66 Q_DISABLE_COPY(ctkDICOMObjectListWidget);
67
68Q_SIGNALS:
69 void doubleClicked(const QModelIndex&);
70
71public Q_SLOTS:
72 void setCurrentFile(const QString& newFileName);
73 void setFileList(const QStringList& fileList);
74 void setFilterExpression(const QString& expr);
75
76protected Q_SLOTS:
77 void itemDoubleClicked(const QModelIndex&);
80 void copyPath();
83};
84
85#endif
QString metadataAsText(bool allFiles=false)
Get metadata tree as plain text.
void itemDoubleClicked(const QModelIndex &)
QScopedPointer< ctkDICOMObjectListWidgetPrivate > d_ptr
virtual ~ctkDICOMObjectListWidget()
void setFileList(const QStringList &fileList)
void setFilterExpression(const QString &expr)
void setCurrentFile(const QString &newFileName)
ctkDICOMObjectListWidget(QWidget *parent=0)
void openLookupUrl(QString tag)
Open DICOM tag definition in a web browser.
void doubleClicked(const QModelIndex &)