00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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 public:
00033 static vtkKWCheckButtonWithPopupFrame* New();
00034 vtkTypeRevisionMacro(vtkKWCheckButtonWithPopupFrame,vtkKWPopupFrame);
00035 void PrintSelf(ostream& os, vtkIndent indent);
00036
00038 virtual void Create(vtkKWApplication *app);
00039
00041
00043 virtual void SetDisablePopupButtonWhenNotChecked(int);
00044 vtkBooleanMacro(DisablePopupButtonWhenNotChecked, int);
00045 vtkGetMacro(DisablePopupButtonWhenNotChecked, int);
00047
00049 virtual void CheckButtonCallback();
00050
00052
00053 vtkGetObjectMacro(CheckButton, vtkKWCheckButton);
00055
00057 virtual void Update();
00058
00065 virtual void UpdateEnableState();
00066
00067 protected:
00068 vtkKWCheckButtonWithPopupFrame();
00069 ~vtkKWCheckButtonWithPopupFrame();
00070
00071
00072
00073 int DisablePopupButtonWhenNotChecked;
00074
00075 vtkKWCheckButton *CheckButton;
00076
00077
00078
00079
00080
00081 virtual int GetCheckButtonState() { return 0; };
00082
00083 private:
00084 vtkKWCheckButtonWithPopupFrame(const vtkKWCheckButtonWithPopupFrame&);
00085 void operator=(const vtkKWCheckButtonWithPopupFrame&);
00086 };
00087
00088 #endif