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 _CEGUIComboboxProperties_h_
00031 #define _CEGUIComboboxProperties_h_
00032
00033 #include "CEGUIProperty.h"
00034
00035
00036
00037 namespace CEGUI
00038 {
00039
00040
00045 namespace ComboboxProperties
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 Editbox. 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
00084 class ValidationString : public Property
00085 {
00086 public:
00087 ValidationString() : Property(
00088 "ValidationString",
00089 "Property to get/set the validation string Editbox. Value is a text string.",
00090 ".*")
00091 {}
00092
00093 String get(const PropertyReceiver* receiver) const;
00094 void set(PropertyReceiver* receiver, const String& value);
00095 };
00096
00097
00109 class CaratIndex : public Property
00110 {
00111 public:
00112 CaratIndex() : Property(
00113 "CaratIndex",
00114 "Property to get/set the current carat index. Value is \"[uint]\".",
00115 "0")
00116 {}
00117
00118 String get(const PropertyReceiver* receiver) const;
00119 void set(PropertyReceiver* receiver, const String& value);
00120 };
00121
00122
00134 class EditSelectionStart : public Property
00135 {
00136 public:
00137 EditSelectionStart() : Property(
00138 "EditSelectionStart",
00139 "Property to get/set the zero based index of the selection start position within the text. Value is \"[uint]\".",
00140 "0")
00141 {}
00142
00143 String get(const PropertyReceiver* receiver) const;
00144 void set(PropertyReceiver* receiver, const String& value);
00145 };
00146
00147
00159 class EditSelectionLength : public Property
00160 {
00161 public:
00162 EditSelectionLength() : Property(
00163 "EditSelectionLength",
00164 "Property to get/set the length of the selection (as a count of the number of code points selected). Value is \"[uint]\".",
00165 "0")
00166 {}
00167
00168 String get(const PropertyReceiver* receiver) const;
00169 void set(PropertyReceiver* receiver, const String& value);
00170 };
00171
00172
00184 class MaxEditTextLength : public Property
00185 {
00186 public:
00187 MaxEditTextLength() : Property(
00188 "MaxEditTextLength",
00189 "Property to get/set the the maximum allowed text length (as a count of code points). Value is \"[uint]\".",
00190 "1073741824")
00191 {}
00192
00193 String get(const PropertyReceiver* receiver) const;
00194 void set(PropertyReceiver* receiver, const String& value);
00195 };
00196
00197
00210 class SortList : public Property
00211 {
00212 public:
00213 SortList() : Property(
00214 "SortList",
00215 "Property to get/set the sort setting of the list box. Value is either \"True\" or \"False\".",
00216 "False")
00217 {}
00218
00219 String get(const PropertyReceiver* receiver) const;
00220 void set(PropertyReceiver* receiver, const String& value);
00221 };
00222
00223
00236 class ForceVertScrollbar : public Property
00237 {
00238 public:
00239 ForceVertScrollbar() : Property(
00240 "ForceVertScrollbar",
00241 "Property to get/set the 'always show' setting for the vertical scroll bar of the list box. Value is either \"True\" or \"False\".",
00242 "False")
00243 {}
00244
00245 String get(const PropertyReceiver* receiver) const;
00246 void set(PropertyReceiver* receiver, const String& value);
00247 };
00248
00249
00262 class ForceHorzScrollbar : public Property
00263 {
00264 public:
00265 ForceHorzScrollbar() : Property(
00266 "ForceHorzScrollbar",
00267 "Property to get/set the 'always show' setting for the horizontal scroll bar of the list box. Value is either \"True\" or \"False\".",
00268 "False")
00269 {}
00270
00271 String get(const PropertyReceiver* receiver) const;
00272 void set(PropertyReceiver* receiver, const String& value);
00273 };
00274
00275
00288 class SingleClickMode : public Property
00289 {
00290 public:
00291 SingleClickMode() : Property(
00292 "SingleClickMode",
00293 "Property to get/set the 'single click mode' setting for the combo box. Value is either \"True\" or \"False\".",
00294 "False")
00295 {}
00296
00297 String get(const PropertyReceiver* receiver) const;
00298 void set(PropertyReceiver* receiver, const String& value);
00299 };
00300
00301
00302 }
00303
00304 }
00305
00306
00307 #endif // end of guard _CEGUIComboboxProperties_h_