libede: renamed ExplorerFileType to _FileType. (ecere's FileType is the reason for...
[ede] / libede / src / FileSystemBox.ec
index 741fa74..4f5d76d 100644 (file)
@@ -50,7 +50,7 @@ static char * fileIconNames[] =
    ""
 };
 
-public enum ExplorerFileType
+public enum _FileType
 {
    none,
    
@@ -84,7 +84,7 @@ public enum ExplorerFileType
       get { return this >= normalFile && this <= opticalMediaImageFile; }
    }
 
-   ExplorerFileType ::SelectByExtension(char * extension)
+   _FileType ::SelectByExtension(char * extension)
    {
       if(!strcmpi(extension, "ews"))
          return ewsFile;
@@ -142,12 +142,12 @@ class ExplorerControl : Window
 {
    bool previewPictures;
 
-   BitmapResource fileIcons[ExplorerFileType];
+   BitmapResource fileIcons[_FileType];
 
    ExplorerControl()
    {
-      ExplorerFileType c;
-      for(c = 0; c < ExplorerFileType::enumSize; c++)
+      _FileType c;
+      for(c = 0; c < _FileType::enumSize; c++)
       {
          fileIcons[c] = BitmapResource { fileIconNames[c], alphaBlend = true };
          AddResource(fileIcons[c]);
@@ -1010,7 +1010,7 @@ public class ExplorerFileItem : struct
    char * name;
    char * info;
    char * extension;
-   ExplorerFileType type;
+   _FileType type;
    int indent;
 
    Bitmap bitmap;
@@ -1180,7 +1180,7 @@ ExplorerFileItem MakeFileItem(const FileAttribs attribs, const char * fileName,
       //strupr(extension);
       strlwr(extension);
       
-      item.type = ExplorerFileType::SelectByExtension(extension);
+      item.type = _FileType::SelectByExtension(extension);
    }
 
    if(attribs.isDrive && 
@@ -1223,7 +1223,7 @@ public class FileSystemNode : struct
    char * info;
    DataRow row;
    OldList children;
-   ExplorerFileType type;
+   _FileType type;
    FileSystemNode parent;
 
    FileStats stats;
@@ -1439,7 +1439,7 @@ FileSystemNode MakeFileNode(const FileStats stats, const char * name)
    {
       char extension[MAX_EXTENSION];
       GetExtension(fileTreeNode.name, extension);
-      fileTreeNode.type = ExplorerFileType::SelectByExtension(extension);
+      fileTreeNode.type = _FileType::SelectByExtension(extension);
    }
    return fileTreeNode;
 }