Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/15 16:41:12 (9 years ago)
Author:
jkarder
Message:

#2116: added new breadcrumb navigation prototype

Location:
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.Designer.cs

    r12012 r13014  
    6161      this.selectButton = new System.Windows.Forms.Button();
    6262      this.detailsGroupBox = new System.Windows.Forms.GroupBox();
    63       this.detailsViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
     63      this.detailsViewHost = new HeuristicLab.Core.Views.BreadcrumbViewHost();
    6464      this.buttonToolTip = new System.Windows.Forms.ToolTip(this.components);
    6565      this.shapeContextMenu.SuspendLayout();
     
    235235                  | System.Windows.Forms.AnchorStyles.Right)));
    236236      this.detailsViewHost.Content = null;
     237      this.detailsViewHost.EnableBreadcrumbs = true;
    237238      this.detailsViewHost.Location = new System.Drawing.Point(3, 16);
    238239      this.detailsViewHost.Name = "detailsViewHost";
     
    270271    private System.Windows.Forms.SplitContainer splitContainer;
    271272    private System.Windows.Forms.GroupBox detailsGroupBox;
    272     private HeuristicLab.MainForm.WindowsForms.ViewHost detailsViewHost;
     273    private HeuristicLab.Core.Views.BreadcrumbViewHost detailsViewHost;
    273274    private System.Windows.Forms.Button selectButton;
    274275    private System.Windows.Forms.Button zoomOutButton;
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs

    r12012 r13014  
    2525using System.Windows.Forms;
    2626using HeuristicLab.Core;
     27using HeuristicLab.Core.Views;
    2728using HeuristicLab.MainForm;
    2829using HeuristicLab.MainForm.WindowsForms;
     
    140141          if (shapeInfo != null) {
    141142            IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo);
    142             IContentView view = MainFormManager.MainForm.ShowContent(op);
    143             if (view != null) {
    144               view.ReadOnly = this.ReadOnly;
    145               view.Locked = this.Locked;
     143            AlgorithmOperator algOp = op as AlgorithmOperator;
     144
     145            Control c = this;
     146            BreadcrumbViewHost vh;
     147
     148            do {
     149              c = c.Parent;
     150              vh = c as BreadcrumbViewHost;
     151            } while ((vh == null || !vh.EnableBreadcrumbs) && c != null);
     152
     153            if (algOp != null && vh != null) {
     154              vh.AddBreadcrumbs(vh.Content);
     155              vh.AddBreadcrumb(algOp.Name, algOp.OperatorGraph);
     156              vh.Content = algOp.OperatorGraph;
     157              vh.ReadOnly = ReadOnly;
     158              vh.Locked = Locked;
     159            } else {
     160              IContentView view = MainFormManager.MainForm.ShowContent(op);
     161              if (view != null) {
     162                view.ReadOnly = ReadOnly;
     163                view.Locked = Locked;
     164              }
    146165            }
     166
    147167            HandledMouseEventArgs eventArgs = e as HandledMouseEventArgs;
    148168            if (eventArgs != null)
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/Plugin.cs.frame

    r12753 r13014  
    2929  [PluginDependency("HeuristicLab.Common.Resources", "3.3")]
    3030  [PluginDependency("HeuristicLab.Core", "3.3")]
     31  [PluginDependency("HeuristicLab.Core.Views", "3.3")]
    3132  [PluginDependency("HeuristicLab.MainForm", "3.3")]
    3233  [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")]
    3334  [PluginDependency("HeuristicLab.Netron", "3.0")]
     35  [PluginDependency("HeuristicLab.Operators", "3.3")]
    3436  [PluginDependency("HeuristicLab.Operators.Views.GraphVisualization", "3.3")]
    3537  public class HeuristicLabOperatorsViewsGraphVisualizationViewsPlugin : PluginBase {
Note: See TracChangeset for help on using the changeset viewer.