source: trunk/CrypPlugins/WorkspaceManager/Model/VisualElementModel.cs @ 1570

Last change on this file since 1570 was 1570, checked in by kopal, 12 years ago
  • renamed "ConntectorView" to "ConnectorView"
  • bug fix - newConnectionModel now puts the new ConnectionModel into the internal list
  • PluginModels are now executable if
    • all Mandatory Inputs are set + all Outputs are "free"
    • there are no Mandatory Inputs but at least one input is set + all Outputs are "free"
    • there are no Inputs + all Outputs are "free"
  • some small fixes
File size: 1.9 KB
Line 
1/*                             
2   Copyright 2010 Nils Kopal, Viktor M.
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
17
18using System;
19using System.Collections.Generic;
20using System.Linq;
21using System.Text;
22using System.Windows;
23
24namespace WorkspaceManager.Model
25{
26    /// <summary>
27    /// Abstract super class for all Model Elements which will have
28    /// a representation by a View class. It is needed to represent
29    /// Coordinates and Dimensions
30    /// </summary>
31    [Serializable]
32    public abstract class VisualElementModel
33    {
34
35        /// <summary>
36        /// I will be deleted
37        /// </summary
38        public event EventHandler<EventArgs> Delete;
39
40        public Point Position { get; set; }
41
42        /// <summary>
43        /// Minimum Width of this VisualElementModel
44        /// </summary>
45        public double MinWidth { get; set; }
46
47        /// <summary>
48        /// Minimum Height of this VisualElementModel
49        /// </summary>
50        public double MinHeight { get; set; }
51
52        /// <summary>
53        /// Width of this VisualElementModel
54        /// </summary>
55        public double Width { get; set; }
56
57        /// <summary>
58        /// Height of this VisualElementModel
59        /// </summary>
60        public double Height { get; set; }
61
62        /// <summary>
63        /// Name of this VisualElementModel
64        /// </summary>
65        public string Name { get; set; }
66    }
67
68}
Note: See TracBrowser for help on using the repository browser.