00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWPopupFrame.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 =========================================================================*/ 00020 #ifndef __vtkKWPopupFrame_h 00021 #define __vtkKWPopupFrame_h 00022 00023 #include "vtkKWCompositeWidget.h" 00024 00025 class vtkKWFrameWithLabel; 00026 class vtkKWPopupButton; 00027 00028 class KWWIDGETS_EXPORT vtkKWPopupFrame : public vtkKWCompositeWidget 00029 { 00030 public: 00031 static vtkKWPopupFrame* New(); 00032 vtkTypeRevisionMacro(vtkKWPopupFrame,vtkKWCompositeWidget); 00033 void PrintSelf(ostream& os, vtkIndent indent); 00034 00036 00037 vtkSetMacro(PopupMode, int); 00038 vtkGetMacro(PopupMode, int); 00039 vtkBooleanMacro(PopupMode, int); 00041 00043 virtual void Create(vtkKWApplication *app); 00044 00046 00047 vtkGetObjectMacro(PopupButton, vtkKWPopupButton); 00048 vtkGetObjectMacro(Frame, vtkKWFrameWithLabel); 00050 00057 virtual void UpdateEnableState(); 00058 00059 protected: 00060 vtkKWPopupFrame(); 00061 ~vtkKWPopupFrame(); 00062 00063 // GUI 00064 00065 int PopupMode; 00066 00067 vtkKWPopupButton *PopupButton; 00068 vtkKWFrameWithLabel *Frame; 00069 00070 private: 00071 vtkKWPopupFrame(const vtkKWPopupFrame&); // Not implemented 00072 void operator=(const vtkKWPopupFrame&); // Not Implemented 00073 }; 00074 00075 #endif