Пример #1
0
FXString ProjectBrowser::getActiveProject()
{
	FXTreeItem* current = projectTree->getCurrentItem();
	while (true)
	{
		FXTreeItem* parent = current->getParent();
		if (parent == NULL)
			break;
		current = parent;
	}
	return current->getText();
}
Пример #2
0
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;
}