+
+ void OnUnloadGraphics()
+ {
+ iconBag.Unload();
+ }
+
+ Stacker panels
+ {
+ stack, this;
+ gap = 0;
+ direction = horizontal;
+ background = yellow;//activeBorder;
+ //opacity = 1.0f;
+
+ anchor.left = 0;
+ anchor.bottom = 0;
+ anchor.right = 0;
+ };
+
+ //FlipStacker flipStack { stack, spring = previous };
+
+ /*SearchPanel searchPanel
+ {
+ panels, this;
+ };*/
+
+ /*Tree*/FileSystemBox tree;
+ /*{
+ panels, this;
+ size = { w = 240 };
+ anchor.top = 0;
+ anchor.bottom = 0;
+ navigateFolders = true;
+ treeBranches = true;
+ foldersOnly = true;
+ borderStyle = none;
+ visible = false;
+ };*/
+
+ FileSystemBox view
+ {
+ panels, this;
+ anchor.top = 0;
+ anchor.bottom = 0;
+ anchor.right = 0;
+ 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
+ {
+ deep, this;
+ visible = false;
+ tabCycle = true;
+ size = Size { 624, 268 };
+ anchor = Anchor { left = 0, top = 0, bottom = 0 };
+ };
+
+ ExplorerViewSearch results;*/
+
+ /*Window viewHolder
+ {
+ parent = deep, master = this;
+ tabCycle = true;
+ anchor = Anchor { top = 0, bottom = 0, right = 0 };
+ };
+
+ SplitWindow split
+ {
+ deep, this;
+ leftPane = tree, rightPane = viewHolder;
+ split = 300;
+ };*/
+
+ // Preview / Showcase
+ /*PreviewArea previewArea
+ {
+ panels, this;
+ };*/
+
+ //FlipStacker flipPanels { panels, spring = previous };
+
+ /*bool TreeNotifyBranchSelect(ExplorerTree tree, ExplorerFileBranch branch)
+ {
+ if(branch)
+ {
+ char path[MAX_LOCATION];
+ branch.GetPath(path);
+ toolBar.addressBar.contents = path;
+ view.Load(branch);
+ }
+ return true;
+ }*/
+
+ /*bool ViewNotifyItemOpen(ExplorerView view, ExplorerFileItem item)
+ {
+ ExplorerFileBranch branch = tree.branch;
+ if(item && branch)
+ {
+ if(item.type.isFolderType)
+ {
+ ExplorerFileBranch child;
+
+ if(!branch.loaded || !branch.childrenLoaded)
+ BranchLoad(branch, tree.tree);
+
+ for(child = branch.children.first; child; child = child.next)
+ if(!strcmp(child.name, item.name))
+ break;
+
+ if(child)
+ {
+ if(branch.row.collapsed)
+ child.row.collapsed = true;
+ child.EnsureVisible(false);
+ tree.Select(child);
+ }
+ }
+ else
+ {
+ char path[MAX_LOCATION];
+ branch.GetPath(path);
+ PathCat(path, item.name);
+ ShellOpen(path);
+ }
+ }
+ }*/
+
+ /*void SwitchViews(ExplorerToolId viewId)
+ {
+ ExplorerFileBranch branch = tree.branch;
+ view.Destroy(0);
+ switch(viewId)
+ {
+ case viewList: view = ExplorerViewList { parent = viewHolder, master = this }; break;
+ case viewDetails: view = ExplorerViewDetails { parent = viewHolder, master = this }; break;
+ case viewIcons: view = ExplorerViewIcons { parent = viewHolder, master = this }; break;
+ case viewCards: view = ExplorerViewCards { parent = viewHolder, master = this }; break;
+ case viewShowcase: view = ExplorerViewShowcase { parent = viewHolder, master = this }; break;
+ }
+ view.tabCycle = true;
+ view.previewPictures = toolBar.previewPictures.checked;
+ view.anchor = Anchor { left = 0, top = 0, bottom = 0, right = 0 };
+ view.NotifyItemOpen = ViewNotifyItemOpen;
+ view.Create();
+ view.Load(branch);
+ lastViewId = viewId;
+ }*/
+
+ /*void GoToLocation(char * location)
+ {
+ int c;
+ char * temp;
+ char step[MAX_LOCATION];
+
+ StringArray steps { growingFactor = 4 };
+ ExplorerFileBranch last = null;
+
+ temp = CopyString(location);
+ while(strlen(temp))
+ {
+ GetLastDirectory(temp, step);
+ StripLastDirectory(temp, temp);
+ steps.Add(CopyString(step));
+ }
+
+ for(c = steps._count - 1; c >= 0; c--)
+ {
+ last = tree.Find(steps._[c], last);
+ if(!last)
+ break;
+ tree.Select(last);
+ }
+
+ delete temp;
+ delete steps;
+ }*/
+
+ /*void SearchLocation(char * location)
+ {
+ GoToLocation(location);
+ search.location.editBox.contents = location;
+ }*/
+
+ bool OnPostCreate()
+ {
+ //userMode = true;
+ addressBar.path = view.path;
+ return true;
+ }
+
+ /*ExplorerWindow()
+ {
+ userMode = false;
+
+ treeSplit = 300;
+ searchSplit = 200;
+
+ view = ExplorerViewList
+ {
+ parent = viewHolder, master = this;
+ tabCycle = true;
+ previewPictures = toolBar.previewPictures.checked;
+ anchor = Anchor { left = 0, top = 0, bottom = 0, right = 0 };
+ NotifyItemOpen = ViewNotifyItemOpen;
+ };
+ lastViewId = viewList;
+
+ tree.Load();
+ view.Load(tree.root);
+ }*/
+
+ /*void InitTree()
+ {
+ }*/
+
+ /*void InitSearch()
+ {
+ }*/