00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWTreeWithScrollbars.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 =========================================================================*/ 00025 #ifndef __vtkKWTreeWithScrollbars_h 00026 #define __vtkKWTreeWithScrollbars_h 00027 00028 #include "vtkKWWidgetWithScrollbars.h" 00029 00030 class vtkKWScrollbar; 00031 class vtkKWTree; 00032 class vtkKWPushButtonSet; 00033 00034 class KWWidgets_EXPORT vtkKWTreeWithScrollbars : public vtkKWWidgetWithScrollbars 00035 { 00036 // @cond section_public 00037 public: 00038 static vtkKWTreeWithScrollbars* New(); 00039 vtkTypeRevisionMacro(vtkKWTreeWithScrollbars,vtkKWWidgetWithScrollbars); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 virtual vtkKWTree* GetWidget(); 00044 00045 // Descrition: 00046 // Set/Get the visibility of the small resize buttons placed next to each 00047 // scrollbar. Note that they won't show if the corresponding scrollbar 00048 // is not visible. 00049 virtual void SetResizeButtonsVisibility(int arg); 00050 vtkBooleanMacro(ResizeButtonsVisibility, int); 00051 vtkGetMacro(ResizeButtonsVisibility, int); 00052 00059 virtual void UpdateEnableState(); 00060 00062 00063 virtual void ExpandTreeVerticallyCallback(); 00064 virtual void ShrinkTreeVerticallyCallback(); 00065 virtual void ExpandTreeHorizontallyCallback(); 00066 virtual void ShrinkTreeHorizontallyCallback(); 00068 00069 // @endcond 00070 // @cond section_protected 00071 protected: 00072 vtkKWTreeWithScrollbars(); 00073 ~vtkKWTreeWithScrollbars(); 00074 00076 virtual void CreateWidget(); 00077 00079 int ResizeButtonsVisibility; 00080 00082 00083 vtkKWTree *Widget; 00084 vtkKWPushButtonSet *VerticalButtons; 00085 vtkKWPushButtonSet *HorizontalButtons; 00087 00089 00092 virtual void CreateHorizontalScrollbar(); 00093 virtual void CreateVerticalScrollbar(); 00095 00097 virtual void Pack(); 00098 00100 virtual void UpdateButtonsVisibility(); 00101 00102 // @endcond 00103 // @cond section_private 00104 private: 00105 vtkKWTreeWithScrollbars(const vtkKWTreeWithScrollbars&); // Not implemented 00106 void operator=(const vtkKWTreeWithScrollbars&); // Not implemented 00107 }; 00108 00109 #endif 00110 // @endcond
1.6.1