FXString ProjectBrowser::getActiveProject() { FXTreeItem* current = projectTree->getCurrentItem(); while (true) { FXTreeItem* parent = current->getParent(); if (parent == NULL) break; current = parent; } return current->getText(); }
FXString ProjectBrowser::getPathname(FXTreeItem* item) { FXString path; FXTreeItem* current = item; while (true) { path.prepend(current->getText()); path.prepend(FS::dirSeparator()); FXTreeItem* parent = current->getParent(); if (parent == NULL) break; current = parent; } path.prepend(mainWin->settings->getStringValue("baseDir")); return path; }