void Initialize(Window parent, String text)
        {
            var stream = Assembly
                         .GetExecutingAssembly()
                         .GetManifestResourceStream(AppController.Instance.Config.SourceDialog);

            var glade = new Glade.XML(stream, "UnhandledExceptionDialog", null);

            if (stream != null)
            {
                stream.Close();
            }

            //Glade.XML glade = Glade.XML.FromAssembly("UnhandledExceptionDialog.glade","UnhandledExceptionDialog", null);
            //stream.Close();
            glade.Autoconnect(this);
            _thisDialog              = ((Dialog)(glade.GetWidget("UnhandledExceptionDialog")));
            _thisDialog.Modal        = true;
            _thisDialog.TransientFor = parent;
            _thisDialog.SetPosition(WindowPosition.Center);


            textview1.Buffer.Text = text;
            btnContinue.Clicked  += (sender, e) => _thisDialog.HideAll();

            btnUpload.Clicked += OnUpload;

            miSave.Activated   += OnSave;
            miSaveAs.Activated += OnSaveAs;
            miQuit.Activated   += (object sender, EventArgs e) => _thisDialog.HideAll();
            miAbout.Activated  += (object sender, EventArgs e) => new AboutDialog(_thisDialog).ShowDialog();
        }
Exemple #2
0
        void Init()
        {
            ui = new Glade.XML(null, "dialogs.glade", "groupDialog", null);
            ui.Autoconnect(this);

            viewDialog = groupDialog;

            TreeViewColumn col;

            allUserStore                    = new ListStore(typeof(string));
            allUsersTreeview.Model          = allUserStore;
            allUsersTreeview.Selection.Mode = SelectionMode.Multiple;

            col = allUsersTreeview.AppendColumn("Name", new CellRendererText(), "text", 0);
            col.SortColumnId = 0;

            allUserStore.SetSortColumnId(0, SortType.Ascending);

            currentMemberStore                    = new ListStore(typeof(string));
            currentMembersTreeview.Model          = currentMemberStore;
            currentMembersTreeview.Selection.Mode = SelectionMode.Multiple;

            col = currentMembersTreeview.AppendColumn("Name", new CellRendererText(), "text", 0);
            col.SortColumnId = 0;

            currentMemberStore.SetSortColumnId(0, SortType.Ascending);

            groupDialog.Resize(350, 400);
        }
Exemple #3
0
        public SearchBuilderDialog()
        {
            _allCombos = new List <ComboBox> ();
            _critTable = new Dictionary <string, SearchCriteria> ();
            _ls        = new LdapSearch();

            ui = new Glade.XML(null, "lat.glade", "searchBuilderDialog", null);
            ui.Autoconnect(this);

            Gdk.Pixbuf pb = Gdk.Pixbuf.LoadFromResource("edit-find-48x48.png");
            image117.Pixbuf = pb;

            opComboBox = createCombo(ops);
            opHbox.Add(opComboBox);

            addButton.Clicked    += new EventHandler(OnAddClicked);
            removeButton.Clicked += new EventHandler(OnRemoveClicked);

            okButton.Clicked     += new EventHandler(OnOkClicked);
            cancelButton.Clicked += new EventHandler(OnCancelClicked);

            searchBuilderDialog.Icon = Global.latIcon;
            searchBuilderDialog.Run();
            searchBuilderDialog.Destroy();
        }
Exemple #4
0
	public ExportDialog(DataBook db, Gtk.Window mw)
			: base(Catalog.GetString("Export Bytes"), null, 0)
	{
		Glade.XML gxml = new Glade.XML (FileResourcePath.GetDataPath("bless.glade"), "ExportDialogVBox", "bless");
		gxml.Autoconnect (this);

		dataBook = db;
		mainWindow = mw;
		pluginManager = PluginManager.GetForType(typeof(ExportPlugin));
		
		// initialize plugins if we have to
		if (pluginManager == null) {
			PluginManager.AddForType(typeof(ExportPlugin), new object[0]);
			pluginManager = PluginManager.GetForType(typeof(ExportPlugin));
		}
		
		exportFinishedEvent = new AutoResetEvent(false);

		SetupExportPlugins();

		ExportPatternComboEntry.Model = new ListStore (typeof (string));
		ExportPatternComboEntry.TextColumn = 0;
		LoadFromPatternFile((ListStore)ExportPatternComboEntry.Model);

		ProgressHBox.Visible = false;
		cancelClicked = false;

		this.Modal = false;
		this.BorderWidth = 6;
		this.HasSeparator = false;
		CloseButton = (Gtk.Button)this.AddButton(Gtk.Stock.Close, ResponseType.Close);
		ExportButton = (Gtk.Button)this.AddButton(Catalog.GetString("Export"), ResponseType.Ok);
		this.Response += new ResponseHandler(OnDialogResponse);
		this.VBox.Add(ExportDialogVBox);
	}
Exemple #5
0
        public void Run(FSpot.IBrowsableCollection photos)
        {
            if (null == photos)
            {
                throw new ArgumentNullException("photos");
            }

            this.photos = photos;

            Glade.XML glade_xml = new Glade.XML(
                null, "TabbloExport.glade", DialogName,
                "f-spot");
            glade_xml.Autoconnect(this);

            dialog = (Gtk.Dialog)glade_xml.GetWidget(DialogName);

            FSpot.Widgets.IconView icon_view =
                new FSpot.Widgets.IconView(photos);
            icon_view.DisplayDates = false;
            icon_view.DisplayTags  = false;

            username_entry.Changed += HandleAccountDataChanged;
            password_entry.Changed += HandleAccountDataChanged;
            ReadAccountData();
            HandleAccountDataChanged(null, null);

            dialog.Modal        = false;
            dialog.TransientFor = null;

            dialog.Response += HandleResponse;

            thumb_scrolled_window.Add(icon_view);
            icon_view.Show();
            dialog.Show();
        }
