KWWidgets
|
00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWSeparator.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 =========================================================================*/ 00014 // .NAME vtkKWSeparator - a separator widget. 00015 // .SECTION Description 00016 // A simple separator widget that can be used to separate widgets 00017 // using a simple horizontal or vertical line. 00018 // .SECTION See Also 00019 // vtkKWFrame 00020 00021 #ifndef __vtkKWSeparator_h 00022 #define __vtkKWSeparator_h 00023 00024 #include "vtkKWFrame.h" 00025 00026 class KWWidgets_EXPORT vtkKWSeparator : public vtkKWFrame 00027 { 00028 public: 00029 static vtkKWSeparator* New(); 00030 vtkTypeRevisionMacro(vtkKWSeparator, vtkKWFrame); 00031 void PrintSelf(ostream& os, vtkIndent indent); 00032 00033 // Description: 00034 // Set/Get the orientation of the separator. 00035 //BTX 00036 enum 00037 { 00038 OrientationHorizontal = 0, 00039 OrientationVertical = 1 00040 }; 00041 //ETX 00042 virtual void SetOrientation(int); 00043 vtkGetMacro(Orientation, int); 00044 virtual void SetOrientationToHorizontal() 00045 { this->SetOrientation(vtkKWSeparator::OrientationHorizontal); }; 00046 virtual void SetOrientationToVertical() 00047 { this->SetOrientation(vtkKWSeparator::OrientationVertical); }; 00048 00049 // Description: 00050 // Set/Get the thickness of the separator. 00051 // Do not use the superclass's SetWidth and SetHeight method to set the 00052 // thickness. 00053 virtual void SetThickness(int); 00054 vtkGetMacro(Thickness, int); 00055 00056 protected: 00057 vtkKWSeparator(); 00058 ~vtkKWSeparator() {}; 00059 00060 // Description: 00061 // Create the widget. 00062 virtual void CreateWidget(); 00063 00064 int Orientation; 00065 int Thickness; 00066 00067 // Description: 00068 // Update the aspect of the widget 00069 virtual void UpdateAspect(); 00070 00071 private: 00072 vtkKWSeparator(const vtkKWSeparator&); // Not implemented 00073 void operator=(const vtkKWSeparator&); // Not implemented 00074 }; 00075 00076 00077 #endif 00078 00079 00080