Exemple #1
0
        public MainWindow(string[] Args)
        {
            gxml = new Glade.XML(null, "gui.glade", "MainWindow", null);
            gxml.Autoconnect(this);

            events = new Queue<Event>();
            deltas = new Queue<Delta>();

            curr = new BugDisplay(frmCurrent);
            //curr.render(false,"hello world");
            dupl = new BugDisplay(frmDupl);

            ((Window)gxml.GetWidget("MainWindow")).Maximize();
            ((Window)gxml.GetWidget("MainWindow")).ShowAll();
            hrfBrowser.Clicked += OnNoClicked;
            //GlobalProxySelection.Select = new WebProxy("http://taz:8118");

            bugz = new Bugzilla("http://bugzilla.gnome.org/");
            BugDB.bugz = bugz;
            if (Args.Length !=0)
                product = Args[0];

            todo = new Queue<Bug>();
            ready();
            hasprocess = true;
            GLib.Idle.Add(new GLib.IdleHandler(processTask));
            notify = new ThreadNotify (new ReadyEvent (ready));
        }
Exemple #2
0
    // Constructor
    public MainWindow()
    {
        /// Load our XML Glade file
        xml = new Glade.XML("./RSSAggregator.glade", "frmMain", "");


        Gtk.MenuItem mnuExit = (xml.GetWidget("exit1") as Gtk.MenuItem);
        mnuExit.Activated += new EventHandler(on_exit1_activate);

        // Create our Gtk.Window reference
        win = (xml.GetWidget("frmMain") as Gtk.Window);
    }
    public GUIMain()
    {
        Glade.XML gxml = new Glade.XML("../../src/GUI/Glade/ekranglowny.glade", "MainWindow", null);
        gxml.Autoconnect(this);

        TopicTable = (Gtk.Table)gxml.GetWidget("TopicTable");
        prevPage = (Gtk.Button)gxml.GetWidget("prevPage");
        nextPage = (Gtk.Button)gxml.GetWidget("nextPage");
        pageLabel = (Gtk.Label)gxml.GetWidget("pageLabel");

        setEvents();
        loadTopics();
    }
Exemple #4
0
    public GUIMain()
    {
        Glade.XML gxml = new Glade.XML("../../src/GUI/Glade/ekranglowny.glade", "MainWindow", null);
        gxml.Autoconnect(this);

        TopicTable = (Gtk.Table)gxml.GetWidget("TopicTable");
        prevPage   = (Gtk.Button)gxml.GetWidget("prevPage");
        nextPage   = (Gtk.Button)gxml.GetWidget("nextPage");
        pageLabel  = (Gtk.Label)gxml.GetWidget("pageLabel");

        setEvents();
        loadTopics();
    }
Exemple #5
0
        public TSearch(CInterfaceGateway in_krnGateway, Glade.XML gxml)
        {
            krnGateway     = in_krnGateway;
            progressbar    = (gxml.GetWidget("progressbar") as ProgressBar);
            btnBeginSearch = (gxml.GetWidget("btnBeginSearch") as Button);
            btnStopSearch  = (gxml.GetWidget("btnStopSearch") as Button);
            txtSearch      = (gxml.GetWidget("txtSearch") as Entry);
            tvSearch       = (gxml.GetWidget("tvSearch") as TreeView);
            m_SearchCount  = 0;

            CreateColumns();
            CreatePopupMenu();
            AddEvents();
        }
Exemple #6
0
        public DetailedWindow(Hashtable contact)
        {
            gxml = new Glade.XML(null, "contactviewer.glade", "DetailedWindow", null);
            gxml.Autoconnect(this);

            // Fill all Entry-boxes with information
            foreach (string name in widget_names)
            {
                (gxml.GetWidget(name) as Gtk.Entry).Text = (contact [name] != null ? (contact [name] as string) : "");
            }
            ;

            // Also fill the special cases
            Notes.Buffer.Text = (contact ["Notes"] != null ? (contact ["Notes"] as string) : "");

            try {
                int tmp = Convert.ToInt32(contact ["PreferMailFormat"]);
                PreferredType.Active = (tmp >= 0 && tmp <= 2 ? tmp : 0);
            } catch {
                PreferredType.Active = 0;
            }

            Close.Clicked += OnClose;

            Window.Icon = Beagle.Images.GetPixbuf("contact-icon.png");
            Window.Show();
        }
Exemple #7
0
 public BookEditor()
 {
     Glade.XML gxml = new Glade.XML (Util.GladePath("contact-browser.glade"),
      "BookEditor", null);
        gxml.Autoconnect (this);
        beDlg = (Gtk.Dialog) gxml.GetWidget("BookEditor");
 }
Exemple #8
0
        public void Run(object o, EventArgs e)
        {
            Console.WriteLine("EXECUTING ExiflowEditComment EXTENSION");

            xml = new Glade.XML(null, "ExiflowEditComment.glade", dialog_name, "f-spot");
            xml.Autoconnect(this);
            dialog = (Gtk.Dialog)xml.GetWidget(dialog_name);

            // collect comments of selected photos in current_comments
            ArrayList current_comments = new ArrayList();

            foreach (Photo p in App.Instance.Organizer.SelectedPhotos())
            {
                if (p.Description.Length > 0 && !current_comments.Contains(p.Description))
                {
                    current_comments.Add(p.Description);
                }
            }

            // fill text buffer with all current comments
            comment.Buffer.Text = String.Join("\n---\n", (String[])current_comments.ToArray(typeof(string)));

            dialog.Modal        = false;
            dialog.TransientFor = null;
            dialog.Response    += HandleResponse;
            dialog.ShowAll();
        }
 public ConnectionMenu(TreeView connectionList)
 {
     this.connectionList = connectionList;
     Glade.XML xmlMnuConnections = new Glade.XML(null, "FileFind.Meshwork.GtkClient.meshwork.glade", "mnuConnections", null);
     mnuConnections = (xmlMnuConnections.GetWidget("mnuConnections") as Gtk.Menu);
     xmlMnuConnections.Autoconnect (this);
 }
Exemple #10
0
 public ConnectionMenu(TreeView connectionList)
 {
     this.connectionList = connectionList;
     Glade.XML xmlMnuConnections = new Glade.XML(null, "Meshwork.Client.GtkClient.meshwork.glade", "mnuConnections", null);
     mnuConnections = (xmlMnuConnections.GetWidget("mnuConnections") as Gtk.Menu);
     xmlMnuConnections.Autoconnect(this);
 }
Exemple #11
0
    private DemoApp(string[] args, params object[] props) : base("ObjectBrowserDemo", version, Modules.UI, args, props)
    {
        gXML = new Glade.XML(null, "demoapp.glade", "DemoApp", null);
        gXML.Autoconnect(this);

        browser   = new ObjectBrowser();
        this.args = args;

        window = (App)gXML.GetWidget("DemoApp");
        Load();

        ((MenuItem)gXML.GetWidget("HelpMenu")).RightJustified = true;

        window.Contents = browser;
        window.ShowAll();
        browser.AppBar = (AppBar)gXML.GetWidget("AppBar");;
    }
Exemple #12
0
		private void SetupUI ()
		{
			gXML = new Glade.XML (null, "demoapp.glade", "FindWindow", null);
			gXML.Autoconnect (this);

			ReparentAdd (gXML.GetWidget ("FindTop"), false);
			ReparentAdd (gXML.GetWidget ("FindBottom"), true);
			members = (TreeView) gXML.GetWidget ("FindMembersTreeView");
			// members.KeyPressEvent += new KeyPressEventHandler (KeyPressed);
			members.RowActivated += new RowActivatedHandler (RowActivated);
			types = (TreeView) gXML.GetWidget ("FindTypesTreeView");
			types.RowActivated += new RowActivatedHandler (RowActivated);
			SetupViews ();

			entry = (Entry) gXML.GetWidget ("FindEntry");
			entry.Changed += new EventHandler (EntryChanged);

			ShowAll ();
		}		
Exemple #13
0
        private void SetupUI()
        {
            gXML = new Glade.XML(null, "demoapp.glade", "FindWindow", null);
            gXML.Autoconnect(this);

            ReparentAdd(gXML.GetWidget("FindTop"), false);
            ReparentAdd(gXML.GetWidget("FindBottom"), true);
            members = (TreeView)gXML.GetWidget("FindMembersTreeView");
            // members.KeyPressEvent += new KeyPressEventHandler (KeyPressed);
            members.RowActivated += new RowActivatedHandler(RowActivated);
            types = (TreeView)gXML.GetWidget("FindTypesTreeView");
            types.RowActivated += new RowActivatedHandler(RowActivated);
            SetupViews();

            entry          = (Entry)gXML.GetWidget("FindEntry");
            entry.Changed += new EventHandler(EntryChanged);

            ShowAll();
        }
 public CPreviewWindow(CTheme theme,bool Show)
 {
     string prevW="PreviewWindow";
     this.theme = theme;
     Glade.XML previewXml= new Glade.XML (null, "gui.glade", prevW, null);
     previewXml.Autoconnect (this);
     mainWindow = (Gtk.Window) previewXml.GetWidget (prevW);
     PreviewCloseButton.Clicked+=new EventHandler(OnCloseButtonClicked);
     PreviewInstallButton.Clicked+=new EventHandler(OnInstallButtonClicked);
     MainImagePixbuf = new Gdk.Pixbuf(theme.LocalPreviewFile);
     Headline = Catalog.GetString("Previewing \"")+ theme.Name+"\"";
     if(Show)
         MainWindow.ShowAll();
 }
 public CInfoWindow(string Headline,string Description, string StockIcon, bool ShowWindow)
 {
     string infoW="InfoWindow";
     Glade.XML infoXml= new Glade.XML (null, "gui.glade", infoW, null);
     infoXml.Autoconnect (this);
     mainWindow = (Gtk.Window) infoXml.GetWidget (infoW);
     this.Headline = Headline;
     this.Description = Description;
     InfoOkButton.Clicked+=new EventHandler(OnOkButtonClicked);
     InfoCopyToClipboardButton.Clicked+=new EventHandler(OnCopyToClipboardClicked);
     InfoImage.Stock= StockIcon;
     if(ShowWindow)
         Show();
 }
