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 _CEGUIMultiLineEditboxProperties_h_
00031 #define _CEGUIMultiLineEditboxProperties_h_
00032
00033 #include "CEGUIProperty.h"
00034
00035
00036
00037 namespace CEGUI
00038 {
00039
00040
00045 namespace MultiLineEditboxProperties
00046 {
00059 class ReadOnly : public Property
00060 {
00061 public:
00062 ReadOnly() : Property(
00063 "ReadOnly",
00064 "Property to get/set the read-only setting for the edit box. Value is either \"True\" or \"False\".",
00065 "False")
00066 {}
00067
00068 String get(const PropertyReceiver* receiver) const;
00069 void set(PropertyReceiver* receiver, const String& value);
00070 };
00071
00072
00085 class WordWrap : public Property
00086 {
00087 public:
00088 WordWrap() : Property(
00089 "WordWrap",
00090 "Property to get/set the word-wrap setting of the edit box. Value is either \"True\" or \"False\".",
00091 "True")
00092 {}
00093
00094 String get(const PropertyReceiver* receiver) const;
00095 void set(PropertyReceiver* receiver, const String& value);
00096 };
00097
00098
00110 class CaratIndex : public Property
00111 {
00112 public:
00113 CaratIndex() : Property(
00114 "CaratIndex",
00115 "Property to get/set the current carat index. Value is \"[uint]\".",
00116 "0")
00117 {}
00118
00119 String get(const PropertyReceiver* receiver) const;
00120 void set(PropertyReceiver* receiver, const String& value);
00121 };
00122
00123
00135 class SelectionStart : public Property
00136 {
00137 public:
00138 SelectionStart() : Property(
00139 "SelectionStart",
00140 "Property to get/set the zero based index of the selection start position within the text. Value is \"[uint]\".",
00141 "0")
00142 {}
00143
00144 String get(const PropertyReceiver* receiver) const;
00145 void set(PropertyReceiver* receiver, const String& value);
00146 };
00147
00148
00160 class SelectionLength : public Property
00161 {
00162 public:
00163 SelectionLength() : Property(
00164 "SelectionLength",
00165 "Property to get/set the length of the selection (as a count of the number of code points selected). Value is \"[uint]\".",
00166 "0")
00167 {}
00168
00169 String get(const PropertyReceiver* receiver) const;
00170 void set(PropertyReceiver* receiver, const String& value);
00171 };
00172
00173
00185 class MaxTextLength : public Property
00186 {
00187 public:
00188 MaxTextLength() : Property(
00189 "MaxTextLength",
00190 "Property to get/set the the maximum allowed text length (as a count of code points). Value is \"[uint]\".",
00191 "1073741824")
00192 {}
00193
00194 String get(const PropertyReceiver* receiver) const;
00195 void set(PropertyReceiver* receiver, const String& value);
00196 };
00197
00198
00208 class SelectionBrushImage : public Property
00209 {
00210 public:
00211 SelectionBrushImage() : Property(
00212 "SelectionBrushImage",
00213 "Property to get/set the selection brush image for the editbox. Value should be \"set:[imageset name] image:[image name]\".",
00214 "")
00215 {}
00216
00217 String get(const PropertyReceiver* receiver) const;
00218 void set(PropertyReceiver* receiver, const String& value);
00219 };
00220
00233 class ForceVertScrollbar : public Property
00234 {
00235 public:
00236 ForceVertScrollbar() : Property(
00237 "ForceVertScrollbar",
00238 "Property to get/set the 'always show' setting for the vertical scroll bar of the list box. Value is either \"True\" or \"False\".",
00239 "False")
00240 {}
00241
00242 String get(const PropertyReceiver* receiver) const;
00243 void set(PropertyReceiver* receiver, const String& value);
00244 };
00245
00246 }
00247
00248 }
00249
00250
00251 #endif // end of guard _CEGUIMultiLineEditboxProperties_h_