ctkDICOMTableManager.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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(ctkDICOMDatabase* db, QWidget* parent = 0);
  32. virtual ~ctkDICOMTableManager();
  33. void setCTKDICOMDatabase(ctkDICOMDatabase* db);
  34. Q_PROPERTY(Qt::Orientation tableOrientation READ tableOrientation WRITE setTableOrientation)
  35. void setTableOrientation(const Qt::Orientation&);
  36. Qt::Orientation tableOrientation();
  37. Q_SIGNALS:
  38. // Signals for propagating selection changes of the different tables
  39. void patientsSelectionChanged(const QItemSelection&, const QItemSelection&);
  40. void studiesSelectionChanged(const QItemSelection&, const QItemSelection&);
  41. void seriesSelectionChanged(const QItemSelection&, const QItemSelection&);
  42. void patientsSelectionChanged(const QStringList &uids);
  43. void studiesSelectionChanged(const QStringList &uids);
  44. void seriesSelectionChanged(const QStringList &uids);
  45. protected:
  46. QScopedPointer<ctkDICOMTableManagerPrivate> d_ptr;
  47. private:
  48. Q_DECLARE_PRIVATE(ctkDICOMTableManager)
  49. Q_DISABLE_COPY(ctkDICOMTableManager)
  50. };
  51. #endif // CTKDICOMTABLEMANAGER_H