Exemple #16
0
        public ViewActorDialog(Window parent)
        {
            Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("ViewActorDialog.glade");

            Glade.XML glade = Glade.XML.FromAssembly("ViewActorDialog.glade", "ViewActorDialog", null);
            stream.Close();
            glade.Autoconnect(this);
            entName.Changed          += OnChangeName;
            entEmail.Changed         += OnChangeEmail;
            thisDialog                = ((Gtk.Dialog)(glade.GetWidget("ViewActorDialog")));
            thisDialog.Modal          = true;
            thisDialog.TransientFor   = parent;
            thisDialog.WindowPosition = WindowPosition.Center;
        }
Exemple #17
0
        public StationDialog(Stations stations, Station station)
        {
            glade = new Glade.XML(null, "radio.glade", "StationDialog", "banshee");
            glade.Autoconnect(this);
            dialog = (Dialog)glade.GetWidget("StationDialog");
            Banshee.Base.IconThemeUtils.SetWindowIcon(dialog);

            if (station == null)
            {
                is_new  = true;
                station = new Station();
            }

            this.stations = stations;
            this.station  = station;

            link_store          = new LinkStore(station);
            view                = new NodeView(link_store);
            view.HeadersVisible = true;

            CellRendererToggle active_renderer = new CellRendererToggle();

            active_renderer.Activatable = true;
            active_renderer.Radio       = true;
            active_renderer.Toggled    += OnLinkToggled;

            view.AppendColumn(Catalog.GetString("Active"), active_renderer, ActiveDataFunc);
            view.AppendColumn(Catalog.GetString("Type"), new CellRendererText(), TypeDataFunc);
            view.AppendColumn(Catalog.GetString("Title"), EditTextRenderer(), "text", 1);
            view.AppendColumn(Catalog.GetString("URI"), EditTextRenderer(), "text", 2);
            view.Show();

            (glade["link_view_container"] as ScrolledWindow).Add(view);

            group_combo = ComboBoxEntry.NewText();
            group_combo.Show();
            (glade["group_combo_container"] as Box).PackStart(group_combo, true, true, 0);

            title_entry.Text       = station.Title == null ? String.Empty : station.Title;
            description_entry.Text = station.Description == null ? String.Empty : station.Description;
            group_combo.Entry.Text = station.Group == null ? String.Empty : station.Group;

            foreach (string group in stations.Groups)
            {
                group_combo.AppendText(group);
            }
        }
 public CStatusWindow(string Headline,int MaxCount,bool CloseByRequest, bool ExpandExpander, bool ShowWindow)
 {
     string statusW="StatusWindow";
     Glade.XML statusXml= new Glade.XML (null, "gui.glade", statusW, null);
     statusXml.Autoconnect (this);
     mainWindow = (Gtk.Window) statusXml.GetWidget (statusW);
     //ToDO: mainWindow.TransientFor=
     this.Headline = Headline;
     if (CloseByRequest)
         StatusCancelButton.Clicked+=new EventHandler(OnCancelRequestButtonClicked);
     else
         StatusCancelButton.Clicked+=new EventHandler(OnCancelButtonClicked);
     ExpanderLabelVisible = ExpandExpander;
     SetProgressStep(MaxCount);
     if(ShowWindow)
         Show();
 }
Exemple #19
0
        public CPreviewWindow(CTheme theme, bool Show)
        {
            string prevW = "PreviewWindow";

            this.theme = theme;
            Glade.XML previewXml = new Glade.XML(null, "gui.glade", prevW, null);
            previewXml.Autoconnect(this);
            mainWindow = (Gtk.Window)previewXml.GetWidget(prevW);
            PreviewCloseButton.Clicked   += new EventHandler(OnCloseButtonClicked);
            PreviewInstallButton.Clicked += new EventHandler(OnInstallButtonClicked);
            MainImagePixbuf = new Gdk.Pixbuf(theme.LocalPreviewFile);
            Headline        = Catalog.GetString("Previewing \"") + theme.Name + "\"";
            if (Show)
            {
                MainWindow.ShowAll();
            }
        }
Exemple #20
0
        public CInfoWindow(string Headline, string Description, string StockIcon, bool ShowWindow)
        {
            string infoW = "InfoWindow";

            Glade.XML infoXml = new Glade.XML(null, "gui.glade", infoW, null);
            infoXml.Autoconnect(this);
            mainWindow            = (Gtk.Window)infoXml.GetWidget(infoW);
            this.Headline         = Headline;
            this.Description      = Description;
            InfoOkButton.Clicked += new EventHandler(OnOkButtonClicked);
            InfoCopyToClipboardButton.Clicked += new EventHandler(OnCopyToClipboardClicked);
            InfoImage.Stock = StockIcon;
            if (ShowWindow)
            {
                Show();
            }
        }
        public CSettingsWindow(CConfiguration config, bool ShowWindow)
        {
            ProxyAttrStruct proxy;

            this.config = config;
            string settingsW = "SettingsWindow";

            Glade.XML settingsXml = new Glade.XML(null, "gui.glade", settingsW, null);
            settingsXml.Autoconnect(this);
            mainWindow       = (Gtk.Window)settingsXml.GetWidget(settingsW);
            mainWindow.Title = Catalog.GetString("Settings");
            SettingsGeneralHeadlineLabel.Text      = "<b>" + Catalog.GetString("General settings") + "</b>";
            SettingsGeneralHeadlineLabel.UseMarkup = true;
            SettingsNetworkHeadlineLabel.Text      = "<b>" + Catalog.GetString("Network settings") + "</b>";
            SettingsNetworkHeadlineLabel.UseMarkup = true;
            SettingsXmlCb.Active = config.XmlRefreshInterval;
            SettingsLocationFc.SetCurrentFolder(config.ThemesDownloadPath);
            //Events
            SettingsCancelButton.Clicked  += new EventHandler(OnCancelButtonClicked);
            SettingsOkButton.Clicked      += new EventHandler(OnOkButtonClicked);
            SettingsNoProxyRb.Clicked     += new EventHandler(OnProxyClicked);
            SettingsProxyActiveRb.Clicked += new EventHandler(OnProxyClicked);
            //Proxies
            proxy = config.GetProxy(CConfiguration.ProxyType.Gang);
            SettingsProxyAddress.Text = proxy.Ip;
            SettingsProxyPort.Text    = proxy.Port.ToString();
            proxy = config.GetProxy(CConfiguration.ProxyType.System);
            SettingsProxySystemAddress.Text      = proxy.Ip;
            SettingsProxySystemPort.Text         = proxy.Port.ToString();
            SettingsProxySystemPort.Sensitive    = false;
            SettingsProxySystemAddress.Sensitive = false;
            SettingsProxySystemActiveRb.Active   = (config.ProxyKind == CConfiguration.ProxyType.System);
            SettingsNoProxyRb.Active             = (config.ProxyKind == CConfiguration.ProxyType.None);
            SettingsProxyActiveRb.Active         = (config.ProxyKind == CConfiguration.ProxyType.Gang);

            SettingsUpdateCb.Active = !(config.DontBotherForUpdates);
            config.GConfClient.AddNotify(config.GConfPath + "themesDownloadPath", OnThemesPathChangedEventHandler);
            if (ShowWindow)
            {
                Show();
            }
        }
        public CWindow(CConfiguration config, string WindowName, string WindowTitle, WindowShowType ShowType)
        {
            this.config = config;
            string win = WindowName;

            Glade.XML settingsXml = new Glade.XML(null, "gui.glade", win, null);
            settingsXml.Autoconnect(this);
            mainWindow              = (Gtk.Window)settingsXml.GetWidget(win);
            mainWindow.Title        = WindowTitle;
            mainWindow.DeleteEvent += new DeleteEventHandler(OnWindowDeleteEvent);
            IsShownModal            = (ShowType == WindowShowType.wstModal);
            switch (ShowType)
            {
            case WindowShowType.wstModal: ShowModal(); break;

            case WindowShowType.wstNormal: Show(); break;

            case WindowShowType.wstNo: break;
            }
        }
        public SmartPlaylistEditor()
        {
            glade = new Glade.XML(null, "smart-playlist.glade", dialog_name, "banshee");
            glade.Autoconnect(this);

            dialog = (Dialog)glade.GetWidget(dialog_name);
            Banshee.Base.IconThemeUtils.SetWindowIcon(dialog);

            // Add the QueryBuilder widget
            model = new TracksQueryModel();
            builder = new QueryBuilder(model);
            builder.Show();
            builder.Spacing = 4;

            builder_box.PackStart(builder, true, true, 0);

            name_entry.Changed += HandleNameChanged;

            Update();
        }
Exemple #24
0
        public SmartPlaylistEditor()
        {
            glade = new Glade.XML(null, "smart-playlist.glade", dialog_name, "banshee");
            glade.Autoconnect(this);

            dialog = (Dialog)glade.GetWidget(dialog_name);
            Banshee.Base.IconThemeUtils.SetWindowIcon(dialog);

            // Add the QueryBuilder widget
            model   = new TracksQueryModel();
            builder = new QueryBuilder(model);
            builder.Show();
            builder.Spacing = 4;

            builder_box.PackStart(builder, true, true, 0);

            name_entry.Changed += HandleNameChanged;

            Update();
        }
