| 1 | /* |
| 2 | * File: DeviceListView.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object manages the device list presented during run time by Devices |
| 11 | * |
| 12 | * This program is free software: you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation, either version 3 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #ifndef DEVICELISTVIEW_H_ |
| 28 | #define DEVICELISTVIEW_H_ |
| 29 | #include "HerculesStudio.h" |
| 30 | |
| 31 | #include <QListView> |
| 32 | #include <QStandardItemModel> |
| 33 | #include <QMenu> |
| 34 | |
| 35 | class DeviceListView : public QListView |
| 36 | { |
| 37 | Q_OBJECT |
| 38 | public: |
| 39 | DeviceListView(QWidget * parent); |
| 40 | virtual ~DeviceListView(); |
| 41 | |
| 42 | protected: |
| 43 | void mousePressEvent ( QMouseEvent * e ); |
| 44 | |
| 45 | signals: |
| 46 | void deviceClick(QMouseEvent *); |
| 47 | }; |
| 48 | |
| 49 | #endif /* DEVICELISTVIEW_H_ */ |