hpp-gui  4.14.0
Graphical interface for HPP
constraintwidget.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Heidy Dallard
4 //
5 
6 #ifndef HPP_GUI_CONSTRAINTWIDGET_HH
7 #define HPP_GUI_CONSTRAINTWIDGET_HH
8 
9 #include <QWidget>
10 
12 
13 class QDockWidget;
14 
15 namespace Ui {
16 class ConstraintWidget;
17 }
18 
19 namespace hpp {
20 namespace gui {
21 class HppWidgetsPlugin;
22 
24 class ConstraintWidget : public QWidget {
25  Q_OBJECT
26 
27  public:
28  ConstraintWidget(HppWidgetsPlugin* plugin, QWidget* parent = 0);
29  virtual ~ConstraintWidget();
30 
31  public slots:
33  void reload();
34 
37  void addConstraint(IConstraint* constraint);
38 
39  virtual void refresh();
40 
41  private slots:
43  void createConstraint();
44 
46  virtual void confirmNumerical();
47 
49  virtual void applyConstraints();
50 
52  virtual void reset();
53 
56  void onConstraintCreated(QString name);
57 
58  void onFinished();
59 
60  void typeChanged(int index);
61 
62  protected:
64  Ui::ConstraintWidget* ui;
65  QDockWidget* dock_;
67  std::vector<IConstraint*> funcs_;
68  bool haveWidget;
69 };
70 } // namespace gui
71 } // namespace hpp
72 
73 #endif // HPP_GUI_CONSTRAINTWIDGET_HH
Ui::ConstraintWidget * ui
Definition: constraintwidget.hh:64
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
std::vector< IConstraint * > funcs_
Definition: constraintwidget.hh:67
Definition: configurationlistwidget.hh:18
QDockWidget * dock_
Definition: constraintwidget.hh:65
Definition: iconstraint.hh:13
int lastInsert_
Definition: constraintwidget.hh:66
bool haveWidget
Definition: constraintwidget.hh:68
HppWidgetsPlugin * plugin_
Definition: constraintwidget.hh:63
Widget that allows to create constraints.
Definition: constraintwidget.hh:24
Plugin that add a lot of features to work with hpp.
Definition: hppwidgetsplugin.hh:30