12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /*=========================================================================
- Library: CTK
- Copyright (c) Kitware Inc.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0.txt
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- =========================================================================*/
- #ifndef __ctkDICOMImportWidget_h
- #define __ctkDICOMImportWidget_h
- // Qt includes
- #include <QWidget>
- // CTK includes
- #include "ctkDICOMWidgetsExport.h"
- class ctkDICOMDatabase;
- class ctkDICOMImportWidgetPrivate;
- /// \ingroup DICOM_Widgets
- /// Panel to select a directory containing DICOM files on a local file system.
- /// It contains 3 elements: directory selection, listing of directory files and
- /// options to apply when importing.
- /// \todo the passed DICOM database is not used.
- /// \todo expose topDirectory, copyToLibrary... in public API
- class CTK_DICOM_WIDGETS_EXPORT ctkDICOMImportWidget : public QWidget
- {
- Q_OBJECT
- public:
- typedef QWidget Superclass;
- explicit ctkDICOMImportWidget(QWidget* parent=0);
- virtual ~ctkDICOMImportWidget();
- void setDICOMDatabase(QSharedPointer<ctkDICOMDatabase> database);
- public Q_SLOTS:
- void setTopDirectory(const QString& path);
- protected Q_SLOTS:
- void onTopDirectoryChanged(const QString& path);
- protected:
- QScopedPointer<ctkDICOMImportWidgetPrivate> d_ptr;
- private:
- Q_DECLARE_PRIVATE(ctkDICOMImportWidget);
- Q_DISABLE_COPY(ctkDICOMImportWidget);
- };
- #endif
|