~bas-dotbas/do/win32-next

« back to all changes in this revision

Viewing changes to Do.Addins/src/Do.Universe/ImageFileItem.cs

  • Committer: djsiegel at gmail
  • Date: 2007-10-13 21:55:22 UTC
  • Revision ID: djsiegel@gmail.com-20071013215522-n0vjgog0tyjfnpno
Restructured plugins library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ImageFileItem.cs created with MonoDevelop
 
2
// User: dave at 8:27 PM 9/23/2007
 
3
//
 
4
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
 
5
//
 
6
 
 
7
using System;
 
8
 
 
9
namespace Do.Universe
 
10
{
 
11
        
 
12
        public class ImageFileItem : FileItem
 
13
        {
 
14
                /*
 
15
                 * This was not being called because no other class references this
 
16
                 * class. I am guessing this will be called when FileItem subclasses
 
17
                 * are loaded from plugins. For now this code is moved to FileItem.cs
 
18
                 * 
 
19
                 * TODO: fix this.
 
20
                
 
21
                static string[] imageExtentions = { "jpg", "jpeg", "png", "gif" };
 
22
                
 
23
                static ImageFileItem ()
 
24
                {
 
25
                        foreach (string ext in imageExtentions) {
 
26
                                FileItem.RegisterExtensionForFileItemType (ext, typeof (ImageFileItem));
 
27
                        }
 
28
                }
 
29
                */
 
30
                
 
31
                public ImageFileItem (string uri)
 
32
                        : base (uri)
 
33
                {       
 
34
                }
 
35
                
 
36
                // ImageFileItems use themselves as their icons!
 
37
                public override string Icon {
 
38
                        get { return URI; }
 
39
                }
 
40
        }
 
41
}