Exemple #25
0
    public DemoApp(string[] args, params object[] props) : base("DemoApp", "0.1", Modules.UI, args, props)
    {
        ParseArgs(args);

        Glade.XML gxml = new Glade.XML("sourceview.glade", "win", null);
        gxml.Autoconnect(this);

        if (win == null)
        {
            throw new Exception("GladeWidgetAttribute is broken.");
        }

        Gtk.TextView tw = (Gtk.TextView)gxml.GetWidget("tw");

        System.IO.StreamReader stream = new StreamReader(this.file);
        string text = stream.ReadToEnd();

        tw.Buffer.Insert(tw.Buffer.EndIter, text);

        Console.WriteLine("here we go");
        Config     conf = new Config();
        Highlights hl   = new Highlights(conf.patterns);

        ConnectTextTagTable(tw.Buffer.TagTable, conf.styles);

        hl.DebugPrint();
        Token [] tokens = hl.Search(text);

        foreach (Token t in tokens)
        {
            Gtk.TextIter siter, eiter;

            tw.Buffer.GetIterAtOffset(out siter, t.sindex);
            tw.Buffer.GetIterAtOffset(out eiter, t.eindex);

            //Console.WriteLine("*** {3} - {4}*** <{0}>{1}</{0}:{2}>",
            //t.style.name, tw.Buffer.GetText(siter, eiter, false), t.style.pattern, t.sindex, t.eindex + 1);

            tw.Buffer.ApplyTag(tw.Buffer.TagTable.Lookup(t.style.path), siter, eiter);
        }
    }
Exemple #26
0
    public DemoApp (string[] args, params object[] props) : base ("DemoApp", "0.1", Modules.UI, args, props)
    {
	ParseArgs(args);

        Glade.XML gxml = new Glade.XML ("sourceview.glade", "win", null);
        gxml.Autoconnect (this);

        if (win == null) throw new Exception("GladeWidgetAttribute is broken.");

	Gtk.TextView tw = (Gtk.TextView) gxml.GetWidget ("tw");

	System.IO.StreamReader stream = new StreamReader(this.file);
	string text = stream.ReadToEnd();
	tw.Buffer.Insert (tw.Buffer.EndIter, text);

Console.WriteLine("here we go");
        Config conf   = new Config ();
        Highlights hl = new Highlights (conf.patterns);

	ConnectTextTagTable(tw.Buffer.TagTable, conf.styles);

hl.DebugPrint();
	Token [] tokens = hl.Search(text);
	
	foreach (Token t in tokens)
	{
	    Gtk.TextIter siter, eiter;

	    tw.Buffer.GetIterAtOffset(out siter, t.sindex);
            tw.Buffer.GetIterAtOffset(out eiter, t.eindex);

	    //Console.WriteLine("*** {3} - {4}*** <{0}>{1}</{0}:{2}>", 
	    //t.style.name, tw.Buffer.GetText(siter, eiter, false), t.style.pattern, t.sindex, t.eindex + 1);

            tw.Buffer.ApplyTag ( tw.Buffer.TagTable.Lookup(t.style.path), siter, eiter);
	}
    }
Exemple #27
0
        public void Run(object o, EventArgs e)
        {
            Console.WriteLine ("EXECUTING ExiflowEditComment EXTENSION");

            xml = new Glade.XML (null,"ExiflowEditComment.glade", dialog_name, "f-spot");
            xml.Autoconnect (this);
            dialog = (Gtk.Dialog) xml.GetWidget(dialog_name);

            // collect comments of selected photos in current_comments
            ArrayList current_comments = new ArrayList ();
            foreach (Photo p in App.Instance.Organizer.SelectedPhotos ()) {
                if (p.Description.Length > 0 && ! current_comments.Contains(p.Description)) {
                    current_comments.Add(p.Description);
                }
            }

            // fill text buffer with all current comments
            comment.Buffer.Text = String.Join("\n---\n", (String[]) current_comments.ToArray(typeof(string)));

            dialog.Modal = false;
            dialog.TransientFor = null;
            dialog.Response += HandleResponse;
            dialog.ShowAll();
        }
        public CStatusWindow(string Headline, int MaxCount, bool CloseByRequest, bool ExpandExpander, bool ShowWindow)
        {
            string statusW = "StatusWindow";

            Glade.XML statusXml = new Glade.XML(null, "gui.glade", statusW, null);
            statusXml.Autoconnect(this);
            mainWindow = (Gtk.Window)statusXml.GetWidget(statusW);
            //ToDO: mainWindow.TransientFor=
            this.Headline = Headline;
            if (CloseByRequest)
            {
                StatusCancelButton.Clicked += new EventHandler(OnCancelRequestButtonClicked);
            }
            else
            {
                StatusCancelButton.Clicked += new EventHandler(OnCancelButtonClicked);
            }
            ExpanderLabelVisible = ExpandExpander;
            SetProgressStep(MaxCount);
            if (ShowWindow)
            {
                Show();
            }
        }
        public CSettingsWindow(CConfiguration config, bool ShowWindow)
        {
            ProxyAttrStruct proxy;
            this.config=config;
            string settingsW="SettingsWindow";
            Glade.XML settingsXml= new Glade.XML (null, "gui.glade", settingsW, null);
            settingsXml.Autoconnect (this);
            mainWindow = (Gtk.Window) settingsXml.GetWidget (settingsW);
            mainWindow.Title = Catalog.GetString("Settings");
            SettingsGeneralHeadlineLabel.Text = "<b>"+Catalog.GetString("General settings")+"</b>";
            SettingsGeneralHeadlineLabel.UseMarkup = true;
            SettingsNetworkHeadlineLabel.Text = "<b>"+Catalog.GetString("Network settings")+"</b>";
            SettingsNetworkHeadlineLabel.UseMarkup = true;
            SettingsXmlCb.Active = config.XmlRefreshInterval;
            SettingsLocationFc.SetCurrentFolder(config.ThemesDownloadPath);
            //Events
            SettingsCancelButton.Clicked+=new EventHandler(OnCancelButtonClicked);
            SettingsOkButton.Clicked+=new EventHandler(OnOkButtonClicked);
            SettingsNoProxyRb.Clicked+=new EventHandler(OnProxyClicked);
            SettingsProxyActiveRb.Clicked+=new EventHandler(OnProxyClicked);
            //Proxies
            proxy = config.GetProxy(CConfiguration.ProxyType.Gang);
            SettingsProxyAddress.Text = proxy.Ip;
            SettingsProxyPort.Text = proxy.Port.ToString();
            proxy = config.GetProxy(CConfiguration.ProxyType.System);
            SettingsProxySystemAddress.Text = proxy.Ip;
            SettingsProxySystemPort.Text = proxy.Port.ToString();
            SettingsProxySystemPort.Sensitive = false;
            SettingsProxySystemAddress.Sensitive = false;
            SettingsProxySystemActiveRb.Active =  (config.ProxyKind == CConfiguration.ProxyType.System);
            SettingsNoProxyRb.Active = (config.ProxyKind == CConfiguration.ProxyType.None);
            SettingsProxyActiveRb.Active = (config.ProxyKind == CConfiguration.ProxyType.Gang);

            SettingsUpdateCb.Active = !(config.DontBotherForUpdates);
            config.GConfClient.AddNotify(config.GConfPath+"themesDownloadPath",OnThemesPathChangedEventHandler);
            if(ShowWindow) Show();
        }
        ///////////////////////////////////////////////////////////////////
        public BoxerpWindow GetChildWindowClass(string moduleName)
        {
            string childGuiPath, childGuiContainer, childAsifacePath, managerClass;

            try
            {
                GuiExtractor.GetIface(moduleName, out childGuiPath, out childGuiContainer,
                                                            out childAsifacePath, out managerClass);
                if (screens.ContainsKey(managerClass))
                {
                        BoxerpWindow bwindow = (BoxerpWindow) screens[managerClass]; // get existent window
                        bwindow.mainContainer = (Gtk.Container) bwindow.gui.GetWidget(childGuiContainer);
                        bwindow.memLoaded = true;
                        return bwindow;
                }
                else
                {
                        Hashtable childAsiface = new Hashtable();
                        Glade.XML tmpGui = new Glade.XML (childGuiPath, childGuiContainer, "boxerp");
                        GuiExtractor.BuildAsiface(out childAsiface, childAsifacePath);
                        System.Object[] paramsObj = new System.Object[] {this.sid, this.gid,
                                                                                                                        this.permissions, childAsiface, tmpGui};
                        Assembly assembly = Assembly.GetExecutingAssembly();
                        System.Object childWin =
                                AppDomain.CurrentDomain.CreateInstanceAndUnwrap(assembly.FullName, managerClass,
                                                                                                                                true, BindingFlags.Instance|BindingFlags.Public,
                                                                                                                                null, paramsObj, null, null, null);
                        ((BoxerpWindow)childWin).mainContainer = (Gtk.Container) tmpGui.GetWidget(childGuiContainer);
                        ((BoxerpWindow)childWin).memLoaded = false;
                        screens[managerClass] = childWin;
                        return (BoxerpWindow) childWin;
                }
            }
            catch (Exception ex)
            {
                //string exceptionTrace = this.BuildExceptionTrace(ex);
                ClientMessages.ShowException(ex);
                throw ex;
            }
        }
		public DetailedWindow (Hashtable contact)
		{
			gxml = new Glade.XML (null, "contactviewer.glade", "DetailedWindow", null);
			gxml.Autoconnect (this);
			
			// Fill all Entry-boxes with information
			foreach (string name in widget_names)
				(gxml.GetWidget (name) as Gtk.Entry).Text = (contact [name] != null ? (contact [name] as string) : "");;
			
			// Also fill the special cases
			Notes.Buffer.Text = (contact ["Notes"] != null ? (contact ["Notes"] as string) : "");
			
			try {
				int tmp = Convert.ToInt32 (contact ["PreferMailFormat"]);
				PreferredType.Active = (tmp >= 0 && tmp <= 2 ? tmp : 0);
			} catch {
				PreferredType.Active = 0;
			}
			
			Close.Clicked += OnClose;
			
			Window.Icon = Beagle.Images.GetPixbuf ("contact-icon.png");
			Window.Show ();
		}
 /// Initialize Glade Window with Window Name & Glade XML Struct
 public GladeWindow(string name, Glade.XML glade)
 {
     this.glade = glade;
     this.window = (Gtk.Window) glade.GetWidget(name);
     this.glade.Autoconnect(this);
 }
