ctkDICOMTableManager.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 CTKDICOMTABLEMANAGER_H
  15. #define CTKDICOMTABLEMANAGER_H
  16. #include "ctkDICOMWidgetsExport.h"
  17. #include "ctkDICOMDatabase.h"
  18. // Qt includes
  19. #include <QWidget>
  20. #include <QSharedPointer>
  21. class ctkDICOMTableManagerPrivate;
  22. class ctkDICOMDatabase;
  23. class QItemSelection;
  24. /// \ingroup DICOM_Widgets
  25. class ctkDICOMTableManager : public QWidget
  26. {
  27. Q_OBJECT
  28. public:
  29. typedef QWidget Superclass;
  30. explicit ctkDICOMTableManager(QWidget* parent = 0);
  31. ctkDICOMTableManager(QSharedPointer<ctkDICOMDatabase> db, QWidget* parent = 0);
  32. virtual ~ctkDICOMTableManager();
  33. void setCTKDICOMDatabase(QSharedPointer<ctkDICOMDatabase> db);
  34. void setOrientation(const Qt::Orientation &o);
  35. Q_SIGNALS:
  36. // Signals for propagating selection changes of the different tables
  37. void signalPatientsSelectionChanged(const QItemSelection&, const QItemSelection&);
  38. void signalStudiesSelectionChanged(const QItemSelection&, const QItemSelection&);
  39. void signalSeriesSelectionChanged(const QItemSelection&, const QItemSelection&);
  40. void signalPatientsSelectionChanged(const QStringList &uids);
  41. void signalStudiesSelectionChanged(const QStringList &uids);
  42. void signalSeriesSelectionChanged(const QStringList &uids);
  43. protected:
  44. QScopedPointer<ctkDICOMTableManagerPrivate> d_ptr;
  45. private:
  46. Q_DECLARE_PRIVATE(ctkDICOMTableManager)
  47. Q_DISABLE_COPY(ctkDICOMTableManager)
  48. };
  49. #endif // CTKDICOMTABLEMANAGER_H