source: trunk/CrypPluginBase/Delegates.cs @ 1448

Last change on this file since 1448 was 1448, checked in by Sven Rech, 12 years ago

replaced all BigInteger stuff with the new BigInteger class from .net 4.0

But there are still problems with some plugins (Keysearcher, BigInteger Operations...)

File size: 4.1 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.PluginBase.Editor;
19using Cryptool.PluginBase.Control;
20using Cryptool.PluginBase.Miscellaneous;
21using System.Numerics;
22
23namespace Cryptool.PluginBase
24{
25  #region public interface delegates
26  /// <summary>
27  /// Used by plugins to inform the editor about internal status changes. E.g. a comparator
28  /// plugin can send a new icon to show after comparison was done.
29  /// </summary>
30  public delegate void StatusChangedEventHandler(IPlugin sender, StatusEventArgs args);
31
32  /// <summary>
33  /// Used to send messages to the GUI log-window.
34  /// </summary>
35  public delegate void GuiLogNotificationEventHandler(IPlugin sender, GuiLogEventArgs args);
36
37  /// <summary>
38  /// Used to notify the editor about prgress changes in execution method.
39  /// </summary>
40  public delegate void PluginProgressChangedEventHandler(IPlugin sender, PluginProgressEventArgs args);
41  #endregion public interface delegates
42
43  # region editor delegates
44  /// <summary>
45  /// Used by editor plugins to communicate the selected plugin to CrypWin.
46  /// </summary>
47  public delegate void SelectedPluginChangedHandler(IEditor editor, PluginChangedEventArgs pce);
48
49  /// <summary>
50  /// Used by editor plugins to send DisplayLevel of loaded workspace to the CrypWin.
51  /// </summary>
52  public delegate void ChangeDisplayLevelHandler(IEditor editor, ChangeDisplayLevelEventArgs args);
53
54  /// <summary>
55  /// Used by editor plugins to send current project title to CrypWin.
56  /// </summary>
57  public delegate void ProjectTitleChangedHandler(IEditor editor, string newProjectTitle);
58
59  /// <summary>
60  /// Used by editor plugins after a project file was dropped on workspace, to inform the GUI
61  /// to execute project open operations (including questions for unsaved changes etc.).
62  /// </summary>
63  public delegate void OpenProjectFileHandler(IEditor editor, string fileName);
64
65  /// <summary>
66  /// This delegate is used by editors to inform the gui of EditorSpecificPluginChange.
67  /// This occurs after a new SubWorkspace was created.
68  /// </summary>
69  public delegate void EditorSpecificPluginsChanged(IEditor editor);
70  # endregion editor delegates
71
72  #region optional delegates
73  /// <summary>
74  /// This optional delegate can be used by plugins to inform editors of an
75  /// change of dynamic properties.
76  /// </summary>
77  public delegate void DynamicPropertiesChanged(IPlugin plugin);
78
79  /// <summary>
80  /// This optional delegate can be used to hide task pane settings.
81  /// </summary>
82  public delegate void TaskPaneAttributeChangedHandler(ISettings settings, TaskPaneAttributeChangedEventArgs args);
83  #endregion optional delegates
84
85  #region master-slave delegates
86  public delegate void KeyPatternChanged();
87  public delegate void IControlStatusChangedEventHandler(IControl sender, bool readyForExecution);
88
89  #region Delegates for Manager-/Worker-Infrastructure
90
91  /// <summary>
92    /// P2PWorker-Control delegate: will be thrown, when the actual job is successfully processed
93    /// </summary>
94    /// <param name="result"></param>
95  public delegate void ProcessingSuccessfullyEnded(BigInteger jobId, byte[] result);
96    /// <summary>
97    /// P2PWorker-Control delegate: will be thrown, when processing was canceled by the user or due to an error
98    /// </summary>
99    /// <param name="result"></param>
100  public delegate void ProcessingCanceled(byte[] result);
101  public delegate void InfoText(string sText, NotificationLevel notLevel);
102
103  #endregion
104  #endregion
105}
Note: See TracBrowser for help on using the repository browser.