Closes #1909
This commit is contained in:
@@ -241,6 +241,7 @@ void SplitContainer::setSelected(Split *split)
|
|||||||
|
|
||||||
if (Node *node = this->baseNode_.findNodeContainingSplit(split))
|
if (Node *node = this->baseNode_.findNodeContainingSplit(split))
|
||||||
{
|
{
|
||||||
|
this->focusSplitRecursive(node);
|
||||||
this->setPreferedTargetRecursive(node);
|
this->setPreferedTargetRecursive(node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -331,7 +332,7 @@ void SplitContainer::selectSplitRecursive(Node *node, Direction direction)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->focusSplitRecursive(
|
this->focusSplitRecursive(
|
||||||
siblings[it - siblings.begin() - 1].get(), direction);
|
siblings[it - siblings.begin() - 1].get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -343,7 +344,7 @@ void SplitContainer::selectSplitRecursive(Node *node, Direction direction)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->focusSplitRecursive(
|
this->focusSplitRecursive(
|
||||||
siblings[it - siblings.begin() + 1].get(), direction);
|
siblings[it - siblings.begin() + 1].get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -354,7 +355,7 @@ void SplitContainer::selectSplitRecursive(Node *node, Direction direction)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SplitContainer::focusSplitRecursive(Node *node, Direction direction)
|
void SplitContainer::focusSplitRecursive(Node *node)
|
||||||
{
|
{
|
||||||
switch (node->type_)
|
switch (node->type_)
|
||||||
{
|
{
|
||||||
@@ -374,12 +375,11 @@ void SplitContainer::focusSplitRecursive(Node *node, Direction direction)
|
|||||||
|
|
||||||
if (it != children.end())
|
if (it != children.end())
|
||||||
{
|
{
|
||||||
this->focusSplitRecursive(it->get(), direction);
|
this->focusSplitRecursive(it->get());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->focusSplitRecursive(node->children_.front().get(),
|
this->focusSplitRecursive(node->children_.front().get());
|
||||||
direction);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
void layout();
|
void layout();
|
||||||
void selectSplitRecursive(Node *node, Direction direction);
|
void selectSplitRecursive(Node *node, Direction direction);
|
||||||
void focusSplitRecursive(Node *node, Direction direction);
|
void focusSplitRecursive(Node *node);
|
||||||
void setPreferedTargetRecursive(Node *node);
|
void setPreferedTargetRecursive(Node *node);
|
||||||
|
|
||||||
void addSplit(Split *split);
|
void addSplit(Split *split);
|
||||||
|
|||||||
Reference in New Issue
Block a user