3 import "ExplorerWindow"
17 class Explorer : GuiApplication
23 QuickPathTool goPath { };
24 QuickPathTool searchPath { };
25 char * findWhat = null;
27 SetLoggingMode(debug, null);
31 if(!strcmpi(argv[1], "go") && argc > 2)
33 else if(!strcmpi(argv[1], "find") && argc > 2)
36 if(argv[2][0] == '\"')
37 StripQuotes(argv[2], unquoted);
40 findWhat = CopyString(unquoted);
43 if(!strcmpi(argv[3], "in") && argc > 4)
46 searchPath = ""; // this should make it current dir
49 searchPath = ""; // same
51 else if(!strcmpi(argv[1], "search") && argc > 2)
53 else if(!strcmpi(argv[1], "image") && argc > 2)
55 else if(!strcmpi(argv[1], "slides") && argc > 2)
64 ExplorerWindow explorerWnd { };
66 explorerWnd.view.path = goPath;
70 ExplorerWindow explorerWnd { };
72 //explorerWnd.SearchLocation(searchPath);
80 char path[MAX_LOCATION];
87 GetWorkingDir(path, MAX_LOCATION);
89 StripQuotes(value, unquoted);
92 PathCat(path, unquoted);
95 // this incomplete functionality is not quite at it's place in this class
97 char * original = CopyString(path);
98 while((len = strlen(path)))
100 StripLastDirectory(path, path);
103 // TODO: message location does not exist,
104 // this higher location exists though
111 // TODO: message location does not exist,
112 // unable to select alternate location
118 get { return path[0] ? path : null; }
120 property bool { get { return path[0] != '\0'; } }
123 define app = ((Explorer)__thisModule);