hpp-gui  4.14.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  Q_OBJECT
16 
17  signals:
18  void configurationChanged();
19 
20  public:
21  ConfigurationList(QWidget* parent);
22  virtual ~ConfigurationList();
23 
24  void setSingleItemOnly(bool set);
25  void bindDeleteKey();
26 
27  protected:
28  void dragEnterEvent(QDragEnterEvent* event);
29  void dragMoveEvent(QDragMoveEvent* event);
30  void dropEvent(QDropEvent* event);
31  void startDrag(Qt::DropActions supportedActions);
32 
33  private slots:
34  void deleteSelection();
35 
36  private:
37  void deleteItem(QListWidgetItem* item);
38 
39  bool singleItemOnly;
40 };
41 } // namespace gui
42 } // namespace hpp
43 
44 #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)