Debian Codegraph @

HercStudio/MainPanelClassic.h

raw symbols SCIP
1 /*
2 * File: MainPanelClassic.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Oct 28, 2010
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id: MainPanel.h 67 2010-09-13 14:06:31Z dekeljacob $
9 *
10 * This object presents the main panel in "classic" mode
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 MAINPANELCLASSIC_H_
28 #define MAINPANELCLASSIC_H_
29
30 #include "MainPanel.h"
31 #include "StatusUpdateCollector.h"
32 #include "Mips.h"
33
34 #include <QtWidgets/QWidget>
35 #include "ui_Devices.h"
36 #include <QToolButton>
37 #include <QMouseEvent>
38
39 class MainPanelClassic : public MainPanel
40 {
41 Q_OBJECT
42
43 public:
44 MainPanelClassic(QWidget *parent = 0);
45 virtual ~MainPanelClassic();
46 void standby();
47 void setDormant();
48 bool notify(const QByteArray& statusLine);
49 void switchMips();
50 bool isStopped() const;
51 virtual void updateLcd(QLCDNumber * lcd, int inc);
52 virtual void animate();
53
54
55 protected:
56 virtual void resizeEvent(QResizeEvent * event);
57 virtual QSize sizeHint() const;
58 virtual void setupUi(QWidget * parent);
59
60 private:
61 template<class T> void animateOne(int x, int y, T* button, int step);
62
63 QLabel *mSys;
64 QLabel *mSysText;
65 QLabel *mMan;
66 QLabel *mManText;
67 QLabel *mWait;
68 QLabel *mWaitText;
69 QLabel *mLoad;
70 QLabel *mLoadText;
71 QLabel *mPSW;
72
73 ClickLabel *mDial0, *mDial1, *mDial2, *mDial3;
74
75 Mips *mMips;
76
77 };
78
79 #endif /* MAINPANELCLASSIC_H_ */