Inheritance: Gtk.EventBox, IMenuItemContainer
		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 override void Dispose()
        {
            if (combo == null)
            {
                return;
            }

            combo.Changed -= OnActiveChanged;
            combo          = null;
            if (addButton != null)
            {
                addButton.Clicked    -= OnAddGroup;
                removeButton.Clicked -= OnRemoveGroup;
            }

            if (agroupEditor != null)
            {
                agroupEditor.SelectionChanged -= OnEditorSelectionChanged;
                agroupEditor = null;
            }

            if (!singleGroupMode)
            {
                ActionGroups = null;
            }
            base.Dispose();
        }
示例#4
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);
        }
示例#6
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);
		}
示例#8
0
 public void Bind(Editor.ActionGroupEditor agroupEditor)
 {
     this.agroupEditor              = agroupEditor;
     agroupEditor.SelectionChanged += OnEditorSelectionChanged;
     agroupEditor.ActionGroup       = ActiveGroup;
 }
		public override void Dispose ()
		{
			if (combo == null)
				return;

			combo.Changed -= OnActiveChanged;
			combo = null;
			if (addButton != null) {
				addButton.Clicked -= OnAddGroup;
				removeButton.Clicked -= OnRemoveGroup;
			}
				
			if (agroupEditor != null) {
				agroupEditor.SelectionChanged -= OnEditorSelectionChanged;
				agroupEditor = null;
			}
			
			if (!singleGroupMode)
				ActionGroups = null;
			base.Dispose ();
		}
		public void Bind (Editor.ActionGroupEditor agroupEditor)
		{
			this.agroupEditor = agroupEditor;
			agroupEditor.SelectionChanged += OnEditorSelectionChanged;
			agroupEditor.ActionGroup = ActiveGroup;
		}