#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 );
}
// -------------------------------------------------------------------------
Widget( )
: Superclass( )
{
- this->m_Parameters.ConfigureAsString( "Text" );
- this->m_Parameters.SetString( "Text", "" );
+ this->m_Parameters.ConfigureAsString( "Text", "" );
}
// -------------------------------------------------------------------------