Exemple #33
0
 public MemoMenu()
 {
     Glade.XML xmlMnuMemos = new Glade.XML(null, "FileFind.Meshwork.GtkClient.meshwork.glade", "mnuMemos", null);
     mnuMemos = (xmlMnuMemos.GetWidget("mnuMemos") as Gtk.Menu);
     xmlMnuMemos.Autoconnect(this);
 }
        //////////////////////////////////////////////////////////
        public LoginWindow(ref LoginService login_o)
        {
            try
            {
                string guipath, guicontainer;
                this.loginService = login_o;
                GuiExtractor.GetIface("Login", out guipath, out guicontainer);
                this.gui = new Glade.XML (guipath, guicontainer, "");

                if (gui.GetWidget(guicontainer) == null)
                {
                    throw new NullGladeException();  // break this try block and go to catch
                }
                else
                    this.gui.Autoconnect(this);
            }
            catch (NullGladeException ex)
            {
                throw ex;   // This windows cant be loaded, so throw the exception to the caller
            }
            catch (NullReferenceException ex)
            {
                throw new NullGladeException(ex.Message, ex);
            }
            catch (System.Exception e)
            {
                ClientMessages.ShowException(e);
            }
            permissions = new Hashtable();
        }
        public StationDialog(Stations stations, Station station)
        {
            glade = new Glade.XML(null, "radio.glade", "StationDialog", "banshee");
            glade.Autoconnect(this);
            dialog = (Dialog)glade.GetWidget("StationDialog");
            Banshee.Base.IconThemeUtils.SetWindowIcon(dialog);

            if(station == null) {
                is_new = true;
                station = new Station();
            }

            this.stations = stations;
            this.station = station;

            link_store = new LinkStore(station);
            view = new NodeView(link_store);
            view.HeadersVisible = true;

            CellRendererToggle active_renderer = new CellRendererToggle();
            active_renderer.Activatable = true;
            active_renderer.Radio = true;
            active_renderer.Toggled += OnLinkToggled;

            view.AppendColumn(Catalog.GetString("Active"), active_renderer, ActiveDataFunc);
            view.AppendColumn(Catalog.GetString("Type"), new CellRendererText(), TypeDataFunc);
            view.AppendColumn(Catalog.GetString("Title"), EditTextRenderer(), "text", 1);
            view.AppendColumn(Catalog.GetString("URI"), EditTextRenderer(), "text", 2);
            view.Show();

            (glade["link_view_container"] as ScrolledWindow).Add(view);

            group_combo = ComboBoxEntry.NewText();
            group_combo.Show();
            (glade["group_combo_container"] as Box).PackStart(group_combo, true, true, 0);

            title_entry.Text = station.Title == null ? String.Empty : station.Title;
            description_entry.Text = station.Description == null ? String.Empty : station.Description;
            group_combo.Entry.Text = station.Group == null ? String.Empty : station.Group;

            foreach(string group in stations.Groups) {
                group_combo.AppendText(group);
            }
        }
Exemple #36
0
 public ChatMenu()
 {
     Glade.XML xmlMnuChat = new Glade.XML(null, "FileFind.Meshwork.GtkClient.meshwork.glade", "mnuChat", null);
     mnuChat = (xmlMnuChat.GetWidget("mnuChat") as Gtk.Menu);
     xmlMnuChat.Autoconnect(this);
 }
