예제 #1
0
 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);
 }
예제 #2
0
        public void AddNewComponent(string fileName)
        {
            object ob = SteticProject.AddNewComponent(fileName);

            if (ob is Stetic.WidgetInfo)
            {
                var c = (Stetic.WidgetInfo)ob;
                RegisterWindow(c, true);
            }
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
 public Stetic.ActionGroupInfo GetActionGroup(string name)
 {
     return(SteticProject.GetActionGroup(name));
 }
예제 #5
0
 public Stetic.WidgetInfo AddNewComponent(Stetic.ComponentType type, string name)
 {
     Stetic.WidgetInfo c = SteticProject.AddNewComponent(type, name);
     RegisterWindow(c, true);
     return(c);
 }
예제 #6
0
 public Stetic.ActionGroupInfo GetActionGroup(string name)
 {
     return((SteticProject != null) ? SteticProject.GetActionGroup(name) : null);
 }