/// <summary> /// Constructor. /// </summary> public DomainsManager(string Name, string TechName, string Summary, ImageSource Pictogram, WorkspaceManager WorkspaceDirector, IDocumentVisualizer Visualizer, WidgetItemsPaletteGroup ConceptPalette, WidgetItemsPaletteGroup RelationshipPalette) : base(Name, TechName, Summary, Pictogram, WorkspaceDirector, Visualizer) { General.ContractRequiresNotNull(ConceptPalette, RelationshipPalette); this.ConceptPalette = ConceptPalette; this.RelationshipPalette = RelationshipPalette; this.DocumentsPrefix = "Domain"; }
/// <summary> /// Constructor /// </summary> public WorkSphere(string Name, string TechName, string Summary, ImageSource Pictogram, WorkspaceManager WorkspaceDirector, IDocumentVisualizer Visualizer) : base(Name, TechName, Summary, Pictogram) { General.ContractRequiresNotNull(WorkspaceDirector); this.WorkspaceDirector = WorkspaceDirector; this.Visualizer = Visualizer; this.CommandAreas = new ReadOnlyCollection <SimpleElement>(this.CommandAreas_); this.CommandGroups = new ReadOnlyDictionary <string, List <SimpleElement> >(this.CommandGroups_); }
/// <summary> /// Constructor. /// </summary> /// <param name="Manager">CompositionsManager which owns this edition engine.</param> /// <param name="Visualizer">Visualization control for document views.</param> private CompositionEngine(CompositionsManager Manager, IDocumentVisualizer Visualizer) { General.ContractRequiresNotNull(Manager, Visualizer); this.Manager = Manager; this.Visualizer = Visualizer; // Subscribes to entity-change event this.ExistenceUpdateAction = (prevsta, currsta) => { this.Manager.WorkspaceDirector.ShellProvider.RefreshSelection(null, true); }; this.EntityChanged += this.ExistenceUpdateAction; this.Manager.WorkspaceDirector.ShellProvider.KeyActioned += new KeyEventHandler(ShellProvider_KeyActioned); }
/// <summary> /// Creates, activates and returns a new Comopsition Engine, using the supplied Manager and Visualizer. /// From this point in time onwards, every editing change will be stored by this Entity Edit-Engine. /// </summary> public static CompositionEngine CreateActiveCompositionEngine(CompositionsManager Manager, IDocumentVisualizer Visualizer, bool IsForEditDomain) { var NewEngine = new CompositionEngine(Manager, Visualizer); NewEngine.IsForEditDomain = IsForEditDomain; EntityEditEngine.ActiveEntityEditor = NewEngine; return(NewEngine); }
public static void SetDocumentVisualizer(IDocumentVisualizer documentVisualizer) { if (instance == null) return; instance.diagramNavigator.DocumentVisualizer = documentVisualizer; }