23 #ifndef __qSlicerTerminologyNavigatorWidget_h 24 #define __qSlicerTerminologyNavigatorWidget_h 30 #include "qSlicerTerminologiesModuleWidgetsExport.h" 36 #include <ctkVTKObject.h> 38 class qSlicerTerminologyNavigatorWidgetPrivate;
41 class QTableWidgetItem;
54 Q_PROPERTY(
bool anatomicRegionSectionVisible READ anatomicRegionSectionVisible WRITE setAnatomicRegionSectionVisible)
57 enum TerminologyItemDataRole
59 CodingSchemeDesignatorRole = Qt::UserRole + 100,
62 CategoryCodingSchemeDesignatorRole,
63 CategoryCodeValueRole,
64 CategoryCodeMeaningRole,
107 bool anatomicRegionSectionVisible()
const;
112 QString nameFromCurrentTerminology();
116 QColor recommendedColorFromCurrentTerminology();
120 void setAnatomicRegionSectionVisible(
bool);
124 void setCurrentTerminology(QString terminologyName);
130 void updateWidgetFromCurrentCategory();
138 void setCurrentAnatomicContext(QString contextName);
148 void populateTerminologyComboBox();
150 void populateCategoryTable();
152 void populateTypeTable();
154 void populateTypeModifierComboBox();
157 void populateAnatomicContextComboBox();
159 void populateRegionTable();
161 void populateRegionModifierComboBox();
164 void copyContextToUserDirectory(QString filePath);
167 void onTerminologySelectionChanged(
int);
168 void onCategorySelectionChanged();
169 void onTypeSelected(QTableWidgetItem*, QTableWidgetItem*);
170 void onTypeModifierSelectionChanged(
int);
171 void onCategorySearchTextChanged(QString);
172 void onTypeSearchTextChanged(QString);
174 void onAnatomicContextSelectionChanged(
int);
175 void onRegionSelected(QTableWidgetItem*,QTableWidgetItem*);
176 void onRegionModifierSelectionChanged(
int);
177 void onRegionSearchTextChanged(QString);
179 void onNameChanged(QString);
180 void onResetNameClicked();
181 void onColorChanged(QColor);
182 void onResetColorClicked();
184 void onLoadTerminologyClicked();
185 void onLoadAnatomicContextClicked();
187 void anatomicalRegionExpandButtonUp();
188 void anatomicalRegionExpandButtonDown();
190 void onLogicModified();
194 void selectionValidityChanged(
bool);
197 QScopedPointer<qSlicerTerminologyNavigatorWidgetPrivate>
d_ptr;
Terminology property type object.
Terminology property category object.