Esempio n. 1
0
        void LoadDesigner()
        {
            groupInfo = project.GetActionGroup(groupName);
            if (groupInfo == null)
            {
                // Group not found
                return;
            }

            group             = (Stetic.ActionGroupComponent)groupInfo.Component;
            project.Unloaded += OnDisposeProject;

            designer = project.SteticProject.CreateActionGroupDesigner(groupInfo, false);
            designer.AllowActionBinding = project.Project.UsePartialTypes;
            designer.BindField         += new EventHandler(OnBindField);

            ActionGroupPage actionsPage = new ActionGroupPage();

            actionsPage.PackStart(designer, true, true, 0);
            actionsPage.ShowAll();

            AddButton(GettextCatalog.GetString("Actions"), actionsPage);

            designer.ModifiedChanged      += OnGroupModified;
            designer.SignalAdded          += OnSignalAdded;
            designer.SignalChanged        += OnSignalChanged;
            designer.RootComponentChanged += OnRootComponentChanged;

            codeBinder = new CodeBinder(project.Project, new OpenDocumentFileProvider(), designer.RootComponent);
        }
Esempio n. 2
0
		void LoadDesigner ()
		{
			groupInfo = project.GetActionGroup (groupName);
			if (groupInfo == null)
				// Group not found
				return;
			
			group = (Stetic.ActionGroupComponent) groupInfo.Component;
			project.Unloaded += OnDisposeProject;
			
			designer = project.SteticProject.CreateActionGroupDesigner (groupInfo, false);
			designer.AllowActionBinding = project.Project.UsePartialTypes;
			designer.BindField += new EventHandler (OnBindField);
			
			ActionGroupPage actionsPage = new ActionGroupPage ();
			actionsPage.PackStart (designer, true, true, 0);
			actionsPage.ShowAll ();
			
			AddButton (GettextCatalog.GetString ("Actions"), actionsPage);
			
			designer.ModifiedChanged += OnGroupModified;
			designer.SignalAdded += OnSignalAdded;
			designer.SignalChanged += OnSignalChanged;
			designer.RootComponentChanged += OnRootComponentChanged;

			codeBinder = new CodeBinder (project.Project, new OpenDocumentFileProvider (), designer.RootComponent);
		}
        public GuiBuilderView(IViewContent content, GuiBuilderWindow window) : base(content)
        {
            rootName = window.Name;

            designerPage = new DesignerPage();
            designerPage.Show();
            AddButton(GettextCatalog.GetString("Designer"), designerPage);

            actionsPage = new ActionGroupPage();
            actionsPage.Show();

            AttachWindow(window);
        }
		public GuiBuilderView (IViewContent content, GuiBuilderWindow window): base (content)
		{
			rootName = window.Name;
			
			designerPage = new DesignerPage (window.Project);
			designerPage.Show ();
			AddButton (GettextCatalog.GetString ("Designer"), designerPage);
			
			actionsPage = new ActionGroupPage ();
			actionsPage.Show ();
			
			AttachWindow (window);
		}
Esempio n. 5
0
        protected override async Task <DocumentView> OnInitializeView()
        {
            designerPage = new DesignerPage(window.Project);
            actionsPage  = new ActionGroupPage();
            designerPage.Show();
            actionsPage.Show();

            var view = await base.OnInitializeView();

            AddButton(GettextCatalog.GetString("Designer"), designerPage);

            AttachWindow(window);

            return(view);
        }