00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00020 #ifndef __vtkKWCheckButtonWithChangeColorButton_h
00021 #define __vtkKWCheckButtonWithChangeColorButton_h
00022
00023 #include "vtkKWCompositeWidget.h"
00024
00025 class vtkKWChangeColorButton;
00026 class vtkKWCheckButton;
00027
00028 class KWWIDGETS_EXPORT vtkKWCheckButtonWithChangeColorButton : public vtkKWCompositeWidget
00029 {
00030 public:
00031 static vtkKWCheckButtonWithChangeColorButton* New();
00032 vtkTypeRevisionMacro(vtkKWCheckButtonWithChangeColorButton, vtkKWCompositeWidget);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036 virtual void Create(vtkKWApplication *app);
00037
00039
00040 vtkGetObjectMacro(CheckButton, vtkKWCheckButton);
00041 vtkGetObjectMacro(ChangeColorButton, vtkKWChangeColorButton);
00043
00046 virtual void Update();
00047
00049
00052 virtual void SetDisableChangeColorButtonWhenNotChecked(int);
00053 vtkBooleanMacro(DisableChangeColorButtonWhenNotChecked, int);
00054 vtkGetMacro(DisableChangeColorButtonWhenNotChecked, int);
00056
00063 virtual void UpdateEnableState();
00064
00066 virtual void UpdateVariableCallback(const char*, const char*, const char*);
00067
00068 protected:
00069 vtkKWCheckButtonWithChangeColorButton();
00070 ~vtkKWCheckButtonWithChangeColorButton();
00071
00072 vtkKWCheckButton *CheckButton;
00073 vtkKWChangeColorButton *ChangeColorButton;
00074
00075 int DisableChangeColorButtonWhenNotChecked;
00076
00077
00078
00079 virtual void Pack();
00080
00081 virtual void UpdateVariableBindings();
00082
00083 private:
00084 vtkKWCheckButtonWithChangeColorButton(const vtkKWCheckButtonWithChangeColorButton&);
00085 void operator=(const vtkKWCheckButtonWithChangeColorButton&);
00086 };
00087
00088 #endif
00089