00001 #ifndef ANNOTATIONEDITOR_QO_H 00002 #define ANNOTATIONEDITOR_QO_H 00003 00004 #include <QtGui/QDialog> 00005 #include <display/QtPlotter/annotations/AnnotationEditor.ui.h> 00006 00007 namespace casa { 00008 00009 class PropertyListener; 00010 00011 class AnnotationEditor : public QDialog { 00012 Q_OBJECT 00013 00014 public: 00015 AnnotationEditor(PropertyListener* annotation, QWidget *parent = 0); 00016 ~AnnotationEditor(); 00017 void addSpecializedWidget( QWidget* widget ); 00018 void setSpecializedTitle( const QString& title ); 00019 QColor getForegroundColor() const; 00020 private slots: 00021 void addColor( ); 00022 void editingDone(); 00023 private: 00024 void setLabelColor( const QString& colorName ); 00025 PropertyListener* propertyListener; 00026 const QColor DEFAULT_COLOR; 00027 Ui::AnnotationEditorClass ui; 00028 }; 00029 } 00030 #endif // ANNOTATIONEDITOR_H