2020-04-10 15:46:03 +08:00
|
|
|
#ifndef COMMANDMSG_H
|
|
|
|
|
#define COMMANDMSG_H
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
2020-04-10 18:18:30 +08:00
|
|
|
#include "QDebug"
|
2020-04-10 15:46:03 +08:00
|
|
|
|
|
|
|
|
class CommandMsg : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
Q_PROPERTY(QString text READ text WRITE setText)
|
|
|
|
|
public:
|
|
|
|
|
CommandMsg();
|
|
|
|
|
|
|
|
|
|
QString text() const;
|
|
|
|
|
void setText(const QString &text);
|
|
|
|
|
|
2020-04-10 18:18:30 +08:00
|
|
|
public slots:
|
|
|
|
|
void btnclicked_int(float param1, float param2, float param3, float param4, int x, int y, float z);
|
|
|
|
|
void btnclicked_long(float param1, float param2, float param3, float param4, float param5, float param6, float param7);
|
|
|
|
|
|
2020-04-10 15:46:03 +08:00
|
|
|
signals:
|
|
|
|
|
void textChanged(QString str);
|
|
|
|
|
|
2020-04-10 18:18:30 +08:00
|
|
|
|
|
|
|
|
void cmd_int(float param1, float param2, float param3, float param4, int x, int y, float z);
|
|
|
|
|
void cmd_long(float param1, float param2, float param3, float param4, float param5, float param6, float param7);
|
|
|
|
|
|
|
|
|
|
|
2020-04-10 15:46:03 +08:00
|
|
|
private:
|
|
|
|
|
QString m_text;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // COMMANDMSG_H
|