source: trunk/CrypPlugins/ClipboardInput/ClipboardInputSettings.cs @ 1709

Last change on this file since 1709 was 1259, checked in by Matthäus Wander, 12 years ago

shortened license text to boilerplate notice in all source files

File size: 2.1 KB
Line 
1/*
2   Copyright 2008 Timm Korte, University of Siegen
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 System.Collections.Generic;
19using System.Linq;
20using System.Text;
21using System.IO;
22using Cryptool.PluginBase;
23using System.Security.Cryptography;
24using System.ComponentModel;
25
26namespace ClipboardInput {
27        public class ClipboardInputSettings : ISettings {
28                private int format = 0; //0="Text", 1="Hex", 2="Base64"
29
30    [ContextMenu("Format", "Data format to convert from", 1, DisplayLevel.Beginner, ContextMenuControlType.ComboBox, null, new string[] { "text", "hex", "base64" })]
31    [TaskPane("Format", "Data format to convert from", "", 1, false, DisplayLevel.Beginner, ControlType.ComboBox, new string[] { "text", "hex", "base64" })]
32                public int Format {
33                        get { return this.format; }
34                        set 
35      { 
36        this.format = (int)value;
37        OnPropertyChanged("Format");
38      }
39                }
40
41                #region IInputSettings Member
42
43                public string SaveAndRestoreState { get; set; }
44
45                #endregion
46
47    #region INotifyPropertyChanged Members
48
49    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
50
51    protected void OnPropertyChanged(string name)
52    {
53      if (PropertyChanged != null)
54      {
55        PropertyChanged(this, new PropertyChangedEventArgs(name));
56      }
57    }
58
59    #endregion
60
61    #region ISettings Members
62
63    private bool hasChanges = false;
64    public bool HasChanges
65    {
66      get { return hasChanges; }
67      set { hasChanges = value; }
68    }
69
70    #endregion
71  }
72}
Note: See TracBrowser for help on using the repository browser.