]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/Widget.cxx
...
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Widget.cxx
index 35bf57aaaab421b76b89f6a7619408f844abe812..4d574904be2a9f5891015ffd3e8b3db3e365a761 100644 (file)
@@ -1,19 +1,24 @@
 #include <cpPlugins/BaseObjects/Widget.h>
 
 // -------------------------------------------------------------------------
-itk::ModifiedTimeType cpPlugins::BaseObjects::Widget::
-GetMTime( ) const
+bool cpPlugins::BaseObjects::Widget::
+IsInteractive( )
 {
-  // Let time only be managed by itk -> synch issues when data is
-  // represented by vtk
-  return( this->itk::Object::GetMTime( ) );
+  return( true );
 }
 
 // -------------------------------------------------------------------------
-bool cpPlugins::BaseObjects::Widget::
-IsInteractive( )
+void cpPlugins::BaseObjects::Widget::
+EnabledOn( )
 {
-  return( true );
+  this->SetEnabled( true );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::BaseObjects::Widget::
+EnabledOff( )
+{
+  this->SetEnabled( false );
 }
 
 // -------------------------------------------------------------------------
@@ -21,8 +26,7 @@ cpPlugins::BaseObjects::Widget::
 Widget( )
   : Superclass( )
 {
-  this->m_Parameters.ConfigureAsString( "Text" );
-  this->m_Parameters.SetString( "Text", "" );
+  this->m_Parameters.ConfigureAsString( "Text", "" );
 }
 
 // -------------------------------------------------------------------------