]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/Widget.cxx
...
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Widget.cxx
index 35bf57aaaab421b76b89f6a7619408f844abe812..fe842aa14ce26608b33960a3d955679cd4fa88ef 100644 (file)
@@ -16,13 +16,26 @@ IsInteractive( )
   return( true );
 }
 
+// -------------------------------------------------------------------------
+void cpPlugins::BaseObjects::Widget::
+EnabledOn( )
+{
+  this->SetEnabled( true );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::BaseObjects::Widget::
+EnabledOff( )
+{
+  this->SetEnabled( false );
+}
+
 // -------------------------------------------------------------------------
 cpPlugins::BaseObjects::Widget::
 Widget( )
   : Superclass( )
 {
-  this->m_Parameters.ConfigureAsString( "Text" );
-  this->m_Parameters.SetString( "Text", "" );
+  this->m_Parameters.ConfigureAsString( "Text", "" );
 }
 
 // -------------------------------------------------------------------------