Exemple #6
0
        public TransfersMenu(TreeView transfersList, IFileTransfer transfer)
        {
            Glade.XML glade = new Glade.XML(null, "FileFind.Meshwork.GtkClient.meshwork.glade", "TransfersMenu", null);
            glade.Autoconnect(this);
            this.menu = (Gtk.Menu) glade.GetWidget("TransfersMenu");

            this.transfersList = transfersList;
            this.transfer = transfer;

            if (transfer != null) {
                mnuCancelAndRemoveTransfer.Visible = true;
                mnuShowTransferDetails.Sensitive = true;
                mnuClearFinishedFailedTransfers.Sensitive = true;
                if (transfer.Status == FileTransferStatus.Paused) {
                    mnuPauseTransfer.Visible = false;
                    mnuResumeTransfer.Visible = true;
                    mnuResumeTransfer.Sensitive = true;
                    mnuCancelTransfer.Sensitive = true;
                } else if (transfer.Status == FileTransferStatus.Canceled || transfer.Status == FileTransferStatus.Completed) {
                    mnuPauseTransfer.Sensitive = false;
                    mnuResumeTransfer.Visible = false;
                    mnuCancelTransfer.Sensitive = false;
                }
            } else {
                mnuCancelAndRemoveTransfer.Visible = false;
                mnuShowTransferDetails.Sensitive = false;
                mnuPauseTransfer.Sensitive = false;
                mnuResumeTransfer.Visible = false;
                mnuCancelTransfer.Sensitive = false;
            }
        }
        private DatabaseOpenDialog(Window parent)
        {
            Glade.XML xml = new Glade.XML(null, "gui.glade", "databaseOpenDialog", null);
            xml.Autoconnect(this);

            databaseOpenDialog.Icon = parent.Icon;

            // Conectamos las acciones de los botones del diálogo.
            databaseOpenDialog.AddActionWidget(btnOpen, ResponseType.Ok);
            databaseOpenDialog.AddActionWidget(btnCancel, ResponseType.Cancel);


            // Añadimos los archivos de filtros soportados
            FileFilter filter1 = new FileFilter();

            filter1.Name = "Archivo XML";
            filter1.AddPattern("*.xml");
            filter1.AddPattern("*.XML");

            FileFilter filter2 = new FileFilter();

            filter2.Name = "Base de datos de reconocimiento";
            filter2.AddPattern("*.jilfml");
            filter2.AddPattern("*.JILFML");

            FileFilter filter3 = new FileFilter();

            filter3.Name = "Todos los archivos";
            filter3.AddPattern("*.*");

            databaseOpenDialog.AddFilter(filter2);
            databaseOpenDialog.AddFilter(filter1);
            databaseOpenDialog.AddFilter(filter3);
        }
Exemple #8
0
        public ConnectDialog()
        {
            ui = new Glade.XML (null, "lat.glade", "connectionDialog", null);
            ui.Autoconnect (this);

            Gdk.Pixbuf pb = Gdk.Pixbuf.LoadFromResource ("x-directory-remote-server-48x48.png");
            image5.Pixbuf = pb;

            connectionDialog.Icon = Global.latIcon;
            connectionDialog.Resizable = false;

            portEntry.Text = "389";
            createCombo ();

            //			profileListStore = new ListStore (typeof (string));
            //			profileListview.Model = profileListStore;
            //			profileListStore.SetSortColumnId (0, SortType.Ascending);
            //
            //			TreeViewColumn col;
            //			col = profileListview.AppendColumn ("Name", new CellRendererText (), "text", 0);
            //			col.SortColumnId = 0;
            //
            //			UpdateProfileList ();
            //
            //			if (haveProfiles) {
            //
            //				notebook1.CurrentPage = 1;
            //				connectionDialog.Resizable = true;
            //			}

            noEncryptionRadioButton.Active = true;

            connectionDialog.Run ();
            connectionDialog.Destroy ();
        }
Exemple #9
0
        public SelectGroupsDialog(string[] allGroups)
        {
            ui = new Glade.XML (null, "lat.glade", "selectGroupsDialog", null);
            ui.Autoconnect (this);

            groups = new List<string> ();

            TreeViewColumn col;

            store = new ListStore (typeof (string));
            allGroupsTreeview.Model = store;
            allGroupsTreeview.Selection.Mode = SelectionMode.Multiple;

            col = allGroupsTreeview.AppendColumn ("Name", new CellRendererText (), "text", 0);
            col.SortColumnId = 0;

            store.SetSortColumnId (0, SortType.Ascending);

            foreach (string s in allGroups)
                store.AppendValues (s);

            selectGroupsDialog.Icon = Global.latIcon;
            selectGroupsDialog.Resize (320, 200);
            selectGroupsDialog.Run ();
            selectGroupsDialog.Destroy ();
        }
Exemple #10
0
        public AddObjectClassDialog(Connection conn)
        {
            objectClasses = new List<string> ();

            ui = new Glade.XML (null, "lat.glade", "addObjectClassDialog", null);
            ui.Autoconnect (this);

            store = new ListStore (typeof (bool), typeof (string));

            CellRendererToggle crt = new CellRendererToggle();
            crt.Activatable = true;
            crt.Toggled += OnClassToggled;

            objClassTreeView.AppendColumn ("Enabled", crt, "active", 0);
            objClassTreeView.AppendColumn ("Name", new CellRendererText (), "text", 1);

            objClassTreeView.Model = store;

            try {

                foreach (string n in conn.Data.ObjectClasses)
                    store.AppendValues (false, n);

            } catch (Exception e) {

                store.AppendValues (false, "Error getting object classes");
                Log.Debug (e);
            }

            addObjectClassDialog.Icon = Global.latIcon;
            addObjectClassDialog.Resize (300, 400);
            addObjectClassDialog.Run ();
            addObjectClassDialog.Destroy ();
        }
Exemple #11
0
        // Constructor
        public OverwriteDialog(Window parent, string fn)
        {
            Glade.XML gxml =
                new Glade.XML(null, "OverwriteDialog.glade", "window", null);

            gxml.Autoconnect(this);

            string fn_readable = FileUtils.MakeHumanReadable(fn);

            string primary_text =
                String.Format(string_primary_text, fn_readable);

            // Label
            string primary_text_esc =
                StringUtils.EscapeForPango(primary_text);

            string string_secondary_text_esc =
                StringUtils.EscapeForPango(string_secondary_text);


            string fmt    = "<span size=\"large\" weight=\"bold\">{0}</span>";
            string markup = String.Format(fmt, primary_text_esc);

            window = new Gtk.MessageDialog(parent, DialogFlags.DestroyWithParent,
                                           MessageType.Question, ButtonsType.None, true, markup);

            window.AddButton(Gtk.Stock.Cancel, ResponseType.Cancel);
            window.AddButton(Catalog.GetString("_Overwrite"), ResponseType.Yes);

            window.Title         = window_title;
            window.SecondaryText = string_secondary_text_esc;
        }
