00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWPopupButton.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 =========================================================================*/ 00022 #ifndef __vtkKWPopupButton_h 00023 #define __vtkKWPopupButton_h 00024 00025 #include "vtkKWPushButton.h" 00026 00027 class vtkKWFrame; 00028 class vtkKWTopLevel; 00029 00030 class KWWidgets_EXPORT vtkKWPopupButton : public vtkKWPushButton 00031 { 00032 // @cond section_public 00033 public: 00034 static vtkKWPopupButton* New(); 00035 vtkTypeRevisionMacro(vtkKWPopupButton, vtkKWPushButton); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00041 vtkGetObjectMacro(PopupTopLevel, vtkKWTopLevel); 00042 vtkGetObjectMacro(PopupFrame, vtkKWFrame); 00043 vtkGetObjectMacro(PopupCloseButton, vtkKWPushButton); 00045 00047 virtual void SetPopupTitle(const char* title); 00048 00055 virtual void UpdateEnableState(); 00056 00063 virtual void SetWithdrawCommand(vtkObject *object, const char* command); 00064 00066 00067 virtual void DisplayPopupCallback(); 00068 virtual void WithdrawPopupCallback(); 00070 00071 // @endcond 00072 // @cond section_protected 00073 protected: 00074 vtkKWPopupButton(); 00075 ~vtkKWPopupButton(); 00076 00078 virtual void CreateWidget(); 00079 00080 vtkKWTopLevel *PopupTopLevel; 00081 vtkKWFrame *PopupFrame; 00082 vtkKWPushButton *PopupCloseButton; 00083 00084 char* WithdrawCommand; 00085 virtual void InvokeWithdrawCommand(); 00086 00087 virtual void Bind(); 00088 virtual void UnBind(); 00089 00090 // @endcond 00091 // @cond section_private 00092 private: 00093 vtkKWPopupButton(const vtkKWPopupButton&); // Not implemented 00094 void operator=(const vtkKWPopupButton&); // Not implemented 00095 }; 00096 00097 #endif 00098 00099 // @endcond
1.6.1