ctkDICOMImportWidget.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0.txt
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. #ifndef __ctkDICOMImportWidget_h
  15. #define __ctkDICOMImportWidget_h
  16. // Qt includes
  17. #include <QWidget>
  18. // CTK includes
  19. #include "ctkDICOMWidgetsExport.h"
  20. class ctkDICOMDatabase;
  21. class ctkDICOMImportWidgetPrivate;
  22. /// \ingroup DICOM_Widgets
  23. /// Panel to select a directory containing DICOM files on a local file system.
  24. /// It contains 3 elements: directory selection, listing of directory files and
  25. /// options to apply when importing.
  26. /// \todo the passed DICOM database is not used.
  27. /// \todo expose topDirectory, copyToLibrary... in public API
  28. class CTK_DICOM_WIDGETS_EXPORT ctkDICOMImportWidget : public QWidget
  29. {
  30. Q_OBJECT
  31. public:
  32. typedef QWidget Superclass;
  33. explicit ctkDICOMImportWidget(QWidget* parent=0);
  34. virtual ~ctkDICOMImportWidget();
  35. void setDICOMDatabase(QSharedPointer<ctkDICOMDatabase> database);
  36. public Q_SLOTS:
  37. void setTopDirectory(const QString& path);
  38. protected Q_SLOTS:
  39. void onTopDirectoryChanged(const QString& path);
  40. protected:
  41. QScopedPointer<ctkDICOMImportWidgetPrivate> d_ptr;
  42. private:
  43. Q_DECLARE_PRIVATE(ctkDICOMImportWidget);
  44. Q_DISABLE_COPY(ctkDICOMImportWidget);
  45. };
  46. #endif