MorphoGraphX
TasksView.hpp
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4 //
5 // If you use MorphoGraphX in your work, please cite:
6 // http://dx.doi.org/10.7554/eLife.05864
7 //
8 // MorphoGraphX is free software, and is licensed under under the terms of the
9 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10 //
11 #ifndef TASKSVIEW_H
12 #define TASKSVIEW_H
13 
14 #include <Config.hpp>
15 
16 #include <QTreeView>
17 
18 class QKeyEvent;
19 
20 extern const QString internal_format;
21 extern const QString itemlist_format;
22 
23 class TasksView : public QTreeView {
24  Q_OBJECT
25 public:
26  TasksView(QWidget* parent = 0);
27 
28 protected:
29  void keyPressEvent(QKeyEvent* event);
30  void dragEnterEvent(QDragEnterEvent* event);
31  void dragLeaveEvent(QDragLeaveEvent* event);
32  void dragMoveEvent(QDragMoveEvent* event);
33 
34 signals:
35  void deleteItems(const QModelIndexList& idx);
36 };
37 
38 #endif
Definition: TasksView.hpp:23