public WorkbenchView(WorkbenchController controller) { SplashWindow.Update ("Creating GUI"); XML gxml = new Glade.XML (null, WorkbenchSingleton.GLADEFILE, "Workbench", null); window = (Gtk.Window) gxml["Workbench"]; Gtk.VPaned splitter = (Gtk.VPaned) gxml["mainPane"]; editorNotebook = new EditorNotebook (); splitter.Pack1 (editorNotebook, true, false); ScrolledWindow sw = new ScrolledWindow (); console = new TextView (); console.Editable = false; console.WrapMode = WrapMode.Word; sw.Add (console); Notebook bottomNotebook = new Notebook (); bottomNotebook.AppendPage (sw, new Label ("Console")); splitter.Pack2 (bottomNotebook, true, false); window.Icon = icon; this.WindowTitle = ""; gxml.Autoconnect (controller); bottomNotebook.ShowAll (); editorNotebook.ShowAll (); SplashWindow.Update ("Simetron is ready!"); }
void on_button_reportes_clicked(object sender, EventArgs args) { Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null); gxml.Autoconnect(this); rango_de_fecha.Show(); checkbutton_impr_todo_proce.Label = "Imprime TODO"; entry_referencia_inicial.IsEditable = false; entry_referencia_inicial.Text = DateTime.Now.ToString("dd-MM-yyyy"); entry_dia1.KeyPressEvent += onKeyPressEvent; entry_mes1.KeyPressEvent += onKeyPressEvent; entry_ano1.KeyPressEvent += onKeyPressEvent; entry_dia2.KeyPressEvent += onKeyPressEvent; entry_mes2.KeyPressEvent += onKeyPressEvent; entry_ano2.KeyPressEvent += onKeyPressEvent; entry_dia1.Text = DateTime.Now.ToString("dd"); entry_mes1.Text = DateTime.Now.ToString("MM"); entry_ano1.Text = DateTime.Now.ToString("yyyy"); entry_dia2.Text = DateTime.Now.ToString("dd"); entry_mes2.Text = DateTime.Now.ToString("MM"); entry_ano2.Text = DateTime.Now.ToString("yyyy"); button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_vision); label_orden.Hide(); label_nom_cliente.Hide(); label142.Hide(); radiobutton_cliente.Hide(); radiobutton_fecha.Hide(); checkbutton_todos_los_clientes.Hide(); entry_referencia_inicial.Hide(); entry_cliente.Hide(); button_busca_cliente.Hide(); }
public BrunetChatLogin(ChatConfigSerialization config) { _chat_config = config; string fname = "BrunetChat.glade"; string root = "dialogBrunetChatLogin"; Glade.XML gxml = new Glade.XML (fname, root, null); //Glade.XML gxml = new Glade.XML (null,fname, root, null); gxml.Autoconnect(this); int init_users = _chat_config.UserList.Users.Length; if (0 < init_users){ userStrings = new ArrayList(); userHashtable = new Hashtable(); foreach(User user in _chat_config.UserList.Users ){ userHashtable.Add(user.Email,user); userStrings.Add(user.Email); } int count = userStrings.Count; Console.WriteLine("User count: {0}",count); string[] popstring = new string[count]; for (int loop = 0;loop<count;loop++){ popstring[loop] = (string)userStrings[loop]; Console.WriteLine(popstring[loop]); } comboEmail.PopdownStrings = popstring; } }
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); }
public FindResultsWidget(IEnumerable results) { xmlFindResultsWidget = new Glade.XML(null, "measures.glade", "table4", null); xmlFindResultsWidget.Autoconnect(this); countTypes.Text = CountTypes(results).ToString(); countMethods.Text = CountMethods(results).ToString(); }
public OCRStageWidget(MainRecognizerWindow window) : base(window) { Glade.XML gxml = new Glade.XML("mathtextrecognizer.glade", "ocrStageWidgetBase"); gxml.Autoconnect(this); this.Add(ocrStageWidgetBase); // We load the contextual menu. gxml = new Glade.XML("mathtextrecognizer.glade", "segmentedNodeMenu"); gxml.Autoconnect(this); controller = new OCRController(); // Asignamos los eventos que indican que se han alcanzado hitos // en el reconocimiento de un cáracter. controller.MessageLogSent += new MessageLogSentHandler(OnControllerMessageLogSent); controller.NodeBeingProcessed += new NodeBeingProcessedHandler(OnControllerNodeBeingProcessed); controller.ProcessFinished += OnControllerProcessFinished; controller.BitmapProcessedByDatabase += new BitmapProcessedHandler(OnControllerBitmapProcessedByDatabase); InitializeWidgets(); }
public LevelParametersDialog(Window parent, Level theLevel) { level = theLevel; Glade.XML gxml = new Glade.XML(null, "levelparameters.glade", "dialog1", null); gxml.Autoconnect(this); dialog1.TransientFor = parent; }
public MonoCovGui() { xml = new Glade.XML (typeof (MonoCovGui).Assembly, "monocov.glade", null, null); xml.Autoconnect (this); main.Title = CAPTION; }
public GladeWindow(string name) { glade = new Glade.XML (glade_resource, name); glade.Autoconnect (this); window = glade[name] as Window; }
public static void Main (string[] args) { if (args.Length < 2) { Console.WriteLine ("Use: ./glade-viewer.exe \"fname\" \"root\""); return; } Application.Init (); string fname = args [0]; string root = args [1]; Glade.XML gxml = new Glade.XML (fname, root, null); Widget wid = gxml [root]; wid.Show (); Console.WriteLine ("The filename: {0}", gxml.Filename); Console.WriteLine ("A relative filename: {0}", gxml.RelativeFile ("image.png")); Console.WriteLine ("The name of the root widget: {0}", Glade.XML.GetWidgetName (wid)); Console.WriteLine ("It is {0} that it was created using a Glade.XML object", Glade.XML.GetWidgetTree (wid) != null); Console.WriteLine ("\nList of created widgets:"); foreach (Widget w in gxml.GetWidgetPrefix ("")) { Console.WriteLine ("{0} {1}", w.GetType (), Glade.XML.GetWidgetName (w)); } Application.Run (); }
public Tree(string[] args) { Application.Init (); store = new TreeStore (typeof (string), typeof (string)); Glade.XML gxml = new Glade.XML(null, "tree.glade", "window", null ); gxml.Autoconnect( this ); window.Resize(500, 400 ); // eventos window.DeleteEvent += new DeleteEventHandler( Salir ); b_agregar.Clicked += new EventHandler( Agregar ); b_eliminar.Clicked += new EventHandler( Borrar ); b_limpiar.Clicked += new EventHandler( Limpiar ); b_salir.Clicked += new EventHandler( Cerrar ); // crear arbol tv = new TreeView (); tv.Model = store; tv.HeadersVisible = true; tv.AppendColumn ("Nombre", new CellRendererText (), "text", 0); tv.AppendColumn ("Apellidos", new CellRendererText (), "text", 1); scrolledwindow1.Add (tv); window.ShowAll (); Application.Run (); }
public GUIAbout() { Glade.XML gxml = new Glade.XML("../../src/GUI/Glade/ekranabout.glade", "AboutWindow", null); gxml.Autoconnect(this); setEvents(); }
public ResizeDialog(Sector sector, Tilemap tilemap) { this.sector = sector; this.tilemap = tilemap; Glade.XML gxml = new Glade.XML("editor.glade", "resizeDialog"); gxml.Autoconnect(this); if (resizeDialog == null || XOffsetEntry == null || YOffsetEntry == null || WidthEntry == null || HeightEntry == null) { throw new Exception("Couldn't load resize Dialog"); } if (tilemap == null) { XOffsetEntry.Text = "0"; YOffsetEntry.Text = "0"; WidthEntry.Text = sector.Width.ToString(); HeightEntry.Text = sector.Height.ToString(); undoTitleBase = "Sector \"" + sector.Name + "\""; } else { XOffsetEntry.Text = "0"; YOffsetEntry.Text = "0"; WidthEntry.Text = tilemap.Width.ToString(); HeightEntry.Text = tilemap.Height.ToString(); undoTitleBase = "Tilemap \"" + tilemap.Name + "\""; } resizeDialog.Title += " " + undoTitleBase; resizeDialog.Icon = EditorStock.WindowIcon; resizeDialog.ShowAll(); }
public ViewGui() : base("") { string fullName = "MainView.gui.glade"; Assembly a = Assembly.GetAssembly(this.GetType()); Console.WriteLine(a.CodeBase); if (!System.IO.File.Exists(a.CodeBase + "/" + fullName)) fullName = "gui.glade"; glade = new XML (Assembly.GetCallingAssembly (), fullName, "ViewGui", null); glade.Autoconnect (this); Window win = (Window) glade ["ViewGui"]; win.Maximize(); //Initialisation du menu principal MainUIManager uim = new MainUIManager (this); vboxMain.PackStart (uim.MenuBar, false, false, 0); ((Gtk.Box.BoxChild)(vboxMain[uim.MenuBar])).Position = 0; //Pagecontrol des vues notebookViews = new Notebook (); hpanedMain.Pack2 (notebookViews, true, false); notebookViews.Show (); //notebookViews.RemovePage(0); }
public void ContextMenuProperties(object source, ContextMenuArgs e) { if (entitypropertiesdialog != null) { entitypropertiesdialog.Destroy(); } LogFile.WriteLine("opening properties box ..."); Glade.XML app = new Glade.XML(EnvironmentHelper.GetExeDirectory() + "/metaverse.client.glade", "entitypropertiesdialog", ""); app.Autoconnect(this); PropertyInfos = new List <EntityPropertyInfo>(); ControlsIndex = new Dictionary <string, Widget>(); nextpropertyindex = 0; thisentity.RegisterProperties(this); LoadProperties(); // Show(); ViewerState.GetInstance().ActivateEdit3d(); // hack to add a semblance of user-friendliness //DialogHelpers.ShowInfoMessageModal(null, "Hold down z to move the object, x to change scale and v to rotate."); new MessageBox(MessageBox.MessageType.Info, "Editing controls", "Hold down z to move the object, x to change scale and v to rotate.", null); entitypropertiesdialog.ShowAll(); //entitypropertiesdialog.Show(); selectionmodel.Clear(); selectionmodel.ToggleObjectInSelection(thisentity, true); LogFile.WriteLine("...opened"); }
public GUI(string[] args) { Application.Init(); Glade.XML mainWindowGlade = new Glade.XML(null, "gui.glade", "mainWindow", null); mainWindowGlade.Autoconnect(this); Glade.XML aboutDialogGlade = new Glade.XML(null, "gui.glade", "aboutDialog", null); aboutDialogGlade.Autoconnect(this); Glade.XML fileSaveDialogGlade = new Glade.XML(null, "gui.glade", "fileSaveDialog", null); fileSaveDialogGlade.Autoconnect(this); Glade.XML fileOpenDialogGlade = new Glade.XML(null, "gui.glade", "fileOpenDialog", null); fileOpenDialogGlade.Autoconnect(this); this.fileOpenDialog.SelectMultiple = true; this.SetupSlicesTreeView(); Application.Run(); }
protected GladeWidgetExtract(string resource_name, string dialog_name) : this(dialog_name) { // we must do it from *here* otherwise, we get this assembly, not the caller glade = new XML (Assembly.GetCallingAssembly (), resource_name, dialog_name, null); Init (); }
public MethodMeasureWidget(MethodMeasure methodMeasure) { xmlMethodMeasureWidget = new Glade.XML(null, "measures.glade", "table2", null); xmlMethodMeasureWidget.Autoconnect(this); numberOfLines.Text = methodMeasure.TotalLines.ToString(); numberOfParameters.Text = methodMeasure.Parameters.ToString(); }
protected GladeWidgetExtract(string resource_name, string dialog_name, string domain) : this(dialog_name) { // we must do it from *here* otherwise, we get this assembly, not the caller glade = new XML (resource_name, dialog_name, domain); Init (); }
public almacen(string LoginEmp_, string NomEmpleado_, string AppEmpleado_, string ApmEmpleado_, string _nombrebd_) { LoginEmpleado = LoginEmp_; NomEmpleado = NomEmpleado_; AppEmpleado = AppEmpleado_; ApmEmpleado = ApmEmpleado_; nombrebd = conexion_a_DB._nombrebd; Glade.XML gxml = new Glade.XML(null, "almacen_costos_compras.glade", "menu_almacen", null); gxml.Autoconnect(this); ////// Muestra ventana de Glade menu_almacen.Show(); ////// Sale de la ventana button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_inventario.Clicked += new EventHandler(on_button_inventario_clicked); button_inv_subalmacen.Clicked += new EventHandler(on_button_inv_subalmacen_clicked); //button_soli_material.Clicked += new EventHandler(on_button_soli_material_clicked); button_requi_materiales.Clicked += new EventHandler(on_button_requi_materiales_clicked); button_envios_subalmacenes.Clicked += new EventHandler(on_button_envios_subalmacenes_clicked); button_captura_fact_orden_comp.Clicked += new EventHandler(on_button_captura_fact_orden_comp_clicked); button_autorizacion_medicamento.Clicked += new EventHandler(on_button_autorizacion_medicamento_clicked); // Productos aplicados a procemientos y pacientes por centro de costo button_productos_aplicados.Clicked += new EventHandler(on_button_productos_aplicados_clicked); button_productos_enviados.Clicked += new EventHandler(on_button_productos_enviados_clicked); button_traspaso_subalmacenes.Clicked += new EventHandler(on_button_traspaso_subalmacenes_clicked); button_analisis_devoluciones.Clicked += new EventHandler(on_button_analisis_devoluciones_clicked); }
public GladeExample() { // Load the file glwidget.glade and collect all the objects starting from // the specified "glwidget" root. This is the name of the Window in the // glade file. Glade.XML gxml = new Glade.XML(null, "glwidget.glade", "glwidget", null); // Connect the Signals defined in Glade. Also connect any matching names // of objects to properties of the object specified ('this') that are marked // with the [Widget] attribute. In turn this makes this.glwidget get assigned // to the glwidget Gtk.Window object. gxml.Autoconnect(this); // Create a new glw widget and request a size. glw = new GLWidget(); // Create a new Vertical Box that the glw can live in. VBox vb = (Gtk.VBox)gxml["vbox1"]; // Pack the glw widget into the VBox. vb.PackStart (glw); // Create a new clickable button. Button butModal = new Button(); butModal.Label = "Press For Modal!"; butModal.Clicked += new EventHandler(butModal_Clicked); // Stick the button into the vbox. vb.PackStart(butModal); }
private UploadFileChooserUI() { Glade.XML gxml = new Glade.XML (null, "organizer.glade", "filechooserdialog1", null); gxml.Autoconnect (this); _job = new ThreadStart(ProcessThumbnail); _previewthread = new Thread(_job); label16.WidthRequest = eventbox7.WidthRequest; eventbox7.ModifyBg(Gtk.StateType.Normal, bgcolor); eventbox8.ModifyBg(Gtk.StateType.Normal, bgcolor); eventbox9.ModifyBg(Gtk.StateType.Normal, bgcolor); filechooserdialog1.Title = "Select files to upload"; filechooserdialog1.SetIconFromFile(DeskFlickrUI.ICON_PATH); filechooserdialog1.SetFilename(PersistentInformation.GetInstance().UploadFilename); filechooserdialog1.SelectMultiple = true; FileFilter imagefilter = new FileFilter(); imagefilter.AddMimeType("image/jpeg"); imagefilter.AddMimeType("image/png"); filechooserdialog1.Filter = imagefilter; filechooserdialog1.SelectionChanged += new EventHandler(OnFileSelectedChanged); filechooserdialog1.FileActivated += new EventHandler(OnOpenButtonClicked); button10.Clicked += new EventHandler(OnOpenButtonClicked); button11.Clicked += new EventHandler(OnCancelButtonClicked); DeskFlickrUI.GetInstance().SetUploadWindow(false); filechooserdialog1.ShowAll(); }
public HeightScaleDialog() { Glade.XML app = new Glade.XML( EnvironmentHelper.GetExeDirectory() + "/TerrainEditing.glade", "heightscaledialog", "" ); app.Autoconnect(this); minimumheightentry.Text = MetaverseClient.GetInstance().worldstorage.terrainmodel.MinHeight.ToString(); maximumheightentry.Text = MetaverseClient.GetInstance().worldstorage.terrainmodel.MaxHeight.ToString(); }
public rpt_separacion_de_paquetes(string nombrebd_) { connectionString = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB; nombrebd = conexion_a_DB._nombrebd; escala_en_linux_windows = classpublic.escala_linux_windows; Glade.XML gxml = new Glade.XML(null, "registro_admision.glade", "rpt_ocupacion", null); gxml.Autoconnect(this); rpt_ocupacion.Show(); rpt_ocupacion.Title = "Reporte de Separacion Paquetes"; this.button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); this.button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte); this.checkbutton_agregar_monto.Clicked += new EventHandler(on_checkbutton_agregar_monto_clicked); this.checkbutton_impr_todo_proce.Clicked += new EventHandler(on_checkbutton_agregar_monto_clicked); crea_treeview_ocupacion(); llenando_lista_de_ocupacion(); //this.checkbutton_agregar_monto.Hide(); this.checkbutton_impr_todo_proce.Hide(); this.entry_totalabonos.Hide(); this.entry_totalsaldos.Hide(); this.label243.Hide(); this.label244.Hide(); }
public unsafe MphotoToplevel (IImageRepository _repo, string[] args, params object[] props) : base ("Mphoto", "0.0", Modules.UI, args, props) { cwh = new Glade.XMLCustomWidgetHandler (GladeCustomWidgetHandler); Glade.XML.SetCustomHandler (cwh); gxml = new Glade.XML (null, "mphoto.glade", null, null); Console.WriteLine ("Autoconnect"); gxml.Autoconnect (this); // CreateCustomWidget ("browser_icon_list"); // CreateCustomWidget ("collections_tree_view"); // CreateCustomWidget ("imageinfo_tree_view"); // CreateCustomWidget ("eog_image_view"); // CreateCustomWidget ("keywords_widget"); this.leftside_notebook = (Gtk.Notebook) gxml["browser_left_notebook"]; this.top_level_notebook = (Gtk.Notebook) gxml["top_level_notebook"]; this.toplevel = gxml["mphoto_browser"]; this.label_zoom_value = (Gtk.Label) gxml["label_zoom_value"]; this.search_dialog = (Gtk.Window) gxml["search_dialog"]; this.Repository = _repo; // initialize the tree views to the side imageinfo_tree_view.IconList = icon_list; keywords_widget.IconList = icon_list; collections_tree_view.RowActivated += new RowActivatedHandler (CollectionsTreeViewActivateHandler); icon_list.Activated += new EventHandler (IconlistActivated); GlobalMphotoToplevel = this; }
/// <summary> /// Constructor /// </summary> public UpgradeForm(IMainView explorerPresenter) { Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.UpgradeForm.glade", "window1"); gxml.Autoconnect(this); listview1.Model = listmodel; CellRendererText textRender = new Gtk.CellRendererText(); textRender.Editable = false; TreeViewColumn column0 = new TreeViewColumn("Version", textRender, "text", 0); listview1.AppendColumn(column0); column0.Sizing = TreeViewColumnSizing.Autosize; column0.Resizable = true; TreeViewColumn column1 = new TreeViewColumn("Description", textRender, "text", 1); listview1.AppendColumn(column1); column1.Sizing = TreeViewColumnSizing.Autosize; column1.Resizable = true; HTMLview = new HTMLView(new ViewBase(null)); HTMLalign.Add(HTMLview.MainWidget); this.tabbedExplorerView = explorerPresenter; button1.Clicked += OnUpgrade; button2.Clicked += OnViewMoreDetail; window1.Destroyed += OnFormClosing; window1.MapEvent += OnShown; }
/// <summary> /// Initializes a new instance of the <see cref="GraphView" /> class. /// </summary> public GraphView(ViewBase owner = null) : base(owner) { Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.GraphView.glade", "vbox1"); gxml.Autoconnect(this); _mainWidget = vbox1; plot1 = new PlotView(); plot1.Model = new PlotModel(); plot1.SetSizeRequest(-1, 100); vbox2.PackStart(plot1, true, true, 0); smallestDate = DateTime.MaxValue; largestDate = DateTime.MinValue; this.LeftRightPadding = 40; expander1.Visible = false; captionEventBox.Visible = true; plot1.Model.MouseDown += OnChartClick; captionLabel.Text = null; captionEventBox.ButtonPressEvent += OnCaptionLabelDoubleClick; _mainWidget.Destroyed += _mainWidget_Destroyed; BackColor = OxyPlot.OxyColors.White; }
public Loader(PeriodicTableLogic logic, GtkWindow mainWindow) { GladeXml dlg_loading = new GladeXml(null, "loader.glade", "loaderWindow", null); dlg_loading.Autoconnect(this); this.logic = logic; loaderWindow.Hidden += new EventHandler(delegate(object sender, EventArgs e) { if (logic.IsInit) { Application.Invoke(delegate(object sender2, EventArgs e2) { mainWindow.ShowAll(); }); } else { MessageDialog md = new MessageDialog(mainWindow, DialogFlags.DestroyWithParent, MessageType.Error, ButtonsType.Close, "Periodic Table not loaded. Program will now exit."); md.Run(); md.Destroy(); Application.Quit(); } }); loaderWindow.DeleteEvent += new DeleteEventHandler(delegate(object sender, DeleteEventArgs e) { loaderThread.Abort(); }); cancelButton.Clicked += new EventHandler(delegate(object sender, EventArgs e) { loaderWindow.Destroy(); loaderThread.Abort(); }); }
public EntryEditor() { Glade.XML gxml = new Glade.XML (Util.GladePath("slogger.glade"), "NewEntryDialog", null); gxml.Autoconnect (this); OKButton.Sensitive = false; }
/// <summary> /// Genera reporte inteligente de consulta /// </summary> /// <param name="nombrebd_"> /// A <see cref="System.String"/> /// </param> /// <param name="tipo_reporte impresora o archivo"> /// A <see cref="System.String"/> /// </param> public rpt_no_ingreso_caja(string nombrebd_, string tipo_de_salida_) { connectionString = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB; nombrebd = conexion_a_DB._nombrebd; escala_en_linux_windows = classpublic.escala_linux_windows; //tipo_de_salida = tipo_de_salida_; //crea la ventana de glade Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null); gxml.Autoconnect(this); rango_de_fecha.Show(); checkbutton_impr_todo_proce.Label = "Imprime TODO"; entry_referencia_inicial.IsEditable = false; entry_referencia_inicial.Text = DateTime.Now.ToString("dd-MM-yyyy"); entry_dia1.KeyPressEvent += onKeyPressEvent; entry_mes1.KeyPressEvent += onKeyPressEvent; entry_ano1.KeyPressEvent += onKeyPressEvent; entry_dia2.KeyPressEvent += onKeyPressEvent; entry_mes2.KeyPressEvent += onKeyPressEvent; entry_ano2.KeyPressEvent += onKeyPressEvent; entry_dia1.Text = DateTime.Now.ToString("dd"); entry_mes1.Text = DateTime.Now.ToString("MM"); entry_ano1.Text = DateTime.Now.ToString("yyyy"); entry_dia2.Text = DateTime.Now.ToString("dd"); entry_mes2.Text = DateTime.Now.ToString("MM"); entry_ano2.Text = DateTime.Now.ToString("yyyy"); //facturados = "CERRADOS"; button_imprime_rangofecha.Clicked += new EventHandler(on_button_rpt_print_report_noingresa_caja); button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); //llenado_combobox(); }
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)); }
public LLViewPictureWindow(Life myLife) { this.myLife = myLife; Glade.XML gxml = new Glade.XML (null, "llviewpicturewindow.glade", "ViewPictureWindow", null); gxml.Autoconnect(this); }
public PreferencesDialog(ItemShelf itemShelf) : base() { this.itemShelf = itemShelf; this.Title = Mono.Posix.Catalog.GetString ("Preferences"); this.HasSeparator = false; this.SetDefaultSize (300, 200); Notebook notebook = new Notebook (); Glade.XML gxml = new Glade.XML (null, "themeselection.glade", "hbox1", null); HBox hBox = (HBox)gxml["hbox1"]; ScrolledWindow scrolledwindow = (ScrolledWindow)gxml["scrolledwindow1"]; TreeView themeTreeview = CreateThemeTreeView (); themeTreeview.Selection.Changed += OnThemeTreeViewSelectionChanged; scrolledwindow.Add (themeTreeview); notebook.AppendPage (hBox, new Label (Mono.Posix.Catalog.GetString ("Theme"))); this.VBox.Add (notebook); Button closeButton = (Button)this.AddButton (Gtk.Stock.Close, 1); closeButton.Clicked += OnCloseButtonClicked; this.ShowAll(); }
public MainWindow(string[] args) { Glade.XML gxml = new Glade.XML("MainWindow.glade", "EithneWindow"); gxml.BindFields(this); if (EithneWindow.Screen.RgbaColormap != null) { AlphaChannel = true; EithneWindow.Colormap = EithneWindow.Screen.RgbaColormap; } EithneWindow.IconList = new Gdk.Pixbuf[2] { new Gdk.Pixbuf(null, "icon-48.png"), new Gdk.Pixbuf(null, "icon-16.png") }; EithneWindow.DeleteEvent += OnWindowDelete; EithneWindow.Title = About.Name; StatusBar.Push(1, String.Format(Catalog.GetString("Welcome to {0}!"), About.Name)); MenuFileNew.Image = new Image(null, "document-new.png"); MenuFileNew.Activated += OnNew; MenuFileOpen.Image = new Image(null, "document-open.png"); MenuFileOpen.Activated += OnLoad; MenuFileSave.Image = new Image(null, "document-save.png"); MenuFileSave.Activated += OnSave; MenuFileSaveAs.Image = new Image(null, "document-save-as.png"); MenuFileSaveAs.Activated += OnSaveAs; MenuFilePrint.Activated += OnPrint; MenuFilePreferences.Image = new Image(null, "preferences-desktop.png"); MenuFilePreferences.Activated += delegate(object o, EventArgs eargs) { new Preferences(); }; MenuFileQuit.Image = new Image(null, "system-log-out.png"); MenuFileQuit.Activated += OnWindowDelete; MenuSystemRun.Image = new Image(null, "media-playback-start.png"); MenuSystemRun.Activated += OnRun; MenuSystemStop.Image = new Image(null, "media-playback-stop.png"); MenuSystemStop.Activated += OnRun; MenuHelpPluginList.Image = new Image(null, "plugin-16.png"); MenuHelpPluginList.Activated += delegate(object o, EventArgs eargs) { new PluginList(); }; MenuHelpAbout.Image = new Image(null, "help-browser.png"); MenuHelpAbout.Activated += delegate(object o, EventArgs eargs) { new About(); }; ToolbarNew.IconWidget = new Image(null, "document-new-22.png"); ToolbarNew.Clicked += OnNew; ToolbarOpen.IconWidget = new Image(null, "document-open-22.png"); ToolbarOpen.Clicked += OnLoad; ToolbarSave.IconWidget = new Image(null, "document-save-22.png"); ToolbarSave.Clicked += OnSave; ToolbarRun.IconWidget = new Image(null, "media-playback-start-22.png"); ToolbarRun.Clicked += OnRun; schematic = new Schematic(StatusBar); PluginToolboxSocket.AddWithViewport(new PluginToolbox(StatusBar, schematic)); SchematicSocket.AddWithViewport(schematic); engine = new Engine2(schematic, SetRunToStart, progress.Pulse); progress.PulseStep = 0.05; }
/** ChatIM constructor. * @param core the main application * @param r_add the recipient address */ public BrunetChatIM(User u, Buddy bud, BrunetChatMain bcm) { _user = u; _recipient_buddy = bud; _bcm = bcm; string fname = "BrunetChat.glade"; string root = "windowBrunetChatIM"; Glade.XML gxml = new Glade.XML (fname, root, null); //Glade.XML gxml = new Glade.XML (null,fname, root, null); gxml.Autoconnect(this); _text_buf_display = textviewDisplay.Buffer; _text_buf_input = textviewInput.Buffer; _text_buf_recipient = textviewRecipient.Buffer; _text_buf_recipient.Text = _recipient_buddy.Alias; Gdk.Color red_color = new Gdk.Color (0xff, 0, 0); Gdk.Color blue_color = new Gdk.Color (0, 0, 0xff); TextTag sendercolor = new TextTag("Sender Color"); sendercolor.ForegroundGdk = blue_color; TextTag recipientcolor = new TextTag("Recipient Color"); recipientcolor.ForegroundGdk = red_color; _text_buf_display.TagTable.Add(sendercolor); _text_buf_display.TagTable.Add(recipientcolor); }
public XbmControlEvo(string[] args) { Application.Init(); DEBUG = true; theme = "default"; isConnected = false; appDir = Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]); interfaceDir = appDir + "/Interface"; appUserDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/.xbmcontrol-evo"; configFile = appUserDir + "/config.xml"; if (!Directory.Exists(appUserDir)) { Directory.CreateDirectory(appUserDir); } //if (!Directory.Exists(appUserDir + "/Interface/default") || !File.Exists(appUserDir + "/Interface/default.glade")) CopyDefaultThemes(appDir + "/Interface", appUserDir + "/Interface", true); string gladeFilePath = (File.Exists(appUserDir + "/Interface/" + theme + ".glade"))? appUserDir + "/Interface/" + theme + ".glade" : appUserDir + "/Interface/default.glade"; Glade.XML wMainWindowXml = new Glade.XML(gladeFilePath, null, null); wMainWindowXml.Autoconnect(this); InitObjects(); ApplyTheme(); XbmcConnect(); Application.Run(); }
private UploadFileChooserUI() { Glade.XML gxml = new Glade.XML(null, "organizer.glade", "filechooserdialog1", null); gxml.Autoconnect(this); _job = new ThreadStart(ProcessThumbnail); _previewthread = new Thread(_job); label16.WidthRequest = eventbox7.WidthRequest; eventbox7.ModifyBg(Gtk.StateType.Normal, bgcolor); eventbox8.ModifyBg(Gtk.StateType.Normal, bgcolor); eventbox9.ModifyBg(Gtk.StateType.Normal, bgcolor); filechooserdialog1.Title = "Select files to upload"; filechooserdialog1.SetIconFromFile(DeskFlickrUI.ICON_PATH); filechooserdialog1.SetFilename(PersistentInformation.GetInstance().UploadFilename); filechooserdialog1.SelectMultiple = true; FileFilter imagefilter = new FileFilter(); imagefilter.AddMimeType("image/jpeg"); imagefilter.AddMimeType("image/png"); filechooserdialog1.Filter = imagefilter; filechooserdialog1.SelectionChanged += new EventHandler(OnFileSelectedChanged); filechooserdialog1.FileActivated += new EventHandler(OnOpenButtonClicked); button10.Clicked += new EventHandler(OnOpenButtonClicked); button11.Clicked += new EventHandler(OnCancelButtonClicked); DeskFlickrUI.GetInstance().SetUploadWindow(false); filechooserdialog1.ShowAll(); }
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(); }
/// <summary> /// Setup Dialog /// </summary> private void SetupDialog() { Glade.XML gxml = new Glade.XML("ChangePinStatusDialog.glade", "ChangePinStatusDialog"); gxml.Autoconnect(this); string title = GlobalObjUI.LMan.GetString("pinsimsetlbl"); // check for actual Pin1 status if (GlobalObjUI.SimPin1Status) { // set disables title += "<b>" + GlobalObjUI.LMan.GetString("pin1off") + "</b>"; } else { // set enabled title += "<b>" + GlobalObjUI.LMan.GetString("pin1on") + "</b>"; } ChangePinStatusDialog.Icon = Gdk.Pixbuf.LoadFromResource("monosim.png"); ChangePinStatusDialog.Title = MainClass.AppNameVer + " - " + GlobalObjUI.LMan.GetString("pinsimact"); LblTitle.Markup = title; LblPin1.Text = GlobalObjUI.LMan.GetString("pinsimlbl"); LblPin1check.Text = GlobalObjUI.LMan.GetString("pinsimchklbl"); ChangePinStatusDialog.TransientFor = mainWin; ChangePinStatusDialog.DestroyWithParent = true; }
public ExceptionWindow(DebuggerService debuggerService, Thread thread, TargetEventArgs args) { this.debuggerService = debuggerService; Glade.XML gxml = new Glade.XML("gui.glade", "exceptionWindow", null); gxml.Autoconnect(this); image.Pixbuf = Pixmaps.Exception.GetPixbuf(); if (args.Type == TargetEventType.UnhandledException) { buttonContinue.Visible = false; } labelExceptionCaught.Text = (args.Type == TargetEventType.Exception ? "Exception" : "Unandled exception") + " has been caugth:"; StringBuilder sb = new StringBuilder(); StackFrame[] callstack; try { callstack = thread.GetBacktrace().Frames; } catch { return; } foreach(StackFrame frame in callstack) { sb.Append(frame.ToString() + Environment.NewLine); } textviewCallstack.Buffer.Text = sb.ToString(); }
public MapSizeDialog(DoneCallback callback) { this.callback = callback; Glade.XML app = new Glade.XML("./MapDesigner.glade", "mapsizedialog", ""); app.Autoconnect(this); Init(); }
private void CommonTasks(IInfo info, string type) { Glade.XML gxml = new Glade.XML("PluginAbout.glade", "PluginAboutWindow"); gxml.BindFields(this); PluginAboutWindow.DeleteEvent += CloseWindow; CloseButton.Clicked += CloseWindow; PluginAboutWindow.Title = String.Format(Catalog.GetString("About plugin {0}"), info.Name); PluginAboutWindow.IconList = new Gdk.Pixbuf[2] { new Gdk.Pixbuf(null, "plugin-48.png"), new Gdk.Pixbuf(null, "plugin-16.png") }; Name.Text = "<big><big><big><b>" + info.Name + " " + info.Version + "</b></big></big></big>"; Name.UseMarkup = true; Author.Text = Catalog.GetString("Author: ") + info.Author; Author.UseMarkup = true; Desc.Text = "<small>" + info.Description + "</small>"; Desc.UseMarkup = true; Type.Text = "<small>" + type + "</small>"; Type.UseMarkup = true; PluginAboutWindow.ShowAll(); }
private AlbumEditorUI(Album album, bool isnew) { Glade.XML gxml = new Glade.XML (null, "organizer.glade", "window3", null); gxml.Autoconnect (this); this._isnew = isnew; this._album = album; window3.Title = String.Format("Editing information for {0}", album.Title); window3.SetIconFromFile(DeskFlickrUI.ICON_PATH); label8.Text = "Edit"; label9.Text = "Title: "; label10.Text = "Description: "; entry3.Text = album.Title; textview6.Buffer.Text = album.Desc; entry3.Changed += new EventHandler(OnTitleChanged); textview6.Buffer.Changed += new EventHandler(OnDescriptionChanged); button7.Clicked += new EventHandler(OnCancelButtonClicked); button8.Clicked += new EventHandler(OnSaveButtonClicked); image4.Pixbuf = PersistentInformation.GetInstance() .GetSmallImage(album.PrimaryPhotoid); window3.ShowAll(); }
public NewPhoneBook() { booknames = new ArrayList(); Glade.XML xml = new Glade.XML(null, "gfax.glade", "NewPhoneBookDialog", null); xml.Autoconnect(this); GfaxRadioButton.Active = true; EvolutionRadioButton.Sensitive = true; // turn these off until somewhere near supported DatabaseRadioButton.Visible = false; LDAPRadioButton.Visible = false; store = new ListStore( typeof(Boolean), typeof(string)); view = new G_ListView(EvolutionTreeView, store); view.AddColumnTitleToggle(Catalog.GetString("Use"), 0, COLUMN_0); view.AddColumnTitle(Catalog.GetString("Phone Book"), 0, COLUMN_1); EvolutionTreeView.HeadersVisible = true; NewPhoneBookDruid.ShowAll(); }
protected Gtk.Widget GladeCustomWidgetHandler(Glade.XML xml, string func_name, string name, string string1, string string2, int int1, int int2) { if (func_name == "TileList") { ToolTilesProps = CreateTileList(); return(ToolTilesProps); } if (func_name == "ObjectList") { ToolObjectsProps = CreateObjectList(); return(ToolObjectsProps); } if (func_name == "GObjectList") { ToolGObjectsProps = new GameObjectListWidget(this); return(ToolGObjectsProps); } if (func_name == "SectorSwitchNotebook") { sectorSwitchNotebook = new SectorSwitchNotebook(this); sectorSwitchNotebook.ShowAll(); return(sectorSwitchNotebook); } if (func_name == "LayerList") { layerList = new LayerListWidget(this); return(layerList); } if (func_name == "PropertiesView") { propertiesView = new PropertiesView(this); return(propertiesView); } throw new Exception("No Custom Widget Handler named \"" + func_name + "\" exists"); }
public MainUIWindow() { Glade.XML app = new Glade.XML("./gtksharptest.glade", "window1", ""); app.Autoconnect(this); raiselower.Activate(); commandqueue = UICommandQueue.GetInstance(); }
public ViewGui() : base("") { string fullName = "MainView.gui.glade"; Assembly a = Assembly.GetAssembly(this.GetType()); Console.WriteLine(a.CodeBase); if (!System.IO.File.Exists(a.CodeBase + "/" + fullName)) { fullName = "gui.glade"; } glade = new XML(Assembly.GetCallingAssembly(), fullName, "ViewGui", null); glade.Autoconnect(this); Window win = (Window)glade ["ViewGui"]; win.Maximize(); //Initialisation du menu principal MainUIManager uim = new MainUIManager(this); vboxMain.PackStart(uim.MenuBar, false, false, 0); ((Gtk.Box.BoxChild)(vboxMain[uim.MenuBar])).Position = 0; //Pagecontrol des vues notebookViews = new Notebook(); hpanedMain.Pack2(notebookViews, true, false); notebookViews.Show(); //notebookViews.RemovePage(0); }
/// <summary> /// Construtor /// </summary> public LegendView(ViewBase owner) : base(owner) { Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.LegendView.glade", "hbox1"); gxml.Autoconnect(this); _mainWidget = hbox1; combobox1.Model = comboModel; combobox1.PackStart(comboRender, false); combobox1.AddAttribute(comboRender, "text", 0); combobox1.Changed += OnPositionComboChanged; combobox1.Focused += OnTitleTextBoxEnter; listview.Model = listModel; TreeViewColumn column = new TreeViewColumn(); column.Title = "Series name"; column.PackStart(listToggle, false); listRender.Editable = false; column.PackStart(listRender, true); column.SetAttributes(listToggle, "active", 0); column.SetAttributes(listRender, "text", 1); listview.AppendColumn(column); listToggle.Activatable = true; listToggle.Toggled += OnItemChecked; _mainWidget.Destroyed += _mainWidget_Destroyed; }
public quirofano(string LoginEmp_, string NomEmpleado_, string AppEmpleado_, string ApmEmpleado_, string nombrebd_, bool accesocxpq_) { LoginEmpleado = LoginEmp_; NomEmpleado = NomEmpleado_; AppEmpleado = AppEmpleado_; ApmEmpleado = ApmEmpleado_; nombrebd = conexion_a_DB._nombrebd; accesocxpq = accesocxpq_; Glade.XML gxml = new Glade.XML(null, "quirofano.glade", "menu_quirofano", null); gxml.Autoconnect(this); ////// Muestra ventana de Glade menu_quirofano.Show(); ////// Sale de la ventana button_salir.Clicked += new EventHandler(on_cierraventanas_clicked); button_programacion_cirugias.Clicked += new EventHandler(on_button_programacion_cirugias_clicked); button_requisicion_materiales.Clicked += new EventHandler(on_button_requisicion_materiales_clicked); button_paquetes.Clicked += new EventHandler(on_button_paquetes_clicked); button_cargos_pacientes.Clicked += new EventHandler(on_button_cargos_pacientes_clicked); button_soli_material.Clicked += new EventHandler(on_button_soli_material_clicked); button_autorizacion_medicamento.Clicked += new EventHandler(on_button_autorizacion_medicamento_clicked); button_inv_subalmacen.Clicked += new EventHandler(on_button_inv_subalmacen_clicked); button_asignacion_habitacion.Clicked += new EventHandler(on_button_asignacion_habitacion_clicked); button_traspaso_subalmacenes.Clicked += new EventHandler(on_button_traspaso_subalmacenes_clicked); button_reportes.Clicked += new EventHandler(on_button_reportes_clicked); button_requisicion_materiales.Sensitive = false; }
public MainClass(string[] args) { DateTime startTimestamp; startTimestamp = DateTime.Now; Console.WriteLine (startTimestamp); Gtk.Application.Init (); Glade.XML gxml = new Glade.XML (null, "TimeManager.gui.glade", "topWindow", null); TimePeriodAdderView tpv = new TimePeriodAdderView (gxml); TimePeriodAdderModel tpm = new TimePeriodAdderModel (tpv); TimePeriodAdderController tpc = new TimePeriodAdderController (gxml, tpm, tpv); ScreenshotViewerView nvv = new ScreenshotViewerView (gxml); ScreenshotViewerModel ssViewerModel = new ScreenshotViewerModel (nvv, tpm, startTimestamp); tpm.setNVM (ssViewerModel); ScreenshotViewerController screenshotViewerController = new ScreenshotViewerController (gxml, ssViewerModel); TmEventHandler eventHandler = new TmEventHandler (gxml); Gtk.Application.Run (); }
public RandomSetup(int x, int y, int seed, Callback c) { this.c = c; this.x = x; this.y = y; this.seed = seed; Glade.XML gxml = new Glade.XML(Assembly.GetExecutingAssembly(), "Random.glade", "RandomWindow", null); gxml.BindFields(this); RandomWindow.DeleteEvent += CloseWindow; CloseButton.Clicked += CloseWindow; GenerateButton.Clicked += Generate; XValue.Value = x; XValue.ValueChanged += SpinChanged; YValue.Value = y; YValue.ValueChanged += SpinChanged; Seed.Text = seed.ToString(); Seed.Changed += SeedChanged; RandomWindow.ShowAll(); }
public void Show( string[] userlist ) { Console.WriteLine("showusersdialog.Show()"); if (showusersdialog != null) { showusersdialog.Destroy(); } Glade.XML app = new Glade.XML( EnvironmentHelper.GetExeDirectory() + "/metaverse.client.glade", "showusersdialog", "" ); app.Autoconnect( this ); btnclose.Clicked += new EventHandler( btnclose_Clicked ); ListStore liststore = new ListStore( typeof( string ) ); userstreeview.Model = liststore; userstreeview.AppendColumn( "User name:", new CellRendererText(), "text", 0 ); userstreeview.ShowAll(); foreach (string username in userlist) { liststore.AppendValues( username ); } }
/// <summary> /// Initializes a new instance of the <see cref="GraphView" /> class. /// </summary> public GraphView(ViewBase owner = null) : base(owner) { Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.GraphView.glade", "vbox1"); gxml.Autoconnect(this); _mainWidget = vbox1; plot1 = new PlotView(); plot1.Model = new PlotModel(); plot1.SetSizeRequest(-1, 100); vbox2.PackStart(plot1, true, true, 0); smallestDate = DateTime.MaxValue; largestDate = DateTime.MinValue; this.LeftRightPadding = 40; expander1.Visible = false; captionEventBox.Visible = true; plot1.Model.MouseDown += OnChartClick; plot1.Model.MouseUp += OnChartMouseUp; plot1.Model.MouseMove += OnChartMouseMove; Popup.AttachToWidget(plot1, null); captionLabel.Text = null; captionEventBox.ButtonPressEvent += OnCaptionLabelDoubleClick; _mainWidget.Destroyed += _mainWidget_Destroyed; BackColor = OxyPlot.OxyColors.White; }
// Constructor for subclasses of this class public AddEvent(Window parent, ListStore eventsModel) { Glade.XML gxml = new Glade.XML("add_event.glade", "dlgAddEvent", null); gxml.Autoconnect(this); this.dlgAddEvent.TransientFor = parent; // Set actual day and month this.spbtnDay.Value = DateTime.Now.Day; this.cmbMonth.Active = DateTime.Now.Month - 1; this.spbtnYear.Adjustment.Lower = DateTime.Now.Year; this.spbtnYear.Adjustment.Upper = 9999; this.spbtnYear.Value = DateTime.Now.Year; // Load event types EventTypesManager etm = EventTypesManager.Instance; this.cmbEventTypes.RemoveText(0); foreach (EventType anEventType in etm.RetrieveAll()) { this.cmbEventTypes.AppendText(anEventType.Name); } this.eventsModel = eventsModel; }
/// <summary> /// Initializes a new instance of the <see cref="TreeProxyView" /> class. /// </summary> public TreeProxyView(ViewBase owner) : base(owner) { Glade.XML gxml = new Glade.XML("ApsimNG.Resources.Glade.TreeProxyView.glade", "vpaned1"); gxml.Autoconnect(this); _mainWidget = vpaned1; this.pBelowGround = new OxyPlot.GtkSharp.PlotView(); this.pAboveGround = new OxyPlot.GtkSharp.PlotView(); this.pAboveGround.Model = new PlotModel(); this.pBelowGround.Model = new PlotModel(); plots.Add(pAboveGround); plots.Add(pBelowGround); pAboveGround.SetSizeRequest(-1, 100); hbox1.PackStart(pAboveGround, true, true, 0); pBelowGround.SetSizeRequest(-1, 100); hbox1.PackStart(pBelowGround, true, true, 0); smallestDate = DateTime.MaxValue; largestDate = DateTime.MinValue; this.LeftRightPadding = 40; this.gridView1 = new Views.GridView(this); alignment1.Add(this.gridView1.MainWidget); smallestDate = DateTime.MaxValue; largestDate = DateTime.MinValue; treeview2.CursorChanged += GridCursorChanged; MainWidget.ShowAll(); }
public MapSizeDialog(DoneCallback callback) { this.callback = callback; Glade.XML app = new Glade.XML(EnvironmentHelper.GetExeDirectory() + "/TerrainEditing.glade", "mapsizedialog", ""); app.Autoconnect(this); Init(); }
public SettingsDialog(bool modal) { Glade.XML gxml = new Glade.XML("editor.glade", "settingsDialog"); gxml.Autoconnect(this); if(settingsDialog == null || entryExe == null) throw new Exception("Couldn't load settings Dialog"); entryExe.Text = Settings.Instance.SupertuxExe; rbToolsLeft.Active = !Settings.Instance.ToolboxOnRight; rbToolsRight.Active = Settings.Instance.ToolboxOnRight; entryName.Text = Settings.Instance.Name; entryContact.Text = Settings.Instance.ContactInfo; entryLicense.Text = Settings.Instance.License; SidebarChanged = false; settingsDialog.Icon = EditorStock.WindowIcon; if (!modal) { settingsDialog.ShowAll(); } else { settingsDialog.Run(); settingsDialog.Destroy(); } }
public BookEditor() { Glade.XML gxml = new Glade.XML (Util.GladePath("contact-browser.glade"), "BookEditor", null); gxml.Autoconnect (this); beDlg = (Gtk.Dialog) gxml.GetWidget("BookEditor"); }