3 import "ExplorerWindow"
5 class Explorer : GuiApplication
9 QuickPathTool goPath { };
10 QuickPathTool searchPath { };
11 char * findWhat = null;
12 SetLoggingMode(debug, null);
15 if(!strcmpi(argv[1], "go") && argc > 2)
17 else if(!strcmpi(argv[1], "find") && argc > 2)
20 if(argv[2][0] == '\"')
21 StripQuotes(argv[2], unquoted);
24 findWhat = CopyString(unquoted);
27 if(!strcmpi(argv[3], "in") && argc > 4)
30 searchPath = ""; // this should make it current dir
33 searchPath = ""; // same
35 else if(!strcmpi(argv[1], "search") && argc > 2)
37 else if(!strcmpi(argv[1], "image") && argc > 2)
39 else if(!strcmpi(argv[1], "slides") && argc > 2)
48 ExplorerWindow explorerWnd { };
50 //explorerWnd.GoToLocation(goPath);
54 ExplorerWindow explorerWnd { };
56 //explorerWnd.SearchLocation(searchPath);
64 char path[MAX_LOCATION];
71 GetWorkingDir(path, MAX_LOCATION);
73 StripQuotes(value, unquoted);
76 PathCat(path, unquoted);
79 // this incomplete functionality is not quite at it's place in this class
81 char * original = CopyString(path);
82 while((len = strlen(path)))
84 StripLastDirectory(path, path);
87 // TODO: message location does not exist,
88 // this higher location exists though
95 // TODO: message location does not exist,
96 // unable to select alternate location
102 get { return path[0] ? path : null; }
104 property bool { get { return (bool)path[0]; } }
107 define app = ((Explorer)__thisModule);