Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __vtkKWSpinButtons_h
00031 #define __vtkKWSpinButtons_h
00032
00033 #include "vtkKWCompositeWidget.h"
00034
00035 class vtkKWPushButton;
00036
00037 class KWWidgets_EXPORT vtkKWSpinButtons : public vtkKWCompositeWidget
00038 {
00039 public:
00040 static vtkKWSpinButtons* New();
00041 vtkTypeRevisionMacro(vtkKWSpinButtons,vtkKWCompositeWidget);
00042 void PrintSelf(ostream& os, vtkIndent indent);
00043
00044
00045
00046 vtkGetObjectMacro(PreviousButton, vtkKWPushButton);
00047 vtkGetObjectMacro(NextButton, vtkKWPushButton);
00048
00049
00050
00051
00052
00053
00054
00055
00056 virtual void SetPreviousCommand(vtkObject *object, const char *method);
00057 virtual void SetNextCommand(vtkObject *object, const char *method);
00058
00059
00060
00061
00062
00063
00064 enum
00065 {
00066 ArrowOrientationHorizontal = 0,
00067 ArrowOrientationVertical
00068 };
00069
00070 virtual void SetArrowOrientation(int);
00071 vtkGetMacro(ArrowOrientation, int);
00072 virtual void SetArrowOrientationToHorizontal()
00073 { this->SetArrowOrientation(
00074 vtkKWSpinButtons::ArrowOrientationHorizontal); };
00075 virtual void SetArrowOrientationToVertical()
00076 { this->SetArrowOrientation(
00077 vtkKWSpinButtons::ArrowOrientationVertical); };
00078
00079
00080
00081
00082
00083
00084
00085 enum
00086 {
00087 LayoutOrientationHorizontal = 0,
00088 LayoutOrientationVertical
00089 };
00090
00091 virtual void SetLayoutOrientation(int);
00092 vtkGetMacro(LayoutOrientation, int);
00093 virtual void SetLayoutOrientationToHorizontal()
00094 { this->SetLayoutOrientation(
00095 vtkKWSpinButtons::LayoutOrientationHorizontal); };
00096 virtual void SetLayoutOrientationToVertical()
00097 { this->SetLayoutOrientation(
00098 vtkKWSpinButtons::LayoutOrientationVertical); };
00099
00100
00101
00102
00103 virtual void SetButtonsPadX(int);
00104 vtkGetMacro(ButtonsPadX, int);
00105 virtual void SetButtonsPadY(int);
00106 vtkGetMacro(ButtonsPadY, int);
00107
00108
00109
00110
00111 virtual void SetButtonsWidth(int w);
00112 virtual int GetButtonsWidth();
00113 virtual void SetButtonsHeight(int h);
00114 virtual int GetButtonsHeight();
00115
00116
00117
00118
00119
00120
00121
00122
00123 virtual void UpdateEnableState();
00124
00125 protected:
00126 vtkKWSpinButtons();
00127 ~vtkKWSpinButtons();
00128
00129
00130
00131 virtual void CreateWidget();
00132
00133 vtkKWPushButton *PreviousButton;
00134 vtkKWPushButton *NextButton;
00135
00136 int ArrowOrientation;
00137 int LayoutOrientation;
00138
00139 int ButtonsPadX;
00140 int ButtonsPadY;
00141
00142 virtual void Pack();
00143 virtual void UpdateArrowOrientation();
00144
00145 private:
00146 vtkKWSpinButtons(const vtkKWSpinButtons&);
00147 void operator=(const vtkKWSpinButtons&);
00148 };
00149
00150
00151 #endif
00152
00153
00154