}
}
+ public static NodePropType[] alltypes()
+ {
+ return {
+ PROP,
+ USER,
+ RAW,
+ METHOD,
+ SIGNAL,
+
+ SPECIAL,
+ LISTENER
+ // CTOR,
+
+ };
+ }
+ public static NodePropType nameToType(string str)
+ {
+ foreach(var np in alltypes()) {
+ if (np.to_name() == str) {
+ return np;
+ }
+ }
+ return NONE;
+
+ }
+ public static string[] get_pulldown_list()
+ {
+ // eventually it needs to be smarter.... - but i did not have internet so could not use listmodels for the dropdown
+
+ string[] ret = {};
+ foreach(var np in alltypes()) {
+ ret += np.to_name();
+ }
+ return ret;
+
+ }
+
}
public class JsRender.NodeProp : Object {
+
+
+
+
private string _name = "";
public string name {
get {
return;
}
this._name = value;
-
+
+ this.updated_count++;
if (this.parent != null) {
// causes props/ listeners array to get updated.
this.parent.updated_count++;
if (this.parent != null) {
this.parent.updated_count++;
}
- this.to_display_name_prop = "";
- this.to_tooltip_name_prop = "";
+
this.updated_count++;
}
} // return or type
if (this.parent != null) {
this.parent.updated_count++;
}
- this.val_short = "";
- this.val_tooltip = "";
this.updated_count++;
-
}
}
set {
// set things that are used to display values.
- this.to_display_name_prop = "";
- this.to_tooltip_name_prop = "";
- this. _updated_count = value;
+ this.to_display_name_prop = value.to_string();
+ this.to_tooltip_name_prop = value.to_string();
+
+ this.val_short = value.to_string();
+ this.val_tooltip = value.to_string();
+ this._updated_count = value;
}
} // changes to this trigger updates on the tree..
this.childstore = new GLib.ListStore( typeof(NodeProp));
}
+ public string ptype_as_string {
+ get { return this.ptype.to_string(); }
+ private set {}
+ }
public bool equals(NodeProp p)
this.childstore.append(child);
}
+
/**
could use enums.. but basically.