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 |
|
---|
31 | using System;
|
---|
32 | using System.Collections.Generic;
|
---|
33 | using System.Linq;
|
---|
34 | using System.Text;
|
---|
35 | using Netron.Diagramming.Core;
|
---|
36 |
|
---|
37 | namespace 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 | }
|
---|