explorer:ExplorerWindow: nice 'Ecere Explorer (Debug)' title when in debug mode
[ede] / explorer / src / ExplorerWindow.ec
index 6d6ee59..2a61c01 100644 (file)
@@ -16,7 +16,11 @@ enum ExplorerToolId
 
 class ExplorerWindow : Window
 {
+#ifdef _DEBUG
+   text = "Ecere Explorer (Debug)";
+#else
    text = "Ecere Explorer";
+#endif
    background = activeBorder;
    borderStyle = sizable;
    hasMaximize = true;
@@ -126,6 +130,11 @@ class ExplorerWindow : Window
                char * path = view.path;
                char * newPath = new char[strlen(path)];
                StripLastDirectory(path, newPath);
+               if(!newPath[0])
+               {
+                  newPath[0] = '/';
+                  newPath[1] = 0;
+               }
                view.path = newPath;
                delete newPath;
                break;
@@ -282,6 +291,20 @@ class ExplorerWindow : Window
       locationBox = addressBar;
       navigateFolders = true;
       borderStyle = none;
+
+      multiSelect = true;
+
+      bool NotifyNodeOpen(FileSystemBox box, FileSystemNode node)
+      {
+         if(node.type.isFile)
+         {
+            char command[MAX_LOCATION];
+            char * t = node.path;
+            sprintf(command, "ide %s", node.path);
+            ShellOpen(command);
+         }
+         return true;
+      }
    };
 
    /*ExplorerSearch search