21 #ifndef __qMRMLLabelComboBox_h 22 #define __qMRMLLabelComboBox_h 26 #include <ctkVTKObject.h> 29 #include "qMRMLWidgetsExport.h" 34 class qMRMLLabelComboBoxPrivate;
40 Q_PROPERTY(
bool noneEnabled READ noneEnabled WRITE setNoneEnabled)
41 Q_PROPERTY(
int currentColor READ currentColor WRITE setCurrentColor NOTIFY currentColorChanged USER true)
42 Q_PROPERTY(QString currentColorName READ currentColorName WRITE setCurrentColor NOTIFY currentColorChanged STORED false)
43 Q_PROPERTY(
int maximumColorCount READ maximumColorCount WRITE setMaximumColorCount)
44 Q_PROPERTY(
bool colorNameVisible READ colorNameVisible WRITE setColorNameVisible)
45 Q_PROPERTY(
bool labelValueVisible READ labelValueVisible WRITE setLabelValueVisible)
58 bool noneEnabled()const;
59 void setNoneEnabled(
bool enable);
62 bool colorNameVisible() const;
63 void setColorNameVisible(
bool visible);
66 bool labelValueVisible() const;
67 void setLabelValueVisible(
bool visible);
69 virtual
void printAdditionalInfo();
73 int currentColor()const;
74 QString currentColorName()const;
76 int maximumColorCount()const;
77 void setMaximumColorCount(
int maximum);
81 void setMRMLColorNode(
vtkMRMLNode * newMRMLColorNode);
83 void setCurrentColor(
int index);
84 void setCurrentColor(const QString& colorName);
86 void updateWidgetFromMRML();
90 void currentColorChanged(const QColor& color);
91 void currentColorChanged(const QString& name);
92 void currentColorChanged(
int index);
96 void onCurrentIndexChanged(
int index);
99 QScopedPointer<qMRMLLabelComboBoxPrivate> d_ptr;
Abstract MRML node to represent color information.
Abstract Superclass for all specific types of MRML nodes.