Debian Codegraph @

HercStudio/MainPanel.h

raw symbols SCIP
1 /*
2 * File: MainPanel.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 main panel
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 MAINPANEL_H_
28 #define MAINPANEL_H_cxx . . $ `HercStudio/MainPanel.h:28:9`!
29
30 #include "StatusUpdateCollector.h"cxx . . $ `<file>/HercConfiguration/StatusUpdateCollector.h`/
31 #include "Mips.h"cxx . . $ `<file>/HercStudio/Mips.h`/
32
33 #include <QtWidgets/QWidget>
34 #include <QLabel>
35 #include <QPushButton>
36 #include <QToolButton>
37 #include <QLCDNumber>
38 #include "ui_Devices.h"cxx . . $ `<file>/ui/ui_Devices.h`/
39
40 class MainPanelcxx . . $ MainPanel#;
41 // base class for "clickable" objects
42 class ClickLabelcxx . . $ ClickLabel# : public QLabelcxx . . $ QLabel#
43 {
44 Q_OBJECTcxx . . $ QString#QString(e1217c004a86c950).
45 public:
46 ClickLabelcxx . . $ ClickLabel#ClickLabel(b930821657a4938d).(MainPanelcxx . . $ MainPanel# *parent, QObjectcxx . . $ QObject# * lcd);
47 virtual void mousePressEventcxx . . $ ClickLabel#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent# * event );
48 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
49 void clickedcxx . . $ ClickLabel#clicked(4f9e9534be445c03).(const QPointcxx . . $ QPoint# &);
50 private:
51 MainPanelcxx . . $ MainPanel# * mPanelcxx . . $ ClickLabel#mPanel.;
52 QObjectcxx . . $ QObject# * mLcdcxx . . $ ClickLabel#mLcd.;
53
54 };
55
56 class MainPanelcxx . . $ MainPanel# : public QWidgetcxx . . $ QWidget#, public StatusUpdateCollectorcxx . . $ StatusUpdateCollector#
57 {
58 Q_OBJECTcxx . . $ QMetaObject#Call#
59
60 public:
61 MainPanelcxx . . $ MainPanel#MainPanel(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0);
62 virtual ~cxx . . $ MainPanel#`~MainPanel`(49f6e7a06ebc5aa8).MainPanelcxx . . $ MainPanel#();
63 virtual void doConnectcxx . . $ MainPanel#doConnect(49f6e7a06ebc5aa8).();
64
65 virtual void standbycxx . . $ MainPanel#standby(49f6e7a06ebc5aa8).()=0;
66 virtual void setDormantcxx . . $ MainPanel#setDormant(49f6e7a06ebc5aa8).()=0;
67 virtual bool notifycxx . . $ MainPanel#notify(544790aa27d183a0).(const QByteArraycxx . . $ QByteArray#& statusLine)=0;
68 virtual void switchMipscxx . . $ MainPanel#switchMips(49f6e7a06ebc5aa8).()=0;
69 virtual int getLoadAddresscxx . . $ MainPanel#getLoadAddress(b126dc7c1de90089).();
70 virtual void setLoadAddresscxx . . $ MainPanel#setLoadAddress(85c52e162fed56f9).(const char * devNo);
71 virtual bool isStoppedcxx . . $ MainPanel#isStopped(50ce9a9e25b4a850).()const = 0;
72 virtual void updateLcdcxx . . $ MainPanel#updateLcd(83a52b9a967847f9).(QLCDNumbercxx . . $ QLCDNumber# * lcd, int inc)=0;
73 virtual void animatecxx . . $ MainPanel#animate(49f6e7a06ebc5aa8).() = 0;
74
75 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
76 void powerOnClickedcxx . . $ MainPanel#powerOnClicked(49f6e7a06ebc5aa8).();
77 void powerOffClickedcxx . . $ MainPanel#powerOffClicked(49f6e7a06ebc5aa8).();
78 void loadClickedcxx . . $ MainPanel#loadClicked(49f6e7a06ebc5aa8).();
79 void interruptClickedcxx . . $ MainPanel#interruptClicked(49f6e7a06ebc5aa8).();
80 void restartClickedcxx . . $ MainPanel#restartClicked(49f6e7a06ebc5aa8).();
81 void storeClickedcxx . . $ MainPanel#storeClicked(49f6e7a06ebc5aa8).();
82 void startClickedcxx . . $ MainPanel#startClicked(49f6e7a06ebc5aa8).();
83 void stopClickedcxx . . $ MainPanel#stopClicked(49f6e7a06ebc5aa8).();
84
85 protected:
86 virtual void resizeEventcxx . . $ MainPanel#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent# * event)=0;
87 virtual QSizecxx . . $ QSize# sizeHintcxx . . $ MainPanel#sizeHint(4b3b776e5ee2b367).() const=0;
88 virtual QAbstractButtoncxx . . $ QAbstractButton#* powerOnButtoncxx . . $ MainPanel#powerOnButton(aa0e4e1b7d59b5f2).() {return mPowerOnButtoncxx . . $ MainPanel#mPowerOnButton.;};
89 virtual QAbstractButtoncxx . . $ QAbstractButton#* powerOffButtoncxx . . $ MainPanel#powerOffButton(aa0e4e1b7d59b5f2).() {return mPowerOffButtoncxx . . $ MainPanel#mPowerOffButton.;};
90 virtual QAbstractButtoncxx . . $ QAbstractButton#* interruptButtoncxx . . $ MainPanel#interruptButton(aa0e4e1b7d59b5f2).() {return mInterruptButtoncxx . . $ MainPanel#mInterruptButton.;};
91 virtual QAbstractButtoncxx . . $ QAbstractButton#* stopButtoncxx . . $ MainPanel#stopButton(aa0e4e1b7d59b5f2).() {return mStopButtoncxx . . $ MainPanel#mStopButton.;};
92 virtual QAbstractButtoncxx . . $ QAbstractButton#* loadButtoncxx . . $ MainPanel#loadButton(aa0e4e1b7d59b5f2).() {return mLoadButtoncxx . . $ MainPanel#mLoadButton.;};
93
94 bool mStoppedcxx . . $ MainPanel#mStopped.;
95 double mMipsHWMcxx . . $ MainPanel#mMipsHWM.;
96 QPushButtoncxx . . $ QPushButton# *mPowerOnButtoncxx . . $ MainPanel#mPowerOnButton.;
97 QPushButtoncxx . . $ QPushButton# *mPowerOffButtoncxx . . $ MainPanel#mPowerOffButton.;
98 QPushButtoncxx . . $ QPushButton# *mInterruptButtoncxx . . $ MainPanel#mInterruptButton.;
99 QPushButtoncxx . . $ QPushButton# *mLoadButtoncxx . . $ MainPanel#mLoadButton.;
100 QPushButtoncxx . . $ QPushButton# *mRestartButtoncxx . . $ MainPanel#mRestartButton.;
101 QPushButtoncxx . . $ QPushButton# *mStoreButtoncxx . . $ MainPanel#mStoreButton.;
102 QPushButtoncxx . . $ QPushButton# *mStopButtoncxx . . $ MainPanel#mStopButton.;
103 QPushButtoncxx . . $ QPushButton# *mStartButtoncxx . . $ MainPanel#mStartButton.;
104
105 QPixmapcxx . . $ QPixmap# *mYellowLowcxx . . $ MainPanel#mYellowLow.;
106 QPixmapcxx . . $ QPixmap# *mYellowHighcxx . . $ MainPanel#mYellowHigh.;
107 QLCDNumbercxx . . $ QLCDNumber# *mLcd0cxx . . $ MainPanel#mLcd0., *mLcd1cxx . . $ MainPanel#mLcd1., *mLcd2cxx . . $ MainPanel#mLcd2., *mLcd3cxx . . $ MainPanel#mLcd3.;
108
109 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
110 void powerOnClickedSlotcxx . . $ MainPanel#powerOnClickedSlot(49f6e7a06ebc5aa8).();
111 void powerOffClickedSlotcxx . . $ MainPanel#powerOffClickedSlot(49f6e7a06ebc5aa8).();
112 void loadClickedSlotcxx . . $ MainPanel#loadClickedSlot(49f6e7a06ebc5aa8).();
113 void interruptClickedSlotcxx . . $ MainPanel#interruptClickedSlot(49f6e7a06ebc5aa8).();
114 void restartClickedSlotcxx . . $ MainPanel#restartClickedSlot(49f6e7a06ebc5aa8).();
115 void storeClickedSlotcxx . . $ MainPanel#storeClickedSlot(49f6e7a06ebc5aa8).();
116 void startClickedSlotcxx . . $ MainPanel#startClickedSlot(49f6e7a06ebc5aa8).();
117 void stopClickedSlotcxx . . $ MainPanel#stopClickedSlot(49f6e7a06ebc5aa8).();
118 };
119
120 #endif /* MAINPANEL_H_ */