Inheritance: Gtk.ScrolledWindow
		public override void Dispose ()
		{
			this.editor = null;
			this.toolbar = null;
			this.groupDesign = null;
			base.Dispose ();
		}
 public override void Dispose()
 {
     this.editor      = null;
     this.toolbar     = null;
     this.groupDesign = null;
     base.Dispose();
 }
示例#3
0
        public static ActionGroupDesignerBackend CreateActionGroupDesigner(ProjectBackend project, ActionGroupToolbar groupToolbar)
        {
            Editor.ActionGroupEditor agroupEditor = new Editor.ActionGroupEditor();
            agroupEditor.Project = project;
            WidgetDesignerBackend groupDesign = new WidgetDesignerBackend(agroupEditor, -1, -1);

            groupToolbar.Bind(agroupEditor);

            return(new ActionGroupDesignerBackend(groupDesign, agroupEditor, groupToolbar));
        }
        internal ActionGroupDesignerBackend(WidgetDesignerBackend groupDesign, Editor.ActionGroupEditor editor, ActionGroupToolbar toolbar)
        {
            this.editor      = editor;
            this.toolbar     = toolbar;
            this.groupDesign = groupDesign;

            BorderWidth = 3;
            PackStart(toolbar, false, false, 0);
            PackStart(groupDesign, true, true, 3);
        }
示例#5
0
		public static ActionGroupDesignerBackend CreateActionGroupDesigner (ProjectBackend project, ActionGroupToolbar groupToolbar)
		{
			Editor.ActionGroupEditor agroupEditor = new Editor.ActionGroupEditor ();
			agroupEditor.Project = project;
			WidgetDesignerBackend groupDesign = new WidgetDesignerBackend (agroupEditor, -1, -1);
			
			groupToolbar.Bind (agroupEditor);
			
			return new ActionGroupDesignerBackend (groupDesign, agroupEditor, groupToolbar);
		}
		internal ActionGroupDesignerBackend (WidgetDesignerBackend groupDesign, Editor.ActionGroupEditor editor, ActionGroupToolbar toolbar)
		{
			this.editor = editor;
			this.toolbar = toolbar;
			this.groupDesign = groupDesign;
			
			BorderWidth = 3;
			PackStart (toolbar, false, false, 0);
			PackStart (groupDesign, true, true, 3);
		}
示例#7
0
        public static WidgetDesignerBackend Wrap(Gtk.Container container, int designWidth, int designHeight)
        {
            Window window = container as Gtk.Window;

            if (window != null) {
                if (window.IsRealized)
                    throw new ApplicationException ("Cannot make a realized window embeddable");

                window.WidgetFlags &= ~(WidgetFlags.Toplevel);
                window.SizeAllocated += new SizeAllocatedHandler (OnSizeAllocated);
                window.Realized += new EventHandler (OnRealized);
                WidgetDesignerBackend prev = new WidgetDesignerBackend (container, designWidth, designHeight);
                prev.Title = window.Title;
                return prev;
            } else
                return new WidgetDesignerBackend (container, designWidth, designHeight);
        }
示例#8
0
        public static WidgetDesignerBackend Wrap(Gtk.Container container, int designWidth, int designHeight)
        {
            Window window = container as Gtk.Window;

            if (window != null)
            {
                if (window.IsRealized)
                {
                    throw new ApplicationException("Cannot make a realized window embeddable");
                }

                window.WidgetFlags   &= ~(WidgetFlags.Toplevel);
                window.SizeAllocated += new SizeAllocatedHandler(OnSizeAllocated);
                window.Realized      += new EventHandler(OnRealized);
                WidgetDesignerBackend prev = new WidgetDesignerBackend(container, designWidth, designHeight);
                prev.Title = window.Title;
                return(prev);
            }
            else
            {
                return(new WidgetDesignerBackend(container, designWidth, designHeight));
            }
        }