Initial commit (project based on widgets)

This commit is contained in:
Yury Shuvakin
2022-08-01 21:53:36 +03:00
parent d9396cdc2f
commit 14a7aa699f
411 changed files with 95119 additions and 0 deletions

60
bmsservicepage.h Normal file
View File

@@ -0,0 +1,60 @@
#ifndef BMSSERVICEPAGE_H
#define BMSSERVICEPAGE_H
#include <QFrame>
#include <QButtonGroup>
#include "bmsinterface.h"
namespace Ui {
class BmsServicePage;
}
/*
class KeyboardFilter : public QObject
{
public:
KeyboardFilter( QObject *parent = 0 ) : QObject( parent ) {}
protected:
bool eventFilter( QObject *dist, QEvent *event );
};
*/
class BmsServicePage : public QFrame
{
Q_OBJECT
public:
explicit BmsServicePage(QWidget *parent = nullptr);
~BmsServicePage();
void clearTerminal();
BMSInterface *bms() const;
void setDieBieMS(BMSInterface *dieBieMS);
protected:
// void keyPressEvent(QKeyEvent *);
bool eventFilter(QObject *, QEvent *);
public slots:
void printReceived(QString str);
//void onUpButtonClicked();
//void onDownButtonClicked();
private slots:
void on_sendButton_clicked();
void on_helpButton_clicked();
void on_clearButton_clicked();
private:
Ui::BmsServicePage *ui;
BMSInterface *mDieBieMS;
//KeyboardFilter filter;
};
#endif // BMSSERVICEPAGE_H