Inheritance: Gtk.ScrolledWindow
コード例 #1
0
		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
ファイル: UserInterface.cs プロジェクト: Kalnor/monodevelop
		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);
		}
コード例 #6
0
		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
ファイル: EmbedWindow.cs プロジェクト: mono/stetic
        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
ファイル: EmbedWindow.cs プロジェクト: orf53975/stetic
        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));
            }
        }