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

GUI/Widgets/vtkKWPushButtonWithMenu.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWPushButtonWithMenu.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 =========================================================================*/
00021 #ifndef __vtkKWPushButtonWithMenu_h
00022 #define __vtkKWPushButtonWithMenu_h
00023 
00024 #include "vtkKWPushButton.h"
00025 
00026 class vtkKWMenu;
00027 
00028 class KWWIDGETS_EXPORT vtkKWPushButtonWithMenu : public vtkKWPushButton
00029 {
00030 public:
00031   static vtkKWPushButtonWithMenu* New();
00032   vtkTypeRevisionMacro(vtkKWPushButtonWithMenu, vtkKWPushButton);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034 
00036   virtual void Create(vtkKWApplication *app);
00037     
00039 
00040   void AddCheckButton(const char* label, const char* varName, 
00041                       int defaultState, const char* help);
00042   int GetCheckButtonState(const char* varName);
00043   void SetCheckButtonState(const char* varName, int state);
00045   
00047   vtkKWMenu* GetMenu();
00048   
00050   void PopupCallback(int x, int y);
00051 
00058   virtual void UpdateEnableState();
00059 
00060 protected:
00061   vtkKWPushButtonWithMenu();
00062   ~vtkKWPushButtonWithMenu();
00063   
00064   vtkKWMenu *Menu;
00065 
00066 private:
00067   vtkKWPushButtonWithMenu(const vtkKWPushButtonWithMenu&); // Not implemented
00068   void operator=(const vtkKWPushButtonWithMenu&); // Not implemented
00069 };
00070 
00071 #endif
00072 

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