添加协议显示界面,添加指令传输和json
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#include "commandmsg.h"
|
||||
|
||||
CommandMsg::CommandMsg()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
QString CommandMsg::text() const
|
||||
{
|
||||
return m_text;
|
||||
}
|
||||
|
||||
void CommandMsg::setText(const QString &text)
|
||||
{
|
||||
m_text = text;
|
||||
emit textChanged(m_text);
|
||||
}
|
||||
|
||||
|
||||
void CommandMsg::btnclicked_int(float param1, float param2, float param3, float param4, int x, int y, float z)
|
||||
{
|
||||
emit cmd_int(param1,param2,param3,param4,x,y,z);
|
||||
}
|
||||
void CommandMsg::btnclicked_long(float param1, float param2, float param3, float param4, float param5, float param6, float param7)
|
||||
{
|
||||
emit cmd_long(param1,param2,param3,param4,param5,param6,param7);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user