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 "vtkKWCompositeWidget.h" 00025 00026 class vtkKWMenu; 00027 class vtkKWPushButton; 00028 class vtkKWMenuButton; 00029 00030 class KWWidgets_EXPORT vtkKWPushButtonWithMenu : public vtkKWCompositeWidget 00031 { 00032 // @cond section_public 00033 public: 00034 static vtkKWPushButtonWithMenu* New(); 00035 vtkTypeRevisionMacro(vtkKWPushButtonWithMenu, vtkKWCompositeWidget); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00040 virtual vtkKWMenu* GetMenu(); 00041 vtkGetObjectMacro(MenuButton, vtkKWMenuButton); 00042 vtkGetObjectMacro(PushButton, vtkKWPushButton); 00044 00051 virtual void UpdateEnableState(); 00052 00053 // @endcond 00054 // @cond section_protected 00055 protected: 00056 vtkKWPushButtonWithMenu(); 00057 ~vtkKWPushButtonWithMenu(); 00058 00060 virtual void CreateWidget(); 00061 00062 vtkKWMenuButton *MenuButton; 00063 vtkKWPushButton *PushButton; 00064 00065 // @endcond 00066 // @cond section_private 00067 private: 00068 vtkKWPushButtonWithMenu(const vtkKWPushButtonWithMenu&); // Not implemented 00069 void operator=(const vtkKWPushButtonWithMenu&); // Not implemented 00070 }; 00071 00072 #endif 00073 00074 // @endcond
1.6.1