Exemple #12
0
        public FindReplaceWidget(DataBook db, IFinder iFinder)
        {
            finder   = iFinder;
            dataBook = db;

            Glade.XML gxml = new Glade.XML(FileResourcePath.GetDataPath("bless.glade"), "FindReplaceTable", "bless");
            gxml.Autoconnect(this);

            this.Shown += OnWidgetShown;
            SearchPatternEntry.Activated  += OnSearchPatternEntryActivated;
            ReplacePatternEntry.Activated += OnReplacePatternEntryActivated;

            SearchPatternEntry.FocusGrabbed  += OnFocusGrabbed;
            ReplacePatternEntry.FocusGrabbed += OnFocusGrabbed;

            SearchAsComboBox.Active  = 0;
            ReplaceAsComboBox.Active = 0;

            SearchPatternEntry.Completion            = new EntryCompletion();
            SearchPatternEntry.Completion.Model      = new ListStore(typeof(string));
            SearchPatternEntry.Completion.TextColumn = 0;

            ReplacePatternEntry.Completion            = new EntryCompletion();
            ReplacePatternEntry.Completion.Model      = new ListStore(typeof(string));
            ReplacePatternEntry.Completion.TextColumn = 0;

            // initialize replace pattern
            replacePattern = new byte[0];

            this.Add(FindReplaceTable);
            this.ShowAll();
        }
Exemple #13
0
        public PrintDialog(Photo [] photos)
        {
            this.photos = photos;

#if ENABLE_CUSTOM_PRINT
            Glade.XML xml = new Glade.XML(null, "f-spot.glade", "print_dialog", "f-spot");
            xml.Autoconnect(this);
#endif

            print_job = new Gnome.PrintJob(Gnome.PrintConfig.Default());

            //Render ();

#if ENABLE_CUSTOM_PRINT
            int response = print_dialog.Run();

            switch (response)
            {
            case (int)Gtk.ResponseType.Ok:
                print_job.Print();
                break;
            }
            print_dialog.Destroy();
#else
            RunGnomePrintDialog();
#endif
        }
        public FlagsSelectorDialog(Gtk.Window parent, EnumDescriptor enumDesc, uint flags, string title)
        {
            this.flags  = flags;
            this.parent = parent;

            Glade.XML xml = new Glade.XML(null, "stetic.glade", "FlagsSelectorDialog", null);
            xml.Autoconnect(this);

            store          = new Gtk.ListStore(typeof(bool), typeof(string), typeof(uint));
            treeView.Model = store;

            Gtk.TreeViewColumn col = new Gtk.TreeViewColumn();

            Gtk.CellRendererToggle tog = new Gtk.CellRendererToggle();
            tog.Toggled += new Gtk.ToggledHandler(OnToggled);
            col.PackStart(tog, false);
            col.AddAttribute(tog, "active", 0);

            Gtk.CellRendererText crt = new Gtk.CellRendererText();
            col.PackStart(crt, true);
            col.AddAttribute(crt, "text", 1);

            treeView.AppendColumn(col);

            foreach (Enum value in enumDesc.Values)
            {
                EnumValue eval = enumDesc[value];
                if (eval.Label == "")
                {
                    continue;
                }
                uint val = (uint)Convert.ToInt32(eval.Value);
                store.AppendValues(((flags & val) != 0), eval.Label, val);
            }
        }
 public override Widget ConfigurationWidget()
 {
     xml = new Glade.XML(null, "f-spot.glade", "color_editor_prefs", "f-spot");
     xml.Autoconnect(this);
     AttachInterface();
     return(xml.GetWidget("color_editor_prefs"));;
 }
		private DatabaseSaveDialog(Window parent)
		{
			Glade.XML xml = new Glade.XML(null,"gui.glade","databaseSaveDialog",null);
			xml.Autoconnect(this);
			
			databaseSaveDialog.Icon = parent.Icon;
			
			// Conectamos las acciones de los botones del diálogo.
			databaseSaveDialog.AddActionWidget(btnSave,ResponseType.Ok);
			databaseSaveDialog.AddActionWidget(btnCancel,ResponseType.Cancel);			
			
			
			// Añadimos los archivos de filtros soportados
			FileFilter filter1=new FileFilter();
			filter1.Name="Archivo XML";
			filter1.AddPattern("*.xml");
			filter1.AddPattern("*.XML");
			
			FileFilter filter2=new FileFilter();
			filter2.Name="Base de datos de reconocimiento";
			filter2.AddPattern("*.jilfml");
			filter2.AddPattern("*.JILFML");
			
			FileFilter filter3=new FileFilter();
			filter3.Name="Todos los archivos";
			filter3.AddPattern("*.*");			
			
			databaseSaveDialog.AddFilter(filter2);		
			databaseSaveDialog.AddFilter(filter1);				
			databaseSaveDialog.AddFilter(filter3);	
		}
                #pragma warning restore 0649

        public ExceptionViewDialog(Exception exception, Window parent)
        {
            //TODO: Looks like builder pattern needed here
            Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("ExceptionViewDialog.glade");

            Glade.XML glade = new Glade.XML(stream, "ExceptionViewDialog", null);
            stream.Close();
            glade.Autoconnect(this);
            thisDialog = ((Gtk.Dialog)(glade.GetWidget("ExceptionViewDialog")));
            thisDialog.TransientFor   = parent;
            thisDialog.Modal          = true;
            thisDialog.AllowGrow      = false;
            thisDialog.AllowShrink    = false;
            thisDialog.WindowPosition = WindowPosition.Center;

            ExceptionMessage = exception.Message;

            tvButtonDescription.Sensitive = false;
            if (!(exception is ManagementException))
            {
                ExceptionType                   = exception.GetType().FullName;
                ExceptionDescription            = exception.ToString();
                tvButtonDescription.Buffer.Text =
                    "Use ignore for continue, Quit for exit program.";
            }
            else
            {
                ExceptionType = string.Empty;
            }
        }
        public IncludeFilesDialog(Project project, StringCollection newFiles)
        {
            Runtime.LoggingService.Info ("*** Include files dialog ***");
            // we must do it from *here* otherwise, we get this assembly, not the caller
            Glade.XML glade = new Glade.XML (null, "Base.glade", "IncludeFilesDialogWidget", null);
            glade.Autoconnect (this);

            // set up dialog title
            this.IncludeFilesDialogWidget.Title = String.Format (GettextCatalog.GetString ("Found new files in {0}"), project.Name);

            newFilesOnlyRadioButton.Active = true;
            this.newFiles = newFiles;
            this.project  = project;

            this.InitialiseIncludeFileList();

            // wire in event handlers
            okbutton.Clicked += new EventHandler(AcceptEvent);
            cancelbutton.Clicked += new EventHandler(CancelEvent);
            selectAllButton.Clicked += new EventHandler(SelectAll);
            deselectAllButton.Clicked += new EventHandler(DeselectAll);

            // FIXME: I'm pretty sure that these radio buttons
            // don't actually work in SD 0.98 either, so disabling them
            newFilesOnlyRadioButton.Sensitive = false;
            allFilesRadioButton.Sensitive = false;
        }
