Line |
Branch |
Exec |
Source |
1 |
|
|
// Copyright (c) 2017, Joseph Mirabel |
2 |
|
|
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr) |
3 |
|
|
// |
4 |
|
|
|
5 |
|
|
#include <hppwidgetsplugin/joint-action.hh> |
6 |
|
|
#include <hppwidgetsplugin/jointtreewidget.hh> |
7 |
|
|
|
8 |
|
|
namespace hpp { |
9 |
|
|
namespace gui { |
10 |
|
✗ |
void JointAction::trigger() { |
11 |
|
✗ |
if (jointName_.empty()) { |
12 |
|
✗ |
if (tree_ != NULL) emit triggered(tree_->selectedJoint()); |
13 |
|
|
} else |
14 |
|
✗ |
emit triggered(jointName_); |
15 |
|
|
} |
16 |
|
|
} // namespace gui |
17 |
|
|
} // namespace hpp |
18 |
|
|
|