this.show_close_button = true;
// set gobject values
- var child_1 = new Xcls_Box3( _this );
+ var child_1 = new Xcls_Box2( _this );
child_1.ref();
this.el.pack_start ( child_1.el );
}
// user defined functions
}
- public class Xcls_Box3 : Object
+ public class Xcls_Box2 : Object
{
public Gtk.Box el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Box3(Xcls_MainWindow _owner )
+ public Xcls_Box2(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Button4( _this );
+ var child_1 = new Xcls_Button3( _this );
child_1.ref();
this.el.append ( child_1.el );
+ var child_2 = new Xcls_Button5( _this );
+ child_2.ref();
+ this.el.append( child_2.el );
+ var child_3 = new Xcls_Button6( _this );
+ child_3.ref();
+ this.el.append( child_3.el );
}
// user defined functions
}
- public class Xcls_Button4 : Object
+ public class Xcls_Button3 : Object
{
public Gtk.Button el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Button4(Xcls_MainWindow _owner )
+ public Xcls_Button3(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Button();
this.el.has_frame = false;
this.el.tooltip_text = "Manage Windows (Ctrl-O)";
this.el.has_tooltip = true;
- var child_1 = new Xcls_ButtonContent5( _this );
+ var child_1 = new Xcls_ButtonContent4( _this );
this.el.child = child_1.el;
//listeners
// user defined functions
}
- public class Xcls_ButtonContent5 : Object
+ public class Xcls_ButtonContent4 : Object
{
public Adw.ButtonContent el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_ButtonContent5(Xcls_MainWindow _owner )
+ public Xcls_ButtonContent4(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Adw.ButtonContent();
}
+ public class Xcls_Button5 : Object
+ {
+ public Gtk.Button el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Button5(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Button();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.icon_name = "edit-undo";
+ this.el.has_frame = false;
+
+ //listeners
+ this.el.clicked.connect( ( ) => {
+
+ GLib.debug("undo clicked");
+ if (_this.windowstate.file.xtype == "PlainFile") {
+ _this.windowstate.code_editor_tab.buffer.el.undo();
+ }
+ if (!_this.windowstate.file.undoStep(-1)) {
+ return;
+ }
+
+
+ _this.windowstate.switchState (WindowState.State.PREVIEW);
+ // this triggers loadItems..
+ _this.windowstate.left_tree.model.loadFile(
+ _this.windowstate.file);
+
+
+
+
+
+ // load it everywhere
+ });
+ }
+
+ // user defined functions
+ }
+
+ public class Xcls_Button6 : Object
+ {
+ public Gtk.Button el;
+ private Xcls_MainWindow _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_Button6(Xcls_MainWindow _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.Button();
+
+ // my vars (dec)
+
+ // set gobject values
+ this.el.icon_name = "edit-redo";
+ this.el.has_frame = false;
+
+ //listeners
+ this.el.clicked.connect( ( ) => {
+
+ GLib.debug("undo clicked");
+ if (_this.windowstate.file.xtype == "PlainFile") {
+ _this.windowstate.code_editor_tab.buffer.el.redo();
+ }
+ if (!_this.windowstate.file.undoStep(1)) {
+ return;
+ }
+
+
+ _this.windowstate.switchState (WindowState.State.PREVIEW);
+ // this triggers loadItems..
+ _this.windowstate.left_tree.model.loadFile(
+ _this.windowstate.file);
+
+
+
+
+
+ // load it everywhere
+ });
+ }
+
+ // user defined functions
+ }
+
public class Xcls_splitview : Object
this.el.vexpand = false;
new Xcls_mainpane( _this );
this.el.append( _this.mainpane.el );
- var child_2 = new Xcls_Box16( _this );
+ var child_2 = new Xcls_Box17( _this );
child_2.ref();
this.el.append( child_2.el );
}
this.el.position = 400;
new Xcls_leftpane( _this );
this.el.start_child = _this.leftpane.el;
- var child_2 = new Xcls_Box13( _this );
+ var child_2 = new Xcls_Box14( _this );
this.el.end_child = child_2.el;
//listeners
- public class Xcls_Box13 : Object
+ public class Xcls_Box14 : Object
{
public Gtk.Box el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Box13(Xcls_MainWindow _owner )
+ public Xcls_Box14(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
- public class Xcls_Box16 : Object
+ public class Xcls_Box17 : Object
{
public Gtk.Box el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Box16(Xcls_MainWindow _owner )
+ public Xcls_Box17(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// set gobject values
this.el.homogeneous = false;
this.el.vexpand = false;
- var child_1 = new Xcls_Button17( _this );
+ var child_1 = new Xcls_Button18( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Button18( _this );
+ var child_2 = new Xcls_Button19( _this );
child_2.ref();
this.el.append( child_2.el );
- var child_3 = new Xcls_MenuButton19( _this );
+ var child_3 = new Xcls_MenuButton20( _this );
child_3.ref();
this.el.append( child_3.el );
- var child_4 = new Xcls_Label24( _this );
+ var child_4 = new Xcls_Label25( _this );
child_4.ref();
this.el.append( child_4.el );
new Xcls_statusbar( _this );
this.el.append( _this.statusbar.el );
- var child_6 = new Xcls_Box26( _this );
+ var child_6 = new Xcls_Box27( _this );
child_6.ref();
this.el.append( child_6.el );
new Xcls_statusbar_compile_spinner( _this );
// user defined functions
}
- public class Xcls_Button17 : Object
+ public class Xcls_Button18 : Object
{
public Gtk.Button el;
private Xcls_MainWindow _this;
public bool always_show_image;
// ctor
- public Xcls_Button17(Xcls_MainWindow _owner )
+ public Xcls_Button18(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_Button18 : Object
+ public class Xcls_Button19 : Object
{
public Gtk.Button el;
private Xcls_MainWindow _this;
public bool always_show_image;
// ctor
- public Xcls_Button18(Xcls_MainWindow _owner )
+ public Xcls_Button19(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_MenuButton19 : Object
+ public class Xcls_MenuButton20 : Object
{
public Gtk.MenuButton el;
private Xcls_MainWindow _this;
public bool always_show_image;
// ctor
- public Xcls_MenuButton19(Xcls_MainWindow _owner )
+ public Xcls_MenuButton20(Xcls_MainWindow _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_Box22( _this );
child_1.ref();
this.el.set_child ( child_1.el );
// user defined functions
}
- public class Xcls_Box21 : Object
+ public class Xcls_Box22 : Object
{
public Gtk.Box el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Box21(Xcls_MainWindow _owner )
+ public Xcls_Box22(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_Button22( _this );
+ var child_1 = new Xcls_Button23( _this );
child_1.ref();
this.el.append( child_1.el );
- var child_2 = new Xcls_Button23( _this );
+ var child_2 = new Xcls_Button24( _this );
child_2.ref();
this.el.append( child_2.el );
}
// user defined functions
}
- public class Xcls_Button22 : Object
+ public class Xcls_Button23 : Object
{
public Gtk.Button el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Button22(Xcls_MainWindow _owner )
+ public Xcls_Button23(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Button();
// user defined functions
}
- public class Xcls_Button23 : Object
+ public class Xcls_Button24 : Object
{
public Gtk.Button el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Button23(Xcls_MainWindow _owner )
+ public Xcls_Button24(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Button();
- public class Xcls_Label24 : Object
+ public class Xcls_Label25 : Object
{
public Gtk.Label el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Label24(Xcls_MainWindow _owner )
+ public Xcls_Label25(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Label( " " );
// user defined functions
}
- public class Xcls_Box26 : Object
+ public class Xcls_Box27 : Object
{
public Gtk.Box el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_Box26(Xcls_MainWindow _owner )
+ public Xcls_Box27(Xcls_MainWindow _owner )
{
_this = _owner;
this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
// my vars (dec)
// set gobject values
- var child_1 = new Xcls_SearchBar35( _this );
- child_1.ref();
- this.el.append( child_1.el );
+ new Xcls_filesearch( _this );
+ this.el.append( _this.filesearch.el );
var child_2 = new Xcls_Box38( _this );
child_2.ref();
this.el.append( child_2.el );
_this.treeview.el.set_model(_this.treeselmodel.el);
- _this.treeselmodel.el.selected = Gtk.INVALID_LIST_POSITION;
+ _this.treeselmodel.el.selected = Gtk.INVALID_LIST_POSITION;
}
}
- public class Xcls_SearchBar35 : Object
- {
- public Gtk.SearchBar el;
- private Xcls_MainWindow _this;
-
-
- // my vars (def)
-
- // ctor
- public Xcls_SearchBar35(Xcls_MainWindow _owner )
- {
- _this = _owner;
- this.el = new Gtk.SearchBar();
-
- // my vars (dec)
-
- // set gobject values
- this.el.hexpand = true;
- this.el.search_mode_enabled = true;
- new Xcls_filesearch( _this );
- this.el.child = _this.filesearch.el;
- }
-
- // user defined functions
- }
public class Xcls_filesearch : Object
{
public Gtk.SearchEntry el;
}
-
public class Xcls_Box38 : Object
{
public Gtk.Box el;
//listeners
this.el.clicked.connect( ( ) => {
+ _this.splitview.el.show_sidebar = false;
_this.windowstate.showPopoverFiles(this.el, _this.project, false);
});
}