Exemple #19
0
        public MassEditDialog()
        {
            _modList = new List<LdapModification> ();

            ui = new Glade.XML (null, "lat.glade", "massEditDialog", null);
            ui.Autoconnect (this);

            createCombos ();

            modListStore = new ListStore (typeof (string), typeof (string), typeof (string));
            modListView.Model = modListStore;

            TreeViewColumn col;
            col = modListView.AppendColumn ("Action", new CellRendererText (), "text", 0);
            col.SortColumnId = 0;

            col = modListView.AppendColumn ("Name", new CellRendererText (), "text", 1);
            col.SortColumnId = 1;

            col = modListView.AppendColumn ("Value", new CellRendererText (), "text", 2);
            col.SortColumnId = 2;

            modListStore.SetSortColumnId (0, SortType.Ascending);

            massEditDialog.Resize (300, 450);
            massEditDialog.Icon = Global.latIcon;
            massEditDialog.Run ();
            massEditDialog.Destroy ();
        }
Exemple #20
0
        public SelectGroupsDialog(string[] allGroups)
        {
            ui = new Glade.XML(null, "lat.glade", "selectGroupsDialog", null);
            ui.Autoconnect(this);

            groups = new List <string> ();

            TreeViewColumn col;

            store = new ListStore(typeof(string));
            allGroupsTreeview.Model          = store;
            allGroupsTreeview.Selection.Mode = SelectionMode.Multiple;

            col = allGroupsTreeview.AppendColumn("Name", new CellRendererText(), "text", 0);
            col.SortColumnId = 0;

            store.SetSortColumnId(0, SortType.Ascending);

            foreach (string s in allGroups)
            {
                store.AppendValues(s);
            }

            selectGroupsDialog.Icon = Global.latIcon;
            selectGroupsDialog.Resize(320, 200);
            selectGroupsDialog.Run();
            selectGroupsDialog.Destroy();
        }
Exemple #21
0
        public FlagsSelectorDialog(Gtk.Window parent, EnumDescriptor enumDesc, uint flags, string title)
        {
            this.flags = flags;
            this.parent = parent;

            Glade.XML xml = new Glade.XML (null, "stetic.glade", "FlagsSelectorDialog", null);
            xml.Autoconnect (this);

            store = new Gtk.ListStore (typeof(bool), typeof(string), typeof(uint));
            treeView.Model = store;

            Gtk.TreeViewColumn col = new Gtk.TreeViewColumn ();

            Gtk.CellRendererToggle tog = new Gtk.CellRendererToggle ();
            tog.Toggled += new Gtk.ToggledHandler (OnToggled);
            col.PackStart (tog, false);
            col.AddAttribute (tog, "active", 0);

            Gtk.CellRendererText crt = new Gtk.CellRendererText ();
            col.PackStart (crt, true);
            col.AddAttribute (crt, "text", 1);

            treeView.AppendColumn (col);

            foreach (Enum value in enumDesc.Values) {
                EnumValue eval = enumDesc[value];
                if (eval.Label == "")
                    continue;
                uint val = (uint) (int) eval.Value;
                store.AppendValues (((flags & val) != 0), eval.Label, val);
            }
        }
Exemple #22
0
        public ConnectDialog()
        {
            ui = new Glade.XML(null, "lat.glade", "connectionDialog", null);
            ui.Autoconnect(this);

            Gdk.Pixbuf pb = Gdk.Pixbuf.LoadFromResource("x-directory-remote-server-48x48.png");
            image5.Pixbuf = pb;

            connectionDialog.Icon      = Global.latIcon;
            connectionDialog.Resizable = false;

            portEntry.Text = "389";
            createCombo();

//			profileListStore = new ListStore (typeof (string));
//			profileListview.Model = profileListStore;
//			profileListStore.SetSortColumnId (0, SortType.Ascending);
//
//			TreeViewColumn col;
//			col = profileListview.AppendColumn ("Name", new CellRendererText (), "text", 0);
//			col.SortColumnId = 0;
//
//			UpdateProfileList ();
//
//			if (haveProfiles) {
//
//				notebook1.CurrentPage = 1;
//				connectionDialog.Resizable = true;
//			}

            noEncryptionRadioButton.Active = true;

            connectionDialog.Run();
            connectionDialog.Destroy();
        }
Exemple #23
0
        public PreferencesDialog(Gnome.Program program)
        {
            ui = new Glade.XML(null, "lat.glade", "preferencesDialog", null);
            ui.Autoconnect(this);

            this.program = program;

            profileStore           = new ListStore(typeof(string));
            profilesTreeView.Model = profileStore;
            profileStore.SetSortColumnId(0, SortType.Ascending);

            TreeViewColumn col;

            col = profilesTreeView.AppendColumn("Name", new CellRendererText(), "text", 0);
            col.SortColumnId = 0;

            UpdateProfileList();

            LoadPreference(Preferences.BROWSER_SELECTION);

            preferencesDialog.Icon = Global.latIcon;
            preferencesDialog.Resize(300, 400);
            preferencesDialog.Run();

            if (gettingHelp)
            {
                preferencesDialog.Run();
                gettingHelp = false;
            }

            preferencesDialog.Destroy();
        }
Exemple #24
0
        // Constructor
        public InfoWindow(string title) : base(IntPtr.Zero)
        {
            Glade.XML gxml = new Glade.XML(null, "InfoWindow.glade", "window", null);
            gxml.Autoconnect(this);

            Raw = window.Handle;

            window.Title = title;

            int width  = (int)Muine.GetGConfValue(GConfKeyWidth, GConfDefaultWidth);
            int height = (int)Muine.GetGConfValue(GConfKeyHeight, GConfDefaultHeight);

            window.SetDefaultSize(width, height);

            window.SizeAllocated += OnSizeAllocated;

            cover_image = new CoverImage();
            ((Container)gxml ["cover_image_container"]).Add(cover_image);

            // Keynav
            box.FocusHadjustment = scrolledwindow.Hadjustment;
            box.FocusVadjustment = scrolledwindow.Vadjustment;

            // White background
//			viewport.EnsureStyle ();
//			viewport.ModifyBg (StateType.Normal, viewport.Style.Base (StateType.Normal));
        }
