From 2d1f11a7c34eec444bc857353a9820fbba3f9795 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 13 Feb 2008 13:47:37 +0000 Subject: [PATCH] Create TextZone in the VTK Viewer. --- src/SVTK/SVTK_FontWidget.cxx | 8 +++++++- src/SVTK/SVTK_FontWidget.h | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_FontWidget.cxx b/src/SVTK/SVTK_FontWidget.cxx index b32f7ab0c..4c0efb387 100644 --- a/src/SVTK/SVTK_FontWidget.cxx +++ b/src/SVTK/SVTK_FontWidget.cxx @@ -68,6 +68,10 @@ SVTK_FontWidget::SVTK_FontWidget( QWidget* theParent ) this->setLayout(aHBLayout); connect( myColorBtn, SIGNAL( clicked() ), SLOT( onColor() ) ); + connect( myFamily, SIGNAL( activated(int) ), SIGNAL( Modified() ) ); + connect( myBold, SIGNAL( toggled(bool) ), SIGNAL( Modified() ) ); + connect( myItalic, SIGNAL( toggled(bool) ), SIGNAL( Modified() ) ); + connect( myShadow, SIGNAL( toggled(bool) ), SIGNAL( Modified() ) ); } /*! @@ -92,8 +96,10 @@ QColor SVTK_FontWidget::GetColor() const void SVTK_FontWidget::onColor() { QColor aColor = QColorDialog::getColor( GetColor(), this ); - if ( aColor.isValid() ) + if ( aColor.isValid() ) { SetColor( aColor ); + emit Modified(); + } } void SVTK_FontWidget::SetData( const QColor& theColor, diff --git a/src/SVTK/SVTK_FontWidget.h b/src/SVTK/SVTK_FontWidget.h index 3c10e1a2c..87d1eff82 100644 --- a/src/SVTK/SVTK_FontWidget.h +++ b/src/SVTK/SVTK_FontWidget.h @@ -56,6 +56,9 @@ public: void GetData( QColor&, int&, bool&, bool&, bool& ) const; +signals: + void Modified(); + private slots: void onColor(); -- 2.39.2