Debian Codegraph @

HercStudio/MipsGauge.h

raw symbols SCIP
1 /*
2 * File: MipsGauge.h
3 *
4 * Author: Jacob Dekel
5 * Created on: June 15, 2010
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This object presents the current mips reading as gauge needle
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
28 #ifndef MIPSGAUGE_H_
29 #define MIPSGAUGE_H_
30
31 #include "Mips.h"
32
33 class MipsGauge: public Mips
34 {
35 Q_OBJECT
36 public:
37 MipsGauge(QWidget * parent = 0);
38 virtual ~MipsGauge();
39
40 virtual void display(double);
41 virtual void setActive(bool visible);
42 virtual void move(int, int);
43 virtual void setToolTip(const QString & tip);
44 virtual void deleteLater(void);
45 virtual bool isVisible();
46
47 protected:
48 void paintEvent(QPaintEvent *);
49 double mPrevAngle;
50
51 private:
52 double mValue;
53 double mHwm;
54 QColor mPenColor;
55 };
56
57 #endif /* MIPSGAUGE_H_ */