Exemple #25
0
        void Initialize(Window parent)
        {
            var stream = Assembly
                         .GetExecutingAssembly()
                         .GetManifestResourceStream("LadderLogic.Presentation.EnvironmentVariablesDialog.glade");

            var glade = new Glade.XML(stream, "UnhandledExceptionDialog", null);

            if (stream != null)
            {
                stream.Close();
            }

            //Glade.XML glade = Glade.XML.FromAssembly("UnhandledExceptionDialog.glade","UnhandledExceptionDialog", null);
            //stream.Close();
            glade.Autoconnect(this);
            _thisDialog = ((Dialog)(glade.GetWidget("UnhandledExceptionDialog")));

            //_thisDialog = ((Dialog)(glade.GetWidget(AppController.Instance.Config.UnhandledExceptionDialogName)));
            //_thisDialog.Modal = true;
            //_thisDialog.TransientFor = parent;
            _thisDialog.SetPosition(WindowPosition.Center);

            var env = CController.Instance.GetEnvironmentVariables();

            if (env != null)
            {
                etBoard.Text = env.ArduinoBoard;
                etPort.Text  = env.ArduinoPort;
                etPath.Text  = env.ArduinoPath;
            }
        }
        public HardDiskConfigDialog(VirtualHardDisk disk, bool capacitySensitive, Window parent)
            : base(Catalog.GetString ("Configure Hard Disk"),
                                                                                  parent, DialogFlags.NoSeparator,
                                                                                  Stock.Cancel, ResponseType.Cancel,
                                                                                  Stock.Ok, ResponseType.Ok)
        {
            this.disk = disk;

            IconThemeUtils.SetWindowIcon (this);

            Glade.XML xml = new Glade.XML ("vmx-manager.glade", "diskConfigContent");
            xml.Autoconnect (this);

            busTypeCombo.Changed += delegate {
                PopulateDeviceNumberCombo ();
            };

            VBox.Add (diskConfigContent);
            diskConfigContent.ShowAll ();

            diskSizeSpin.Sensitive = capacitySensitive;

            Response += delegate (object o, ResponseArgs args) {
                if (args.ResponseId == ResponseType.Ok) {
                    Save ();
                }

                this.Destroy ();
            };

            allocateDiskCheck.Sensitive = capacitySensitive;

            Load ();
        }
Exemple #27
0
        public void init()
        {
            /* Make Our Connection!*/
            Glade.XML gxml = new Glade.XML (SupportFileLoader.locateGameFile("gpremacy_gui/gpremacy_gui.glade"), "GameSetup", null);
            gxml.Autoconnect (this);

            GameSetup.Modal = true;
            GameSetup.TransientFor = MainWindow;

            GameSetup.DeleteEvent += on_GameSetup_delete_event;
            GameSetupSingleStart.Clicked += on_GameSetupSingleStart_clicked;
            GameSetupConnectButton.Clicked += on_GameSetupConnectButton_clicked;
            GameSetupMultiStart.Clicked += on_GameSetupMultiStart_clicked;

            GameSetupRadioClient.Toggled += on_MultiRadio_changed;
            GameSetupRadioServer.Toggled += on_MultiRadio_changed;

            GameSetupPortLabel.Text += "(normally " + Game.DefaultPort.ToString();

            GameSetupMultiStart.Sensitive = false;

            populatePlayers(GameSetupSingleCountryTable);
            populatePlayers(GameSetupCountryTable);
            /* Turn off the AI buttons */
            setSensitiveAIButtons(GameSetupCountryTable, false);

            on_MultiRadio_changed(null, null); /* Fake event */

            // Create a timer that waits one second, then invokes every second.
            UpdateStatusTimer = new Timer(new TimerCallback(updateStatus), null, 1000, 1000);
            UpdateStatusTimer.ToString(); // Shut UP, you damn warning!

            GameSetupEntryIP.Text = "192.168.1.150";
        }
        /// <summary>
        /// Constructor de la clase LogSaveDialog. Crea y muestra el diálogo.
        /// </summary>
        public LogSaveDialog()
        {
            Glade.XML gxml = new Glade.XML(null, "gui.glade", "logSaveDialog", null);
            gxml.Autoconnect(this);

            FileFilter logFilter = new FileFilter();

            logFilter.Name = "Archivo de registro";
            logFilter.AddPattern("*.log");
            logFilter.AddPattern("*.LOG");

            FileFilter txtFilter = new FileFilter();

            txtFilter.Name = "Archivo de texto";
            txtFilter.AddPattern("*.txt");
            txtFilter.AddPattern("*.TXT");

            FileFilter allFilter = new FileFilter();

            allFilter.Name = "Todos los archivos";
            allFilter.AddPattern("*.*");

            logSaveDialog.AddFilter(logFilter);
            logSaveDialog.AddFilter(txtFilter);
            logSaveDialog.AddFilter(allFilter);

            logSaveDialog.AddActionWidget(btnSave, ResponseType.Ok);
            logSaveDialog.AddActionWidget(btnCancel, ResponseType.Cancel);
        }
Exemple #29
0
        void Initialize(Window parent, Exception ex)
        {
            var stream = Assembly
                         .GetExecutingAssembly()
                         .GetManifestResourceStream(AppController.Instance.Config.UnhandledExceptionDialog);

            var glade = new Glade.XML(stream, AppController.Instance.Config.UnhandledExceptionDialogName, null);

            if (stream != null)
            {
                stream.Close();
            }

            //Glade.XML glade = Glade.XML.FromAssembly("UnhandledExceptionDialog.glade","UnhandledExceptionDialog", null);
            //stream.Close();
            glade.Autoconnect(this);
            _thisDialog = ((Dialog)(glade.GetWidget(AppController.Instance.Config.UnhandledExceptionDialogName)));

            //_thisDialog = ((Dialog)(glade.GetWidget(AppController.Instance.Config.UnhandledExceptionDialogName)));
            _thisDialog.Modal        = true;
            _thisDialog.TransientFor = parent;
            _thisDialog.SetPosition(WindowPosition.Center);


            textview1.Buffer.Text = ex.ToString();
        }
		/// <summary>
		/// Constructor de la clase LogSaveDialog. Crea y muestra el diálogo.
		/// </summary>
		public LogSaveDialog()
		{
			Glade.XML gxml = new Glade.XML (null,"gui.glade", "logSaveDialog", null);
            gxml.Autoconnect (this);
            
            FileFilter logFilter = new FileFilter();
            logFilter.Name = "Archivo de registro";
            logFilter.AddPattern("*.log");
            logFilter.AddPattern("*.LOG");
            
            FileFilter txtFilter = new FileFilter();
            txtFilter.Name = "Archivo de texto";
            txtFilter.AddPattern("*.txt");
            txtFilter.AddPattern("*.TXT");
            
            FileFilter allFilter = new FileFilter();
            allFilter.Name = "Todos los archivos";
            allFilter.AddPattern("*.*");          
            
            logSaveDialog.AddFilter(logFilter);
            logSaveDialog.AddFilter(txtFilter);
            logSaveDialog.AddFilter(allFilter);
            
            logSaveDialog.AddActionWidget(btnSave,ResponseType.Ok);
            logSaveDialog.AddActionWidget(btnCancel,ResponseType.Cancel); 
		}
