3@SuppressWarnings public class QPropertyBrowser : QWidget{
5 public static class PropertyManager : QObject{
7 Map<long, onPropertyEventListener> eventListener
8 = new Map<long, onPropertyEventListener>();
10 public static class onPropertyEventListener{
31 Map.
Iterator<long, onPropertyEventListener> _listener = eventListener.find(prop);
32 if (_listener != nilptr){
34 onPropertyEventListener lis = _listener.
getValue();
36 lis.onEnumPropertyValueChanged(prop, item);
46 Map.
Iterator<long, onPropertyEventListener> _listener = eventListener.find(prop);
47 if (_listener != nilptr){
49 onPropertyEventListener lis = _listener.
getValue();
51 lis.onVariantPropertyValueChanged(prop, dataType, stringValue);
60 Map.
Iterator<long, onPropertyEventListener> _listener = eventListener.find(prop);
61 if (_listener != nilptr){
63 onPropertyEventListener lis = _listener.
getValue();
65 lis.onVariantPropertyAttributeChanged(prop, strAttributr, dataType, stringValue);
75 eventListener.remove(prop.nativehandle);
77 eventListener.put(prop.nativehandle, l);
82 eventListener.clear();
83 QtXnl.widget_get_bool_value(nativehandle, Constant.TREEPROPMGRCLEAR);
87 static class QtBoolPropertyManager : PropertyManager{
92 nativehandle = QtXnl.createQObject(QType.qtBoolPropertyManager,
this, 0);
93 if (nativehandle == 0){
98 nativehandle = QtXnl.createQObject(QType.qtBoolPropertyManager,
this, parent.nativehandle);
99 if (nativehandle == 0){
106 public static class QtColorPropertyManager : PropertyManager{
111 nativehandle = QtXnl.createQObject(QType.qtColorPropertyManager,
this, 0);
112 if (nativehandle == 0){
117 nativehandle = QtXnl.createQObject(QType.qtColorPropertyManager,
this, parent.nativehandle);
118 if (nativehandle == 0){
125 public static class QtDatePropertyManager : PropertyManager{
130 nativehandle = QtXnl.createQObject(QType.qtDatePropertyManager,
this, 0);
131 if (nativehandle == 0){
136 nativehandle = QtXnl.createQObject(QType.qtDatePropertyManager,
this, parent.nativehandle);
137 if (nativehandle == 0){
144 public static class QtDateTimePropertyManager : PropertyManager {
149 nativehandle = QtXnl.createQObject(QType.qtDateTimePropertyManager,
this, 0);
150 if (nativehandle == 0){
155 nativehandle = QtXnl.createQObject(QType.qtDateTimePropertyManager,
this, parent.nativehandle);
156 if (nativehandle == 0){
163 public static class QtDoublePropertyManager : PropertyManager{
168 nativehandle = QtXnl.createQObject(QType.qtDoublePropertyManager,
this, 0);
169 if (nativehandle == 0){
174 nativehandle = QtXnl.createQObject(QType.qtDoublePropertyManager,
this, parent.nativehandle);
175 if (nativehandle == 0){
182 public static class QtEnumPropertyManager : PropertyManager {
187 nativehandle = QtXnl.createQObject(QType.qtEnumPropertyManager,
this, 0);
188 if (nativehandle == 0){
193 nativehandle = QtXnl.createQObject(QType.qtEnumPropertyManager,
this, parent.nativehandle);
194 if (nativehandle == 0){
200 QtXnl.widget_set_long_object_value(nativehandle, Constant.PROPSETENUM, item.nativehandle, values);
204 return QtXnl.core_getintlong(nativehandle, Constant.PEORENUMVALUE, item.nativehandle);
209 public static class QtFlagPropertyManager : PropertyManager {
214 nativehandle = QtXnl.createQObject(QType.qtFlagPropertyManager,
this, 0);
215 if (nativehandle == 0){
220 nativehandle = QtXnl.createQObject(QType.qtFlagPropertyManager,
this, parent.nativehandle);
221 if (nativehandle == 0){
228 public static class QtFontPropertyManager : PropertyManager {
233 nativehandle = QtXnl.createQObject(QType.qtFontPropertyManager,
this, 0);
234 if (nativehandle == 0){
239 nativehandle = QtXnl.createQObject(QType.qtFontPropertyManager,
this, parent.nativehandle);
240 if (nativehandle == 0){
247 public static class QtGroupPropertyManager : PropertyManager{
252 nativehandle = QtXnl.createQObject(QType.qtGroupPropertyManager,
this, 0);
253 if (nativehandle == 0){
258 nativehandle = QtXnl.createQObject(QType.qtGroupPropertyManager,
this, parent.nativehandle);
259 if (nativehandle == 0){
266 public static class QtIntPropertyManager : PropertyManager{
271 nativehandle = QtXnl.createQObject(QType.qtIntPropertyManager,
this, 0);
272 if (nativehandle == 0){
277 nativehandle = QtXnl.createQObject(QType.qtIntPropertyManager,
this, parent.nativehandle);
278 if (nativehandle == 0){
285 public static class QtPointPropertyManager : PropertyManager{
290 nativehandle = QtXnl.createQObject(QType.qtPointPropertyManager,
this, 0);
291 if (nativehandle == 0){
296 nativehandle = QtXnl.createQObject(QType.qtPointPropertyManager,
this, parent.nativehandle);
297 if (nativehandle == 0){
304 public static class QtRectPropertyManager : PropertyManager {
309 nativehandle = QtXnl.createQObject(QType.qtRectPropertyManager,
this, 0);
310 if (nativehandle == 0){
315 nativehandle = QtXnl.createQObject(QType.qtRectPropertyManager,
this, parent.nativehandle);
316 if (nativehandle == 0){
323 public static class QtSizePropertyManager : PropertyManager {
328 nativehandle = QtXnl.createQObject(QType.qtSizePropertyManager,
this, 0);
329 if (nativehandle == 0){
334 nativehandle = QtXnl.createQObject(QType.qtSizePropertyManager,
this, parent.nativehandle);
335 if (nativehandle == 0){
342 public static class QtSizePolicyPropertyManager : PropertyManager {
347 nativehandle = QtXnl.createQObject(QType.qtSizePolicyPropertyManager,
this, 0);
348 if (nativehandle == 0){
353 nativehandle = QtXnl.createQObject(QType.qtSizePolicyPropertyManager,
this, parent.nativehandle);
354 if (nativehandle == 0){
361 public static class QtStringPropertyManager : PropertyManager {
366 nativehandle = QtXnl.createQObject(QType.qtStringPropertyManager,
this, 0);
367 if (nativehandle == 0){
372 nativehandle = QtXnl.createQObject(QType.qtStringPropertyManager,
this, parent.nativehandle);
373 if (nativehandle == 0){
380 public static class QtTimePropertyManager : PropertyManager {
385 nativehandle = QtXnl.createQObject(QType.qtTimePropertyManager,
this, 0);
386 if (nativehandle == 0){
391 nativehandle = QtXnl.createQObject(QType.qtTimePropertyManager,
this, parent.nativehandle);
392 if (nativehandle == 0){
399 public static class QtVariantPropertyManager : PropertyManager{
404 nativehandle = QtXnl.createQObject(QType.qtVariantPropertyManager,
this, 0);
405 if (nativehandle == 0){
410 nativehandle = QtXnl.createQObject(QType.qtVariantPropertyManager,
this, parent.nativehandle);
411 if (nativehandle == 0){
416 obj.nativehandle = QtXnl.long_intstring(nativehandle, Constant.PROPADDPROPERTY, type, text);
420 obj.nativehandle = QtXnl.long_intstring(nativehandle, Constant.PROPADDPROPERTYGROUP, 0, text);
424 obj.nativehandle = QtXnl.long_intstring(nativehandle, Constant.PROPADDPROPERTYENUM, 0, text);
428 obj.nativehandle = QtXnl.long_intstring(nativehandle, Constant.PROPADDPROPERTYFLAG, 0, text);
433 public static class QtProperty: QCore{
442 nativehandle = handle;
445 QtXnl.widget_set_native_value(nativehandle, Constant.ADDSUBPROPERTY, prop.nativehandle);
449 public static class QtVariantProperty : QtProperty{
456 nativehandle = handle;
459 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRECHOM, Value);
462 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRREGEX, Value);
465 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRMAXIM, Value);
468 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRMAXIM, Value);
471 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRMINIM, Value);
474 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRMINIM, Value);
477 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRENUMN, Value);
480 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRFLAGN, Value);
483 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRSSTEP, Value);
486 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRSSTEP, Value);
489 QtXnl.widget_set_object_value(nativehandle, Constant.PROPATTRSSTEP, Value);
492 QtXnl.widget_set_object_value(nativehandle, Constant.PROPSETVALUE, Value);
495 QtXnl.widget_set_object_value(nativehandle, Constant.PROPSETVALUE, Value);
498 QtXnl.widget_set_object_value(nativehandle, Constant.PROPSETVALUEFORMAT, format);
501 QtXnl.widget_set_object_value(nativehandle, Constant.PROPSETVALUE, Value);
504 QtXnl.widget_set_object_value(nativehandle, Constant.PROPSETVALUE, Value);
507 QtXnl.native_double2(nativehandle, Constant.PROPSETARRTPTMAX, x, y);
510 QtXnl.native_double2(nativehandle, Constant.PROPSETARRTPTMIN, x, y);
513 QtXnl.native_double2(nativehandle, Constant.PROPSETVALUEPT, x, y);
516 return (
String)QtXnl.core_getString(nativehandle, Constant.PROPGETVALUE);
519 QtXnl.native_double2(nativehandle, Constant.PROPSETARRTSZMAX, cx, cy);
522 QtXnl.native_double2(nativehandle, Constant.PROPSETARRTSZMIN, cx, cy);
525 QtXnl.native_double2(nativehandle, Constant.PROPSETVALUESZ, cx, cy);
528 QtXnl.native_double4(l, t, r, b, nativehandle, Constant.PROPSETARRTRC);
531 QtXnl.native_double4(l, t, r, b, nativehandle, Constant.PROPSETVALUERC);
535 public static class QtBrowserItem: QCore{
539 nativehandle = handle;
543 public static class QtVariantEditorFactory : QObject{
548 nativehandle = QtXnl.createQObject(QType.qtVariantEditorFactory,
this, 0);
549 if (nativehandle == 0){
554 nativehandle = QtXnl.createQObject(QType.qtVariantEditorFactory,
this, parent.nativehandle);
555 if (nativehandle == 0){
570 nativehandle = QtXnl.createQObject(QType.qtPropertyBrowser,
this, 0);
571 if (nativehandle == 0){
577 public bool create(@NotNilptr QWidget parent)
override {
578 nativehandle = QtXnl.createQObject(QType.qtPropertyBrowser,
this, parent.nativehandle);
579 if (nativehandle == 0){
585 @NotNilptr
public QtBrowserItem
addProperty(@NotNilptr QtProperty pitem){
586 return new QtBrowserItem(QtXnl.long_intlong(nativehandle, Constant.ADDPROPERTY, pitem.nativehandle));
589 QtXnl.void_long2(nativehandle, Constant.SETMGRFACTORY, mgr.nativehandle, factory.nativehandle);
593 QtXnl.widget_set_bool_value(nativehandle, Constant.SPWVM, b);
597 QtXnl.long_string2(nativehandle, Constant.QPBSETLABELS, left, right);
600 QtXnl.widget_set_v2int_value(nativehandle, Constant.SETPROPWIDTHS, left, right);
603 QtXnl.widget_set_bool_value(nativehandle, Constant.QPBADJUST, ba);
606 QtXnl.widget_set_bool_value(nativehandle, Constant.SRID, b);
609 QtXnl.object_get_long_int(nativehandle, Constant.QPB_SETEXPAND, item.nativehandle, bp ? 1 : 0);
612 QtXnl.object_get_long_int(nativehandle, Constant.QPB_SETSELECT, item.nativehandle, bp ? 1 : 0);
615 QtXnl.object_get_long_int(nativehandle, Constant.QPB_SETVISIBLE, item.nativehandle, bp ? 1 : 0);
618 QtXnl.object_get_long_int(nativehandle, Constant.QPB_SETBACKCOLOR, item.nativehandle, color);
621 QtXnl.widget_get_bool_value(nativehandle, Constant.TREEPROPCLEAR);
void onEnumPropertyValueChanged(long prop, int item)
void onVariantPropertyValueChanged(long prop, int dataType, String stringValue)
void onVariantPropertyAttributeChanged(long prop,String strAttributr, int dataType, String stringValue)
PropertyManager(long handle)
void onVariantPropertyAttributeChanged(long prop,String strAttributr, int dataType, String stringValue) override
void onEnumPropertyValueChanged(long prop, int item) override
void setPropertyEventListener(@NotNilptr QtProperty prop, onPropertyEventListener l)
void onVariantPropertyValueChanged(long prop, int dataType, String stringValue) override
QtBoolPropertyManager(@NotNilptr QObject parent)
QtBoolPropertyManager(long handle)
QtBrowserItem(long handle)
QtColorPropertyManager(long handle)
QtColorPropertyManager(@NotNilptr QObject parent)
QtDatePropertyManager(@NotNilptr QObject parent)
QtDatePropertyManager(long handle)
QtDateTimePropertyManager(long handle)
QtDateTimePropertyManager()
QtDateTimePropertyManager(@NotNilptr QObject parent)
QtDoublePropertyManager(@NotNilptr QObject parent)
QtDoublePropertyManager(long handle)
QtDoublePropertyManager()
QtEnumPropertyManager(@NotNilptr QObject parent)
int getValue(@NotNilptr QtProperty item)
QtEnumPropertyManager(long handle)
void setValues(@NotNilptr QtProperty item, String [] values)
QtFlagPropertyManager(@NotNilptr QObject parent)
QtFlagPropertyManager(long handle)
QtFontPropertyManager(long handle)
QtFontPropertyManager(@NotNilptr QObject parent)
QtGroupPropertyManager(long handle)
QtGroupPropertyManager(@NotNilptr QObject parent)
QtIntPropertyManager(long handle)
QtIntPropertyManager(@NotNilptr QObject parent)
QtPointPropertyManager(@NotNilptr QObject parent)
QtPointPropertyManager(long handle)
void setTagObject(Object f)
void addSubProperty(@NotNilptr QtProperty prop)
QtRectPropertyManager(long handle)
QtRectPropertyManager(@NotNilptr QObject parent)
QtSizePolicyPropertyManager(long handle)
QtSizePolicyPropertyManager(@NotNilptr QObject parent)
QtSizePolicyPropertyManager()
QtSizePropertyManager(long handle)
QtSizePropertyManager(@NotNilptr QObject parent)
QtStringPropertyManager(long handle)
QtStringPropertyManager()
QtStringPropertyManager(@NotNilptr QObject parent)
QtTimePropertyManager(long handle)
QtTimePropertyManager(@NotNilptr QObject parent)
QtVariantEditorFactory(long handle)
QtVariantEditorFactory(@NotNilptr QObject parent)
void setAttributeSingleStep(double Value)
void setValuePoint(double x, double y)
void setValue(double Value)
void setValue(String Value)
void setAttributeDecimals(int Value)
void setValueFormat(String format)
void setAttributeSizeMax(double cx, double cy)
QtVariantProperty(long handle)
void setAttributeEnumNames(String[] Value)
void setAttributePointMax(double x, double y)
void setAttributeRect(double l, double t, double r, double b)
void setAttributeFlagNames(String[] Value)
void setAttributeMax(double Value)
void setAttributeMin(int Value)
void setAttributeRegex(String Value)
void setAttributeEchoMode(int Value)
void setAttributeSingleStep(int Value)
void setValue(bool Value)
void setAttributeMin(double Value)
void setAttributePointMin(double x, double y)
void setValueSize(double cx, double cy)
void setValueRect(double l, double t, double r, double b)
void setAttributeMax(int Value)
void setAttributeSizeMin(double cx, double cy)
QtVariantPropertyManager(long handle)
QtVariantPropertyManager(@NotNilptr QObject parent)
QtProperty addFlagProperty(@NotNilptr QtProperty obj,String text)
QtVariantPropertyManager()
QtProperty addEnumProperty(@NotNilptr QtProperty obj,String text)
QtProperty addPropertyGroup(@NotNilptr QtProperty obj, String text)
QtProperty addProperty(@NotNilptr QtProperty obj,int type, String text)
void setItemBackColor(@NotNilptr QtBrowserItem item, int color)
void setItemSelected(@NotNilptr QtBrowserItem item, bool bp)
void setItemVisible(@NotNilptr QtBrowserItem item, bool bp)
void enableAdjust(bool ba)
QtBrowserItem addProperty(@NotNilptr QtProperty pitem)
void setFactoryForManager(@NotNilptr PropertyManager mgr,@NotNilptr QtVariantEditorFactory factory)
void setLables(String left, String right)
bool create(@NotNilptr QWidget parent) override
void setHeaderWidths(int left, int right)
void setPropertiesWithoutValueMarked(bool b)
void setRootIsDecorated(bool b)
void setItemExpand(@NotNilptr QtBrowserItem item, bool bp)