source: trunk/CrypPluginBase/Editor/IEditor.cs

Last change on this file was 8983, checked in by kopal, 9 months ago

Complete CrypTool 2 project

  • renamed "Cryptool" namespace to "CrypTool" namespace
File size: 2.3 KB
Line 
1/*
2   Copyright 2008 Martin Saternus, University of Duisburg-Essen
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15*/
16
17using System;
18using CrypTool.Core;
19
20namespace CrypTool.PluginBase.Editor
21{
22    public interface IEditor : IPlugin
23    {
24        event SelectedPluginChangedHandler OnSelectedPluginChanged;
25        event ProjectTitleChangedHandler OnProjectTitleChanged;
26        event OpenProjectFileHandler OnOpenProjectFile;
27        event OpenTabHandler OnOpenTab;
28        event OpenEditorHandler OnOpenEditor; 
29        event FileLoadedHandler OnFileLoaded;
30
31        void New();
32        void Open(string fileName);
33        void Save(string fileName);
34
35        void Add(Type type);
36        void Undo();
37        void Redo();
38        void Cut();
39        void Copy();
40        void Paste();
41        void Remove();
42        void Print();
43        void AddText();
44        void AddImage();
45
46        /// <summary>
47        /// Used to display a plugin specific description button in settings pane.
48        /// </summary>
49        void ShowSelectedEntityHelp();
50
51        bool CanUndo { get; }
52        bool CanRedo { get; }
53        bool CanCut { get; }
54        bool CanCopy { get; }
55        bool CanPaste { get; }
56        bool CanRemove { get; }
57        bool CanExecute { get; }
58        bool CanStop { get; }
59        bool HasChanges { get; }
60        bool CanPrint { get; }
61        bool CanSave { get; }
62
63        string CurrentFile { get; }
64
65        string SamplesDir { set; }
66
67        /// <summary>
68        /// Gets or sets the readOnly propability of an editor i.e. if something on the workspace can be changed.
69        /// </summary>
70        bool ReadOnly { get; set; }
71
72        bool HasBeenClosed { get; set; }
73
74        PluginManager PluginManager { get; set; }
75    }
76}
Note: See TracBrowser for help on using the repository browser.