Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Widgets/vtkKWCheckButtonWithChangeColorButton.h

Go to the documentation of this file.
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 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   // Pack or repack the widget
00078 
00079   virtual void Pack();
00080 
00081   virtual void UpdateVariableBindings();
00082 
00083 private:
00084   vtkKWCheckButtonWithChangeColorButton(const vtkKWCheckButtonWithChangeColorButton&); // Not implemented
00085   void operator=(const vtkKWCheckButtonWithChangeColorButton&); // Not implemented
00086 };
00087 
00088 #endif
00089 

Generated on Tue May 30 12:31:42 2006 for ParaView by doxygen 1.3.5