converted to unix newlines and rolled copyright to 2002/3
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / ImageList.cs
1 //
2 // System.Windows.Forms.ImageList.cs
3 //
4 // Author:
5 //   stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 //      Dennis Hayes (dennish@raytek.com)
7 //
8 // (C) 2002/3 Ximian, Inc
9 //
10 using System.ComponentModel;
11 using System.Drawing;
12 using System.Collections;
13 namespace System.Windows.Forms {
14
15         // <summary>
16         //
17         // </summary>
18     public sealed class ImageList : Component {
19                 internal ColorDepth colorDepth;
20         ImageListStreamer ImageListStreamer_;
21                 //
22                 //  --- Constructor
23                 //
24
25                 [MonoTODO]
26                 public ImageList()
27                 {
28                         colorDepth = ColorDepth.Depth8Bit;
29                 }
30
31                 [MonoTODO]
32                 public ImageList(IContainer cont) : this()
33                 {
34                         ImageListStreamer_ = new ImageListStreamer();           
35                 }
36
37                 //
38                 //  --- Public Properties
39                 //
40
41                 [MonoTODO]
42                 public ColorDepth ColorDepth {
43                         get {
44                                 return colorDepth;
45                         }
46                         set {
47                                 colorDepth = value;
48                         }
49                 }
50
51                 [MonoTODO]
52                 public IntPtr Handle {
53                         get {
54                                 throw new NotImplementedException ();
55                         }
56                 }
57
58                 [MonoTODO]
59                 public bool HandleCreated {
60                         get {
61                                 throw new NotImplementedException ();
62                         }
63                 }
64
65                 [MonoTODO]
66                 public ImageList.ImageCollection Images {
67                         get {
68                                 throw new NotImplementedException ();
69                         }
70                 }
71
72                 internal Size imageSize; //FIXME: just to get it to run
73                 [MonoTODO]
74                 public Size ImageSize {
75                         get {
76                                 return imageSize;
77                         }
78                         set {
79                                 imageSize = value;
80                         }
81                 }
82
83                 [MonoTODO]
84                 public ImageListStreamer ImageStream {
85                         get {
86                                 //FIXME:
87                                 return ImageListStreamer_;
88                         }
89                         set {
90                                 //FIXME:
91                         }
92                 }
93
94                 internal Color transparentColor; //FIXME: just to get it to run
95                 [MonoTODO]
96                 public Color TransparentColor {
97                         get {
98                                 return transparentColor;
99                         }
100                         set {
101                                 transparentColor = value;
102                         }
103                 }
104
105                 //
106                 //  --- Public Methods
107                 //
108
109                 [MonoTODO]
110                 public void Draw(Graphics g, Point pt, int n)
111                 {
112                         //FIXME:
113                 }
114
115                 [MonoTODO]
116                 public void Draw(Graphics g, int n1, int n2, int n3)
117                 {
118                         //FIXME:
119                 }
120
121                 [MonoTODO]
122                 public override string ToString()
123                 {
124                         //FIXME:
125                         return base.ToString();
126                 }
127
128                 //
129                 //  --- Public Events
130                 //
131                 public event EventHandler RecreateHandle;
132
133                 //
134                 // System.Windows.Forms.ImageList.ImageCollection.cs
135                 //
136                 // Author:
137                 //   stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
138                 //
139                 //// (C) 2002 Ximian, Inc
140                 ////
141                 // <summary>
142                 //
143                 // </summary>
144
145                 public sealed class ImageCollection : IList, ICollection, IEnumerable {
146
147
148                 //
149                 //  --- Public Properties
150                 //
151
152                 [MonoTODO]
153                 public int Count {
154                         get {
155                                 throw new NotImplementedException ();
156                         }
157                 }
158
159                 [MonoTODO]
160                 public bool Empty {
161                         get {
162                                 throw new NotImplementedException ();
163                         }
164                 }
165
166                 [MonoTODO]
167                 public bool IsReadOnly {
168                         get {
169                                 throw new NotImplementedException ();
170                         }
171                 }
172
173                 [MonoTODO]
174                 public Image this[int index] {
175                         get {
176                                 throw new NotImplementedException ();
177                         }
178                         set {
179                                 throw new NotImplementedException ();
180                         }
181                 }
182
183                 //
184                 //  --- Public Methods
185                 //
186
187                 [MonoTODO]
188                 public void Add(Icon icon)
189                 {
190                         //FIXME:
191                 }
192
193                 [MonoTODO]
194                 public void Add(Image img)
195                 {
196                         //FIXME:
197                 }
198
199                 [MonoTODO]
200                 public int Add(Image img, Color col)
201                 {
202                         throw new NotImplementedException ();                   
203                 }
204
205                 [MonoTODO]
206                 public int AddStrip(Image value)
207                 {
208                         throw new NotImplementedException ();
209                 }
210
211                 [MonoTODO]
212                 public void Clear()
213                 {
214                         //FIXME:
215                 }
216
217                 [MonoTODO]
218                 public bool Contains(Image image)
219                 {
220                         throw new NotImplementedException ();
221                 }
222
223                 [MonoTODO]
224                 public IEnumerator GetEnumerator()
225                 {
226                         throw new NotImplementedException ();
227                 }
228
229                 [MonoTODO]
230                 public int IndexOf(Image image)
231                 {
232                         throw new NotImplementedException ();
233                 }
234
235                 [MonoTODO]
236                 public void Remove(Image image)
237                 {
238                         //FIXME:
239                 }
240
241                 [MonoTODO]
242                 public void RemoveAt(int index)
243                 {
244                         //FIXME:
245                 }
246
247                 [MonoTODO]
248                 public override string ToString()
249                 {
250                         //FIXME:
251                         return base.ToString();
252                 }
253                         /// <summary>
254                         /// IList Interface implmentation.
255                         /// </summary>
256                         bool IList.IsReadOnly{
257                                 get{
258                                         // We allow addition, removeal, and editing of items after creation of the list.
259                                         return false;
260                                 }
261                         }
262                         bool IList.IsFixedSize{
263                                 get{
264                                         // We allow addition and removeal of items after creation of the list.
265                                         return false;
266                                 }
267                         }
268
269                         //[MonoTODO]
270                         object IList.this[int index]{
271                                 get{
272                                         throw new NotImplementedException ();
273                                 }
274                                 set{
275                                         //FIXME:
276                                 }
277                         }
278                 
279                         [MonoTODO]
280                         void IList.Clear(){
281                                 //FIXME:
282                         }
283                 
284                         [MonoTODO]
285                         int IList.Add( object value){
286                                 throw new NotImplementedException ();
287                         }
288
289                         [MonoTODO]
290                         bool IList.Contains( object value){
291                                 throw new NotImplementedException ();
292                         }
293
294                         [MonoTODO]
295                         int IList.IndexOf( object value){
296                                 throw new NotImplementedException ();
297                         }
298
299                         [MonoTODO]
300                         void IList.Insert(int index, object value){
301                                 //FIXME:
302                         }
303
304                         [MonoTODO]
305                         void IList.Remove( object value){
306                                 //FIXME:
307                         }
308
309                         [MonoTODO]
310                         void IList.RemoveAt( int index){
311                                 //FIXME:
312                         }
313                         // End of IList interface
314                         /// <summary>
315                         /// ICollection Interface implmentation.
316                         /// </summary>
317                         int ICollection.Count{
318                                 get{
319                                         throw new NotImplementedException ();
320                                 }
321                         }
322                         bool ICollection.IsSynchronized{
323                                 get{
324                                         throw new NotImplementedException ();
325                                 }
326                         }
327                         object ICollection.SyncRoot{
328                                 get{
329                                         throw new NotImplementedException ();
330                                 }
331                         }
332                         void ICollection.CopyTo(Array array, int index){
333                                 throw new NotImplementedException ();
334                         }
335                         // End Of ICollection
336
337                 }// End of Subclass
338
339          }//End of class
340 }