diff -r bdeb503d2b7f -r 4ee885c3b72c branchobj.cpp --- a/branchobj.cpp Tue Mar 14 14:27:04 2006 +0000 +++ b/branchobj.cpp Mon Mar 27 20:21:58 2006 +0000 @@ -359,6 +359,7 @@ standardFlags->setVisibility(v); LinkableMapObj::setVisibility (v); + // Only change childs, if I am not scrolled if (!scrolled && (depth < toDepth)) { // Now go recursivly through all childs @@ -696,8 +697,41 @@ requestReposition(); } +void BranchObj::setHideTmp (HideTmpMode mode) +{ + if (mode==HideExport && hasHiddenExportParent(this)) + { + setVisibility (false); + hidden=true; + }else + { + setVisibility (true); + hidden=false; + } + + BranchObj *bo; + for (bo=branch.first(); bo; bo=branch.next() ) + bo->setHideTmp (mode); +} + +bool BranchObj::hasHiddenExportParent(BranchObj *start) +{ + // Calls parents recursivly to + // find out, if we are temp. hidden + + if (hideExport) return true; + + BranchObj* bo=(BranchObj*)(parObj); + if (bo) + return bo->hasHiddenExportParent(start); + else + return false; +} + QString BranchObj::saveToDir (const QString &tmpdir,const QString &prefix, const QPoint& offset) { + if (hidden) return ""; + QString s,a; QString scrolledAttr; if (scrolled) @@ -1163,9 +1197,10 @@ cout << "BO::alignRelTo "<