Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/HeuristicLab.Netron-3.0.2672.12446/Controller.cs @ 2801

Last change on this file since 2801 was 2801, checked in by mkommend, 14 years ago

added first version of OperatorGraphVisualization (ticket #867)

File size: 1.8 KB
Line 
1#region License Information
2//This end-user license agreement applies to the following software;
3
4//The Netron Diagramming Library
5//Cobalt.IDE
6//Xeon webserver
7//Neon UI Library
8
9//Copyright (C) 2007, Francois M.Vanderseypen, The Netron Project & The Orbifold
10
11//This program is free software; you can redistribute it and/or
12//modify it under the terms of the GNU General Public License
13//as published by the Free Software Foundation; either version 2
14//of the License, or (at your option) any later version.
15
16//This program is distributed in the hope that it will be useful,
17//but WITHOUT ANY WARRANTY; without even the implied warranty of
18//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19//GNU General Public License for more details.
20
21//You should have received a copy of the GNU General Public License
22//along with this program; if not, write to the Free Software
23//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
24
25
26//http://www.fsf.org/licensing/licenses/gpl.html
27
28//http://www.fsf.org/licensing/licenses/gpl-faq.html
29#endregion
30
31using System;
32using System.Collections.Generic;
33using System.Linq;
34using System.Text;
35using Netron.Diagramming.Core;
36
37namespace HeuristicLab.Netron {
38  public class Controller : ControllerBase {
39
40    public const string TextToolName = "Text Tool";
41    public const string TextEditorToolName = "Text Editor Tool";
42
43    public Controller(IDiagramControl surface)
44      : base(surface) {
45    }
46
47    public override bool ActivateTextEditor(ITextProvider textProvider) {
48      TextEditor.GetEditor(textProvider);
49      TextEditor.Show();
50      return true;
51    }
52
53    public ILayout StandardTreeLayout {
54      get {
55        return (ILayout)this.FindActivity("Standard TreeLayout");
56      }
57    }
58  }
59}
Note: See TracBrowser for help on using the repository browser.