Exemple #37
0
        private void modify_job(ArrayList al, string id)
        {
            string jobid  = null;
            string number = null;
            string status = null;
            string user   = null;
            string pages  = null;
            string dials  = null;
            object sendat = null;
            string error  = null;

            IEnumerator enu = al.GetEnumerator();

            while (enu.MoveNext())
            {
                enu.MoveNext();
                jobid = (string)enu.Current;
                enu.MoveNext();
                number = (string)enu.Current;
                enu.MoveNext();
                status = (string)enu.Current;
                enu.MoveNext();
                user = (string)enu.Current;
                enu.MoveNext();
                pages = (string)enu.Current;
                enu.MoveNext();
                int idx = ((string)enu.Current).LastIndexOf(':');
                dials = ((string)enu.Current).Substring(idx + 1);
                enu.MoveNext();
                sendat = (object)enu.Current;
                enu.MoveNext();
                error = (string)enu.Current;
            }

                        #if DEBUG
            Console.WriteLine("[ModifyJob] Date is {0}", sendat);
                        #endif

            Glade.XML xml = new Glade.XML(null, "gfax.glade", "vbox74", null);
            Dialog    mjd = new Dialog();
            mjd.VBox.Add(xml.GetWidget("vbox74"));
            Gtk.Entry      mje  = (Gtk.Entry)xml.GetWidget("ModifyJobNumberEntry");
            Gnome.DateEdit mjde = (Gnome.DateEdit)xml.GetWidget("ModifyJobDate");
            Gtk.SpinButton mjmd = (Gtk.SpinButton)xml.GetWidget("MaxDialsSpinbutton");

            mjd.AddButton(Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
            mjd.AddButton(Gtk.Stock.Ok, Gtk.ResponseType.Ok);

            // this is to re-enable the entry for editing so it won't be selected
            // to begin with???  Maybe something to do with re-parenting or something.
            mje.FocusInEvent +=
                new FocusInEventHandler(on_ModifyJobNumberEntry_focus_in_event);

            mje.IsEditable = false;
            mje.Text       = number.Trim();

            mjde.Time = sendat == null ? new DateTime(): (DateTime)sendat;

            mjmd.Value = Convert.ToDouble(dials.Trim());

            ResponseType result = (ResponseType)mjd.Run();

            if (result == ResponseType.Ok)
            {
                DateTime newsend = (mjde.Time).ToUniversalTime();

                // Format time to send - timezone is in UTC format.
                string tts = String.Format("{0}{1:00}{2:00}{3:00}{4:00}",
                                           newsend.Year,
                                           newsend.Month,
                                           newsend.Day,
                                           newsend.Hour,
                                           newsend.Minute);

                if (id == "sendq")
                {
                    Fax.modify_job(jobid, mje.Text, tts, (mjmd.ValueAsInt).ToString());
                }
                else                 // "doneq"
                {
                    Fax.resubmit_job(jobid, mje.Text, tts, (mjmd.ValueAsInt).ToString());
                }

                mjd.Destroy();
            }
            else
            {
                mjd.Destroy();
            }

            async_update_queue_status("sendq");
            ModifyJobButton.Sensitive = false;
            DeleteJobButton.Sensitive = false;
        }
 private void InitGlade()
 {
     Glade.XML gxml = new Glade.XML (Util.GladePath("contact-editor.glade"),
      "ContactEditor", null);
        gxml.Autoconnect (this);
        contactEditorDialog = (Gtk.Dialog) gxml.GetWidget("ContactEditor");
        FullNameEntry.HasFocus = true;
 }
Exemple #39
0
	private DemoApp (string[] args, params object[] props) : base ("ObjectBrowserDemo", version, Modules.UI, args, props)
	{
		gXML = new Glade.XML (null, "demoapp.glade", "DemoApp", null);
		gXML.Autoconnect (this);
		
		browser = new ObjectBrowser ();
		this.args = args;

		window = (App) gXML.GetWidget ("DemoApp");
		Load ();

		((MenuItem) gXML.GetWidget ("HelpMenu")).RightJustified = true;

		window.Contents = browser;
		window.ShowAll ();
		browser.AppBar = (AppBar) gXML.GetWidget ("AppBar");;
	}
Exemple #40
0
        private void modify_job(ArrayList al, string id)
        {
            string jobid = null;
            string number = null;
            string status = null;
            string user = null;
            string pages = null;
            string dials = null;
            object sendat = null;
            string error = null;

            IEnumerator enu = al.GetEnumerator();
            while (	enu.MoveNext() ) {
                enu.MoveNext();
                jobid = (string)enu.Current;
                enu.MoveNext();
                number = (string)enu.Current;
                enu.MoveNext();
                status = (string)enu.Current;
                enu.MoveNext();
                user = (string)enu.Current;
                enu.MoveNext();
                pages = (string)enu.Current;
                enu.MoveNext();
                int idx = ((string)enu.Current).LastIndexOf(':');
                dials = ((string)enu.Current).Substring(idx + 1);
                enu.MoveNext();
                sendat = (object)enu.Current;
                enu.MoveNext();
                error = (string)enu.Current;
            }

            #if DEBUG
                Console.WriteLine("[ModifyJob] Date is {0}", sendat);
            #endif

            Glade.XML xml = new Glade.XML (null, "gfax.glade","vbox74",null);
            Dialog mjd = new Dialog();
            mjd.VBox.Add(xml.GetWidget("vbox74"));
            Gtk.Entry mje = (Gtk.Entry)xml.GetWidget("ModifyJobNumberEntry");
            Gnome.DateEdit mjde = (Gnome.DateEdit)xml.GetWidget("ModifyJobDate");
            Gtk.SpinButton mjmd = (Gtk.SpinButton)xml.GetWidget("MaxDialsSpinbutton");

            mjd.AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
            mjd.AddButton (Gtk.Stock.Ok, Gtk.ResponseType.Ok);

            // this is to re-enable the entry for editing so it won't be selected
            // to begin with???  Maybe something to do with re-parenting or something.
            mje.FocusInEvent +=
                    new FocusInEventHandler (on_ModifyJobNumberEntry_focus_in_event);

            mje.IsEditable = false;
            mje.Text = number.Trim();

            mjde.Time = sendat == null ? new DateTime(): (DateTime)sendat;

            mjmd.Value = Convert.ToDouble(dials.Trim());

            ResponseType result = (ResponseType)mjd.Run ();

            if (result == ResponseType.Ok) {
                DateTime newsend = (mjde.Time).ToUniversalTime();

                // Format time to send - timezone is in UTC format.
                string tts = String.Format("{0}{1:00}{2:00}{3:00}{4:00}",
                    newsend.Year,
                    newsend.Month,
                    newsend.Day,
                    newsend.Hour,
                    newsend.Minute);

                if (id == "sendq" )
                    Fax.modify_job(jobid, mje.Text, tts, (mjmd.ValueAsInt).ToString());
                else // "doneq"
                    Fax.resubmit_job(jobid, mje.Text, tts, (mjmd.ValueAsInt).ToString());

                mjd.Destroy();
            } else {
                mjd.Destroy();
            }

            async_update_queue_status("sendq");
            ModifyJobButton.Sensitive = false;
            DeleteJobButton.Sensitive = false;
        }
Exemple #41
0
        public TServers(CInterfaceGateway in_krnGateway, Glade.XML gxml, Gtk.TextView log)

        /*public TServers (Gtk.TreeView tv, Gtk.TextView log, CInterfaceGateway in_krnGateway,
         *                                      Gtk.Button btn1,Gtk.Button btn2,Gtk.Entry txt1,Gtk.Entry txt2,Gtk.Entry txt3)*/
        {
            krnGateway = in_krnGateway;
            krnGateway.OnLogMessage += new LogEvent(m_Log);
            krnGateway.OnNewServer  += new ServerEvent(OnNewServer);
            //btnAddServer = btn1;
            btnAddServer = (gxml.GetWidget("btnAddServer") as Button);
            //btnDownloadServers = btn2;
            btnDownloadServers = (gxml.GetWidget("btnDownloadServers") as Button);
            //txtDownloadServers = txt1;
            txtDownloadServers = (gxml.GetWidget("txtDownloadServers") as Entry);
            //txtServerIp = txt2;
            txtServerIp = (gxml.GetWidget("txtServerIp") as Entry);
            //txtServerPort = txt3;
            txtServerPort = (gxml.GetWidget("txtServerPort") as Entry);
            txtServerLog  = log;            //I don't use gxml due to problems with buffer
            buffer        = txtServerLog.Buffer;
            /*tvServers = tv;*/
            tvServers = (gxml.GetWidget("tvServers") as TreeView);

            stServers = new TreeStore(typeof(string), typeof(string), typeof(string),
                                      typeof(string), typeof(string), typeof(string));
            tvServers.Model = stServers;

            Gtk.TreeViewColumn tvc = new TreeViewColumn("Server Name", new CellRendererText(), "text", 0);
            tvServers.AppendColumn(tvc);
            tvc.SortColumnId = 0;
            tvc.Resizable    = true;

            tvc = new TreeViewColumn("Address", new CellRendererText(), "text", 1);
            tvServers.AppendColumn(tvc);
            tvc.SortColumnId = 1;
            tvc.Resizable    = true;

            tvc = new TreeViewColumn("Failed", new CellRendererText(), "text", 2);
            tvServers.AppendColumn(tvc);
            tvc.SortColumnId = 2;
            tvc.Resizable    = true;

            tvc = new TreeViewColumn("Files", new CellRendererText(), "text", 3);
            tvServers.AppendColumn(tvc);
            tvc.SortColumnId = 3;
            tvc.Resizable    = true;

            tvc = new TreeViewColumn("Users", new CellRendererText(), "text", 4);
            tvServers.AppendColumn(tvc);
            tvc.SortColumnId = 4;
            tvc.Resizable    = true;

            tvc = new TreeViewColumn("Priority", new CellRendererText(), "text", 5);
            tvServers.AppendColumn(tvc);
            tvc.SortColumnId = 5;
            tvc.Resizable    = true;

            menu = new Gtk.Menu();
            MenuItem it_Connect = new MenuItem("Connect");

            it_Connect.Activated += new EventHandler(ConnectTo);
            MenuItem it_Copy = new MenuItem("Copy to clipboard");

            it_Copy.Activated += new EventHandler(CopyLink);
            MenuItem it_Delete = new MenuItem("Delete");

            it_Delete.Activated += new EventHandler(Delete);

            menu.Append(it_Connect);
            menu.Append(it_Copy);
            menu.Append(it_Delete);

            tvServers.ButtonPressEvent += new ButtonPressEventHandler(ButtonPressEvent);
            // tvServers.PopupMenu += new PopupMenuHandler(PopupMenuEvent);
            loadServers();
        }
        public MainWindow()
        {
            PersonsManager.Instance.PersonsCount();

            Glade.XML gxml_person = new Glade.XML("main_window.glade", "menuPersonActions", null);
            gxml_person.Autoconnect(this);
            this.imiModifyPerson = (ImageMenuItem)gxml_person.GetWidget("imiModifyPerson");
            this.imiRemovePerson = (ImageMenuItem)gxml_person.GetWidget("imiRemovePerson");

            Glade.XML gxml_event = new Glade.XML("main_window.glade", "menuEventActions", null);
            gxml_event.Autoconnect(this);
            this.imiWhoHadAttended = (ImageMenuItem)gxml_event.GetWidget("imiWhoHadAttended");
            this.imiModifyEvent    = (ImageMenuItem)gxml_event.GetWidget("imiModifyEvent");
            this.imiRemoveEvent    = (ImageMenuItem)gxml_event.GetWidget("imiRemoveEvent");

            Glade.XML gxml = new Glade.XML("main_window.glade", "mainWindow", null);
            gxml.Autoconnect(this);

            this.menuPersonActions = (Menu)gxml_person.GetWidget("menuPersonActions");
            this.menuEventActions  = (Menu)gxml_event.GetWidget("menuEventActions");

//			this.selectedPersons = new List<Person>();
//			this.selectedEvents = new List<Event>();
//			this.selectedTreeIters = new List<Gtk.TreeIter>();
            this.lastEventsOnAttendancesList = new List <Event>();
            this.treeItersOnAttendancesList  = new Dictionary <Person, TreeIter>();

            // Icon for the main window
            this.mainWindow.Icon = new Gdk.Pixbuf("blue_fea.gif");

            this.mtbAddPerson.Menu = this.menuPersonActions;
            this.mtbAddEvent.Menu  = this.menuEventActions;

            // ### tvPersons ###
            this.tvPersons = new TreeView();
            this.tvPersons.HeadersVisible = true;
            this.tvPersons.Selection.Mode = SelectionMode.Multiple;

            TreeViewColumn surname = new TreeViewColumn();

            surname.Title = "Apellido";
            CellRendererText surnameText = new CellRendererText();

            surname.PackStart(surnameText, true);

            TreeViewColumn name = new TreeViewColumn();

            name.Title = "Nombre";
            CellRendererText nameText = new CellRendererText();

            name.PackStart(nameText, true);

            TreeViewColumn email = new TreeViewColumn();

            email.Title = "E-Mail";
            CellRendererText emailText = new CellRendererText();

            email.PackStart(emailText, true);

            TreeViewColumn birthday = new TreeViewColumn();

            birthday.Title = "Cumpleaños";
            CellRendererText birthdayText = new CellRendererText();

            birthday.PackStart(birthdayText, true);

            this.tvPersons.AppendColumn(surname);
            this.tvPersons.AppendColumn(name);
            this.tvPersons.AppendColumn(email);
            this.tvPersons.AppendColumn(birthday);

            surname.SetCellDataFunc(surnameText,
                                    new TreeCellDataFunc(this.RenderSurname));
            name.SetCellDataFunc(nameText,
                                 new TreeCellDataFunc(this.RenderName));
            email.SetCellDataFunc(emailText,
                                  new TreeCellDataFunc(this.RenderEmail));
            birthday.SetCellDataFunc(birthdayText,
                                     new TreeCellDataFunc(this.RenderBirthday));

            this.persons = new ListStore(typeof(Person));

            this.persons.RowDeleted += new RowDeletedHandler(this.OnPersonsListRowDeleted);

            this.tvPersons.Model = this.persons;

            // Handler when a row is selected, to enable person modify button
            this.tvPersons.Selection.Changed += new EventHandler(this.OnPersonsListSelectionChanged);

            // Handler when a row is double clicked
            this.tvPersons.RowActivated += new RowActivatedHandler(this.OnPersonsListRowActivated);

            // Handler to disable modify and remove person buttons
            this.tvPersons.Hidden += new EventHandler(this.OnPersonsListHidden);

            this.tvPersons.ButtonPressEvent += new ButtonPressEventHandler(this.OnPersonsListButtonPress);
            this.tvPersons.PopupMenu        += new PopupMenuHandler(this.OnPersonsListPopupMenu);


            // ### tvEvents ###
            this.tvEvents = new TreeView();
            this.tvEvents.HeadersVisible = true;
            this.tvEvents.Selection.Mode = SelectionMode.Multiple;

            TreeViewColumn eventName = new TreeViewColumn();

            eventName.Title = "Nombre";
            CellRendererText eventNameText = new CellRendererText();

            eventName.PackStart(eventNameText, true);

            TreeViewColumn eventDate = new TreeViewColumn();

            eventDate.Title = "Fecha";
            CellRendererText eventDateText = new CellRendererText();

            eventDate.PackStart(eventDateText, true);

            this.tvEvents.AppendColumn(eventName);
            this.tvEvents.AppendColumn(eventDate);

            eventName
            .SetCellDataFunc(eventNameText,
                             new TreeCellDataFunc(this.RenderEventName));
            eventDate
            .SetCellDataFunc(eventDateText,
                             new TreeCellDataFunc(this.RenderEventDate));

            this.events = new ListStore(typeof(Event));

            this.events.RowDeleted += new RowDeletedHandler(this.OnEventsListRowDeleted);

            this.tvEvents.Model = this.events;

            // Handler when a row is selected, to enable event modify button
            this.tvEvents.Selection.Changed += new EventHandler(this.OnEventsListSelectionChanged);

            // Handler when a row is double clicked
            this.tvEvents.RowActivated += new RowActivatedHandler(this.OnEventsListRowActivated);

            // Handler to disable modify and remove event buttons
            this.tvEvents.Hidden += new EventHandler(this.OnEventsListHidden);

            this.tvEvents.ButtonPressEvent += new ButtonPressEventHandler(this.OnEventsListButtonPress);
            this.tvEvents.PopupMenu        += new PopupMenuHandler(this.OnEventsListPopupMenu);


            // ### tvAttendaces ###
            this.tvAttendances.Hidden += new EventHandler(this.OnAttendancesListHidden);

            // ### Persons and events loading ###
            // Read persons from database
            foreach (Person p in PersonsManager.Instance.RetrieveAll())
            {
                this.AddPersonToList(p);
            }

            // Read events from database
            foreach (Event e in EventsManager.Instance.RetrieveAll())
            {
                this.AddEventToList(e);
            }

            this.mainWindow.ShowAll();
        }
 private void InitUI()
 {
     Glade.XML gxml = new Glade.XML (Util.GladePath("contact-picker.glade"),
      "ContactPickerDialog", null);
        gxml.Autoconnect (this);
        cpDialog = (Gtk.Dialog) gxml.GetWidget("ContactPickerDialog");
        BookTreeStore = new ListStore(typeof(AddressBook));
        BookTreeView.Model = BookTreeStore;
        CellRendererPixbuf bcrp = new CellRendererPixbuf();
        TreeViewColumn btvc = new TreeViewColumn();
        btvc.PackStart(bcrp, false);
        btvc.SetCellDataFunc(bcrp, new TreeCellDataFunc(
      BookCellPixbufDataFunc));
        CellRendererText bcrt = new CellRendererText();
        btvc.PackStart(bcrt, false);
        btvc.SetCellDataFunc(bcrt, new TreeCellDataFunc(
      BookCellTextDataFunc));
        btvc.Title = "Books";
        BookTreeView.AppendColumn(btvc);
        BookTreeView.Selection.Changed += new EventHandler(
      on_book_selection_changed);
        ContactTreeStore = new ListStore(typeof(Contact));
        ContactTreeView.Model = ContactTreeStore;
        CellRendererPixbuf ccrp = new CellRendererPixbuf();
        TreeViewColumn ctvc = new TreeViewColumn();
        ctvc.PackStart(ccrp, false);
        ctvc.SetCellDataFunc(ccrp, new TreeCellDataFunc(
      ContactCellPixbufDataFunc));
        CellRendererText ccrt = new CellRendererText();
        ctvc.PackStart(ccrt, false);
        ctvc.SetCellDataFunc(ccrt, new TreeCellDataFunc(
      ContactCellTextDataFunc));
        ctvc.Title = "Contacts";
        ContactTreeView.AppendColumn(ctvc);
        ContactTreeView.Selection.Mode = SelectionMode.Multiple;
        ContactTreeView.Selection.Changed += new EventHandler(
      on_contact_selection_changed);
        SelectedTreeStore = new ListStore(typeof(Contact));
        SelectedTreeView.Model = SelectedTreeStore;
        CellRendererPixbuf scrp = new CellRendererPixbuf();
        TreeViewColumn stvc = new TreeViewColumn();
        stvc.PackStart(scrp, false);
        stvc.SetCellDataFunc(scrp, new TreeCellDataFunc(
      ContactCellPixbufDataFunc));
        CellRendererText scrt = new CellRendererText();
        stvc.PackStart(scrt, false);
        stvc.SetCellDataFunc(scrt, new TreeCellDataFunc(
      ContactCellTextDataFunc));
        stvc.Title = "Picked";
        SelectedTreeView.AppendColumn(stvc);
        SelectedTreeView.Selection.Mode = SelectionMode.Multiple;
        SelectedTreeView.Selection.Changed += new EventHandler(
      on_selectedTreeView_selection_changed);
        UserCardPixBuf = new Pixbuf(Util.ImagesPath("contact.png"));
        CurCardPixBuf = new Pixbuf(Util.ImagesPath("contact_me.png"));
        BookPixBuf = new Pixbuf(Util.ImagesPath("book.png"));
        searchTimeoutID = 0;
        selectedContacts = new Hashtable();
        NewGroupButton.Sensitive = false;
        NewContactButton.Sensitive = false;
 }
Exemple #44
0
 private void InitGlade()
 {
     Glade.XML gxml = new Glade.XML (Util.GladePath("name-editor.glade"),
      "NameEditorDialog", null);
        gxml.Autoconnect (this);
        nameEditorDialog = (Gtk.Dialog) gxml.GetWidget("NameEditorDialog");
 }
Exemple #45
0
 public ChatMenu()
 {
     Glade.XML xmlMnuChat = new Glade.XML(null, "FileFind.Meshwork.GtkClient.meshwork.glade","mnuChat",null);
     mnuChat = (xmlMnuChat.GetWidget("mnuChat") as Gtk.Menu);
     xmlMnuChat.Autoconnect(this);
 }
        public MainWindow()
        {
            PersonsManager.Instance.PersonsCount();

            Glade.XML gxml_person = new Glade.XML("main_window.glade", "menuPersonActions", null);
            gxml_person.Autoconnect(this);
            this.imiModifyPerson = (ImageMenuItem)gxml_person.GetWidget("imiModifyPerson");
            this.imiRemovePerson = (ImageMenuItem)gxml_person.GetWidget("imiRemovePerson");

            Glade.XML gxml_event = new Glade.XML("main_window.glade", "menuEventActions", null);
            gxml_event.Autoconnect(this);
            this.imiWhoHadAttended = (ImageMenuItem)gxml_event.GetWidget("imiWhoHadAttended");
            this.imiModifyEvent = (ImageMenuItem)gxml_event.GetWidget("imiModifyEvent");
            this.imiRemoveEvent = (ImageMenuItem)gxml_event.GetWidget("imiRemoveEvent");

            Glade.XML gxml = new Glade.XML ("main_window.glade", "mainWindow", null);
            gxml.Autoconnect(this);

            this.menuPersonActions = (Menu)gxml_person.GetWidget("menuPersonActions");
            this.menuEventActions = (Menu)gxml_event.GetWidget("menuEventActions");

            //			this.selectedPersons = new List<Person>();
            //			this.selectedEvents = new List<Event>();
            //			this.selectedTreeIters = new List<Gtk.TreeIter>();
            this.lastEventsOnAttendancesList = new List<Event>();
            this.treeItersOnAttendancesList = new Dictionary<Person,TreeIter>();

            // Icon for the main window
            this.mainWindow.Icon = new Gdk.Pixbuf("blue_fea.gif");

            this.mtbAddPerson.Menu = this.menuPersonActions;
            this.mtbAddEvent.Menu = this.menuEventActions;

            // ### tvPersons ###
            this.tvPersons = new TreeView();
            this.tvPersons.HeadersVisible = true;
            this.tvPersons.Selection.Mode = SelectionMode.Multiple;

            TreeViewColumn surname = new TreeViewColumn();
            surname.Title = "Apellido";
            CellRendererText surnameText = new CellRendererText();
            surname.PackStart(surnameText, true);

            TreeViewColumn name = new TreeViewColumn();
            name.Title = "Nombre";
            CellRendererText nameText = new CellRendererText();
            name.PackStart(nameText, true);

            TreeViewColumn email = new TreeViewColumn();
            email.Title = "E-Mail";
            CellRendererText emailText = new CellRendererText();
            email.PackStart(emailText, true);

            TreeViewColumn birthday = new TreeViewColumn();
            birthday.Title = "Cumpleaños";
            CellRendererText birthdayText = new CellRendererText();
            birthday.PackStart(birthdayText, true);

            this.tvPersons.AppendColumn(surname);
            this.tvPersons.AppendColumn(name);
            this.tvPersons.AppendColumn(email);
            this.tvPersons.AppendColumn(birthday);

            surname.SetCellDataFunc(surnameText,
                                    new TreeCellDataFunc(this.RenderSurname));
            name.SetCellDataFunc(nameText,
                                 new TreeCellDataFunc(this.RenderName));
            email.SetCellDataFunc(emailText,
                                  new TreeCellDataFunc(this.RenderEmail));
            birthday.SetCellDataFunc(birthdayText,
                                     new TreeCellDataFunc(this.RenderBirthday));

            this.persons = new ListStore(typeof(Person));

            this.persons.RowDeleted += new RowDeletedHandler(this.OnPersonsListRowDeleted);

            this.tvPersons.Model = this.persons;

            // Handler when a row is selected, to enable person modify button
            this.tvPersons.Selection.Changed += new EventHandler(this.OnPersonsListSelectionChanged);

            // Handler when a row is double clicked
            this.tvPersons.RowActivated += new RowActivatedHandler(this.OnPersonsListRowActivated);

            // Handler to disable modify and remove person buttons
            this.tvPersons.Hidden += new EventHandler(this.OnPersonsListHidden);

            this.tvPersons.ButtonPressEvent += new ButtonPressEventHandler(this.OnPersonsListButtonPress);
            this.tvPersons.PopupMenu += new PopupMenuHandler(this.OnPersonsListPopupMenu);

            // ### tvEvents ###
            this.tvEvents = new TreeView();
            this.tvEvents.HeadersVisible = true;
            this.tvEvents.Selection.Mode = SelectionMode.Multiple;

            TreeViewColumn eventName = new TreeViewColumn();
            eventName.Title = "Nombre";
            CellRendererText eventNameText = new CellRendererText();
            eventName.PackStart(eventNameText, true);

            TreeViewColumn eventDate = new TreeViewColumn();
            eventDate.Title = "Fecha";
            CellRendererText eventDateText = new CellRendererText();
            eventDate.PackStart(eventDateText, true);

            this.tvEvents.AppendColumn(eventName);
            this.tvEvents.AppendColumn(eventDate);

            eventName
                .SetCellDataFunc(eventNameText,
                                 new TreeCellDataFunc(this.RenderEventName));
            eventDate
                .SetCellDataFunc(eventDateText,
                                 new TreeCellDataFunc(this.RenderEventDate));

            this.events = new ListStore(typeof(Event));

            this.events.RowDeleted += new RowDeletedHandler(this.OnEventsListRowDeleted);

            this.tvEvents.Model = this.events;

            // Handler when a row is selected, to enable event modify button
            this.tvEvents.Selection.Changed += new EventHandler(this.OnEventsListSelectionChanged);

            // Handler when a row is double clicked
            this.tvEvents.RowActivated += new RowActivatedHandler(this.OnEventsListRowActivated);

            // Handler to disable modify and remove event buttons
            this.tvEvents.Hidden += new EventHandler(this.OnEventsListHidden);

            this.tvEvents.ButtonPressEvent += new ButtonPressEventHandler(this.OnEventsListButtonPress);
            this.tvEvents.PopupMenu += new PopupMenuHandler(this.OnEventsListPopupMenu);

            // ### tvAttendaces ###
            this.tvAttendances.Hidden += new EventHandler(this.OnAttendancesListHidden);

            // ### Persons and events loading ###
            // Read persons from database
            foreach (Person p in PersonsManager.Instance.RetrieveAll())
                this.AddPersonToList(p);

            // Read events from database
            foreach (Event e in EventsManager.Instance.RetrieveAll())
                this.AddEventToList(e);

            this.mainWindow.ShowAll();
        }
Exemple #47
0
 /// Initialize Glade Window with Window Name & Glade XML Struct
 public GladeWindow(string name, Glade.XML glade)
 {
     this.glade  = glade;
     this.window = (Gtk.Window)glade.GetWidget(name);
     this.glade.Autoconnect(this);
 }
Exemple #48
0
        ///
        /// Constructs the GtkPlayer from compiled-in Glade.XML resources
        ///
        public GtkPlayer()
        {
            _Trace( "Loading Glade.XML" );

             //
             // With the null first parameter, this callw ill try to load
             // our resources as if they were compiled in. Which they are.
             // Right?
             //
             Glade.XML glade = new Glade.XML( null,
                                          "tam.GtkPlayer.exe.glade",
                                          "_mainWindow",
                                          null );

             _Trace( "autoconnect" );
             glade.Autoconnect( this );
             _mainWindow = (Gtk.Window)glade.GetWidget( "_mainWindow" );
             Debug.Assert( null != _mainWindow );

             _Trace( "fetching settings" );
             try
             {
            _settings = PlayerSettings.Fetch();
             }
             catch (Exception e)
             {
            _Status( "Note: Could not load settings, using defaults: "
                     + e.Message,
                     35 );

            _settings = new PlayerSettings();
            _settings.serverName = "localhost";
            _settings.serverPort = 6543;
             }

             PlayerApp.connectionString = _settings.connectString;

             PlayerApp.mp3RootDir = _settings.mp3RootDir;

             PlayerApp.serverUrl =
            "tcp://" + _settings.serverName + ":"
            + _settings.serverPort + "/Engine";

             _SetUpControls();

             // Load application icon here if possible, save for later use
             // in dialogs.
            //          Gdk.Pixbuf icon = new Gdk.Pixbuf( Assembly.GetExecutingAssembly(),
            //                                            "appicon.png" );
            //
            //          Debug.Assert( null != icon );
            //          _mainWindow.Icon = icon;
            //          _configWindow.Icon = icon;
            //          _whoAreYouWindow.Icon = icon;

             // Background processing callback
             Gtk.Timeout.Add( 2000, new Gtk.Function( _PollingCallback ) );
        }
Exemple #49
0
 public MainWindow()
 {
     xml = new Glade.XML("./RSSAggregator.glade", "frmMain", "");
     win = (xml.GetWidget("frmMain") as Gtk.Window);
 }
Exemple #50
0
 public MemoMenu()
 {
     Glade.XML xmlMnuMemos = new Glade.XML(null, "FileFind.Meshwork.GtkClient.meshwork.glade","mnuMemos",null);
     mnuMemos = (xmlMnuMemos.GetWidget("mnuMemos") as Gtk.Menu);
     xmlMnuMemos.Autoconnect(this);
 }
    public GnomeArtNgApp(string[] args)
    {
        Application.Init();
        //i18n
        Catalog.Init("gnomeartng","./locale");
        config=new CConfiguration();
        //initialize Glade
        string mainW = "MainWindow";
        Glade.XML gxml = new Glade.XML (null, "gui.glade", mainW, null);
        mainWindow = (Gtk.Window) gxml.GetWidget (mainW);
        gxml.Autoconnect (this);

        //Connect all events
        mainWindow.DeleteEvent+=new DeleteEventHandler(OnWindowDeleteEvent);
        ExtInfoPreviewButton.Clicked += new EventHandler(OnPreviewButtonClicked);
        InstallButton.Clicked  += new EventHandler(OnInstallButtonClicked);
        RevertButton.Clicked  += new EventHandler(OnRevertButtonClicked);
        RefreshButton.Clicked += new EventHandler(OnRefreshButtonClicked);
        SaveButton.Clicked  += new EventHandler(OnSaveButtonClicked);
        MainNotebook.SwitchPage += new SwitchPageHandler(OnSwitchPage);
        FilterEntry.Changed += new EventHandler(OnFilterEntriesChanged);
        //		SortKindCb.Changed += new EventHandler(OnSortKindEntryChanged);
        //		SortDirectionCb.Changed += new EventHandler(OnSortDirectionEntryChanged);
        //		SortCloseButton.Clicked += new EventHandler(OnSortCloseClicked);
        FilterEntry.KeyReleaseEvent += new KeyReleaseEventHandler(OnFilterbarKeyReleased);
        FilterCloseButton.Clicked += new EventHandler(OnFilterbarCloseClicked);

        //Menuitems
        QuitMenuItem.Activated += new EventHandler(OnQuitItemSelected);
        UpdateMenuItem.Activated += new EventHandler(OnUpdateItemSelected);
        DonateMenuItem.Activated += new EventHandler(CUpdateWindow.onDonateButtonClicked);
        FilterMenuItem.Activated += new EventHandler(OnFilterItemSelected);
        //		SortMenuItem.Activated += new EventHandler(OnSortItemSelected);
        InfoMenuItem.Activated += new EventHandler(OnInfoItemSelected);
        PreferencesMenuItem.Activated += new EventHandler(OnPreferencesItemSelected);
        FTAItem.Activated += new EventHandler(onFtaItemSelected);

        //First, download all thumbs...but don't bother the user with the update message, even if there is one
        bool RestartApp= false;
        if (config.NeverStartedBefore)
            new CFirstTimeAssistant(config);
        else if (config.DontBotherForUpdates==false) {
            if (config.UpdateAvailable) {
                Console.WriteLine("An update is available, newest version is: "+config.NewestVersionNumberOnServer);
                RestartApp = ShowUpdateWindow();
            }
        }

        if (!RestartApp) {
            //Application placement - doesn't work properly with compiz (is it the window placement plugin?)
            if (config.SettingsLoadOk) {
                mainWindow.Resize(config.Window.Width, config.Window.Height);
                mainWindow.Move(config.Window.X, config.Window.Y);
                //Console.WriteLine(config.Window.X+" "+ config.Window.Y);
            }

            //ArtManager erzeugen
            man = new CArtManager(config);

            //Stores anlegen und IconViews anlegen
            for(int i=0;i<ListStoreCount;i++){
                sWins[i] = (Gtk.ScrolledWindow)(gxml.GetWidget("swin"+i));
                stores[i]= new ListStore (typeof(Pixbuf),typeof (string), typeof (string), typeof(int));
                IconViews[i] = new Gtk.IconView(stores[i]);
                IconViews[i].SelectionChanged += new System.EventHandler(OnSelChanged);
                IconViews[i].ItemActivated += new ItemActivatedHandler(OnItemActivated);
                IconViews[i].PixbufColumn = 0;
                CurrentIconView = IconViews[0];

                sWins[i].Add(IconViews[i]);
                IconViews[i].Show();
            }

            //Create the comboboxes
            imageTypeBox = ComboBox.NewText();
            imageResolutionsBox = ComboBox.NewText();
            imageStyleBox = ComboBox.NewText();

            //Verschiedene Styles hinzufügen
            imageStyleBox.AppendText(Catalog.GetString("Centered"));
            imageStyleBox.AppendText(Catalog.GetString("Filled"));
            imageStyleBox.AppendText(Catalog.GetString("Scaled"));
            imageStyleBox.AppendText(Catalog.GetString("Zoomed"));
            imageStyleBox.AppendText(Catalog.GetString("Tiled"));
            imageStyleBox.Active=0;
            imageStyleBox.Changed += new EventHandler(OnImageStyleBoxChanged);

            LowerTable.Attach(imageTypeBox,1,2,2,3);
            LowerTable.Attach(imageResolutionsBox,1,2,3,4);
            LowerTable.Attach(imageStyleBox,1,2,4,5);

            OnSwitchPage(MainNotebook,new SwitchPageArgs());
            Gtk.Application.Run ();

        }
    }
    public GnomeArtNgApp(string[] args)
    {
        Application.Init();
        //i18n
        Catalog.Init("gnomeartng", "./locale");
        config = new CConfiguration();
        //initialize Glade
        string mainW = "MainWindow";

        Glade.XML gxml = new Glade.XML(null, "gui.glade", mainW, null);
        mainWindow = (Gtk.Window)gxml.GetWidget(mainW);
        gxml.Autoconnect(this);

        //Connect all events
        mainWindow.DeleteEvent       += new DeleteEventHandler(OnWindowDeleteEvent);
        ExtInfoPreviewButton.Clicked += new EventHandler(OnPreviewButtonClicked);
        InstallButton.Clicked        += new EventHandler(OnInstallButtonClicked);
        RevertButton.Clicked         += new EventHandler(OnRevertButtonClicked);
        RefreshButton.Clicked        += new EventHandler(OnRefreshButtonClicked);
        SaveButton.Clicked           += new EventHandler(OnSaveButtonClicked);
        MainNotebook.SwitchPage      += new SwitchPageHandler(OnSwitchPage);
        FilterEntry.Changed          += new EventHandler(OnFilterEntriesChanged);
//		SortKindCb.Changed += new EventHandler(OnSortKindEntryChanged);
//		SortDirectionCb.Changed += new EventHandler(OnSortDirectionEntryChanged);
//		SortCloseButton.Clicked += new EventHandler(OnSortCloseClicked);
        FilterEntry.KeyReleaseEvent += new KeyReleaseEventHandler(OnFilterbarKeyReleased);
        FilterCloseButton.Clicked   += new EventHandler(OnFilterbarCloseClicked);

        //Menuitems
        QuitMenuItem.Activated   += new EventHandler(OnQuitItemSelected);
        UpdateMenuItem.Activated += new EventHandler(OnUpdateItemSelected);
        DonateMenuItem.Activated += new EventHandler(CUpdateWindow.onDonateButtonClicked);
        FilterMenuItem.Activated += new EventHandler(OnFilterItemSelected);
//		SortMenuItem.Activated += new EventHandler(OnSortItemSelected);
        InfoMenuItem.Activated        += new EventHandler(OnInfoItemSelected);
        PreferencesMenuItem.Activated += new EventHandler(OnPreferencesItemSelected);
        FTAItem.Activated             += new EventHandler(onFtaItemSelected);

        //First, download all thumbs...but don't bother the user with the update message, even if there is one
        bool RestartApp = false;

        if (config.NeverStartedBefore)
        {
            new CFirstTimeAssistant(config);
        }
//		else if (config.DontBotherForUpdates==false) {
//			if (config.UpdateAvailable) {
//				Console.WriteLine("An update is available, newest version is: "+config.NewestVersionNumberOnServer);
//			RestartApp = ShowUpdateWindow();
//			}
//		}

        if (!RestartApp)
        {
            //Application placement - doesn't work properly with compiz (is it the window placement plugin?)
            if (config.SettingsLoadOk)
            {
                mainWindow.Resize(config.Window.Width, config.Window.Height);
                mainWindow.Move(config.Window.X, config.Window.Y);
                //Console.WriteLine(config.Window.X+" "+ config.Window.Y);
            }

            //ArtManager erzeugen
            man = new CArtManager(config);

            //Stores anlegen und IconViews anlegen
            for (int i = 0; i < ListStoreCount; i++)
            {
                sWins[i]     = (Gtk.ScrolledWindow)(gxml.GetWidget("swin" + i));
                stores[i]    = new ListStore(typeof(Pixbuf), typeof(string), typeof(string), typeof(int));
                IconViews[i] = new Gtk.IconView(stores[i]);
                IconViews[i].SelectionChanged += new System.EventHandler(OnSelChanged);
                IconViews[i].ItemActivated    += new ItemActivatedHandler(OnItemActivated);
                IconViews[i].PixbufColumn      = 0;
                CurrentIconView = IconViews[0];

                sWins[i].Add(IconViews[i]);
                IconViews[i].Show();
            }

            //Create the comboboxes
            imageTypeBox        = ComboBox.NewText();
            imageResolutionsBox = ComboBox.NewText();
            imageStyleBox       = ComboBox.NewText();

            //Verschiedene Styles hinzufügen
            imageStyleBox.AppendText(Catalog.GetString("Centered"));
            imageStyleBox.AppendText(Catalog.GetString("Filled"));
            imageStyleBox.AppendText(Catalog.GetString("Scaled"));
            imageStyleBox.AppendText(Catalog.GetString("Zoomed"));
            imageStyleBox.AppendText(Catalog.GetString("Tiled"));
            imageStyleBox.Active   = 0;
            imageStyleBox.Changed += new EventHandler(OnImageStyleBoxChanged);

            LowerTable.Attach(imageTypeBox, 1, 2, 2, 3);
            LowerTable.Attach(imageResolutionsBox, 1, 2, 3, 4);
            LowerTable.Attach(imageStyleBox, 1, 2, 4, 5);

            UpdateMenuItem.Hide();

            OnSwitchPage(MainNotebook, new SwitchPageArgs());
            Gtk.Application.Run();
        }
    }
 private void InitWizardGUI()
 {
     Glade.XML mainXml =
      new Glade.XML (Util.GladePath("ifolder.glade"),
      "InviteWizard",
      null);
        mainXml.Autoconnect (this);
        win = (Gtk.Window) mainXml.GetWidget("InviteWizard");
        Glade.XML welcomeXml =
      new Glade.XML (Util.GladePath("ifolder.glade"),
      "WelcomePage",
      null);
        welcomePage = welcomeXml.GetWidget("WelcomePage");
        WizardBox.PackEnd(welcomePage);
        Glade.XML loadXml =
      new Glade.XML (Util.GladePath("ifolder.glade"),
      "LoadPage",
      null);
        loadPage = loadXml.GetWidget("LoadPage");
        loadBrowseButton = (Gtk.Button)
     loadXml.GetWidget("LoadBrowseButton");
        loadPathEntry = (Gtk.Entry) loadXml.GetWidget("LoadPathEntry");
        loadBrowseButton.Clicked += new
     EventHandler(on_load_browse_clicked);
        loadPathEntry.Changed += new EventHandler(on_load_path_changed);
        Glade.XML acceptXml =
      new Glade.XML (Util.GladePath("ifolder.glade"),
      "AcceptPage",
      null);
        acceptPage = acceptXml.GetWidget("AcceptPage");
        acceptBrowseButton = (Gtk.Button)
     acceptXml.GetWidget("AcceptBrowseButton");
        acceptPathEntry = (Gtk.Entry)
     acceptXml.GetWidget("AcceptPathEntry");
        acceptiFolderName = (Gtk.Label)
     acceptXml.GetWidget("AcceptIFName");
        acceptSharerName = (Gtk.Label)
     acceptXml.GetWidget("AcceptIFSender");
        acceptSharerEmail = (Gtk.Label)
     acceptXml.GetWidget("AcceptIFSenderEmail");
        acceptRights = (Gtk.Label)
     acceptXml.GetWidget("AcceptIFRights");
        acceptBrowseButton.Clicked += new
     EventHandler(on_accept_browse_clicked);
        acceptPathEntry.Changed += new
     EventHandler(on_accept_path_changed);
        Glade.XML finalXml =
      new Glade.XML (Util.GladePath("ifolder.glade"),
      "FinalPage",
      null);
        finalPage = finalXml.GetWidget("FinalPage");
        finaliFolderName = (Gtk.Label)
     finalXml.GetWidget("FinalIFName");
        finalSharerName = (Gtk.Label)
     finalXml.GetWidget("FinalIFSender");
        finalSharerEmail = (Gtk.Label)
     finalXml.GetWidget("FinalIFSenderEmail");
        finalRights = (Gtk.Label)
     finalXml.GetWidget("FinalIFRights");
        finalLocation = (Gtk.Label)
     finalXml.GetWidget("FinalIFLocation");
        page = IW_WELCOME_PAGE;
        BackButton.Sensitive = false;
 }