hpp-gui  4.13.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 #include <hpp/corbaserver/manipulation/client.hh>
11 
13 
14 class QListWidget;
15 
16 namespace Ui {
17 class LinkWidget;
18 }
19 
20 namespace hpp {
21 namespace gui {
22 using hpp::corbaserver::manipulation::Rules;
23 using hpp::corbaserver::manipulation::Rules_var;
24 
25 class LinkWidget : public QWidget {
26  Q_OBJECT
27 
28  public:
29  explicit LinkWidget(QListWidget* grippersList, QListWidget* handlesList,
30  QWidget* parent = 0);
31  ~LinkWidget();
32 
33  Rules_var getRules();
34 
35  public slots:
36  void gripperChanged(const QItemSelection& selected,
37  const QItemSelection& deselected);
38  void handleChanged(const QItemSelection& selected,
39  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 } // namespace gui
57 } // namespace hpp
58 
59 #endif // LINKWIDGET_HH
LinkWidget(QListWidget *grippersList, QListWidget *handlesList, QWidget *parent=0)
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
Definition: configurationlistwidget.hh:18
Definition: linkwidget.hh:25
void gripperChanged(const QItemSelection &selected, const QItemSelection &deselected)
Rules_var getRules()
void handleChanged(const QItemSelection &selected, const QItemSelection &deselected)