hpp-gui  4.11.0
Graphical interface for HPP
linkwidget.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Authors: Joseph Mirabel and Heidy Dallard
4 //
5 
6 #ifndef HPP_GUI_LINKWIDGET_HH
7 #define LINKWIDGET_HH
8 
9 #include <QWidget>
10 
11 #include <hpp/corbaserver/manipulation/client.hh>
12 
14 
15 class QListWidget;
16 
17 namespace Ui {
18 class LinkWidget;
19 }
20 
21 namespace hpp {
22  namespace gui {
23  using hpp::corbaserver::manipulation::Rules;
24  using hpp::corbaserver::manipulation::Rules_var;
25 
26  class LinkWidget : public QWidget
27  {
28  Q_OBJECT
29 
30  public:
31  explicit LinkWidget(QListWidget* grippersList, QListWidget* handlesList,
32  QWidget *parent = 0);
33  ~LinkWidget();
34 
35  Rules_var getRules();
36 
37  public slots:
38  void gripperChanged(const QItemSelection& selected, const QItemSelection& deselected);
39  void handleChanged(const QItemSelection& selected, const QItemSelection& deselected);
40 
41  private slots:
42  void createRule();
43  void deleteSelectedRules();
44 
45  private:
46  struct RuleProxy {
47  QVector<QString> grippers, handles;
48  bool link;
49  };
50  typedef QVector<RuleProxy> RuleProxies;
51  Ui::LinkWidget *ui_;
52  RuleProxies rules_;
53  QListWidget* grippers_;
54  QListWidget* handles_;
55  };
56  }
57 }
58 
59 #endif // LINKWIDGET_HH
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: configurationlistwidget.hh:20
Definition: linkwidget.hh:26