Example #1
0
	public unsafe MphotoToplevel (IImageRepository _repo, string[] args, params object[] props)
		: base ("Mphoto", "0.0", Modules.UI, args, props)
	{
		cwh = new Glade.XMLCustomWidgetHandler (GladeCustomWidgetHandler);
		Glade.XML.SetCustomHandler (cwh);
		gxml = new Glade.XML (null, "mphoto.glade", null, null);

		Console.WriteLine ("Autoconnect");
		gxml.Autoconnect (this);

//        CreateCustomWidget ("browser_icon_list");
//        CreateCustomWidget ("collections_tree_view");
//        CreateCustomWidget ("imageinfo_tree_view");
//        CreateCustomWidget ("eog_image_view");
//        CreateCustomWidget ("keywords_widget");

		this.leftside_notebook = (Gtk.Notebook) gxml["browser_left_notebook"];
		this.top_level_notebook = (Gtk.Notebook) gxml["top_level_notebook"];

		this.toplevel = gxml["mphoto_browser"];
		this.label_zoom_value = (Gtk.Label) gxml["label_zoom_value"];
		this.search_dialog = (Gtk.Window) gxml["search_dialog"];

		this.Repository = _repo;

		// initialize the tree views to the side
		imageinfo_tree_view.IconList = icon_list;
		keywords_widget.IconList = icon_list;

		collections_tree_view.RowActivated += new RowActivatedHandler (CollectionsTreeViewActivateHandler);
		icon_list.Activated += new EventHandler (IconlistActivated);

		GlobalMphotoToplevel = this;
	}
Example #2
0
    public unsafe MphotoToplevel(IImageRepository _repo, string[] args, params object[] props)
        : base("Mphoto", "0.0", Modules.UI, args, props)
    {
        cwh = new Glade.XMLCustomWidgetHandler(GladeCustomWidgetHandler);
        Glade.XML.SetCustomHandler(cwh);
        gxml = new Glade.XML(null, "mphoto.glade", null, null);

        Console.WriteLine("Autoconnect");
        gxml.Autoconnect(this);

//        CreateCustomWidget ("browser_icon_list");
//        CreateCustomWidget ("collections_tree_view");
//        CreateCustomWidget ("imageinfo_tree_view");
//        CreateCustomWidget ("eog_image_view");
//        CreateCustomWidget ("keywords_widget");

        this.leftside_notebook  = (Gtk.Notebook)gxml["browser_left_notebook"];
        this.top_level_notebook = (Gtk.Notebook)gxml["top_level_notebook"];

        this.toplevel         = gxml["mphoto_browser"];
        this.label_zoom_value = (Gtk.Label)gxml["label_zoom_value"];
        this.search_dialog    = (Gtk.Window)gxml["search_dialog"];

        this.Repository = _repo;

        // initialize the tree views to the side
        imageinfo_tree_view.IconList = icon_list;
        keywords_widget.IconList     = icon_list;

        collections_tree_view.RowActivated += new RowActivatedHandler(CollectionsTreeViewActivateHandler);
        icon_list.Activated += new EventHandler(IconlistActivated);

        GlobalMphotoToplevel = this;
    }