00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWCheckButtonWithChangeColorButton.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 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 // @cond section_public 00031 public: 00032 static vtkKWCheckButtonWithChangeColorButton* New(); 00033 vtkTypeRevisionMacro(vtkKWCheckButtonWithChangeColorButton, vtkKWCompositeWidget); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00037 00038 vtkGetObjectMacro(CheckButton, vtkKWCheckButton); 00039 vtkGetObjectMacro(ChangeColorButton, vtkKWChangeColorButton); 00041 00044 virtual void Update(); 00045 00047 00050 virtual void SetDisableChangeColorButtonWhenNotChecked(int); 00051 vtkBooleanMacro(DisableChangeColorButtonWhenNotChecked, int); 00052 vtkGetMacro(DisableChangeColorButtonWhenNotChecked, int); 00054 00061 virtual void UpdateEnableState(); 00062 00064 virtual void UpdateVariableCallback(const char*, const char*, const char*); 00065 00066 // @endcond 00067 // @cond section_protected 00068 protected: 00069 vtkKWCheckButtonWithChangeColorButton(); 00070 ~vtkKWCheckButtonWithChangeColorButton(); 00071 00073 virtual void CreateWidget(); 00074 00075 vtkKWCheckButton *CheckButton; 00076 vtkKWChangeColorButton *ChangeColorButton; 00077 00078 int DisableChangeColorButtonWhenNotChecked; 00079 00080 // Pack or repack the widget 00081 00082 virtual void Pack(); 00083 00084 virtual void UpdateVariableBindings(); 00085 00086 // @endcond 00087 // @cond section_private 00088 private: 00089 vtkKWCheckButtonWithChangeColorButton(const vtkKWCheckButtonWithChangeColorButton&); // Not implemented 00090 void operator=(const vtkKWCheckButtonWithChangeColorButton&); // Not implemented 00091 }; 00092 00093 #endif 00094 00095 // @endcond
1.6.1