# project created on 11/17/2006 at 4:40 PM # import Gtk import System import Gtk from "gtk-sharp" import Glade from "glade-sharp" public class GladeApp: [Widget] window as Gtk.Window [Widget] localTreeView as Gtk.TreeView [Widget] remoteTreeView as Gtk.TreeView [Widget] localPathBar as Gtk.HBox [Widget] remotePathBar as Gtk.HBox protected localView as FileView public def constructor(args): Application.Init() gxml = Glade.XML("efteep.glade", "window", null) gxml.Autoconnect(self) localView = FileView(FileReader("/home/jmoiron/"), localTreeView, localPathBar) localView.populate() remoteView = FileView(FileReader("/"), remoteTreeView, remotePathBar) remoteView.initialize() // do not populate it yet... print "Running Efteep..." Application.Run() def cleanQuit(): Application.Quit() def on_window_delete(source as object, args as DeleteEventArgs): cleanQuit() return true def on_quit_activate(source as object, args as EventArgs): cleanQuit() def on_about_activate(source as object, args as EventArgs): pass def on_localTreeView_row_activated(source as object, args as Gtk.RowActivatedArgs): entry = localView.getDirectoryEntry(args.Path) if entry.isDirectory: localView.chdir(entry) GladeApp([])