Exemple #31
0
        public InfoWindow(Song song, Window w)
            : base("", w, DialogFlags.DestroyWithParent)
        {
            this.HasSeparator = false;

            Glade.XML glade_xml = new Glade.XML (null, "InfoWindow.glade", "info_contents", null);
            glade_xml.Autoconnect (this);
            this.VBox.Add (info_contents);

            cover_image = new MagicCoverImage ();
            cover_image_container.Add (cover_image);
            cover_image.Visible = true;

            // Gdk.Pixbuf cover = new Gdk.Pixbuf (null, "unknown-cover.png", 66, 66);
            // cover_image.ChangePixbuf (cover);

            user_name_label = new UrlLabel ();
            user_name_label.UrlActivated += new UrlActivatedHandler (OnUrlActivated);
            user_name_container.Add (user_name_label);
            user_name_label.SetAlignment ((float) 0.0, (float) 0.5);
            user_name_label.Visible = true;

            real_name_label = new UrlLabel ();
            real_name_label.UrlActivated += new UrlActivatedHandler (OnUrlActivated);
            real_name_container.Add (real_name_label);
            real_name_label.SetAlignment ((float) 0.0, (float) 0.5);
            real_name_label.Visible = true;

            this.AddButton ("gtk-close", ResponseType.Close);

            SetSong (song);
        }
Exemple #32
0
        public AccountDialog(Gtk.Window parent, GalleryAccount account, bool show_error)
        {
            Glade.XML xml = new Glade.XML (null, "GalleryExport.glade", "gallery_add_dialog", "f-spot");
            xml.Autoconnect (this);
            add_dialog = (Gtk.Dialog) xml.GetWidget ("gallery_add_dialog");
            add_dialog.Modal = false;
            add_dialog.TransientFor = parent;
            add_dialog.DefaultResponse = Gtk.ResponseType.Ok;

            this.account = account;

            status_area.Visible = show_error;

            if (account != null) {
                gallery_entry.Text = account.Name;
                url_entry.Text = account.Url;
                password_entry.Text = account.Password;
                username_entry.Text = account.Username;
                add_button.Label = Gtk.Stock.Ok;
                add_dialog.Response += HandleEditResponse;
            }

            if (remove_button != null)
                remove_button.Visible = account != null;

            add_dialog.Show ();

            gallery_entry.Changed += HandleChanged;
            url_entry.Changed += HandleChanged;
            password_entry.Changed += HandleChanged;
            username_entry.Changed += HandleChanged;
            HandleChanged (null, null);
        }
        public EthernetConfigDialog(VirtualEthernet device, Window parent)
            : base(Catalog.GetString ("Configure Ethernet"),
                                                                                  parent, DialogFlags.NoSeparator,
                                                                                  Stock.Cancel, ResponseType.Cancel,
                                                                                  Stock.Ok, ResponseType.Ok)
        {
            this.device = device;

            IconThemeUtils.SetWindowIcon (this);

            Glade.XML xml = new Glade.XML ("vmx-manager.glade", "ethernetConfigContent");
            xml.Autoconnect (this);

            VBox.Add (ethernetConfigContent);
            ethernetConfigContent.ShowAll ();

            Response += delegate (object o, ResponseArgs args) {
                if (args.ResponseId == ResponseType.Ok) {
                    Save ();
                }

                this.Destroy ();
            };

            ethernetTypeCombo.Changed += OnComboChanged;

            Load ();
        }
Exemple #34
0
                #pragma warning restore 0649

        public LogoForm()
        {
            Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("ViewLogoForm.glade");

            Glade.XML glade = new Glade.XML(stream, "LogoMindow", null);
            stream.Close();
            glade.Autoconnect(this);
            thisWindow = ((Window)(glade.GetWidget("LogoMindow")));
            thisWindow.WindowPosition = WindowPosition.Center;
            thisWindow.SetDefaultSize(480, 460);
            thisWindow.KeyReleaseEvent += (o, args) =>
            {
                this.thisWindow.HideAll();
            };
            ReadMe();

            // Assigment
            dwLogo = new GanttDiagramm();
            //TODO: move readonly to strategy
            var ganttSource = ((IGanttSource)dwLogo);

            ganttSource.ReadOnly       = true;
            ganttSource.StaticSource   = GetLogoSource();
            ganttSource.DateNowVisible = false;

            var readme  = vbox1.Children [1];
            var readme1 = vbox1.Children [2];

            vbox1.Remove(readme1);
            vbox1.Add(dwLogo);
            vbox1.Add(readme);
            vbox1.Add(readme1);
            dwLogo.Show();
        }
Exemple #35
0
        public AddObjectClassDialog(Connection conn)
        {
            objectClasses = new List <string> ();

            ui = new Glade.XML(null, "lat.glade", "addObjectClassDialog", null);
            ui.Autoconnect(this);

            store = new ListStore(typeof(bool), typeof(string));

            CellRendererToggle crt = new CellRendererToggle();

            crt.Activatable = true;
            crt.Toggled    += OnClassToggled;

            objClassTreeView.AppendColumn("Enabled", crt, "active", 0);
            objClassTreeView.AppendColumn("Name", new CellRendererText(), "text", 1);

            objClassTreeView.Model = store;

            try {
                foreach (string n in conn.Data.ObjectClasses)
                {
                    store.AppendValues(false, n);
                }
            } catch (Exception e) {
                store.AppendValues(false, "Error getting object classes");
                Log.Debug(e);
            }

            addObjectClassDialog.Icon = Global.latIcon;
            addObjectClassDialog.Resize(300, 400);
            addObjectClassDialog.Run();
            addObjectClassDialog.Destroy();
        }
Exemple #36
0
    public ExportDialog(Catalog catalog, bool searchOn)
        : base(Mono.Posix.Catalog.GetString ("Export"), null, DialogFlags.NoSeparator | DialogFlags.Modal)
    {
        this.catalog = catalog;
        this.templates = new Hashtable ();
        this.searchOn = searchOn;

        Glade.XML gxml = new Glade.XML (null, "dialogexport.glade", "hbox1", null);
        gxml.Autoconnect(this);

        cancelButton = (Button)this.AddButton (Gtk.Stock.Cancel, 0);
        okButton     = (Button)this.AddButton (Gtk.Stock.Ok, 1);
        cancelButton.Clicked += OnCancelButtonClicked;
        okButton.Clicked     += OnOkButtonClicked;

        VBox vBox = this.VBox;
        vBox.Add ((Box)gxml["hbox1"]);

        PopulateComboBox ();

        if (!searchOn) {
            radioButtonSearch.Sensitive = false;
        }

        radioButtonActive.Label = String.Format (Mono.Posix.Catalog.GetString ("Export the whole {0} catalog"),catalog.ShortDescription);

        this.ShowAll();
    }
