00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWCheckButtonWithPopupFrame.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 =========================================================================*/ 00023 #ifndef __vtkKWCheckButtonWithPopupFrame_h 00024 #define __vtkKWCheckButtonWithPopupFrame_h 00025 00026 #include "vtkKWPopupFrame.h" 00027 00028 class vtkKWCheckButton; 00029 00030 class KWWidgets_EXPORT vtkKWCheckButtonWithPopupFrame : public vtkKWPopupFrame 00031 { 00032 // @cond section_public 00033 public: 00034 static vtkKWCheckButtonWithPopupFrame* New(); 00035 vtkTypeRevisionMacro(vtkKWCheckButtonWithPopupFrame,vtkKWPopupFrame); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00041 virtual void SetDisablePopupButtonWhenNotChecked(int); 00042 vtkBooleanMacro(DisablePopupButtonWhenNotChecked, int); 00043 vtkGetMacro(DisablePopupButtonWhenNotChecked, int); 00045 00047 00048 vtkGetObjectMacro(CheckButton, vtkKWCheckButton); 00050 00052 virtual void Update(); 00053 00060 virtual void UpdateEnableState(); 00061 00063 virtual void CheckButtonCallback(int state); 00064 00065 // @endcond 00066 // @cond section_protected 00067 protected: 00068 vtkKWCheckButtonWithPopupFrame(); 00069 ~vtkKWCheckButtonWithPopupFrame(); 00070 00072 virtual void CreateWidget(); 00073 00074 // GUI 00075 00076 int DisablePopupButtonWhenNotChecked; 00077 00078 vtkKWCheckButton *CheckButton; 00079 00080 // Get the value that should be used to set the checkbutton state 00081 // (i.e. depending on the value this checkbutton is supposed to reflect, 00082 // for example, an annotation visibility). 00083 // This does *not* return the state of the widget. 00084 virtual int GetCheckButtonState() { return 0; }; 00085 00086 // @endcond 00087 // @cond section_private 00088 private: 00089 vtkKWCheckButtonWithPopupFrame(const vtkKWCheckButtonWithPopupFrame&); // Not implemented 00090 void operator=(const vtkKWCheckButtonWithPopupFrame&); // Not Implemented 00091 }; 00092 00093 #endif 00094 // @endcond
1.6.1