# HG changeset patch # User insilmaril # Date 1143117534 0 # Node ID d3080e02b13a47f4ae0660c0cd3161f23747051c # Parent 174dd40bf06ac8cd606757ab2aa352eef7b9cd59 Version 1.7.12 diff -r 174dd40bf06a -r d3080e02b13a branchobj.cpp --- a/branchobj.cpp Wed Mar 15 15:54:32 2006 +0000 +++ b/branchobj.cpp Thu Mar 23 12:38:54 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 "<