"* init" : [
" ",
"",
- "\t\tthis.css = new Gtk.CssProvider();",
- "\t\ttry {",
+ "\tthis.css = new Gtk.CssProvider();",
+ "\ttry {",
"\t\tthis.css.load_from_data(\"#editor-view { font: 10px Monospace;}\");",
- "\t\t} catch (Error e) {}",
- "\t\t this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
- "\t\t ",
+ "\t} catch (Error e) {}",
+ "\tthis.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ "\t ",
"\t\t ",
"",
"\ttry { ",
// init method
this.css = new Gtk.CssProvider();
- try {
+ try {
this.css.load_from_data("#editor-view { font: 10px Monospace;}");
- } catch (Error e) {}
- this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
-
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
try {
"# JsRender.JsRender file" : "null",
"# Xcls_MainWindow main_window" : "",
"$ xns" : "Gtk",
+ "* init" : [
+ "{",
+ "",
+ "\tthis.css = new Gtk.CssProvider();",
+ "\ttry {",
+ "\t\tthis.css.load_from_data(\"#gtkview-view-layout { background-color: #ccc; }\");",
+ "\t} catch (Error e) {}",
+ "\tthis.el.get_style_context().add_provider(this.css,",
+ "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ "\t ",
+ " ",
+ " ",
+ " ",
+ "}",
+ ""
+ ],
+ "Gtk.CssProvider css" : "",
"Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
"Gtk.SourceSearchContext searchcontext" : "",
"bool hexpand" : true,
"xtype" : "Box"
}
],
+ "string name" : "gtkview-view-layout",
"xtype" : "Layout"
}
],
"* init" : [
"{",
" ",
- " var description = Pango.FontDescription.from_string(\"monospace\");",
- " description.set_size(8000);",
- " this.el.override_font(description);",
- "",
+ " ",
+ " \tthis.css = new Gtk.CssProvider();",
+ "\ttry {",
+ "\t\tthis.css.load_from_data(\"#gtkview-view { font: 10px Monospace;}\");",
+ "\t} catch (Error e) {}",
+ "\tthis.el.get_style_context().add_provider(this.css,",
+ "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ "\t ",
+ "\t\t ",
" this.loading = true;",
" var buf = this.el.get_buffer();",
" buf.notify.connect((ps) => {",
" "
],
"* pack" : "add",
+ "Gtk.CssProvider css" : "",
"bool allow_node_scroll" : true,
"bool loading" : true,
"gboolean editable" : false,
""
]
},
+ "string name" : "gtkview-view",
"xtype" : "SourceView",
"| string toString" : [
"() {",
{
"$ xns" : "Gtk",
"* init" : [
- "var description = Pango.FontDescription.from_string(\"monospace\");",
- "\tdescription.set_size(8000);",
- "\t this.el.override_font(description);",
+ " ",
+ "this.css = new Gtk.CssProvider();",
+ "\ttry {",
+ "\t\tthis.css.load_from_data(\"#gtkview-search-entry { font: 10px Monospace;}\");",
+ "\t} catch (Error e) {}",
+ "\tthis.el.get_style_context().add_provider(this.css,",
+ "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ "\t ",
+ "\t\t",
"",
""
],
+ "Gtk.CssProvider css" : "",
"bool hexpand" : true,
"id" : "search_entry",
"int width_request" : 300,
"} "
]
},
+ "string name" : "gtkview-search-entry",
"string placeholder_text" : "Press enter to search",
"xtype" : "SearchEntry",
"| void forwardSearch" : [
{
"$ xns" : "Gtk",
"* pack" : "add",
- "bool always_show_image" : true,
"bool visible" : false,
"id" : "search_results",
"listeners" : {
"}"
]
},
- "xtype" : "ImageMenuItem",
+ "xtype" : "MenuItem",
"| void updateResults" : [
"() {",
"\tthis.el.visible = true;",
" _this.container.el.set_size_request(w,h);",
" ",
" _this.view_layout.el.set_size(w,h); // should be baded on calc.. -- see update_scrolled.",
- " var rgba = Gdk.RGBA ();",
- " rgba.parse (\"#ccc\");",
- " _this.view_layout.el.override_background_color(Gtk.StateFlags.NORMAL, rgba);",
- " ",
- " ",
+ " ",
+ " ",
+ " ",
"\tvar x = new JsRender.NodeToGtk((Project.Gtk) file.project, file.tree);",
" var obj = x.munge() as Gtk.Widget;",
" this.lastObj = null;",
// my vars (def)
public Gtk.Widget lastObj;
+ public Gtk.CssProvider css;
public Xcls_MainWindow main_window;
public Gtk.SourceSearchContext searchcontext;
public int last_search_end;
child_0.ref();
this.el.pack_start ( child_0.el , true,true,0 );
+ // init method
+
+ {
+
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#gtkview-view-layout { background-color: #ccc; }");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+
+
+
+ }
+
//listeners
this.el.size_allocate.connect( (aloc) => {
_this.container.el.set_size_request(w,h);
_this.view_layout.el.set_size(w,h); // should be baded on calc.. -- see update_scrolled.
- var rgba = Gdk.RGBA ();
- rgba.parse ("#ccc");
- _this.view_layout.el.override_background_color(Gtk.StateFlags.NORMAL, rgba);
-
-
+
+
+
var x = new JsRender.NodeToGtk((Project.Gtk) file.project, file.tree);
var obj = x.munge() as Gtk.Widget;
this.lastObj = null;
// my vars (dec)
// set gobject values
+ this.el.name = "gtkview-view-layout";
var child_0 = new Xcls_container( _this );
child_0.ref();
this.el.put ( child_0.el , 10,10 );
public bool loading;
public string prop_selected;
public bool allow_node_scroll;
+ public Gtk.CssProvider css;
public JsRender.Node? node_selected;
// ctor
this.allow_node_scroll = true;
// set gobject values
+ this.el.name = "gtkview-view";
this.el.editable = false;
this.el.show_line_marks = true;
this.el.show_line_numbers = true;
{
- var description = Pango.FontDescription.from_string("monospace");
- description.set_size(8000);
- this.el.override_font(description);
-
+
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#gtkview-view { font: 10px Monospace;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+
this.loading = true;
var buf = this.el.get_buffer();
buf.notify.connect((ps) => {
// my vars (def)
+ public Gtk.CssProvider css;
// ctor
public Xcls_search_entry(Xcls_GtkView _owner )
// set gobject values
this.el.width_request = 300;
+ this.el.name = "gtkview-search-entry";
this.el.hexpand = true;
this.el.placeholder_text = "Press enter to search";
// init method
- var description = Pango.FontDescription.from_string("monospace");
- description.set_size(8000);
- this.el.override_font(description);
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#gtkview-search-entry { font: 10px Monospace;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
//listeners
this.el.key_press_event.connect( (event) => {
}
public class Xcls_search_results : Object
{
- public Gtk.ImageMenuItem el;
+ public Gtk.MenuItem el;
private Xcls_GtkView _this;
{
_this = _owner;
_this.search_results = this;
- this.el = new Gtk.ImageMenuItem();
+ this.el = new Gtk.MenuItem();
// my vars (dec)
// set gobject values
- this.el.always_show_image = true;
this.el.visible = false;
this.el.show();
"$ xns" : "Gtk",
"* pack" : "add",
"Xcls_ValaCompileErrors popup" : "",
- "bool always_show_image" : true,
"id" : "statusbar_errors",
"items" : [
{
"$ xns" : "Gtk",
- "* pack" : "set_image",
- "utf8 icon_name" : "dialog-error",
- "xtype" : "Image"
+ "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+ "int spacing" : 2,
+ "items" : [
+ {
+ "$ xns" : "Gtk",
+ "utf8 icon_name" : "dialog-error",
+ "xtype" : "Image"
+ },
+ {
+ "$ xns" : "Gtk",
+ "id" : "statusbar_errors_label",
+ "string label" : "Errors",
+ "xtype" : "Label"
+ }
+ ],
+ "xtype" : "Box"
}
],
"listeners" : {
"}"
]
},
- "string label" : "Errors",
- "xtype" : "ImageMenuItem",
+ "xtype" : "MenuItem",
"| void setNotices" : [
"(Json.Object nots, int qty) {",
- " this.el.show();",
- " this.el.label = qty.to_string() + \" Errors\";",
+ " this.el.show_all();",
+ " _this.statusbar_errors_label.el.label = qty.to_string() + \" Errors\";",
" this.notices = nots;",
"",
"}",
"$ xns" : "Gtk",
"* pack" : "add",
"Xcls_ValaCompileErrors popup" : "",
- "bool always_show_image" : true,
"id" : "statusbar_warnings",
"items" : [
{
"$ xns" : "Gtk",
- "* pack" : "set_image",
- "utf8 icon_name" : "dialog-warning",
- "xtype" : "Image"
+ "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+ "int spacing" : 2,
+ "items" : [
+ {
+ "$ xns" : "Gtk",
+ "utf8 icon_name" : "dialog-warning",
+ "xtype" : "Image"
+ },
+ {
+ "$ xns" : "Gtk",
+ "id" : "statusbar_warnings_label",
+ "string label" : "Errors",
+ "xtype" : "Label"
+ }
+ ],
+ "xtype" : "Box"
}
],
"listeners" : {
"}"
]
},
- "string label" : "Warnings",
- "xtype" : "ImageMenuItem",
+ "xtype" : "MenuItem",
"| void setNotices" : [
"(Json.Object nots, int qty) {",
- " this.el.show();",
- " this.el.label = qty.to_string() + \" Warnings\";",
+ " this.el.show_all();",
+ " _this.statusbar_warnings_label.el.label = qty.to_string() + \" Warnings\";",
" this.notices = nots;",
"",
"}",
"$ xns" : "Gtk",
"* pack" : "add",
"Xcls_ValaCompileErrors popup" : "",
- "bool always_show_image" : true,
"id" : "statusbar_depricated",
"items" : [
{
"$ xns" : "Gtk",
- "* pack" : "set_image",
- "utf8 icon_name" : "dialog-information",
- "xtype" : "Image"
+ "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+ "int spacing" : 2,
+ "items" : [
+ {
+ "$ xns" : "Gtk",
+ "utf8 icon_name" : "dialog-information",
+ "xtype" : "Image"
+ },
+ {
+ "$ xns" : "Gtk",
+ "id" : "statusbar_depricated_label",
+ "string label" : "Errors",
+ "xtype" : "Label"
+ }
+ ],
+ "xtype" : "Box"
}
],
"listeners" : {
"}"
]
},
- "string label" : "Depricated",
- "xtype" : "ImageMenuItem",
+ "xtype" : "MenuItem",
"| void setNotices" : [
"(Json.Object nots, int qty) {",
- " this.el.show();",
- " this.el.label = qty.to_string() + \" Depricated\";",
+ " this.el.show_all();",
+ " _this.statusbar_depricated_label.el.label = qty.to_string() + \" Depricated\";",
" this.notices = nots;",
"",
"}",
"$ xns" : "Gtk",
"* pack" : "add",
"Xcls_ValaCompileErrors popup" : "",
- "bool always_show_image" : true,
"id" : "statusbar_run",
"items" : [
{
"$ xns" : "Gtk",
- "* pack" : "set_image",
- "utf8 icon_name" : "media-playback-start",
- "xtype" : "Image"
+ "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+ "int spacing" : 2,
+ "items" : [
+ {
+ "$ xns" : "Gtk",
+ "utf8 icon_name" : "media-playback-start",
+ "xtype" : "Image"
+ },
+ {
+ "$ xns" : "Gtk",
+ "string label" : "Run",
+ "xtype" : "Label"
+ }
+ ],
+ "xtype" : "Box"
}
],
"listeners" : {
"}"
]
},
- "string label" : "Run",
- "xtype" : "ImageMenuItem"
+ "xtype" : "MenuItem"
}
],
"xtype" : "MenuBar"
public Xcls_statusbar statusbar;
public Xcls_statusbar_compilestatus_label statusbar_compilestatus_label;
public Xcls_statusbar_errors statusbar_errors;
+ public Xcls_statusbar_errors_label statusbar_errors_label;
public Xcls_statusbar_warnings statusbar_warnings;
+ public Xcls_statusbar_warnings_label statusbar_warnings_label;
public Xcls_statusbar_depricated statusbar_depricated;
+ public Xcls_statusbar_depricated_label statusbar_depricated_label;
public Xcls_statusbar_run statusbar_run;
public Xcls_statusbar_compile_spinner statusbar_compile_spinner;
public class Xcls_statusbar_errors : Object
{
- public Gtk.ImageMenuItem el;
+ public Gtk.MenuItem el;
private Xcls_MainWindow _this;
{
_this = _owner;
_this.statusbar_errors = this;
- this.el = new Gtk.ImageMenuItem();
+ this.el = new Gtk.MenuItem();
// my vars (dec)
this.notices = new Json.Object();
// set gobject values
- this.el.always_show_image = true;
- this.el.label = "Errors";
- var child_0 = new Xcls_Image35( _this );
+ var child_0 = new Xcls_Box35( _this );
child_0.ref();
- this.el.set_image ( child_0.el );
+ this.el.add( child_0.el );
this.el.show();
//listeners
// user defined functions
public void setNotices (Json.Object nots, int qty) {
- this.el.show();
- this.el.label = qty.to_string() + " Errors";
+ this.el.show_all();
+ _this.statusbar_errors_label.el.label = qty.to_string() + " Errors";
this.notices = nots;
}
}
- public class Xcls_Image35 : Object
+ public class Xcls_Box35 : Object
+ {
+ public Gtk.Box el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box35(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_Image36( _this );
+ child_0.ref();
+ this.el.add( child_0.el );
+ var child_1 = new Xcls_statusbar_errors_label( _this );
+ child_1.ref();
+ this.el.add( child_1.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Image36 : Object
{
public Gtk.Image el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Image35(Xcls_MainWindow _owner )
+ public Xcls_Image36(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
+ public class Xcls_statusbar_errors_label : Object
+ {
+ public Gtk.Label el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_statusbar_errors_label(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ _this.statusbar_errors_label = this;
+ this.el = new Gtk.Label( "Errors" );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
public class Xcls_statusbar_warnings : Object
{
- public Gtk.ImageMenuItem el;
+ public Gtk.MenuItem el;
private Xcls_MainWindow _this;
{
_this = _owner;
_this.statusbar_warnings = this;
- this.el = new Gtk.ImageMenuItem();
+ this.el = new Gtk.MenuItem();
// my vars (dec)
this.notices = new Json.Object();
// set gobject values
- this.el.always_show_image = true;
- this.el.label = "Warnings";
- var child_0 = new Xcls_Image37( _this );
+ var child_0 = new Xcls_Box39( _this );
child_0.ref();
- this.el.set_image ( child_0.el );
+ this.el.add( child_0.el );
this.el.show();
//listeners
// user defined functions
public void setNotices (Json.Object nots, int qty) {
- this.el.show();
- this.el.label = qty.to_string() + " Warnings";
+ this.el.show_all();
+ _this.statusbar_warnings_label.el.label = qty.to_string() + " Warnings";
this.notices = nots;
}
}
- public class Xcls_Image37 : Object
+ public class Xcls_Box39 : Object
+ {
+ public Gtk.Box el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box39(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_Image40( _this );
+ child_0.ref();
+ this.el.add( child_0.el );
+ var child_1 = new Xcls_statusbar_warnings_label( _this );
+ child_1.ref();
+ this.el.add( child_1.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Image40 : Object
{
public Gtk.Image el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Image37(Xcls_MainWindow _owner )
+ public Xcls_Image40(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
+ public class Xcls_statusbar_warnings_label : Object
+ {
+ public Gtk.Label el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_statusbar_warnings_label(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ _this.statusbar_warnings_label = this;
+ this.el = new Gtk.Label( "Errors" );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
public class Xcls_statusbar_depricated : Object
{
- public Gtk.ImageMenuItem el;
+ public Gtk.MenuItem el;
private Xcls_MainWindow _this;
{
_this = _owner;
_this.statusbar_depricated = this;
- this.el = new Gtk.ImageMenuItem();
+ this.el = new Gtk.MenuItem();
// my vars (dec)
this.notices = new Json.Object();
// set gobject values
- this.el.always_show_image = true;
- this.el.label = "Depricated";
- var child_0 = new Xcls_Image39( _this );
+ var child_0 = new Xcls_Box43( _this );
child_0.ref();
- this.el.set_image ( child_0.el );
+ this.el.add( child_0.el );
this.el.show();
//listeners
// user defined functions
public void setNotices (Json.Object nots, int qty) {
- this.el.show();
- this.el.label = qty.to_string() + " Depricated";
+ this.el.show_all();
+ _this.statusbar_depricated_label.el.label = qty.to_string() + " Depricated";
this.notices = nots;
}
}
- public class Xcls_Image39 : Object
+ public class Xcls_Box43 : Object
+ {
+ public Gtk.Box el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box43(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_Image44( _this );
+ child_0.ref();
+ this.el.add( child_0.el );
+ var child_1 = new Xcls_statusbar_depricated_label( _this );
+ child_1.ref();
+ this.el.add( child_1.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Image44 : Object
{
public Gtk.Image el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Image39(Xcls_MainWindow _owner )
+ public Xcls_Image44(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
+ public class Xcls_statusbar_depricated_label : Object
+ {
+ public Gtk.Label el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_statusbar_depricated_label(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ _this.statusbar_depricated_label = this;
+ this.el = new Gtk.Label( "Errors" );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
public class Xcls_statusbar_run : Object
{
- public Gtk.ImageMenuItem el;
+ public Gtk.MenuItem el;
private Xcls_MainWindow _this;
{
_this = _owner;
_this.statusbar_run = this;
- this.el = new Gtk.ImageMenuItem();
+ this.el = new Gtk.MenuItem();
// my vars (dec)
// set gobject values
- this.el.always_show_image = true;
- this.el.label = "Run";
- var child_0 = new Xcls_Image41( _this );
+ var child_0 = new Xcls_Box47( _this );
child_0.ref();
- this.el.set_image ( child_0.el );
+ this.el.add( child_0.el );
this.el.show();
//listeners
// user defined functions
}
- public class Xcls_Image41 : Object
+ public class Xcls_Box47 : Object
+ {
+ public Gtk.Box el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Box47(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 2 );
+
+ // my vars (dec)
+
+ // set gobject values
+ var child_0 = new Xcls_Image48( _this );
+ child_0.ref();
+ this.el.add( child_0.el );
+ var child_1 = new Xcls_Label49( _this );
+ child_1.ref();
+ this.el.add( child_1.el );
+ }
+
+ // user defined functions
+ }
+ public class Xcls_Image48 : Object
{
public Gtk.Image el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Image41(Xcls_MainWindow _owner )
+ public Xcls_Image48(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
+ public class Xcls_Label49 : Object
+ {
+ public Gtk.Label el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Label49(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Label( "Run" );
+
+ // my vars (dec)
+
+ // set gobject values
+ }
+
+ // user defined functions
+ }
+
+
public class Xcls_statusbar_compile_spinner : Object
" this.el.set_size_request(150,-1);",
" // set_reorderable: [1]",
" ",
- " var description = new Pango.FontDescription();",
- " description.set_size(10000);",
- " this.el.override_font(description);",
+ " ",
+ "\tthis.css = new Gtk.CssProvider();",
+ "\ttry {",
+ "\t\tthis.css.load_from_data(\"#popover-add-object-view { font-szie: 12px;}\");",
+ "\t} catch (Error e) {}",
+ "\tthis.el.get_style_context().add_provider(this.css,",
+ "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ "\t ",
+ "\t ",
" ",
" var selection = this.el.get_selection();",
" selection.set_mode( Gtk.SelectionMode.SINGLE);",
""
],
"* pack" : "add",
+ "Gtk.CssProvider css" : "",
"items" : [
{
"$ columns" : "typeof(string),typeof(string),typeof(Gdk.Pixbuf)",
"}"
]
},
+ "string name" : "popover-add-object-view",
"xtype" : "TreeView"
}
],
// my vars (def)
public string dragData;
+ public Gtk.CssProvider css;
// ctor
public Xcls_TreeView3(Xcls_PopoverAddObject _owner )
// my vars (dec)
// set gobject values
+ this.el.name = "popover-add-object-view";
this.el.enable_tree_lines = true;
this.el.headers_visible = true;
var child_0 = new Xcls_model( _this );
this.el.set_size_request(150,-1);
// set_reorderable: [1]
- var description = new Pango.FontDescription();
- description.set_size(10000);
- this.el.override_font(description);
+
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#popover-add-object-view { font-szie: 12px;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+
var selection = this.el.get_selection();
selection.set_mode( Gtk.SelectionMode.SINGLE);
"$ xns" : "Gtk",
"* init" : [
"{ ",
- " var description = new Pango.FontDescription();",
- " description.set_size(10000);",
- " this.el.override_font(description); ",
+ " ",
+ "\tthis.css = new Gtk.CssProvider();",
+ "\ttry {",
+ "\t\tthis.css.load_from_data(\"#popover-add-prop-view { font-sze: 12px;}\");",
+ "\t} catch (Error e) {}",
+ " this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ "\t ",
+ "\t ",
" ",
" this.el.get_selection().set_mode( Gtk.SelectionMode.SINGLE);",
" ",
""
],
"* pack" : "add",
+ "Gtk.CssProvider css" : "",
"items" : [
{
"$ columns" : [
" "
]
},
+ "string name" : "popover-add-prop-view",
"tooltip_column" : 2,
"xtype" : "TreeView"
}
// my vars (def)
+ public Gtk.CssProvider css;
// ctor
public Xcls_TreeView3(Xcls_PopoverAddProp _owner )
// my vars (dec)
// set gobject values
+ this.el.name = "popover-add-prop-view";
this.el.tooltip_column = 2;
this.el.enable_tree_lines = true;
this.el.headers_visible = true;
// init method
{
- var description = new Pango.FontDescription();
- description.set_size(10000);
- this.el.override_font(description);
+
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#popover-add-prop-view { font-sze: 12px;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+
this.el.get_selection().set_mode( Gtk.SelectionMode.SINGLE);
{
_this = _owner;
_this.model = this;
- this.el = new Gtk.ListStore( 6,
+ this.el = new Gtk.ListStore.newv( {
typeof(JsRender.NodeProp), // 0 real key
typeof(string), // 1 text display
typeof(string), // 2 tooltip
typeof(string), // 4 prop type
typeof(string) // 5 from interface
- );
+ } );
// my vars (dec)
"$ headers_visible" : true,
"$ xns" : "Gtk",
"* init" : [
- " var description = new Pango.FontDescription();",
- " description.set_size(9000);",
- " this.el.override_font(description); ",
- " ",
- " var selection = this.el.get_selection();",
- " selection.set_mode( Gtk.SelectionMode.SINGLE);",
- " ",
+ " ",
+ " ",
+ "this.css = new Gtk.CssProvider();",
+ "try {",
+ "\tthis.css.load_from_data(\"#popover-files-view { font-size: 10px;}\");",
+ "} catch (Error e) {}",
+ "this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ " ",
+ " ",
+ " ",
+ " ",
+ "var selection = this.el.get_selection();",
+ "selection.set_mode( Gtk.SelectionMode.SINGLE);",
+ "",
"",
" ",
" ",
" "
],
"* pack" : "add",
+ "Gtk.CssProvider css" : "",
"id" : "view",
"items" : [
{
"} "
]
},
+ "string name" : "popover-files-view",
"xtype" : "TreeView"
}
],
{
"$ xns" : "Gtk",
"* init" : [
- "var description = Pango.FontDescription.from_string(\"monospace\");",
- "\tdescription.set_size(8000);",
- "\t this.el.override_font(description);",
+ " ",
"",
+ "this.css = new Gtk.CssProvider();",
+ "try {",
+ "\tthis.css.load_from_data(\"#popover-files-iconsearch { font: monospace 10px;}\");",
+ "} catch (Error e) {}",
+ "this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ " ",
+ " ",
""
],
+ "Gtk.CssProvider css" : "",
"bool hexpand" : true,
"id" : "iconsearch",
"listeners" : {
""
]
},
+ "string name" : "popover-files-iconsearch",
"string placeholder_text" : "type to filter results",
"xtype" : "SearchEntry"
}
"$ headers_visible" : true,
"$ xns" : "Gtk",
"* init" : [
- " var description = new Pango.FontDescription();",
- " description.set_size(9000);",
- " this.el.override_font(description); ",
- " ",
- " var selection = this.el.get_selection();",
- " selection.set_mode( Gtk.SelectionMode.SINGLE);",
+ "",
+ "this.css = new Gtk.CssProvider();",
+ "try {",
+ "\tthis.css.load_from_data(\"#popover-files-fileview { font-size: 12px;}\");",
+ "} catch (Error e) {}",
+ "this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ " ",
+ " ",
+ " ",
" ",
+ " ",
+ "var selection = this.el.get_selection();",
+ "selection.set_mode( Gtk.SelectionMode.SINGLE);",
"",
- " ",
- " ",
- " "
+ "",
+ "",
+ "",
+ ""
],
"* pack" : "add",
+ "Gtk.CssProvider css" : "",
"bool activate_on_single_click" : false,
"bool expand" : true,
"id" : "fileview",
"}"
]
},
+ "string name" : "popover-files-fileview",
"xtype" : "TreeView"
}
],
// my vars (def)
+ public Gtk.CssProvider css;
// ctor
public Xcls_view(Xcls_PopoverFiles _owner )
// my vars (dec)
// set gobject values
+ this.el.name = "popover-files-view";
this.el.enable_tree_lines = true;
this.el.headers_visible = true;
var child_0 = new Xcls_model( _this );
// init method
- var description = new Pango.FontDescription();
- description.set_size(9000);
- this.el.override_font(description);
-
- var selection = this.el.get_selection();
- selection.set_mode( Gtk.SelectionMode.SINGLE);
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#popover-files-view { font-size: 10px;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+
+
+
+ var selection = this.el.get_selection();
+ selection.set_mode( Gtk.SelectionMode.SINGLE);
//listeners
this.el.cursor_changed.connect( () => {
// my vars (def)
+ public Gtk.CssProvider css;
// ctor
public Xcls_iconsearch(Xcls_PopoverFiles _owner )
// my vars (dec)
// set gobject values
+ this.el.name = "popover-files-iconsearch";
this.el.hexpand = true;
this.el.placeholder_text = "type to filter results";
// init method
- var description = Pango.FontDescription.from_string("monospace");
- description.set_size(8000);
- this.el.override_font(description);
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#popover-files-iconsearch { font: monospace 10px;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
//listeners
this.el.changed.connect( ( ) => {
// my vars (def)
+ public Gtk.CssProvider css;
// ctor
public Xcls_fileview(Xcls_PopoverFiles _owner )
// my vars (dec)
// set gobject values
+ this.el.name = "popover-files-fileview";
this.el.activate_on_single_click = false;
this.el.expand = true;
this.el.enable_tree_lines = true;
// init method
- var description = new Pango.FontDescription();
- description.set_size(9000);
- this.el.override_font(description);
-
- var selection = this.el.get_selection();
- selection.set_mode( Gtk.SelectionMode.SINGLE);
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#popover-files-fileview { font-size: 12px;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+
+
+
+
+ var selection = this.el.get_selection();
+ selection.set_mode( Gtk.SelectionMode.SINGLE);
//listeners
this.el.row_activated.connect( (path, col) => {
"$ xns" : "Gtk",
"* pack" : "pack_start,false,false,4",
"id" : "grid",
- "int margin_left" : 4,
- "int margin_right" : 4,
+ "int margin_end" : 4,
+ "int margin_start" : 4,
"items" : [
{
"$ xns" : "Gtk",
"$ xns" : "Gtk",
"* init" : [
" ",
- " var description = Pango.FontDescription.from_string(\"monospace\");",
- " description.set_size(9000);",
- " this.el.override_font(description);"
+ " ",
+ "this.css = new Gtk.CssProvider();",
+ "try {",
+ "\tthis.css.load_from_data(\"#roo-project-settings-view{ font: monospace 10px;}\");",
+ "} catch (Error e) {}",
+ "this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);",
+ " ",
+ " "
],
"* pack" : "add",
+ "Gtk.CssProvider css" : "",
"id" : "view",
"listeners" : {
"key_release_event" : [
"}"
]
},
+ "string name" : "roo-project-settings-view",
"xtype" : "SourceView"
}
],
// my vars (dec)
// set gobject values
- this.el.margin_right = 4;
- this.el.margin_left = 4;
+ this.el.margin_end = 4;
+ this.el.margin_start = 4;
this.el.row_spacing = 2;
var child_0 = new Xcls_Label8( _this );
child_0.ref();
// my vars (def)
+ public Gtk.CssProvider css;
// ctor
public Xcls_view(Xcls_RooProjectSettings _owner )
// my vars (dec)
// set gobject values
+ this.el.name = "roo-project-settings-view";
// init method
- var description = Pango.FontDescription.from_string("monospace");
- description.set_size(9000);
- this.el.override_font(description);
+ this.css = new Gtk.CssProvider();
+ try {
+ this.css.load_from_data("#roo-project-settings-view{ font: monospace 10px;}");
+ } catch (Error e) {}
+ this.el.get_style_context().add_provider(this.css,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
//listeners
this.el.key_release_event.connect( ( event) =>{