3 import "ExplorerWindow"
17 class Explorer : GuiApplication
23 QuickPathTool goPath { };
24 QuickPathTool searchPath { };
25 char * findWhat = null;
26 SetLoggingMode(debug, null);
29 if(!strcmpi(argv[1], "go") && argc > 2)
31 else if(!strcmpi(argv[1], "find") && argc > 2)
34 if(argv[2][0] == '\"')
35 StripQuotes(argv[2], unquoted);
38 findWhat = CopyString(unquoted);
41 if(!strcmpi(argv[3], "in") && argc > 4)
44 searchPath = ""; // this should make it current dir
47 searchPath = ""; // same
49 else if(!strcmpi(argv[1], "search") && argc > 2)
51 else if(!strcmpi(argv[1], "image") && argc > 2)
53 else if(!strcmpi(argv[1], "slides") && argc > 2)
62 ExplorerWindow explorerWnd { };
64 //explorerWnd.GoToLocation(goPath);
68 ExplorerWindow explorerWnd { };
70 //explorerWnd.SearchLocation(searchPath);
78 char path[MAX_LOCATION];
85 GetWorkingDir(path, MAX_LOCATION);
87 StripQuotes(value, unquoted);
90 PathCat(path, unquoted);
93 // this incomplete functionality is not quite at it's place in this class
95 char * original = CopyString(path);
96 while((len = strlen(path)))
98 StripLastDirectory(path, path);
101 // TODO: message location does not exist,
102 // this higher location exists though
109 // TODO: message location does not exist,
110 // unable to select alternate location
116 get { return path[0] ? path : null; }
118 property bool { get { return (bool)path[0]; } }
121 define app = ((Explorer)__thisModule);