Changeset 572 for trunk/CrypPlugins/Gate


Ignore:
Timestamp:
Sep 24, 2009, 1:47:16 PM (12 years ago)
Author:
Matthäus Wander
Message:

Gate:

  • cleanup
Location:
trunk/CrypPlugins/Gate
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Gate/Gate.cs

    r558 r572  
    1 using System;
     1/*
     2   Copyright 2009 Matthäus Wander, Universität 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;
    218using System.Collections.Generic;
    319using System.Linq;
     
    1228using System.Diagnostics;
    1329
     30/*
     31 * TODO:
     32 * - create icons to show Gate state (open, closed)
     33 * - find solution for ticket #81
     34 */
    1435namespace Gate
    1536{
    1637    [Author("Matthäus Wander", "wander@cryptool.org", "Universität Duisburg-Essen, Fachgebiet Verteilte Systeme", "http://www.vs.uni-due.de")]
    17     [PluginInfo(false, "Gate", "Control operator", null, "Gate/default_icon.png")]
     38    [PluginInfo(false, "Gate", "Control operator", "", "CrypWin/images/default.png")]
    1839    public class Gate : IThroughput
    1940    {
     
    4061        }
    4162
    42         [PropertyInfo(Direction.InputData, "Control", "Controls whether to open gate", null, false, false, DisplayLevel.Beginner, QuickWatchFormat.None, null)]
     63        [PropertyInfo(Direction.InputData, "Control", "Controls whether to open gate", null, false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    4364        public bool Control
    4465        {
  • trunk/CrypPlugins/Gate/GateSettings.cs

    r558 r572  
    1 using System;
     1/*
     2   Copyright 2009 Matthäus Wander, Universität 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;
    218using System.Collections.Generic;
    319using System.Linq;
     
    2844            {
    2945                if (trigger != value)
     46                {
    3047                    hasChanges = true;
    31 
    32                 trigger = value;
     48                    trigger = value;
     49                }
    3350            }
    3451        }
Note: See TracChangeset for help on using the changeset viewer.