00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00021 #ifndef __vtkKWOptions_h
00022 #define __vtkKWOptions_h
00023
00024 #include "vtkObject.h"
00025 #include "vtkKWWidgets.h"
00026
00027 class KWWidgets_EXPORT vtkKWOptions : public vtkObject
00028 {
00029
00030 public:
00031 static vtkKWOptions* New();
00032 vtkTypeRevisionMacro(vtkKWOptions,vtkObject);
00033 void PrintSelf(ostream& os, vtkIndent indent);
00034
00036
00038 enum AnchorType
00039 {
00040 AnchorNorth = 0,
00041 AnchorNorthEast,
00042 AnchorEast,
00043 AnchorSouthEast,
00044 AnchorSouth,
00045 AnchorSouthWest,
00046 AnchorWest,
00047 AnchorNorthWest,
00048 AnchorCenter,
00049 AnchorUnknown
00050 };
00051
00053
00055
00058 enum ReliefType
00059 {
00060 ReliefRaised = 0,
00061 ReliefSunken,
00062 ReliefFlat,
00063 ReliefRidge,
00064 ReliefSolid,
00065 ReliefGroove,
00066 ReliefUnknown
00067 };
00068
00070
00072
00074 enum JustificationType
00075 {
00076 JustificationLeft = 0,
00077 JustificationCenter,
00078 JustificationRight,
00079 JustificationUnknown
00080 };
00081
00083
00085
00086 enum SelectionModeType
00087 {
00088 SelectionModeSingle = 0,
00089 SelectionModeBrowse,
00090 SelectionModeMultiple,
00091 SelectionModeExtended,
00092 SelectionModeUnknown
00093 };
00094
00096
00098
00101 enum OrientationType
00102 {
00103 OrientationHorizontal = 0,
00104 OrientationVertical,
00105 OrientationUnknown
00106 };
00107
00109
00111
00112 enum StateType
00113 {
00114 StateDisabled = 0,
00115 StateNormal = 1,
00116 StateActive = 2,
00117 StateReadOnly = 3,
00118 StateUnknown
00119 };
00120
00122
00124
00127 enum CompoundModeType
00128 {
00129 CompoundModeNone = 0,
00130 CompoundModeLeft,
00131 CompoundModeCenter,
00132 CompoundModeRight,
00133 CompoundModeTop,
00134 CompoundModeBottom,
00135 CompoundModeUnknown
00136 };
00137
00139
00142 static const char* GetCharacterEncodingAsTclOptionValue(int);
00143
00145
00146 static const char* GetAnchorAsTkOptionValue(int);
00147 static int GetAnchorFromTkOptionValue(const char *);
00149
00151
00152 static const char* GetReliefAsTkOptionValue(int);
00153 static int GetReliefFromTkOptionValue(const char *);
00155
00157
00159 static const char* GetJustificationAsTkOptionValue(int);
00160 static int GetJustificationFromTkOptionValue(const char *);
00162
00164
00166 static const char* GetSelectionModeAsTkOptionValue(int);
00167 static int GetSelectionModeFromTkOptionValue(const char *);
00169
00171
00172 static const char* GetOrientationAsTkOptionValue(int);
00173 static int GetOrientationFromTkOptionValue(const char *);
00175
00177
00178 static const char* GetStateAsTkOptionValue(int);
00179 static int GetStateFromTkOptionValue(const char *);
00181
00183
00184 static const char* GetCompoundModeAsTkOptionValue(int);
00185 static int GetCompoundModeFromTkOptionValue(const char *);
00187
00188
00189
00190 protected:
00191 vtkKWOptions() {};
00192 ~vtkKWOptions() {};
00193
00194
00195
00196 private:
00197
00198 vtkKWOptions(const vtkKWOptions&);
00199 void operator=(const vtkKWOptions&);
00200 };
00201
00202 #endif
00203