KWWidgets
debian/tmp/usr/include/KWWidgets/vtkKWSeparator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Module: $RCSfile: vtkKWSeparator.h,v $
4 
5  Copyright (c) Kitware, Inc.
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 // .NAME vtkKWSeparator - a separator widget.
15 // .SECTION Description
16 // A simple separator widget that can be used to separate widgets
17 // using a simple horizontal or vertical line.
18 // .SECTION See Also
19 // vtkKWFrame
20 
21 #ifndef __vtkKWSeparator_h
22 #define __vtkKWSeparator_h
23 
24 #include "vtkKWFrame.h"
25 
27 {
28 public:
29  static vtkKWSeparator* New();
30  vtkTypeRevisionMacro(vtkKWSeparator, vtkKWFrame);
31  void PrintSelf(ostream& os, vtkIndent indent);
32 
33  // Description:
34  // Set/Get the orientation of the separator.
35  //BTX
36  enum
37  {
38  OrientationHorizontal = 0,
39  OrientationVertical = 1
40  };
41  //ETX
42  virtual void SetOrientation(int);
43  vtkGetMacro(Orientation, int);
44  virtual void SetOrientationToHorizontal()
45  { this->SetOrientation(vtkKWSeparator::OrientationHorizontal); };
46  virtual void SetOrientationToVertical()
47  { this->SetOrientation(vtkKWSeparator::OrientationVertical); };
48 
49  // Description:
50  // Set/Get the thickness of the separator.
51  // Do not use the superclass's SetWidth and SetHeight method to set the
52  // thickness.
53  virtual void SetThickness(int);
54  vtkGetMacro(Thickness, int);
55 
56 protected:
59 
60  // Description:
61  // Create the widget.
62  virtual void CreateWidget();
63 
65  int Thickness;
66 
67  // Description:
68  // Update the aspect of the widget
69  virtual void UpdateAspect();
70 
71 private:
72  vtkKWSeparator(const vtkKWSeparator&); // Not implemented
73  void operator=(const vtkKWSeparator&); // Not implemented
74 };
75 
76 
77 #endif
78 
79 
80