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

GUI/Widgets/vtkKWCheckButtonWithPopupFrame.h

Go to the documentation of this file.
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 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   // GUI
00072 
00073   int                     DisablePopupButtonWhenNotChecked;
00074 
00075   vtkKWCheckButton        *CheckButton;
00076 
00077   // Get the value that should be used to set the checkbutton state
00078   // (i.e. depending on the value this checkbutton is supposed to reflect,
00079   // for example, an annotation visibility).
00080   // This does *not* return the state of the widget.
00081   virtual int GetCheckButtonState() { return 0; };
00082 
00083 private:
00084   vtkKWCheckButtonWithPopupFrame(const vtkKWCheckButtonWithPopupFrame&); // Not implemented
00085   void operator=(const vtkKWCheckButtonWithPopupFrame&); // Not Implemented
00086 };
00087 
00088 #endif

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