void OnDesignerChanged(object s, EventArgs args) { if (lastDesigner != null) { lastDesigner.SelectionChanged -= Selected; } lastDesigner = SteticMain.CurrentDesigner; if (lastDesigner != null) { lastDesigner.SelectionChanged += Selected; } UpdateEdit(); }
void UpdateEdit() { WidgetDesigner wd = SteticMain.CurrentDesigner; if (wd != null) { UpdateEdit(wd.CanCutSelection, wd.CanCopySelection, wd.CanPasteToSelection); } else { UpdateEdit(false, false, false); } }
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 (); }
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(); } } }
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(); } } }
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(); }
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; }
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; }
public WidgetDesignerFrontend (WidgetDesigner designer) { this.designer = designer; }
public WidgetDesignerFrontend(WidgetDesigner designer) { this.designer = designer; }
void OnDesignerChanged(object s, EventArgs args) { if (lastDesigner != null) lastDesigner.SelectionChanged -= Selected; lastDesigner = SteticMain.CurrentDesigner; if (lastDesigner != null) lastDesigner.SelectionChanged += Selected; UpdateEdit (); }