public Stetic.WidgetInfo AddNewComponent(XmlElement element) { Stetic.WidgetInfo c = SteticProject.AddNewComponent(element); // Register the window now, don't wait for the WidgetAdded event since // it may take some time, and the GuiBuilderWindow object is needed // just after this call RegisterWindow(c, true); return(c); }
public void AddNewComponent(string fileName) { object ob = SteticProject.AddNewComponent(fileName); if (ob is Stetic.WidgetInfo) { var c = (Stetic.WidgetInfo)ob; RegisterWindow(c, true); } }
public void ImportGladeFile() { var dlg = new MonoDevelop.Components.SelectFileDialog(GettextCatalog.GetString("Open Glade File")); dlg.AddFilter(GettextCatalog.GetString("Glade files"), "*.glade"); dlg.AddAllFilesFilter(); if (dlg.Run()) { SteticProject.ImportGlade(dlg.SelectedFile); SaveAll(true); } }
public Stetic.ActionGroupInfo GetActionGroup(string name) { return(SteticProject.GetActionGroup(name)); }
public Stetic.WidgetInfo AddNewComponent(Stetic.ComponentType type, string name) { Stetic.WidgetInfo c = SteticProject.AddNewComponent(type, name); RegisterWindow(c, true); return(c); }
public Stetic.ActionGroupInfo GetActionGroup(string name) { return((SteticProject != null) ? SteticProject.GetActionGroup(name) : null); }