"src/JsRender/NodeWriter.vala",
"src/JsRender/NodeToValaExtended.vala",
"src/JsRender/NodeToValaWrapped.vala",
- "src/Builder4/MainWindow.bjs"
+ "src/Builder4/MainWindow.bjs",
+ "src/Settings.vala"
]
}
],
* error popups with tree of errors, now default to expanding current file
* row detection for drag/drop + contect menu replaced with pick/ bounds and row counting (far more reliable)
+ * css moved to resource
+ * editor resize font now centralized and synced on all windows
-- Alan <alan@office.roojs.com> Wed, 07 Feb 2024 09:51:44 +0800
roobuilder_resources = gnome.compile_resources(
'roobuilder-resources', 'resources/gresources.xml',
- source_dir: [ 'resources/glade-icons', 'resources/html', 'resources/data', 'resources/Editors' ],
+ source_dir: [ 'resources/glade-icons', 'resources/html', 'resources/data', 'resources/css', 'resources/Editors' ],
c_name: 'roobuilder_resources'
)
'src/JsRender/NodeToValaExtended.vala',
'src/JsRender/NodeToValaWrapped.vala',
'src/Builder4/MainWindow.vala',
+ 'src/Settings.vala',
])
+++ /dev/null
-public_icons_themes = hicolor
-
-iconsdir = $(datadir)/icons/hicolor
-
-public_icon_dirs = \
- 16x16/apps \
- 22x22/apps \
- 24x24/apps \
- 32x32/apps \
- 48x48/apps
-
-public_icons = \
- 16x16/apps/roobuilder.png \
- 22x22/apps/roobuilder.png \
- 24x24/apps/roobuilder.png \
- 32x32/apps/roobuilder.png \
- 48x48/apps/roobuilder.png
-
-gtk_update_icon_cache = gtk-update-icon-cache -f -t
-
-EXTRA_DIST = \
- $(public_icons)
-
-install-data-hook: update-icon-cache
-uninstall-hook: update-icon-cache
-
-
-
-update-icon-cache:
- @-if test -z "$(DESTDIR)"; then \
- echo "Updating Gtk icon cache."; \
- for theme in $(public_icons_themes); do \
- $(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
- done; \
- else \
- echo "*** Icon cache not updated. After (un)install, run this:"; \
- for theme in $(public_icons_themes); do \
- echo "*** $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
- done; \
- fi
-
-install-icons:
- for icon in $(public_icon_dirs); do \
- mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$$icon; \
- $(INSTALL_DATA) $(srcdir)/$$icon/roobuilder.png $(DESTDIR)$(datadir)/icons/hicolor/$$icon/roobuilder.png; \
- done;
-
-uninstall-icons:
- -for icon in $(public_icons_dirs); do \
- rm -f $(DESTDIR)$(datadir)/icons/hicolor/$$icon/roobuilder.png; \
- done;
-
-
-install-data-local: install-icons update-icon-cache
-
-uninstall-local: uninstall-icons update-icon-cache
-
-
--- /dev/null
+#left-tree-view {
+ font-size: 12px;
+}
+
+.drag-over {
+ background-color:#88a3bc;
+}
+.drag-below {
+ border-bottom-width: 5px;
+ border-bottom-style: solid;
+ border-bottom-color: #88a3bc;
+}
+.drag-above {
+ border-top-width: 5px;
+ border-top-style: solid;
+ border-top-color: #88a3bc;
+}
+.node-err {
+ border-top-width: 5px;
+ border-top-style: solid;
+ border-top-color: red;
+ border-bottom-width: 5px;
+ border-bottom-style: solid;
+ border-bottom-color: red;
+}
+.node-warn {
+ border-top-width: 5px;
+ border-top-style: solid;
+ border-top-color: #ABF4EB;
+ border-bottom-width: 5px;
+ border-bottom-style: solid;
+ border-bottom-color: #ABF4EB;
+}
+.node-depr {
+ border-top-width: 5px;
+ border-top-style: solid;
+ border-top-color: #EEA9FF;
+ border-bottom-width: 5px;
+ border-bottom-style: solid;
+ border-bottom-color: #EEA9FF;
+}
+
+#left-tree-view indent {
+ -gtk-icon-size : 2px;
+}
+#left-tree-view indent:nth-last-child(2) {
+ min-width: 24px;
+}
+
+
+#project-list {
+ font-size: 12px;
+}
+
+
+#leftprops-view {
+ font-size: 12px;
+}
+
+#leftprops-view dropdown button {
+ min-height: 16px;
+ outline-offset : 0;
+}
+#leftprops-view cell dropdown label {
+ padding-top:0px;
+ padding-bottom:0px;
+}
+
+#leftprops-view cell {
+ padding-top:2px;
+ padding-bottom:2px;
+}
+
+#leftprops-view cell label,
+#leftprops-view cell editablelable {
+ padding-top:4px;
+ padding-bottom:4px;
+}
+
+#compile-results-view {
+ font: 10px monospace ;
+}
+
+#gtkview-search-entry {
+ font: 10px monospace ;
+}
+#gtkview-view-layout {
+ background-color: #ccc;
+}
+#roo-search-entry {
+ background-color: #ccc;
+}
\ No newline at end of file
<gresource prefix="/data">
<file>roodata.json</file>
</gresource>
+ <gresource prefix="/css">
+ <file>roobuilder.css</file>
+ </gresource>
<gresource prefix="/Editors">
</gresource>
</gresources>
-
+ /*
public class AppSettings : Object
{
}
-
+ */
public static BuilderApplication application = null;
{ "application/x-rootwindow-drop", 0, Target.ROOTWIN }
};
*/
- public AppSettings settings = null;
+ //public AppSettings settings = null;
configDirectory();
- this.settings = AppSettings.factory();
+ // this.settings = AppSettings.factory();
var opt_context = new OptionContext ("Application Builder");
try {
}
+ public static Settings settings;
+ protected override void activate ()
+ {
+ var css = new Gtk.CssProvider();
+ css.load_from_resource("/css/roobuilder.css");
+
+
+ Gtk.StyleContext.add_provider_for_display(
+ Gdk.Display.get_default(),
+ css ,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
+ );
+ BuilderApplication.settings = new Settings();
+
+ var w = new Xcls_MainWindow();
+ w.initChildren();
+ BuilderApplication.addWindow(w);
+
+ // it looks like showall after children causes segfault on ubuntu 14.4
+ w.windowstate.init();
+ // w.windowstate.showPopoverFiles(w.open_projects_btn.el, null, false);
+ w.show();
+
+ }
public static BuilderApplication singleton( string[]? args)
{
"items" : [
{
"$ xns" : "Gtk",
- "* init" : [
- "{",
- " ",
- "\tthis.css = new Gtk.CssProvider();",
- " ",
- "\tthis.css.load_from_string(\"",
- "\t\t#project-list { font-size: 12px;}",
- "\t\");",
- "",
- "\tGtk.StyleContext.add_provider_for_display(",
- "\t\tthis.el.get_display(),",
- "\t\tthis.css,",
- "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- "\t);",
- "\t\t",
- " ",
- "}",
- ""
- ],
"* prop" : "child",
"Gtk.CssProvider css" : "",
"id" : "project_list",
this.el.default_height = 550;
this.el.default_width = 1000;
this.el.modal = true;
- var child_1 = new Xcls_Box2( _this );
+ var child_1 = new Xcls_Box1( _this );
this.el.child = child_1.el;
- var child_2 = new Xcls_HeaderBar44( _this );
+ var child_2 = new Xcls_HeaderBar43( _this );
this.el.titlebar = child_2.el;
}
}
- public class Xcls_Box2 : Object
+ public class Xcls_Box1 : Object
{
public Gtk.Box el;
private DialogFiles _this;
public bool expand;
// ctor
- public Xcls_Box2(DialogFiles _owner )
+ public Xcls_Box1(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
this.el.margin_start = 10;
this.el.margin_bottom = 10;
this.el.margin_top = 10;
- var child_1 = new Xcls_Box3( _this );
+ var child_1 = new Xcls_Box2( _this );
child_1.ref();
this.el.append( child_1.el );
new Xcls_mainpane( _this );
// user defined functions
}
- public class Xcls_Box3 : Object
+ public class Xcls_Box2 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box3(DialogFiles _owner )
+ public Xcls_Box2(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// set gobject values
this.el.name = "project-list";
- var child_2 = new Xcls_ColumnViewColumn12( _this );
+ var child_2 = new Xcls_ColumnViewColumn11( _this );
child_2.ref();
this.el.append_column ( child_2.el );
-
- // init method
-
- {
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string("
- #project-list { font-size: 12px;}
- ");
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
-
- }
}
// user defined functions
_this = _owner;
_this.projectsort = this;
new Xcls_projectmodel( _this );
- var child_2 = new Xcls_StringSorter10( _this );
+ var child_2 = new Xcls_StringSorter9( _this );
child_2.ref();
this.el = new Gtk.SortListModel( _this.projectmodel.el, child_2.el );
}
}
- public class Xcls_StringSorter10 : Object
+ public class Xcls_StringSorter9 : Object
{
public Gtk.StringSorter el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_StringSorter10(DialogFiles _owner )
+ public Xcls_StringSorter9(DialogFiles _owner )
{
_this = _owner;
- var child_1 = new Xcls_PropertyExpression11( _this );
+ var child_1 = new Xcls_PropertyExpression10( _this );
child_1.ref();
this.el = new Gtk.StringSorter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression11 : Object
+ public class Xcls_PropertyExpression10 : Object
{
public Gtk.PropertyExpression el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression11(DialogFiles _owner )
+ public Xcls_PropertyExpression10(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(Project.Project), null, "name" );
- public class Xcls_ColumnViewColumn12 : Object
+ public class Xcls_ColumnViewColumn11 : Object
{
public Gtk.ColumnViewColumn el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_ColumnViewColumn12(DialogFiles _owner )
+ public Xcls_ColumnViewColumn11(DialogFiles _owner )
{
_this = _owner;
- var child_1 = new Xcls_SignalListItemFactory13( _this );
+ var child_1 = new Xcls_SignalListItemFactory12( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "Project", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory13 : Object
+ public class Xcls_SignalListItemFactory12 : Object
{
public Gtk.SignalListItemFactory el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory13(DialogFiles _owner )
+ public Xcls_SignalListItemFactory12(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
// set gobject values
this.el.position = 200;
this.el.visible = false;
- var child_1 = new Xcls_Box15( _this );
+ var child_1 = new Xcls_Box14( _this );
this.el.end_child = child_1.el;
new Xcls_treescroll( _this );
this.el.start_child = _this.treescroll.el;
// user defined functions
}
- public class Xcls_Box15 : Object
+ public class Xcls_Box14 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box15(DialogFiles _owner )
+ public Xcls_Box14(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// set gobject values
this.el.hexpand = true;
this.el.vexpand = true;
- var child_1 = new Xcls_Box16( _this );
+ var child_1 = new Xcls_Box15( _this );
child_1.ref();
this.el.append( child_1.el );
new Xcls_iconscroll( _this );
// user defined functions
}
- public class Xcls_Box16 : Object
+ public class Xcls_Box15 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box16(DialogFiles _owner )
+ public Xcls_Box15(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
_this = _owner;
_this.gridview = this;
new Xcls_iconsel( _this );
- var child_2 = new Xcls_SignalListItemFactory29( _this );
+ var child_2 = new Xcls_SignalListItemFactory28( _this );
child_2.ref();
this.el = new Gtk.GridView( _this.iconsel.el, child_2.el );
// my vars (dec)
// set gobject values
- var child_3 = new Xcls_GestureClick20( _this );
+ var child_3 = new Xcls_GestureClick19( _this );
child_3.ref();
this.el.add_controller( child_3.el );
}
// user defined functions
}
- public class Xcls_GestureClick20 : Object
+ public class Xcls_GestureClick19 : Object
{
public Gtk.GestureClick el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_GestureClick20(DialogFiles _owner )
+ public Xcls_GestureClick19(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.GestureClick();
{
_this = _owner;
_this.iconsel = this;
- var child_1 = new Xcls_FilterListModel22( _this );
+ var child_1 = new Xcls_FilterListModel21( _this );
child_1.ref();
this.el = new Gtk.SingleSelection( child_1.el );
}
}
- public class Xcls_FilterListModel22 : Object
+ public class Xcls_FilterListModel21 : Object
{
public Gtk.FilterListModel el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_FilterListModel22(DialogFiles _owner )
+ public Xcls_FilterListModel21(DialogFiles _owner )
{
_this = _owner;
new Xcls_gridsort( _this );
_this = _owner;
_this.gridsort = this;
new Xcls_gridmodel( _this );
- var child_2 = new Xcls_StringSorter25( _this );
+ var child_2 = new Xcls_StringSorter24( _this );
child_2.ref();
this.el = new Gtk.SortListModel( _this.gridmodel.el, child_2.el );
}
}
- public class Xcls_StringSorter25 : Object
+ public class Xcls_StringSorter24 : Object
{
public Gtk.StringSorter el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_StringSorter25(DialogFiles _owner )
+ public Xcls_StringSorter24(DialogFiles _owner )
{
_this = _owner;
- var child_1 = new Xcls_PropertyExpression26( _this );
+ var child_1 = new Xcls_PropertyExpression25( _this );
child_1.ref();
this.el = new Gtk.StringSorter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression26 : Object
+ public class Xcls_PropertyExpression25 : Object
{
public Gtk.PropertyExpression el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression26(DialogFiles _owner )
+ public Xcls_PropertyExpression25(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(JsRender.JsRender), null, "name" );
{
_this = _owner;
_this.iconsearch = this;
- var child_1 = new Xcls_PropertyExpression28( _this );
+ var child_1 = new Xcls_PropertyExpression27( _this );
child_1.ref();
this.el = new Gtk.StringFilter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression28 : Object
+ public class Xcls_PropertyExpression27 : Object
{
public Gtk.PropertyExpression el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression28(DialogFiles _owner )
+ public Xcls_PropertyExpression27(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(JsRender.JsRender), null, "name" );
- public class Xcls_SignalListItemFactory29 : Object
+ public class Xcls_SignalListItemFactory28 : Object
{
public Gtk.SignalListItemFactory el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory29(DialogFiles _owner )
+ public Xcls_SignalListItemFactory28(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
// set gobject values
this.el.name = "file-list";
- var child_2 = new Xcls_GestureClick32( _this );
+ var child_2 = new Xcls_GestureClick31( _this );
child_2.ref();
this.el.add_controller( child_2.el );
new Xcls_name( _this );
// user defined functions
}
- public class Xcls_GestureClick32 : Object
+ public class Xcls_GestureClick31 : Object
{
public Gtk.GestureClick el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_GestureClick32(DialogFiles _owner )
+ public Xcls_GestureClick31(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.GestureClick();
{
_this = _owner;
_this.treeselmodel = this;
- var child_1 = new Xcls_FilterListModel34( _this );
+ var child_1 = new Xcls_FilterListModel33( _this );
child_1.ref();
this.el = new Gtk.SingleSelection( child_1.el );
return (JsRender.JsRender) tr.item;
}
}
- public class Xcls_FilterListModel34 : Object
+ public class Xcls_FilterListModel33 : Object
{
public Gtk.FilterListModel el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_FilterListModel34(DialogFiles _owner )
+ public Xcls_FilterListModel33(DialogFiles _owner )
{
_this = _owner;
new Xcls_treelistsort( _this );
_this = _owner;
_this.treelistsort = this;
new Xcls_treelistmodel( _this );
- var child_2 = new Xcls_TreeListRowSorter38( _this );
+ var child_2 = new Xcls_TreeListRowSorter37( _this );
child_2.ref();
this.el = new Gtk.SortListModel( _this.treelistmodel.el, child_2.el );
}
- public class Xcls_TreeListRowSorter38 : Object
+ public class Xcls_TreeListRowSorter37 : Object
{
public Gtk.TreeListRowSorter el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_TreeListRowSorter38(DialogFiles _owner )
+ public Xcls_TreeListRowSorter37(DialogFiles _owner )
{
_this = _owner;
- var child_1 = new Xcls_StringSorter39( _this );
+ var child_1 = new Xcls_StringSorter38( _this );
child_1.ref();
this.el = new Gtk.TreeListRowSorter( child_1.el );
// user defined functions
}
- public class Xcls_StringSorter39 : Object
+ public class Xcls_StringSorter38 : Object
{
public Gtk.StringSorter el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_StringSorter39(DialogFiles _owner )
+ public Xcls_StringSorter38(DialogFiles _owner )
{
_this = _owner;
- var child_1 = new Xcls_PropertyExpression40( _this );
+ var child_1 = new Xcls_PropertyExpression39( _this );
child_1.ref();
this.el = new Gtk.StringSorter( child_1.el );
// user defined functions
}
- public class Xcls_PropertyExpression40 : Object
+ public class Xcls_PropertyExpression39 : Object
{
public Gtk.PropertyExpression el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_PropertyExpression40(DialogFiles _owner )
+ public Xcls_PropertyExpression39(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.PropertyExpression( typeof(JsRender.JsRender) , null, "name" );
{
_this = _owner;
_this.name = this;
- var child_1 = new Xcls_SignalListItemFactory43( _this );
+ var child_1 = new Xcls_SignalListItemFactory42( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "General Files", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory43 : Object
+ public class Xcls_SignalListItemFactory42 : Object
{
public Gtk.SignalListItemFactory el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory43(DialogFiles _owner )
+ public Xcls_SignalListItemFactory42(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
- public class Xcls_HeaderBar44 : Object
+ public class Xcls_HeaderBar43 : Object
{
public Gtk.HeaderBar el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_HeaderBar44(DialogFiles _owner )
+ public Xcls_HeaderBar43(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.HeaderBar();
// set gobject values
this.el.show_title_buttons = false;
- var child_1 = new Xcls_Button45( _this );
+ var child_1 = new Xcls_Button44( _this );
child_1.ref();
this.el.pack_end ( child_1.el );
new Xcls_btn_newproj( _this );
// user defined functions
}
- public class Xcls_Button45 : Object
+ public class Xcls_Button44 : Object
{
public Gtk.Button el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Button45(DialogFiles _owner )
+ public Xcls_Button44(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Box47( _this );
+ var child_1 = new Xcls_Box46( _this );
this.el.child = child_1.el;
//listeners
_this.show( pe.result , _this.new_window);
}
}
- public class Xcls_Box47 : Object
+ public class Xcls_Box46 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box47(DialogFiles _owner )
+ public Xcls_Box46(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Image48( _this );
+ var child_1 = new Xcls_Image47( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Label49( _this );
+ var child_2 = new Xcls_Label48( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Image48 : Object
+ public class Xcls_Image47 : Object
{
public Gtk.Image el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Image48(DialogFiles _owner )
+ public Xcls_Image47(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
- public class Xcls_Label49 : Object
+ public class Xcls_Label48 : Object
{
public Gtk.Label el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Label49(DialogFiles _owner )
+ public Xcls_Label48(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Label( "New Project" );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Box51( _this );
+ var child_1 = new Xcls_Box50( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_Box51 : Object
+ public class Xcls_Box50 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box51(DialogFiles _owner )
+ public Xcls_Box50(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Image52( _this );
+ var child_1 = new Xcls_Image51( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Label53( _this );
+ var child_2 = new Xcls_Label52( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Image52 : Object
+ public class Xcls_Image51 : Object
{
public Gtk.Image el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Image52(DialogFiles _owner )
+ public Xcls_Image51(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
- public class Xcls_Label53 : Object
+ public class Xcls_Label52 : Object
{
public Gtk.Label el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Label53(DialogFiles _owner )
+ public Xcls_Label52(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Project Properties" );
this.confirm = null;
// set gobject values
- var child_1 = new Xcls_Box55( _this );
+ var child_1 = new Xcls_Box54( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_Box55 : Object
+ public class Xcls_Box54 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box55(DialogFiles _owner )
+ public Xcls_Box54(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Image56( _this );
+ var child_1 = new Xcls_Image55( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Label57( _this );
+ var child_2 = new Xcls_Label56( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Image56 : Object
+ public class Xcls_Image55 : Object
{
public Gtk.Image el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Image56(DialogFiles _owner )
+ public Xcls_Image55(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
- public class Xcls_Label57 : Object
+ public class Xcls_Label56 : Object
{
public Gtk.Label el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Label57(DialogFiles _owner )
+ public Xcls_Label56(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Delete Project" );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Box59( _this );
+ var child_1 = new Xcls_Box58( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_Box59 : Object
+ public class Xcls_Box58 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box59(DialogFiles _owner )
+ public Xcls_Box58(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Image60( _this );
+ var child_1 = new Xcls_Image59( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Label61( _this );
+ var child_2 = new Xcls_Label60( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Image60 : Object
+ public class Xcls_Image59 : Object
{
public Gtk.Image el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Image60(DialogFiles _owner )
+ public Xcls_Image59(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
- public class Xcls_Label61 : Object
+ public class Xcls_Label60 : Object
{
public Gtk.Label el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Label61(DialogFiles _owner )
+ public Xcls_Label60(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Label( "New File" );
this.confirm = null;
// set gobject values
- var child_1 = new Xcls_Box63( _this );
+ var child_1 = new Xcls_Box62( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_Box63 : Object
+ public class Xcls_Box62 : Object
{
public Gtk.Box el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Box63(DialogFiles _owner )
+ public Xcls_Box62(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Image64( _this );
+ var child_1 = new Xcls_Image63( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Label65( _this );
+ var child_2 = new Xcls_Label64( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Image64 : Object
+ public class Xcls_Image63 : Object
{
public Gtk.Image el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Image64(DialogFiles _owner )
+ public Xcls_Image63(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Image();
// user defined functions
}
- public class Xcls_Label65 : Object
+ public class Xcls_Label64 : Object
{
public Gtk.Label el;
private DialogFiles _this;
// my vars (def)
// ctor
- public Xcls_Label65(DialogFiles _owner )
+ public Xcls_Label64(DialogFiles _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Delete File" );
"* ctor" : "new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL,6, 30, 1)",
"* init" : [
"{",
- "\tthis.el.set_range(6,30);",
- "\tthis.el.set_value(8);",
+ "\t//this.el.set_range(6,30);",
+ " \tthis.el.set_value ( BuilderApplication.settings.editor_font_size);",
+ " \tBuilderApplication.settings.editor_font_size_updated.connect(",
+ " \t\t() => {",
+ " \t\t\tBuilderApplication.settings.editor_font_size_inchange = true;",
+ " \t\t\tGLib.debug(\"update range\");",
+ " \t\t \tthis.el.set_value (BuilderApplication.settings.editor_font_size);",
+ " \t\t \tBuilderApplication.settings.editor_font_size_inchange = false;",
+ " \t\t}",
+ "\t);",
+ "\t",
+ " ",
"}",
""
],
"listeners" : {
"change_value" : [
"(st, val ) => {",
- "\t ",
- "\t ",
- "\t _this.view.css.load_from_string(",
- "\t \t\t\"#editor-view { font: %dpx monospace; }\".printf((int)val)",
- "\t );",
- " ",
+ "\tif (BuilderApplication.settings.editor_font_size_inchange) {",
+ "\t\treturn false;",
+ "\t}",
+ " \tBuilderApplication.settings.editor_font_size = val;",
" \treturn false;",
"}"
]
"$ xns" : "GtkSource",
"* init" : [
"",
- "",
- "this.css = new Gtk.CssProvider();",
- "",
- "this.css.load_from_string(",
- "\t\"#editor-view { font: 12px monospace;}\"",
- ");",
" ",
- "Gtk.StyleContext.add_provider_for_display(",
- "\tthis.el.get_display(),",
- "\tthis.css,",
- "\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- ");",
"\t",
" ",
" ",
"bool vexpand" : true,
"boolean show_line_marks" : true,
"boolean show_line_numbers" : true,
+ "css_classes" : "{ \"code-editor\" }",
"gboolean highlight_current_line" : true,
"id" : "view",
"indent_width" : 4,
this.el.homogeneous = false;
this.el.hexpand = true;
this.el.vexpand = true;
- var child_1 = new Xcls_Box2( _this );
+ var child_1 = new Xcls_Box1( _this );
child_1.ref();
this.el.append( child_1.el );
new Xcls_RightEditor( _this );
this.el.append( _this.RightEditor.el );
- var child_3 = new Xcls_Box12( _this );
+ var child_3 = new Xcls_Box11( _this );
child_3.ref();
this.el.append ( child_3.el );
}
return false;
});
}
- public class Xcls_Box2 : Object
+ public class Xcls_Box1 : Object
{
public Gtk.Box el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_Box2(Editor _owner )
+ public Xcls_Box1(Editor _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
this.el.hexpand = true;
new Xcls_save_button( _this );
this.el.append( _this.save_button.el );
- var child_2 = new Xcls_Label4( _this );
+ var child_2 = new Xcls_Label3( _this );
child_2.ref();
this.el.append( child_2.el );
- var child_3 = new Xcls_Scale5( _this );
+ var child_3 = new Xcls_Scale4( _this );
child_3.ref();
this.el.append( child_3.el );
new Xcls_close_btn( _this );
// user defined functions
}
- public class Xcls_Label4 : Object
+ public class Xcls_Label3 : Object
{
public Gtk.Label el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_Label4(Editor _owner )
+ public Xcls_Label3(Editor _owner )
{
_this = _owner;
this.el = new Gtk.Label( null );
// user defined functions
}
- public class Xcls_Scale5 : Object
+ public class Xcls_Scale4 : Object
{
public Gtk.Scale el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_Scale5(Editor _owner )
+ public Xcls_Scale4(Editor _owner )
{
_this = _owner;
this.el = new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL,6, 30, 1);
// init method
{
- this.el.set_range(6,30);
- this.el.set_value(8);
+ //this.el.set_range(6,30);
+ this.el.set_value ( BuilderApplication.settings.editor_font_size);
+ BuilderApplication.settings.editor_font_size_updated.connect(
+ () => {
+ BuilderApplication.settings.editor_font_size_inchange = true;
+ GLib.debug("update range");
+ this.el.set_value (BuilderApplication.settings.editor_font_size);
+ BuilderApplication.settings.editor_font_size_inchange = false;
+ }
+ );
+
+
}
//listeners
this.el.change_value.connect( (st, val ) => {
-
-
- _this.view.css.load_from_string(
- "#editor-view { font: %dpx monospace; }".printf((int)val)
- );
-
+ if (BuilderApplication.settings.editor_font_size_inchange) {
+ return false;
+ }
+ BuilderApplication.settings.editor_font_size = val;
return false;
});
}
// set gobject values
this.el.icon_name = "window-close";
- var child_1 = new Xcls_Image7( _this );
+ var child_1 = new Xcls_Image6( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_Image7 : Object
+ public class Xcls_Image6 : Object
{
public Gtk.Image el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_Image7(Editor _owner )
+ public Xcls_Image6(Editor _owner )
{
_this = _owner;
this.el = new Gtk.Image();
this.el.hexpand = true;
this.el.vexpand = true;
this.el.has_tooltip = true;
+ this.el.css_classes = { "code-editor" };
this.el.tab_width = 4;
this.el.highlight_current_line = true;
new Xcls_buffer( _this );
this.el.buffer = _this.buffer.el;
- var child_2 = new Xcls_EventControllerKey11( _this );
+ var child_2 = new Xcls_EventControllerKey10( _this );
child_2.ref();
this.el.add_controller( child_2.el );
// init method
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string(
- "#editor-view { font: 12px monospace;}"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
-
-
this.el.completion.add_provider(
new Palete.CompletionProvider(_this)
);
}
}
- public class Xcls_EventControllerKey11 : Object
+ public class Xcls_EventControllerKey10 : Object
{
public Gtk.EventControllerKey el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_EventControllerKey11(Editor _owner )
+ public Xcls_EventControllerKey10(Editor _owner )
{
_this = _owner;
this.el = new Gtk.EventControllerKey();
- public class Xcls_Box12 : Object
+ public class Xcls_Box11 : Object
{
public Gtk.Box el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_Box12(Editor _owner )
+ public Xcls_Box11(Editor _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
this.el.append( _this.nextBtn.el );
new Xcls_backBtn( _this );
this.el.append( _this.backBtn.el );
- var child_5 = new Xcls_MenuButton18( _this );
+ var child_5 = new Xcls_MenuButton17( _this );
child_5.ref();
this.el.append( child_5.el );
}
this.el.hexpand = true;
this.el.placeholder_text = "Press enter to search";
this.el.search_delay = 3;
- var child_1 = new Xcls_EventControllerKey14( _this );
+ var child_1 = new Xcls_EventControllerKey13( _this );
child_1.ref();
this.el.add_controller( child_1.el );
}
}
- public class Xcls_EventControllerKey14 : Object
+ public class Xcls_EventControllerKey13 : Object
{
public Gtk.EventControllerKey el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_EventControllerKey14(Editor _owner )
+ public Xcls_EventControllerKey13(Editor _owner )
{
_this = _owner;
this.el = new Gtk.EventControllerKey();
// user defined functions
}
- public class Xcls_MenuButton18 : Object
+ public class Xcls_MenuButton17 : Object
{
public Gtk.MenuButton el;
private Editor _this;
public bool always_show_image;
// ctor
- public Xcls_MenuButton18(Editor _owner )
+ public Xcls_MenuButton17(Editor _owner )
{
_this = _owner;
this.el = new Gtk.MenuButton();
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Box20( _this );
+ var child_1 = new Xcls_Box19( _this );
this.el.child = child_1.el;
}
// user defined functions
}
- public class Xcls_Box20 : Object
+ public class Xcls_Box19 : Object
{
public Gtk.Box el;
private Editor _this;
// my vars (def)
// ctor
- public Xcls_Box20(Editor _owner )
+ public Xcls_Box19(Editor _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
"# GtkSource.SearchContext searchcontext" : "",
"# JsRender.JsRender file" : "null",
"# Xcls_MainWindow main_window" : "",
+ "# int last_error_counter" : 0,
+ "# int last_search_end" : 0,
"$ xns" : "Gtk",
- "* init" : [
- "{",
- "",
- "\tthis.css = new Gtk.CssProvider();",
- "\t ",
- "\tthis.css.load_from_string(",
- "\t\t\"#gtkview-view-layout { background-color: #ccc; }\"",
- "\t);",
- "\t ",
- "\tGtk.StyleContext.add_provider_for_display(",
- "\t\tthis.el.get_display(),",
- "\t\tthis.css,",
- "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- "\t);",
- "\t\t",
- " ",
- "}",
- ""
- ],
- "Gtk.CssProvider css" : "",
"Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
"bool hexpand" : true,
"bool vexpand" : true,
"id" : "GtkView",
- "int last_error_counter" : 0,
- "int last_search_end" : 0,
"items" : [
{
"$ xns" : "Gtk",
"items" : [
{
"# JsRender.Node? node_selected" : "",
+ "# bool loading" : false,
"# string prop_selected" : "\"\"",
"$ xns" : "GtkSource",
"* init" : [
- "\t{",
+ "{",
"",
- "",
- "\tthis.css = new Gtk.CssProvider();",
- "\t ",
- "\tthis.css.load_from_string(\"#gtkview-view { font: 10px monospace ;}\");",
- "\t ",
- "\tGtk.StyleContext.add_provider_for_display(",
- "\t\tthis.el.get_display(),",
- "\t\tthis.css,",
- "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- "\t);",
- "\t\t",
- "\t\t ",
+ " ",
"\tthis.loading = true;",
"",
- "",
- "",
+ " ",
"\tvar attrs = new GtkSource.MarkAttributes();",
"\t attrs.set_icon_name ( \"process-stop\"); ",
"\tattrs.query_tooltip_text.connect(( mark) => {",
""
],
"* pack" : "set_child",
- "Gtk.CssProvider css" : "",
- "bool loading" : false,
- "bool zallow_node_scroll" : true,
+ "css_classes" : "{ \"code-editor\" }",
"gboolean editable" : false,
"gboolean show_line_marks" : true,
"gboolean show_line_numbers" : true,
"items" : [
{
"$ xns" : "Gtk",
- "* init" : [
- " ",
- "this.css = new Gtk.CssProvider();",
- "",
- "this.css.load_from_string(\"",
- "\t#gtkview-search-entry { font: 10px monospace ;}\"",
- ");",
- "",
- "Gtk.StyleContext.add_provider_for_display(",
- "\tthis.el.get_display(),",
- "\tthis.css,",
- "\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- ");",
- "\t\t",
- "",
- ""
- ],
"Gtk.CssProvider css" : "",
"bool hexpand" : true,
"id" : "search_entry",
// my vars (def)
public Gtk.Widget lastObj;
- public Gtk.CssProvider css;
public Xcls_MainWindow main_window;
- public GtkSource.SearchContext searchcontext;
public int last_error_counter;
public int last_search_end;
+ public GtkSource.SearchContext searchcontext;
public JsRender.JsRender file;
// ctor
this.el.vexpand = true;
new Xcls_notebook( _this );
this.el.append( _this.notebook.el );
-
- // init method
-
- {
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string(
- "#gtkview-view-layout { background-color: #ccc; }"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
-
- }
}
// user defined functions
this.el.overflow = Gtk.Overflow.VISIBLE;
new Xcls_label_preview( _this );
new Xcls_label_code( _this );
- var child_3 = new Xcls_ScrolledWindow5( _this );
+ var child_3 = new Xcls_ScrolledWindow4( _this );
child_3.ref();
this.el.append_page ( child_3.el , _this.label_preview.el );
- var child_4 = new Xcls_Box8( _this );
+ var child_4 = new Xcls_Box7( _this );
child_4.ref();
this.el.append_page ( child_4.el , _this.label_code.el );
}
// user defined functions
}
- public class Xcls_ScrolledWindow5 : Object
+ public class Xcls_ScrolledWindow4 : Object
{
public Gtk.ScrolledWindow el;
private Xcls_GtkView _this;
// my vars (def)
// ctor
- public Xcls_ScrolledWindow5(Xcls_GtkView _owner )
+ public Xcls_ScrolledWindow4(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.ScrolledWindow();
- public class Xcls_Box8 : Object
+ public class Xcls_Box7 : Object
{
public Gtk.Box el;
private Xcls_GtkView _this;
// my vars (def)
// ctor
- public Xcls_Box8(Xcls_GtkView _owner )
+ public Xcls_Box7(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// set gobject values
new Xcls_sourceviewscroll( _this );
this.el.append( _this.sourceviewscroll.el );
- var child_2 = new Xcls_Box13( _this );
+ var child_2 = new Xcls_Box12( _this );
child_2.ref();
this.el.append( child_2.el );
}
// my vars (def)
public bool loading;
- public bool zallow_node_scroll;
public string prop_selected;
- public Gtk.CssProvider css;
public JsRender.Node? node_selected;
// ctor
// my vars (dec)
this.loading = false;
- this.zallow_node_scroll = true;
this.prop_selected = "";
// set gobject values
this.el.editable = false;
this.el.show_line_marks = true;
this.el.show_line_numbers = true;
+ this.el.css_classes = { "code-editor" };
this.el.tab_width = 4;
new Xcls_buffer( _this );
this.el.set_buffer ( _this.buffer.el );
- var child_2 = new Xcls_EventControllerKey12( _this );
+ var child_2 = new Xcls_EventControllerKey11( _this );
child_2.ref();
this.el.add_controller( child_2.el );
{
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string("#gtkview-view { font: 10px monospace ;}");
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
-
+
this.loading = true;
-
-
+
var attrs = new GtkSource.MarkAttributes();
attrs.set_icon_name ( "process-stop");
attrs.query_tooltip_text.connect(( mark) => {
// user defined functions
}
- public class Xcls_EventControllerKey12 : Object
+ public class Xcls_EventControllerKey11 : Object
{
public Gtk.EventControllerKey el;
private Xcls_GtkView _this;
// my vars (def)
// ctor
- public Xcls_EventControllerKey12(Xcls_GtkView _owner )
+ public Xcls_EventControllerKey11(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.EventControllerKey();
- public class Xcls_Box13 : Object
+ public class Xcls_Box12 : Object
{
public Gtk.Box el;
private Xcls_GtkView _this;
// my vars (def)
// ctor
- public Xcls_Box13(Xcls_GtkView _owner )
+ public Xcls_Box12(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
this.el.append( _this.nextBtn.el );
new Xcls_backBtn( _this );
this.el.append( _this.backBtn.el );
- var child_5 = new Xcls_MenuButton19( _this );
+ var child_5 = new Xcls_MenuButton18( _this );
child_5.ref();
this.el.append( child_5.el );
}
this.el.hexpand = true;
this.el.placeholder_text = "Press enter to search";
this.el.search_delay = 3;
- var child_1 = new Xcls_EventControllerKey15( _this );
+ var child_1 = new Xcls_EventControllerKey14( _this );
child_1.ref();
this.el.add_controller( child_1.el );
- // init method
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string("
- #gtkview-search-entry { font: 10px monospace ;}"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
//listeners
this.el.search_changed.connect( () => {
}
}
- public class Xcls_EventControllerKey15 : Object
+ public class Xcls_EventControllerKey14 : Object
{
public Gtk.EventControllerKey el;
private Xcls_GtkView _this;
// my vars (def)
// ctor
- public Xcls_EventControllerKey15(Xcls_GtkView _owner )
+ public Xcls_EventControllerKey14(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.EventControllerKey();
// user defined functions
}
- public class Xcls_MenuButton19 : Object
+ public class Xcls_MenuButton18 : Object
{
public Gtk.MenuButton el;
private Xcls_GtkView _this;
public bool always_show_image;
// ctor
- public Xcls_MenuButton19(Xcls_GtkView _owner )
+ public Xcls_MenuButton18(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.MenuButton();
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Box21( _this );
+ var child_1 = new Xcls_Box20( _this );
child_1.ref();
this.el.set_child ( child_1.el );
}
// user defined functions
}
- public class Xcls_Box21 : Object
+ public class Xcls_Box20 : Object
{
public Gtk.Box el;
private Xcls_GtkView _this;
// my vars (def)
// ctor
- public Xcls_Box21(Xcls_GtkView _owner )
+ public Xcls_Box20(Xcls_GtkView _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
"items" : [
{
"$ xns" : "GtkSource",
- "* init" : [
- "{",
- "",
- " \tthis.css = new Gtk.CssProvider();",
- "\t ",
- "\tthis.css.load_from_string(",
- "\t\t\"#compile-results-view { font: 10px monospace ;}\"",
- "\t);",
- "\t ",
- "\t\t\tGtk.StyleContext.add_provider_for_display(",
- "\t\tthis.el.get_display(),",
- "\t\tthis.css,",
- "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- "\t);",
- "\t\t",
- "",
- "}",
- ""
- ],
"* prop" : "child",
- "Gtk.CssProvider css" : "",
"bool editable" : false,
"bool hexpand" : true,
"bool show_line_numbers" : false,
this.el.homogeneous = false;
this.el.hexpand = true;
this.el.vexpand = true;
- var child_1 = new Xcls_ScrolledWindow3( _this );
+ var child_1 = new Xcls_ScrolledWindow2( _this );
child_1.ref();
this.el.append( child_1.el );
}
// user defined functions
}
- public class Xcls_ScrolledWindow3 : Object
+ public class Xcls_ScrolledWindow2 : Object
{
public Gtk.ScrolledWindow el;
private Xcls_ValaCompileResults _this;
// my vars (def)
// ctor
- public Xcls_ScrolledWindow3(Xcls_ValaCompileResults _owner )
+ public Xcls_ScrolledWindow2(Xcls_ValaCompileResults _owner )
{
_this = _owner;
this.el = new Gtk.ScrolledWindow();
// my vars (def)
- public Gtk.CssProvider css;
// ctor
public Xcls_sourceview(Xcls_ValaCompileResults _owner )
this.el.show_line_numbers = false;
this.el.hexpand = true;
this.el.vexpand = true;
-
- // init method
-
- {
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string(
- "#compile-results-view { font: 10px monospace ;}"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
-
- }
}
// user defined functions
"id" : "EditProps",
"items" : [
{
+ "# Xcls_PopoverProperty popover" : "null",
"$ enable_tree_lines" : true,
"$ headers_visible" : true,
"$ xns" : "Gtk",
- "* init" : [
- "{",
- " ",
- " \tthis.css = new Gtk.CssProvider();",
- "\t ",
- "\t\tthis.css.load_from_string(\"",
- "#leftprops-view { font-size: 12px;}",
- "\t ",
- "#leftprops-view dropdown button { ",
- "\t\t\tmin-height: 16px;\t\t\t ",
- "\t\t\toutline-offset : 0;",
- "\t\t}",
- "#leftprops-view cell dropdown label {",
- " \t\tpadding-top:0px;",
- "\t\tpadding-bottom:0px;",
- "}",
- "#leftprops-view cell { ",
- " \t\tpadding-top:2px;",
- "\t\tpadding-bottom:2px;",
- "\t\t}",
- "#leftprops-view cell label, #leftprops-view cell editablelable {",
- " \t\tpadding-top:4px;",
- "\t\tpadding-bottom:4px;",
- "}\");",
- " ",
- "\t\tGtk.StyleContext.add_provider_for_display(",
- "\t\tthis.el.get_display(),",
- "\t\tthis.css,",
- "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- "\t);",
- "\t\t",
- " ",
- "}",
- ""
- ],
"* pack" : "set_child",
- "Gtk.CssProvider css" : "",
- "Xcls_PopoverProperty popover" : "null",
"bool hexpand" : true,
"bool show_row_separators" : true,
"bool single_click_activate" : false,
"| int getRowAt" : [
"(double x, double y, out string pos) {",
"",
+ "\tpos = \"\";",
"\tvar w = this.el.pick(x, y, Gtk.PickFlags.DEFAULT);",
"\t//GLib.debug(\"got widget %s\", w == null ? \"nothing\" : w.get_type().name());",
"\tif (w == null) {",
// my vars (def)
- public Gtk.CssProvider css;
public Xcls_PopoverProperty popover;
// ctor
this.el.vexpand = true;
this.el.show_row_separators = true;
new Xcls_deletemenu( _this );
- var child_3 = new Xcls_GestureClick44( _this );
+ var child_3 = new Xcls_GestureClick45( _this );
child_3.ref();
this.el.add_controller( child_3.el );
- var child_4 = new Xcls_GestureClick45( _this );
+ var child_4 = new Xcls_GestureClick46( _this );
child_4.ref();
this.el.add_controller( child_4.el );
new Xcls_keycol( _this );
new Xcls_valcol( _this );
this.el.append_column ( _this.valcol.el );
new Xcls_ContextMenu( _this );
-
- // init method
-
- {
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string("
- #leftprops-view { font-size: 12px;}
-
- #leftprops-view dropdown button {
- min-height: 16px;
- outline-offset : 0;
- }
- #leftprops-view cell dropdown label {
- padding-top:0px;
- padding-bottom:0px;
- }
- #leftprops-view cell {
- padding-top:2px;
- padding-bottom:2px;
- }
- #leftprops-view cell label, #leftprops-view cell editablelable {
- padding-top:4px;
- padding-bottom:4px;
- }");
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
-
- }
}
// user defined functions
}
public int getRowAt (double x, double y, out string pos) {
+ pos = "";
var w = this.el.pick(x, y, Gtk.PickFlags.DEFAULT);
//GLib.debug("got widget %s", w == null ? "nothing" : w.get_type().name());
if (w == null) {
// set gobject values
this.el.has_frame = false;
this.el.label = "Delete";
- var child_1 = new Xcls_Label1187( _this );
+ var child_1 = new Xcls_Label44( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_Label1187 : Object
+ public class Xcls_Label44 : Object
{
public Gtk.Label el;
private Xcls_LeftProps _this;
// my vars (def)
// ctor
- public Xcls_Label1187(Xcls_LeftProps _owner )
+ public Xcls_Label44(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.Label( "Delete Property / Method" );
- public class Xcls_GestureClick44 : Object
+ public class Xcls_GestureClick45 : Object
{
public Gtk.GestureClick el;
private Xcls_LeftProps _this;
// my vars (def)
// ctor
- public Xcls_GestureClick44(Xcls_LeftProps _owner )
+ public Xcls_GestureClick45(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.GestureClick();
// user defined functions
}
- public class Xcls_GestureClick45 : Object
+ public class Xcls_GestureClick46 : Object
{
public Gtk.GestureClick el;
private Xcls_LeftProps _this;
// my vars (def)
// ctor
- public Xcls_GestureClick45(Xcls_LeftProps _owner )
+ public Xcls_GestureClick46(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.GestureClick();
{
_this = _owner;
_this.keycol = this;
- var child_1 = new Xcls_SignalListItemFactory49( _this );
+ var child_1 = new Xcls_SignalListItemFactory50( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "Property", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory49 : Object
+ public class Xcls_SignalListItemFactory50 : Object
{
public Gtk.SignalListItemFactory el;
private Xcls_LeftProps _this;
// my vars (def)
// ctor
- public Xcls_SignalListItemFactory49(Xcls_LeftProps _owner )
+ public Xcls_SignalListItemFactory50(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
{
_this = _owner;
_this.valcol = this;
- var child_1 = new Xcls_SignalListItemFactory51( _this );
+ var child_1 = new Xcls_SignalListItemFactory52( _this );
child_1.ref();
this.el = new Gtk.ColumnViewColumn( "Value", child_1.el );
// user defined functions
}
- public class Xcls_SignalListItemFactory51 : Object
+ public class Xcls_SignalListItemFactory52 : Object
{
public Gtk.SignalListItemFactory el;
private Xcls_LeftProps _this;
public bool is_setting;
// ctor
- public Xcls_SignalListItemFactory51(Xcls_LeftProps _owner )
+ public Xcls_SignalListItemFactory52(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.SignalListItemFactory();
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Box53( _this );
+ var child_1 = new Xcls_Box54( _this );
this.el.child = child_1.el;
}
// user defined functions
}
- public class Xcls_Box53 : Object
+ public class Xcls_Box54 : Object
{
public Gtk.Box el;
private Xcls_LeftProps _this;
// my vars (def)
// ctor
- public Xcls_Box53(Xcls_LeftProps _owner )
+ public Xcls_Box54(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Button54( _this );
+ var child_1 = new Xcls_Button55( _this );
child_1.ref();
this.el.append( child_1.el );
}
// user defined functions
}
- public class Xcls_Button54 : Object
+ public class Xcls_Button55 : Object
{
public Gtk.Button el;
private Xcls_LeftProps _this;
// my vars (def)
// ctor
- public Xcls_Button54(Xcls_LeftProps _owner )
+ public Xcls_Button55(Xcls_LeftProps _owner )
{
_this = _owner;
this.el = new Gtk.Button();
"$ xns" : "Gtk",
"* init" : [
"{",
- " ",
+ " /*",
" this.css = new Gtk.CssProvider();",
"//\ttry {",
"\t\tthis.css.load_from_string(\"",
"\t\tthis.css,",
"\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
"\t);",
- "\t",
+ "\t*/",
"\t ",
"}",
""
// init method
{
-
+ /*
this.css = new Gtk.CssProvider();
// try {
this.css.load_from_string("
this.css,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
);
-
+ */
}
}
"# bool button_is_pressed" : false,
"# bool key_is_pressed" : false,
"# bool loading" : true,
- "# bool show_line_marks" : true,
"# id" : "sourceview",
"# int editable_start_pos" : "-1",
"# string prop_selected" : "\"\"",
"* init" : [
"\t{",
"",
- "\tthis.css = new Gtk.CssProvider();",
- "\t ",
- "\tthis.css.load_from_string(",
- "\t\t\"#roo-view { font: 10px monospace; }\"",
- "\t);",
- "",
- "\tGtk.StyleContext.add_provider_for_display(",
- "\t\tthis.el.get_display(),",
- "\t\tthis.css,",
- "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- "\t);",
- "\t\t",
"\t ",
"",
"\tthis.loading = true;",
],
"* pack" : "set_child",
"bool editable" : false,
+ "bool show_line_marks" : true,
"bool show_line_numbers" : true,
+ "css_classes" : "{ \"code-editor\" }",
"items" : [
{
"$ xns" : "GtkSource",
" ",
" ",
" buf.set_text(\"\",0);",
- " var sbuf = (GtkSource.Buffer) buf;",
+ " ",
"",
" ",
"",
"items" : [
{
"$ xns" : "Gtk",
- "* init" : [
- "this.css = new Gtk.CssProvider();",
- " ",
- "this.css.load_from_string(",
- "\t\"#roo-search-entry { background-color: #ccc; }\"",
- ");",
- " ",
- "Gtk.StyleContext.add_provider_for_display(",
- "\tthis.el.get_display(),",
- "\tthis.css,",
- "\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
- ");",
- "\t\t",
- "\t ",
- " ",
- ""
- ],
- "Gtk.CssProvider? css" : "null",
"bool hexpand" : true,
"id" : "search_entry",
"items" : [
public string prop_selected;
public Gtk.CssProvider? css;
public bool key_is_pressed;
- public bool show_line_marks;
public JsRender.Node? node_selected;
// ctor
this.prop_selected = "";
this.css = null;
this.key_is_pressed = false;
- this.show_line_marks = true;
this.node_selected = null;
// set gobject values
this.el.name = "roo-view";
this.el.editable = false;
+ this.el.show_line_marks = true;
this.el.show_line_numbers = true;
+ this.el.css_classes = { "code-editor" };
new Xcls_buffer( _this );
this.el.set_buffer ( _this.buffer.el );
var child_2 = new Xcls_EventControllerKey16( _this );
{
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string(
- "#roo-view { font: 10px monospace; }"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
this.loading = true;
buf.set_text("",0);
- var sbuf = (GtkSource.Buffer) buf;
+
// my vars (def)
- public Gtk.CssProvider? css;
// ctor
public Xcls_search_entry(Xcls_WindowRooView _owner )
this.el = new Gtk.SearchEntry();
// my vars (dec)
- this.css = null;
// set gobject values
this.el.name = "roo-search-entry";
child_1.ref();
this.el.add_controller( child_1.el );
- // init method
-
- this.css = new Gtk.CssProvider();
-
- this.css.load_from_string(
- "#roo-search-entry { background-color: #ccc; }"
- );
-
- Gtk.StyleContext.add_provider_for_display(
- this.el.get_display(),
- this.css,
- Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
- );
-
//listeners
this.el.search_changed.connect( ( ) => {
// GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR );
- app.activate.connect(() => {
- var w = new Xcls_MainWindow();
- w.initChildren();
- BuilderApplication.addWindow(w);
-
- // it looks like showall after children causes segfault on ubuntu 14.4
- w.windowstate.init();
- // w.windowstate.showPopoverFiles(w.open_projects_btn.el, null, false);
- w.show();
-
- });
+
//
// w.windowstate.switchState(WindowState.State.FILES);
--- /dev/null
+/**
+
+File to handle global settings
+In theory this should be stored in GLib.Settings - but since that requires a load of infrastructure to create
+we will stick to "~/.config/roobuilder.json" for now
+
+
+we used to store it in '.Builder/Project.list' .. but that's going to change..
+
+
+// this should be available via BuilderApplicaiton.settings
+
+
+*/
+
+public class Settings : Object {
+
+ // things that can be set..
+
+ private int _editor_font_size = 10;
+ public double editor_font_size {
+ get {
+ return (double) this._editor_font_size;
+ }
+ set {
+ GLib.debug("updated to %d", (int) value );
+ this._editor_font_size = (int) value;
+ if (this.css != null) {
+ this.css.load_from_string(
+ ".code-editor { font: %dpx monospace; }".printf((int) value)
+ );
+ }
+ this.save();
+
+ this.editor_font_size_updated();
+ }
+
+ }
+ public bool editor_font_size_inchange = false;
+ public signal void editor_font_size_updated();
+
+
+ // things we look after..
+ Gtk.CssProvider? css = null;
+ bool loaded = false;
+
+
+ public Settings ()
+ {
+
+ this.css = new Gtk.CssProvider();
+ this.editor_font_size = 10;
+ Gtk.StyleContext.add_provider_for_display(
+ Gdk.Display.get_default(),
+ this.css,
+ Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
+ );
+
+ if (this.load()) {
+ return;
+ }
+ this.loadOld();
+ this.save();
+
+ }
+
+ public void save()
+ {
+ if (!this.loaded) {
+ return;
+ }
+ }
+
+ public bool load()
+ {
+ this.loaded = true;
+ return true;
+ }
+ public void loadOld() {
+ this.loaded = true;
+ }
+
+}
+