Debian Codegraph @

HercStudio/MipsLed.cpp

raw symbols SCIP
1 /*
2 * File: MipsLcd.cpp
3 *
4 * Author: Jacob Dekel
5 * Created on: Jun 15, 2010
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 *
23 */
24
25 #include "MipsLed.h"cxx . . $ `<file>/HercStudio/MipsLed.h`/
26 #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/
27 #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/
28
29 #include <QLCDNumber>
30
31 MipsLedcxx . . $ MipsLed#::MipsLedcxx . . $ MipsLed#MipsLed(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# * parent)
32 : Mipscxx . . $ Mips#(parent)
33 {
34 mMipscxx . . $ MipsLed#mMips. = new QLCDNumbercxx . . $ QLCDNumber#(6,parent);
35 mMipscxx . . $ MipsLed#mMips.->setSegmentStylecxx . . $ QLCDNumber#setSegmentStyle(ee64db6ba36f14d0).(QLCDNumbercxx . . $ QLCDNumber#::Flatcxx . . $ QLCDNumber#Flat.);
36 mMipscxx . . $ MipsLed#mMips.->setFrameShapecxx . . $ QFrame#setFrameShape(58426e538cd37cb).( QLCDNumbercxx . . $ QLCDNumber#::NoFramecxx . . $ QFrame#NoFrame. );
37 mMipscxx . . $ MipsLed#mMips.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(true);
38 }
39
40 MipsLedcxx . . $ MipsLed#::~cxx . . $ MipsLed#`~MipsLed`(49f6e7a06ebc5aa8).MipsLedcxx . . $ MipsLed#()
41 {
42 }
43
44 void MipsLedcxx . . $ MipsLed#::movecxx . . $ MipsLed#move(3e454b8ccf442868).(int x, int y)
45 {
46 mMipscxx . . $ MipsLed#mMips.->movecxx . . $ QWidget#move(3e454b8ccf442868).(x,y);
47 }
48
49 void MipsLedcxx . . $ MipsLed#::displaycxx . . $ MipsLed#display(ba8836b59fb42830).(double value)
50 {
51 mMipscxx . . $ MipsLed#mMips.->displaycxx . . $ QLCDNumber#display(ba8836b59fb42830).(value);
52 }
53
54 void MipsLedcxx . . $ MipsLed#::setActivecxx . . $ MipsLed#setActive(b45ddcbc8423892c).(bool active)
55 {
56 if (active)
57 {
58 if (Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().greenLedcxx . . $ Preferences#greenLed(50ce9a9e25b4a850).())
59 mMipscxx . . $ MipsLed#mMips.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).("QLCDNumber { color: #00ff00;}"cxx . . $ QString#QString(85c52e162fed56f9).);
60 else
61 mMipscxx . . $ MipsLed#mMips.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).("QLCDNumber { color: #ff0000;}"cxx . . $ QString#QString(85c52e162fed56f9).);
62 }
63 else
64 if (Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().greenLedcxx . . $ Preferences#greenLed(50ce9a9e25b4a850).())
65 mMipscxx . . $ MipsLed#mMips.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).("QLCDNumber { color: #005000;}"cxx . . $ QString#QString(85c52e162fed56f9).);
66 else
67 mMipscxx . . $ MipsLed#mMips.->setStyleSheetcxx . . $ QWidget#setStyleSheet(3520e46b33348bf6).("QLCDNumber { color: #700000;}"cxx . . $ QString#QString(85c52e162fed56f9).);
68
69 }
70
71 void MipsLedcxx . . $ MipsLed#::setToolTipcxx . . $ MipsLed#setToolTip(3520e46b33348bf6).(const QStringcxx . . $ QString# & tip)
72 {
73 mMipscxx . . $ MipsLed#mMips.->setToolTipcxx . . $ QWidget#setToolTip(3520e46b33348bf6).(tip);
74 }
75
76 void MipsLedcxx . . $ MipsLed#::deleteLatercxx . . $ MipsLed#deleteLater(49f6e7a06ebc5aa8).()
77 {
78 mMipscxx . . $ MipsLed#mMips.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
79 }
80
81 bool MipsLedcxx . . $ MipsLed#::isVisiblecxx . . $ MipsLed#isVisible(c9857a73d68e59ba).()
82 {
83 return mMipscxx . . $ MipsLed#mMips.->isVisiblecxx . . $ QWidget#isVisible(50ce9a9e25b4a850).();
84 }