Exemple #37
0
        public MassEditDialog()
        {
            _modList = new List <LdapModification> ();

            ui = new Glade.XML(null, "lat.glade", "massEditDialog", null);
            ui.Autoconnect(this);

            createCombos();

            modListStore      = new ListStore(typeof(string), typeof(string), typeof(string));
            modListView.Model = modListStore;

            TreeViewColumn col;

            col = modListView.AppendColumn("Action", new CellRendererText(), "text", 0);
            col.SortColumnId = 0;

            col = modListView.AppendColumn("Name", new CellRendererText(), "text", 1);
            col.SortColumnId = 1;

            col = modListView.AppendColumn("Value", new CellRendererText(), "text", 2);
            col.SortColumnId = 2;

            modListStore.SetSortColumnId(0, SortType.Ascending);

            massEditDialog.Resize(300, 450);
            massEditDialog.Icon = Global.latIcon;
            massEditDialog.Run();
            massEditDialog.Destroy();
        }
Exemple #38
0
        #pragma warning restore 0169
        #pragma warning restore 0649

        public ViewTaskDialog(Window parent, bool isTaskInit)
        {
            Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("ViewTaskDialog.glade");

            Glade.XML glade = new Glade.XML(stream, "ViewTaskDialog", null);
            stream.Close();
            glade.Autoconnect(this);
            thisDialog                = ((Dialog)(glade.GetWidget("ViewTaskDialog")));
            thisDialog.Modal          = true;
            thisDialog.TransientFor   = parent;
            thisDialog.WindowPosition = WindowPosition.CenterAlways;

            cbActor.Entry.IsEditable = false;
            cbActor.Changed         += new EventHandler(OnCbActorChanged);
            calStartTime.Date        = DateTime.Now.Date;
            calEndTime.Date          = DateTime.Now.Date;
            cbState.Entry.IsEditable = false;
            cbState.Changed         += new EventHandler(OnCbStateChanged);
            spbPriority.SetRange(0, 10000);
            spbPriority.SetIncrements(1, 10);

            IsInitTask = isTaskInit;
            tvDescription.KeyReleaseEvent += HandleKeyReleaseEvent;
            tvComment.KeyReleaseEvent     += CommentKeyReleaseEvent;
        }
Exemple #39
0
        public SmugMugAccountDialog(Gtk.Window parent, SmugMugAccount account)
        {
            xml = new Glade.XML(null, "SmugMugExport.glade", dialog_name, "f-spot");
            xml.Autoconnect(this);

            Dialog.Modal           = false;
            Dialog.TransientFor    = parent;
            Dialog.DefaultResponse = Gtk.ResponseType.Ok;

            this.account = account;

            password_entry.ActivatesDefault = true;
            username_entry.ActivatesDefault = true;

            if (account != null)
            {
                password_entry.Text = account.Password;
                username_entry.Text = account.Username;
                add_button.Label    = Gtk.Stock.Ok;
                Dialog.Response    += HandleEditResponse;
            }

            if (remove_button != null)
            {
                remove_button.Visible = account != null;
            }

            this.Dialog.Show();

            password_entry.Changed += HandleChanged;
            username_entry.Changed += HandleChanged;
            HandleChanged(null, null);
        }
Exemple #40
0
        public static Gtk.Window Create()
        {
            string filename = GladeHelper.ProcessGladeFile(FileHelper.FindSupportFile("bygfoot_misc2.glade", true));
            Glade.XML gxml = new Glade.XML(filename, "window_warning", null);
            gxml.Autoconnect(typeof(WarningWindow));

            return window_warning;
        }
Exemple #41
0
        public TimeDateDialog()
        {
            ui = new Glade.XML (null, "lat.glade", "timeDateDialog", null);
            ui.Autoconnect (this);

            timeDateDialog.Icon = Global.latIcon;
            timeDateDialog.Run ();
            timeDateDialog.Destroy ();
        }
Exemple #42
0
        public TimeDateDialog()
        {
            ui = new Glade.XML(null, "lat.glade", "timeDateDialog", null);
            ui.Autoconnect(this);

            timeDateDialog.Icon = Global.latIcon;
            timeDateDialog.Run();
            timeDateDialog.Destroy();
        }
Exemple #43
0
        void Init()
        {
            ui = new Glade.XML(null, "dialogs.glade", "adUserDialog", null);
            ui.Autoconnect(this);

            viewDialog = adUserDialog;

            adUserDialog.Icon = Global.latIcon;
        }
Exemple #44
0
        public PluginConfigureDialog(Connection connection, string pluginName)
        {
            conn     = connection;
            colNames = new List <string> ();
            colAttrs = new List <string> ();

            ui = new Glade.XML(null, "lat.glade", "pluginConfigureDialog", null);
            ui.Autoconnect(this);

            columnStore = new ListStore(typeof(string), typeof(string));

            CellRendererText cell = new CellRendererText();

            cell.Editable = true;
            cell.Edited  += new EditedHandler(OnNameEdit);
            columnsTreeView.AppendColumn("Name", cell, "text", 0);

            cell          = new CellRendererText();
            cell.Editable = true;
            cell.Edited  += new EditedHandler(OnAttributeEdit);
            columnsTreeView.AppendColumn("Attribute", cell, "text", 1);

            columnsTreeView.Model = columnStore;

            vp = Global.Plugins.GetViewPlugin(pluginName, connection.Settings.Name);
            if (vp != null)
            {
                for (int i = 0; i < vp.ColumnNames.Length; i++)
                {
                    columnStore.AppendValues(vp.ColumnNames[i], vp.ColumnAttributes[i]);
                    colNames.Add(vp.ColumnNames[i]);
                    colAttrs.Add(vp.ColumnAttributes[i]);
                }

                filterEntry.Text = vp.Filter;

                if (vp.DefaultNewContainer != "")
                {
                    newContainerButton.Label = vp.DefaultNewContainer;
                }

                if (vp.SearchBase != "")
                {
                    searchBaseButton.Label = vp.SearchBase;
                }
            }
            else
            {
                Log.Error("Unable to find view plugin {0}", pluginName);
            }

            pluginConfigureDialog.Icon = Global.latIcon;
            pluginConfigureDialog.Resize(300, 400);
            pluginConfigureDialog.Run();
            pluginConfigureDialog.Destroy();
        }
Exemple #45
0
        void Init()
        {
            ui = new Glade.XML(null, "dialogs.glade", "newAdComputerDialog", null);
            ui.Autoconnect(this);

            viewDialog = newAdComputerDialog;

            Gdk.Pixbuf pb = Gdk.Pixbuf.LoadFromResource("x-directory-remote-server-48x48.png");
            image182.Pixbuf = pb;
        }
Exemple #46
0
        private void Init()
        {
            ui = new Glade.XML(null, "lat.glade", "loginDialog", null);
            ui.Autoconnect(this);

            Gdk.Pixbuf pb = Gdk.Pixbuf.LoadFromResource("locked-48x48.png");
            image455.Pixbuf = pb;

            loginDialog.Icon = Global.latIcon;
        }
 public AddChannelWindow()
     : base(IntPtr.Zero)
 {
     Glade.XML gxml = new Glade.XML (null, "NewChannel.glade", "window", null);
     gxml.Autoconnect (this);
     Raw = window.Handle;
     url_entry.Text = "";
     url_entry.GrabFocus ();
     window.Present ();
 }
