Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Widgets/vtkKWSpinButtons.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWSpinButtons.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 =========================================================================*/
00032 #ifndef __vtkKWSpinButtons_h
00033 #define __vtkKWSpinButtons_h
00034 
00035 #include "vtkKWCompositeWidget.h"
00036 
00037 class vtkKWApplication;
00038 class vtkKWPushButton;
00039 
00040 class KWWIDGETS_EXPORT vtkKWSpinButtons : public vtkKWCompositeWidget
00041 {
00042 public:
00043   static vtkKWSpinButtons* New();
00044   vtkTypeRevisionMacro(vtkKWSpinButtons,vtkKWCompositeWidget);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048   virtual void Create(vtkKWApplication *app);
00049   
00051 
00052   vtkGetObjectMacro(PreviousButton, vtkKWPushButton);
00053   vtkGetObjectMacro(NextButton, vtkKWPushButton);
00055 
00057 
00058   virtual void SetPreviousCommand(vtkObject *object, const char *method);
00059   virtual void SetNextCommand(vtkObject *object, const char *method);
00061 
00063 
00066   enum 
00067   {
00068     ArrowOrientationHorizontal = 0,
00069     ArrowOrientationVertical
00070   };
00071   //ETX
00072   virtual void SetArrowOrientation(int);
00073   vtkGetMacro(ArrowOrientation, int);
00074   virtual void SetArrowOrientationToHorizontal()
00075     { this->SetArrowOrientation(
00076       vtkKWSpinButtons::ArrowOrientationHorizontal); };
00077   virtual void SetArrowOrientationToVertical()
00078     { this->SetArrowOrientation(
00079       vtkKWSpinButtons::ArrowOrientationVertical); };
00081 
00083 
00087   enum 
00088   {
00089     LayoutOrientationHorizontal = 0,
00090     LayoutOrientationVertical
00091   };
00092   //ETX
00093   virtual void SetLayoutOrientation(int);
00094   vtkGetMacro(LayoutOrientation, int);
00095   virtual void SetLayoutOrientationToHorizontal()
00096     { this->SetLayoutOrientation(
00097       vtkKWSpinButtons::LayoutOrientationHorizontal); };
00098   virtual void SetLayoutOrientationToVertical()
00099     { this->SetLayoutOrientation(
00100       vtkKWSpinButtons::LayoutOrientationVertical); };
00102 
00104 
00106   virtual void SetButtonsPadX(int);
00107   vtkGetMacro(ButtonsPadX, int);
00108   virtual void SetButtonsPadY(int);
00109   vtkGetMacro(ButtonsPadY, int);
00111 
00113 
00115   virtual void SetButtonsWidth(int w);
00116   virtual int GetButtonsWidth();
00118 
00125   virtual void UpdateEnableState();
00126 
00127 protected:
00128   vtkKWSpinButtons();
00129   ~vtkKWSpinButtons();
00130 
00131   vtkKWPushButton *PreviousButton;
00132   vtkKWPushButton *NextButton;
00133 
00134   int ArrowOrientation;
00135   int LayoutOrientation;
00136 
00137   int ButtonsPadX;
00138   int ButtonsPadY;
00139 
00140   virtual void Pack();
00141   virtual void UpdateArrowOrientation();
00142 
00143 private:
00144   vtkKWSpinButtons(const vtkKWSpinButtons&); // Not implemented
00145   void operator=(const vtkKWSpinButtons&); // Not implemented
00146 };
00147 
00148 
00149 #endif
00150 
00151 
00152 

Generated on Tue May 30 12:31:44 2006 for ParaView by doxygen 1.3.5