X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=ede;a=blobdiff_plain;f=explorer%2Fsrc%2FExplorerWindow.ec;h=13406f12607486aab13265fdb439ff50414fa056;hp=6d6ee59fd4e4c348c2dce90670400c7a1d746268;hb=d08903b5256a932439c7d23e0f51e5b357539d70;hpb=5b04f13e5356bc8f52a8b5bccdd6fc3c097ff76a;ds=sidebyside diff --git a/explorer/src/ExplorerWindow.ec b/explorer/src/ExplorerWindow.ec index 6d6ee59..13406f1 100644 --- a/explorer/src/ExplorerWindow.ec +++ b/explorer/src/ExplorerWindow.ec @@ -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; @@ -121,11 +125,23 @@ class ExplorerWindow : Window case goBack: case goForward: break; + case goHome: + { + char * home = getenv("HOME"); + if(home && home[0] && FileExists(home).isDirectory) + view.path = home; + break; + } case goUp: { 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 +298,27 @@ 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]; + /*_FileType t = node.type; + if(t == ewsFile || t == epjFile || + t == ecFile || t == ehFile || + t == cppFile || t == hppFile || + t == cFile || t == hFile || + t == textFile || t == webFile)*/ + sprintf(command, "ide %s", node.path); + /*else + sprintf(command, "%s", node.path);*/ + ShellOpen(command); + } + return true; + } }; /*ExplorerSearch search