Inheritance: Stetic.Designer
示例#1
0
 void OnDesignerChanged(object s, EventArgs args)
 {
     if (lastDesigner != null)
     {
         lastDesigner.SelectionChanged -= Selected;
     }
     lastDesigner = SteticMain.CurrentDesigner;
     if (lastDesigner != null)
     {
         lastDesigner.SelectionChanged += Selected;
     }
     UpdateEdit();
 }
示例#2
0
        void UpdateEdit()
        {
            WidgetDesigner wd = SteticMain.CurrentDesigner;

            if (wd != null)
            {
                UpdateEdit(wd.CanCutSelection, wd.CanCopySelection, wd.CanPasteToSelection);
            }
            else
            {
                UpdateEdit(false, false, false);
            }
        }
示例#3
0
		internal ActionGroupDesigner (Project project, string componentName, string actionGroupName, WidgetDesigner relatedWidgetDesigner, bool autoCommitChanges): base (project.App)
		{
			this.componentName = componentName;
			this.relatedWidgetDesigner = relatedWidgetDesigner;
			
			if (actionGroupName != null)
				this.actionGroupName = actionGroupName;
			this.autoCommitChanges = autoCommitChanges;
			this.project = project;

			frontend = new ActionGroupDesignerFrontend (this);

			CreateSession ();
		}
示例#4
0
 void Delete(object obj, EventArgs e)
 {
     Gtk.Editable focus = Focus;
     if (focus != null)
     {
         focus.DeleteSelection();
     }
     else
     {
         WidgetDesigner wd = SteticMain.CurrentDesigner;
         if (wd != null && wd.Selection != null)
         {
             wd.DeleteSelection();
         }
     }
 }
示例#5
0
 void Paste(object obj, EventArgs e)
 {
     Gtk.Editable focus = Focus;
     if (focus != null)
     {
         focus.PasteClipboard();
     }
     else
     {
         WidgetDesigner wd = SteticMain.CurrentDesigner;
         if (wd != null)
         {
             wd.PasteToSelection();
         }
     }
 }
示例#6
0
        internal ActionGroupDesigner(Project project, string componentName, string actionGroupName, WidgetDesigner relatedWidgetDesigner, bool autoCommitChanges) : base(project.App)
        {
            this.componentName         = componentName;
            this.relatedWidgetDesigner = relatedWidgetDesigner;

            if (actionGroupName != null)
            {
                this.actionGroupName = actionGroupName;
            }
            this.autoCommitChanges = autoCommitChanges;
            this.project           = project;

            frontend = new ActionGroupDesignerFrontend(this);

            CreateSession();
        }
示例#7
0
        public DesignerView(Stetic.Project project, ProjectItemInfo item)
        {
            this.widget = (WidgetInfo) item;

            // Widget design tab

            design = project.CreateWidgetDesigner (widget, true);

            // Actions design tab

            actionbox = design.CreateActionGroupDesigner ();

            // Designers tab

            AppendPage (design, new Gtk.Label (Catalog.GetString ("Designer")));
            AppendPage (actionbox, new Gtk.Label (Catalog.GetString ("Actions")));
            TabPos = Gtk.PositionType.Bottom;
        }
示例#8
0
        public DesignerView(Stetic.Project project, ProjectItemInfo item)
        {
            this.widget = (WidgetInfo)item;

            // Widget design tab

            design = project.CreateWidgetDesigner(widget, true);

            // Actions design tab

            actionbox = design.CreateActionGroupDesigner();

            // Designers tab

            AppendPage(design, new Gtk.Label(Catalog.GetString("Designer")));
            AppendPage(actionbox, new Gtk.Label(Catalog.GetString("Actions")));
            TabPos = Gtk.PositionType.Bottom;
        }
示例#9
0
		public WidgetDesignerFrontend (WidgetDesigner designer)
		{
			this.designer = designer;
		}
示例#10
0
 public WidgetDesignerFrontend(WidgetDesigner designer)
 {
     this.designer = designer;
 }
示例#11
0
文件: UIManager.cs 项目: mono/stetic
 void OnDesignerChanged(object s, EventArgs args)
 {
     if (lastDesigner != null)
         lastDesigner.SelectionChanged -= Selected;
     lastDesigner = SteticMain.CurrentDesigner;
     if (lastDesigner != null)
         lastDesigner.SelectionChanged += Selected;
     UpdateEdit ();
 }