Debian Codegraph @

HercStudio/Regs32.h

raw symbols SCIP
1 /*
2 * File: Regs32.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 implements the 32-bit registers view
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 REGS_H_
28 #define REGS_H_
29
30 #include "StatusUpdateCollector.h"
31
32 #include <QtWidgets/QWidget>
33 #include <QLabel>
34 #include <QCheckBox>
35
36 #include <string>
37
38 class Regs32 : public QWidget, public StatusUpdateCollector
39 {
40 Q_OBJECT
41 public:
42 Regs32(QWidget * parent, std::string command);
43 virtual ~Regs32();
44
45 void setFont();
46 virtual void setActive(bool active);
47 bool notify(const QByteArray& statusLine);
48
49 static std::string gCommand;
50 static std::string fCommand;
51 static std::string cCommand;
52 static std::string aCommand;
53
54 protected:
55 QWidget * mParent;
56 QLabel mLine1, mLine2, mLine3, mLine4; // subclass can add more
57 std::string mCommand;
58 };
59
60 #endif /* REGS_H_ */