Exemple #48
0
        void Init()
        {
            ui = new Glade.XML(null, "dialogs.glade", "editContactDialog", null);
            ui.Autoconnect(this);

            viewDialog = editContactDialog;

            Gdk.Pixbuf pb = Gdk.Pixbuf.LoadFromResource("contact-new-48x48.png");
            image180.Pixbuf = pb;
        }
 void Initialize(Window parent)
 {
     Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("LadderLogic.Presentation.OpenFileDialog.glade");
     Glade.XML glade = new Glade.XML(stream, "OpenFileDialog", null);
     stream.Close();
     glade.Autoconnect(this);
     thisDialog = ((Gtk.Dialog)(glade.GetWidget("OpenFileDialog")));
     thisDialog.Modal = true;
     thisDialog.TransientFor = parent;
     thisDialog.SetPosition (WindowPosition.Center);
 }
        public NonContainerWarningDialog()
        {
            Glade.XML xml = new Glade.XML (null, "stetic.glade", "AddNonContainerDialog", null);
            xml.Autoconnect (this);

            ((Gtk.Label)linkButton.Child).Markup = "<u><span foreground='blue'>" + Catalog.GetString ("GTK# Widget Layout and Packing") + "</span></u>";

            linkButton.Clicked += delegate {
                Gnome.Url.Show ("http://www.mono-project.com/GtkSharp:_Widget_Layout_and_Packing");
            };
            okbutton.HasFocus = true;
        }
		/// <summary>
		/// Crea una instancia del panel de seleccion de ficheros del
		/// asistente de creacion de nuevas basesd de datos de reconocimiento.
		/// </summary>
		/// <param name="assistant">
		/// El asistente al que pertenece el nuevo panel.
		/// </param>
		public FileSelectionStep(PanelAssistant assistant) 
			: base(assistant)
		{
			Glade.XML gxml =
				new Glade.XML(null,"databaseAssistant.glade","fileRootWidget",null);
				
			gxml.Autoconnect(this);
			
			SetRootWidget(fileRootWidget);
			
			InitializeWidgets();
		}
		public EditIconFactoryDialog (Gtk.Window parent, Stetic.IProject project, ProjectIconFactory iconFactory)
		{
			this.iconFactory = iconFactory;
			this.parent = parent;
			this.project = project;
			
			Glade.XML xml = new Glade.XML (null, "stetic.glade", "EditIconFactoryDialog", null);
			xml.Autoconnect (this);
			
			customIconList = new ProjectIconList (project, iconFactory);
			iconListScrolledwindow.AddWithViewport (customIconList);
		}
		public DatabaseDescritpionEditorDialog(Window parent)
		{
			Glade.XML gxml = new Glade.XML(null,
			                               "mathtextlearner.glade", 
			                               "databaseDescriptionEditorDialog",
			                               null);
			
			gxml.Autoconnect(this);
			
			databaseDescriptionEditorDialog.TransientFor = parent;
			
		}
Exemple #54
0
        public LibraryManagerDialog()
        {
            Glade.XML xml = new Glade.XML (null, "stetic.glade", "LibraryManagerDialog", null);
            xml.Autoconnect (this);

            store = new Gtk.ListStore (typeof(string));
            libraryList.HeadersVisible = false;
            libraryList.Model = store;
            libraryList.AppendColumn ("Assembly", new Gtk.CellRendererText (), "text", 0);

            LoadList ();
        }
		public PickFolderDialog (Gtk.Dialog parent, string folder)
		{
			Glade.XML xml = new Glade.XML (null, "MergeDb.glade", "pickfolder_dialog", "f-spot");
			xml.Autoconnect (this);
			Console.WriteLine ("new pickfolder");
			pickfolder_dialog.Modal = false;
			pickfolder_dialog.TransientFor = parent;

			pickfolder_chooser.LocalOnly = false;

			pickfolder_label.Text = String.Format (Catalog.GetString ("<big>The database refers to files contained in the <b>{0}</b> folder.\n Please select that folder so I can do the mapping.</big>"), folder);
			pickfolder_label.UseMarkup = true;
		}
Exemple #56
0
 public static void LoadUI(string filename, string root, Type handler)
 {
     try
     {
         string uifile = GladeHelper.ProcessGladeFile(FileHelper.FindSupportFile(filename, true));
         Glade.XML gxml = new Glade.XML(uifile, root, null);
         gxml.Autoconnect(handler);
     }
     catch (Exception ex)
     {
         Program.ExitProgram(ExitCodes.EXIT_FILE_NOT_FOUND, ": Problems found in the glade file: {0}\n", ex.Message);
     }
 }
		public DatabaseDescritpionEditorWidget() : base(0.5f, 0.5f, 1.0f, 1.0f)
		{
			Glade.XML gxml = new Glade.XML(null,
			                               "mathtextlearner.glade", 
			                               "databaseDescriptionEditorVB",
			                               null);
			
			gxml.Autoconnect(this);
			
			InitializeWidgets();			
			
			this.ShowAll();
		}
		/// <summary>
		/// El constructor de la clase <c>ImageLoadDialog</c>.
		/// </summary>
		private FolderOpenDialog(Window parent)
		{
			Glade.XML gxml =
				new Glade.XML(null,"gui.glade","folderOpenDialog",null);
				
			gxml.Autoconnect(this);
			
			folderOpenDialog.TransientFor = parent;
			folderOpenDialog.Modal = true;
			
			folderOpenDialog.AddActionWidget(okButton, ResponseType.Ok);
			folderOpenDialog.AddActionWidget(cancelButton, ResponseType.Cancel);
		}	
        public NewLayoutDialog()
        {
            Glade.XML xml = new Glade.XML (null, "Base.glade",
                                           "newLayoutDialog", null);
            xml.Autoconnect (this);

            newButton.Sensitive = false;
            newButton.GrabDefault ();

            layoutName.Changed += new EventHandler (OnNameChanged);

            if (wbLayout != null)
                existentLayouts = wbLayout.Layouts;
        }
		public DatabaseTypeStep(PanelAssistant assistant) 
			: base(assistant)
		{
			Glade.XML gxml =
				new Glade.XML(null,"databaseAssistant.glade","typeRootWidget",null);
				
			gxml.Autoconnect(this);
			
			SetRootWidget(typeRootWidget);
			
			databaseTypeMap = new Dictionary<Gtk.RadioButton,System.Type>();
			
			InitializeWidgets();
		}