| 1 | /* |
| 2 | * File: DevicesWidget.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 presents the devices section in the configuration |
| 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 DEVICESDLG_H_ |
| 28 | #define DEVICESDLG_H_cxx . . $ `HercConfiguration/DevicesWidget.h:28:9`! |
| 29 | |
| 30 | #include "ConfigFile.h"cxx . . $ `<file>/HercConfiguration/ConfigFile.h`/ |
| 31 | #include "DeviceConfigView.h"cxx . . $ `<file>/HercConfiguration/DeviceConfigView.h`/ |
| 32 | #include "DeviceMenuProcessor.h"cxx . . $ `<file>/HercConfiguration/DeviceMenuProcessor.h`/ |
| 33 | |
| 34 | #include <QWidget> |
| 35 | #include <QFrame> |
| 36 | #include <QIcon> |
| 37 | |
| 38 | class DevicesWidgetcxx . . $ DevicesWidget# : public DeviceMenuProcessorcxx . . $ DeviceMenuProcessor# |
| 39 | { |
| 40 | Q_OBJECTcxx . . $ DevicesWidget#trUtf8(75d9f1c324b4579d). |
| 41 | public: |
| 42 | DevicesWidgetcxx . . $ DevicesWidget#DevicesWidget(5aa5159e220541f7).(ConfigFilecxx . . $ ConfigFile# * configFile, QWidgetcxx . . $ QWidget# * parent); |
| 43 | virtual ~cxx . . $ DevicesWidget#`~DevicesWidget`(49f6e7a06ebc5aa8).DevicesWidgetcxx . . $ DevicesWidget#(); |
| 44 | void updatecxx . . $ DevicesWidget#update(5afcb95a9687fc35).(ConfigFilecxx . . $ ConfigFile# * configFile); |
| 45 | bool isUniquecxx . . $ DevicesWidget#isUnique(c9120223c4466434).(stdcxx . . $ std/::stringcxx . . $ std/string# devno); |
| 46 | |
| 47 | private: |
| 48 | ConfigFilecxx . . $ ConfigFile# * mConfigFilecxx . . $ DevicesWidget#mConfigFile.; |
| 49 | DeviceConfigViewcxx . . $ DeviceConfigView# * mConfigViewcxx . . $ DevicesWidget#mConfigView.; |
| 50 | QMenucxx . . $ QMenu# mMenucxx . . $ DevicesWidget#mMenu.; |
| 51 | stdcxx . . $ std/::mapcxx . . $ std/map#<int,int> mDialogToFilecxx . . $ DevicesWidget#mDialogToFile.; |
| 52 | QIconcxx . . $ QIcon# *mCardIconcxx . . $ DevicesWidget#mCardIcon.; |
| 53 | QIconcxx . . $ QIcon# *mConsoleIconcxx . . $ DevicesWidget#mConsoleIcon.; |
| 54 | QIconcxx . . $ QIcon# *mDasdIconcxx . . $ DevicesWidget#mDasdIcon.; |
| 55 | QIconcxx . . $ QIcon# *mNetIconcxx . . $ DevicesWidget#mNetIcon.; |
| 56 | QIconcxx . . $ QIcon# *mPrinterIconcxx . . $ DevicesWidget#mPrinterIcon.; |
| 57 | QIconcxx . . $ QIcon# *mTapeIconcxx . . $ DevicesWidget#mTapeIcon.; |
| 58 | QIconcxx . . $ QIcon# *mTerminalIconcxx . . $ DevicesWidget#mTerminalIcon.; |
| 59 | QIconcxx . . $ QIcon# *mUnknownIconcxx . . $ DevicesWidget#mUnknownIcon.; |
| 60 | |
| 61 | void initializecxx . . $ DevicesWidget#initialize(49f6e7a06ebc5aa8).(); |
| 62 | virtual bool isRealDevcxx . . $ DevicesWidget#isRealDev(83c267b20bac841a).(int) { return true;} |
| 63 | bool canAddSYSGcxx . . $ DevicesWidget#canAddSYSG(c9857a73d68e59ba).(); |
| 64 | bool isConfigcxx . . $ DevicesWidget#isConfig(c9857a73d68e59ba).() { return true; }; |
| 65 | bool realDevicecxx . . $ DevicesWidget#realDevice(c9857a73d68e59ba).(); |
| 66 | DeviceTypescxx . . $ DeviceTypes#::Typecxx . . $ DeviceTypes#Type# getTypecxx . . $ DevicesWidget#getType(cc50a7541878da72).(int lineNumber); |
| 67 | virtual void doLoadTapecxx . . $ DevicesWidget#doLoadTape(4c89b026053e4d32).(QStringcxx . . $ QString#&) { return; } |
| 68 | virtual bool hasConfigcxx . . $ DevicesWidget#hasConfig(c9857a73d68e59ba).() { return true; }; |
| 69 | virtual bool tracedcxx . . $ DevicesWidget#traced(c9857a73d68e59ba).() { return false; } |
| 70 | |
| 71 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 72 | void mousePressedcxx . . $ DevicesWidget#mousePressed(58b98458fece0954).(QModelIndexcxx . . $ QModelIndex# index); |
| 73 | void doAddDevicecxx . . $ DevicesWidget#doAddDevice(b45ddcbc8423892c).(bool keep); |
| 74 | void updateDevicecxx . . $ DevicesWidget#updateDevice(b45ddcbc8423892c).(bool); |
| 75 | |
| 76 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 77 | |
| 78 | void menuDeletecxx . . $ DevicesWidget#menuDelete(49f6e7a06ebc5aa8).(); |
| 79 | void menuPropertiescxx . . $ DevicesWidget#menuProperties(49f6e7a06ebc5aa8).(); |
| 80 | }; |
| 81 | |
| 82 | #endif /* DEVICESDLG_H_ */ |