]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/BaseObjects/Widget.h
17132cc4479572b2fb3708c78f1d4702a02dbb72
[cpPlugins.git] / lib / cpPlugins / BaseObjects / Widget.h
1 #ifndef __cpPlugins__BaseObjects__Widget__h__
2 #define __cpPlugins__BaseObjects__Widget__h__
3
4 #include <cpPlugins/BaseObjects/ProcessObject.h>
5
6 // -------------------------------------------------------------------------
7 namespace cpPlugins
8 {
9   namespace BaseObjects
10   {
11     /**
12      */
13     class cpPlugins_EXPORT Widget
14       : public ProcessObject
15     {
16     public:
17       typedef Widget                          Self;
18       typedef ProcessObject                   Superclass;
19       typedef itk::SmartPointer< Self >       Pointer;
20       typedef itk::SmartPointer< const Self > ConstPointer;
21
22     public:
23       itkTypeMacro( Widget, ProcessObject );
24       cpPlugins_Id_Macro( Widget, Object );
25
26     public:
27       virtual bool IsInteractive( ) cpPlugins_OVERRIDE;
28
29       virtual void EnabledOn( );
30       virtual void EnabledOff( );
31       virtual void Clear( ) = 0;
32       virtual void SetEnabled( bool v ) = 0;
33       virtual bool GetEnabled( ) const = 0;
34
35     protected:
36       Widget( );
37       virtual ~Widget( );
38
39     private:
40       // Purposely not implemented
41       Widget( const Self& );
42       Self& operator=( const Self& );
43     };
44
45   } // ecapseman
46
47 } // ecapseman
48
49 #endif // __cpPlugins__BaseObjects__Widget__h__
50
51 // eof - $RCSfile$