-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumberSystem.h
More file actions
40 lines (30 loc) · 855 Bytes
/
Copy pathNumberSystem.h
File metadata and controls
40 lines (30 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef NUMBERSYSTEMSH_H
#define NUMBERSYSTEMSH_H
#include <QWidget>
class QLabel;
class QLineEdit;
class CoreManager;
class NumberSystem: public QWidget
{
Q_OBJECT
public:
explicit NumberSystem(QWidget* parent = nullptr);
private:
void createMembers();
void makeConnections();
void setupLayout();
void installStyleSheets();
QLabel* m_decimalLabel;
QLabel* m_hexLabel;
QLabel* m_binaryLabel;
QLineEdit* m_decimalLineEdit;
QLineEdit* m_hexLineEdit;
QLineEdit* m_binaryLineEdit;
CoreManager* m_core;
private slots:
void onDecimialProcessedSlot(const QString& binary, const QString& hex);
void onHexProcessedSlot(const QString& decimal, const QString& binary);
void onBinaryProcessedSlot(const QString& decimal, const QString& hex);
void clearData();
};
#endif //NUMBERSYSTEMSH_H