CCIMXDesktop
 
Loading...
Searching...
No Matches
Tablet.h
1#ifndef TABLET_H
2#define TABLET_H
3
4#include <QWidget>
5
6namespace Ui {
7class Tablet;
8}
9
17class Tablet : public QWidget {
18 Q_OBJECT
19
20public:
25 explicit Tablet(QWidget* parent = nullptr);
26
30 ~Tablet();
31
32public slots:
37 void setResult(const QString& v);
38
43 void append_outlayer(const QString& what);
44
48 void process_clear();
49
53 void process_chop();
54
58 void process_evaluate();
59
60private slots:
66 void process_text_according();
67
68private:
72 void setup_panel();
73
77 Ui::Tablet* ui;
78
82 QString string_expression;
83};
84
85#endif // TABLET_H
The Tablet class provides a user interface panel for building and evaluating string-based expressions...
Definition Tablet.h:17
void process_evaluate()
Evaluates the current expression and updates the result.
Definition Tablet.cpp:37
void setResult(const QString &v)
Sets the result text shown in the result display area.
Definition Tablet.cpp:16
void process_clear()
Clears the internal expression and updates the UI.
Definition Tablet.cpp:26
void process_chop()
Removes the last character or token from the expression.
Definition Tablet.cpp:31
~Tablet()
Destructor.
Definition Tablet.cpp:12
void append_outlayer(const QString &what)
Appends an external string token to the internal expression.
Definition Tablet.cpp:21