| 1 | /* |
| 2 | * File: DeviceMenuProcessor.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Oct 14, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This object is an interface for driving devices through menus |
| 11 | * (used by both the devices pane and the devices configuration tab) |
| 12 | * |
| 13 | * This program is free software: you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by |
| 15 | * the Free Software Foundation, either version 3 of the License, or |
| 16 | * (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License |
| 24 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 25 | * |
| 26 | */ |
| 27 | #ifndef DEVICEMENUPROCESSOR_H_ |
| 28 | #define DEVICEMENUPROCESSOR_H_cxx . . $ `HercConfiguration/DeviceMenuProcessor.h:28:9`! |
| 29 | |
| 30 | #include "DeviceConfigLine.h"cxx . . $ `<file>/HercConfiguration/DeviceConfigLine.h`/ |
| 31 | #include "DeviceTypes.h"cxx . . $ `<file>/HercConfiguration/DeviceTypes.h`/ |
| 32 | |
| 33 | #include <QtWidgets/QWidget> |
| 34 | #include <QMenu> |
| 35 | |
| 36 | class DeviceMenuProcessorcxx . . $ DeviceMenuProcessor# : public QWidgetcxx . . $ QWidget# |
| 37 | { |
| 38 | Q_OBJECTcxx . . $ DeviceMenuProcessor#tr(75d9f1c324b4579d). |
| 39 | public: |
| 40 | DeviceMenuProcessorcxx . . $ DeviceMenuProcessor#DeviceMenuProcessor(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 41 | virtual ~cxx . . $ DeviceMenuProcessor#`~DeviceMenuProcessor`(49f6e7a06ebc5aa8).DeviceMenuProcessorcxx . . $ DeviceMenuProcessor#(); |
| 42 | |
| 43 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 44 | void devicesClickcxx . . $ DeviceMenuProcessor#devicesClick(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# * event); |
| 45 | void menuAddTerminalcxx . . $ DeviceMenuProcessor#menuAddTerminal(49f6e7a06ebc5aa8).(); |
| 46 | void menuAddConsolecxx . . $ DeviceMenuProcessor#menuAddConsole(49f6e7a06ebc5aa8).(); |
| 47 | void menuAddPrintercxx . . $ DeviceMenuProcessor#menuAddPrinter(49f6e7a06ebc5aa8).(); |
| 48 | void menuAddCardReadercxx . . $ DeviceMenuProcessor#menuAddCardReader(49f6e7a06ebc5aa8).(); |
| 49 | void menuAddCardPunchcxx . . $ DeviceMenuProcessor#menuAddCardPunch(49f6e7a06ebc5aa8).(); |
| 50 | void menuAddTapecxx . . $ DeviceMenuProcessor#menuAddTape(49f6e7a06ebc5aa8).(); |
| 51 | void menuAddCTCcxx . . $ DeviceMenuProcessor#menuAddCTC(49f6e7a06ebc5aa8).(); |
| 52 | void menuAddDasdcxx . . $ DeviceMenuProcessor#menuAddDasd(49f6e7a06ebc5aa8).(); |
| 53 | void menuAddSYSGcxx . . $ DeviceMenuProcessor#menuAddSYSG(49f6e7a06ebc5aa8).(); |
| 54 | void menuLoadcxx . . $ DeviceMenuProcessor#menuLoad(49f6e7a06ebc5aa8).(); |
| 55 | void menuUnloadcxx . . $ DeviceMenuProcessor#menuUnload(49f6e7a06ebc5aa8).(); |
| 56 | void newTapeFileOKcxx . . $ DeviceMenuProcessor#newTapeFileOK(4c89b026053e4d32).(QStringcxx . . $ QString#& tapeFile); |
| 57 | |
| 58 | protected: |
| 59 | virtual bool isRealDevcxx . . $ DeviceMenuProcessor#isRealDev(83c267b20bac841a).(int lineNumber) = 0; |
| 60 | virtual bool canAddSYSGcxx . . $ DeviceMenuProcessor#canAddSYSG(c9857a73d68e59ba).() = 0; |
| 61 | virtual bool isConfigcxx . . $ DeviceMenuProcessor#isConfig(c9857a73d68e59ba).() = 0; |
| 62 | virtual bool realDevicecxx . . $ DeviceMenuProcessor#realDevice(c9857a73d68e59ba).() = 0; |
| 63 | virtual DeviceTypescxx . . $ DeviceTypes#::Typecxx . . $ DeviceTypes#Type# getTypecxx . . $ DeviceMenuProcessor#getType(cc50a7541878da72).(int lineNumber) = 0; |
| 64 | virtual void doLoadTapecxx . . $ DeviceMenuProcessor#doLoadTape(4c89b026053e4d32).(QStringcxx . . $ QString#& tapeFileName) = 0; |
| 65 | virtual bool hasConfigcxx . . $ DeviceMenuProcessor#hasConfig(c9857a73d68e59ba).() = 0; |
| 66 | virtual bool tracedcxx . . $ DeviceMenuProcessor#traced(c9857a73d68e59ba).() = 0; |
| 67 | |
| 68 | int mClickRowcxx . . $ DeviceMenuProcessor#mClickRow.; |
| 69 | int mLastClickcxx . . $ DeviceMenuProcessor#mLastClick.; |
| 70 | QMenucxx . . $ QMenu# mMenucxx . . $ DeviceMenuProcessor#mMenu.; |
| 71 | DeviceConfigLinecxx . . $ DeviceConfigLine# * mCandidateLinecxx . . $ DeviceMenuProcessor#mCandidateLine.; |
| 72 | |
| 73 | private: |
| 74 | void menuAddItemcxx . . $ DeviceMenuProcessor#menuAddItem(d4f767463ce0a6b3).(int); |
| 75 | }; |
| 76 | |
| 77 | #endif /* DEVICEMENUPROCESSOR_H_ */ |