hpp-gui  4.11.0
Graphical interface for HPP
configurationlist.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) CNRS
3 // Author: Joseph Mirabel and Heidy Dallard
4 //
5 
6 #ifndef CONFIGURATIONLIST_HH
7 #define CONFIGURATIONLIST_HH
8 
9 #include <QListWidget>
10 
11 namespace hpp {
12  namespace gui {
14  class ConfigurationList : public QListWidget
15  {
16  Q_OBJECT
17 
18  signals:
19  void configurationChanged();
20 
21  public:
22  ConfigurationList(QWidget* parent);
23  virtual ~ConfigurationList();
24 
25  void setSingleItemOnly (bool set);
26  void bindDeleteKey ();
27 
28  protected:
29  void dragEnterEvent(QDragEnterEvent* event);
30  void dragMoveEvent(QDragMoveEvent* event);
31  void dropEvent(QDropEvent *event);
32  void startDrag(Qt::DropActions supportedActions);
33 
34  private slots:
35  void deleteSelection();
36 
37  private:
38  void deleteItem(QListWidgetItem* item);
39 
40  bool singleItemOnly;
41  };
42  }
43 }
44 
45 #endif // CONFIGURATIONLIST_HH
void dragMoveEvent(QDragMoveEvent *event)
namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
ConfigurationList(QWidget *parent)
void dropEvent(QDropEvent *event)
void startDrag(Qt::DropActions supportedActions)
A QListWidget that accept drag and drop of configurations.
Definition: configurationlist.hh:14
void dragEnterEvent(QDragEnterEvent *event)
void setSingleItemOnly(bool set)