| 1 | /* |
| 2 | * File: DevicesPane.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Nov 1, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object handles the re-initialization of devices during hercules run time |
| 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 DEVICESRENAME_H |
| 28 | #define DEVICESRENAME_H |
| 29 | |
| 30 | #include "Configuration.h" |
| 31 | |
| 32 | #include <QtWidgets/QDialog> |
| 33 | #include "ui_DevicesRename.h" |
| 34 | |
| 35 | class DevicesRename : public QDialog |
| 36 | { |
| 37 | Q_OBJECT |
| 38 | |
| 39 | public: |
| 40 | DevicesRename(int value, int newValue, QWidget *parent = 0); |
| 41 | virtual ~DevicesRename(); |
| 42 | |
| 43 | public slots: |
| 44 | void ok(); |
| 45 | void notok(); |
| 46 | |
| 47 | signals: |
| 48 | void accepted(QString oldValue, QString newValue); |
| 49 | void rejected(); |
| 50 | |
| 51 | private: |
| 52 | Ui::DevicesRenameClass ui; |
| 53 | int mInitialDevNum; |
| 54 | |
| 55 | Configuration::HexSpinBox* mSpinBox; |
| 56 | }; |
| 57 | |
| 58 | #endif // DEVICESRENAME_H |