From: nds Date: Wed, 13 Feb 2008 13:47:37 +0000 (+0000) Subject: Create TextZone in the VTK Viewer. X-Git-Tag: TG_Saint_Valentine-Day X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d1f11a7c34eec444bc857353a9820fbba3f9795;p=modules%2Fgui.git Create TextZone in the VTK Viewer. --- 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();