ChangeLog: Updated ChangeLog
[mono.git] / mcs / class / System.Drawing / System.Drawing / ToolboxBitmapAttribute.cs
1 //
2 // System.Drawing.ToolboxBitmapAttribute.cs
3 //
4 // Authors:
5 //   Dennis Hayes (dennish@Raytek.com)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) 2002 Ximian, Inc
9 //
10
11 using System;
12
13 namespace System.Drawing
14 {
15         [AttributeUsage (AttributeTargets.Class)]
16         public class ToolboxBitmapAttribute : Attribute
17         {
18                 private Image smallImage;
19                 private Image bigImage;
20                 public static readonly ToolboxBitmapAttribute Default = new ToolboxBitmapAttribute();
21
22                 private ToolboxBitmapAttribute ()
23                 {
24                 }
25
26                 [MonoTODO ("implement")]
27                 public ToolboxBitmapAttribute (string imageFile)
28                 {
29                         //
30                         // TODO: Add constructor logic here
31                         //
32                 }
33                 
34                 [MonoTODO ("implement")]
35                 public ToolboxBitmapAttribute (Type t)
36                 {
37                         //
38                         // TODO: Add constructor logic here
39                         //
40                 }
41                 
42                 [MonoTODO ("implement")]
43                 public ToolboxBitmapAttribute (Type t, string name)
44                 {
45                         //
46                         // TODO: Add constructor logic here
47                         //
48                 }
49
50                 public override bool Equals (object value)
51                 {
52                         if (!(value is ToolboxBitmapAttribute))
53                                 return false;
54                         if (value == this)
55                                 return true;
56                         return ((ToolboxBitmapAttribute) value).smallImage == this.smallImage;
57                 }
58
59                 public override int GetHashCode ()
60                 {
61                         return (smallImage.GetHashCode () ^ bigImage.GetHashCode ());
62                 }
63
64                 public Image GetImage (object component)
65                 {
66                         return GetImage (component.GetType(), null, false);
67                 }
68
69                 public Image GetImage (object component, bool large)
70                 {
71                         return GetImage (component.GetType(), null, large);
72                 }
73
74                 public Image GetImage (Type type)
75                 {
76                         return GetImage (type, null, false);
77                 }
78
79                 public Image GetImage (Type type, bool large)
80                 {
81                         return GetImage (type, null, large);
82                 }
83
84                 [MonoTODO ("implement")]
85                 public Image GetImage (Type type, string imgName, bool large)
86                 {
87                         return null;
88                 }
89
90                 [MonoTODO ("implement")]
91                 public static Image GetImageFromResource (Type t, string imageName, bool large)
92                 {
93                         return null;
94                 }
95         }
96 }