3 import "ExplorerWindow"
5 class Explorer : GuiApplication
9 QuickPathTool goPath { };
10 QuickPathTool searchPath { };
11 char * findWhat = null;
13 SetLoggingMode(debug, null);
17 if(!strcmpi(argv[1], "go") && argc > 2)
19 else if(!strcmpi(argv[1], "find") && argc > 2)
22 if(argv[2][0] == '\"')
23 StripQuotes(argv[2], unquoted);
26 findWhat = CopyString(unquoted);
29 if(!strcmpi(argv[3], "in") && argc > 4)
32 searchPath = ""; // this should make it current dir
35 searchPath = ""; // same
37 else if(!strcmpi(argv[1], "search") && argc > 2)
39 else if(!strcmpi(argv[1], "image") && argc > 2)
41 else if(!strcmpi(argv[1], "slides") && argc > 2)
50 ExplorerWindow explorerWnd { };
52 //explorerWnd.GoToLocation(goPath);
56 ExplorerWindow explorerWnd { };
58 //explorerWnd.SearchLocation(searchPath);
66 char path[MAX_LOCATION];
73 GetWorkingDir(path, MAX_LOCATION);
75 StripQuotes(value, unquoted);
78 PathCat(path, unquoted);
81 // this incomplete functionality is not quite at it's place in this class
83 char * original = CopyString(path);
84 while((len = strlen(path)))
86 StripLastDirectory(path, path);
89 // TODO: message location does not exist,
90 // this higher location exists though
97 // TODO: message location does not exist,
98 // unable to select alternate location
104 get { return path[0] ? path : null; }
106 property bool { get { return (bool)path[0]; } }
109 define app = ((Explorer)__thisModule);