void ProjectBrowser::renameDir(FXString project, FXString olddirname, FXString newdirname)
{
	FXTreeItem* root = projectTree->findItem(project);
	if (!root) return;
	FXTreeItem* sub = projectTree->findItem(olddirname, root);
	if (!sub) return;
	sub->setText(newdirname);
}
void ProjectBrowser::renameFile	(FXString project, FXString name, FXString newname, FXString dir)
{
	FXTreeItem* root = projectTree->findItem(project);
	if (!root) return;
	FXTreeItem* sub = projectTree->findItem(dir, root);
	if (!sub) return;
	FXTreeItem* file = projectTree->findItem(name, sub);
	if (!file) return;
	file->setText(newname);
}
Beispiel #3
0
void GMSourceView::updateSource(GMSource * src){
  FXTreeItem * item = sourcelist->getFirstItem();
  while(item) {
    if (item->getData()==src) {
      item->setText(tr(src->getName().text()));
      break;
      }
    item=item->getBelow();
    }
  resort();
  }