#include "VTDValves.h" // Project #include "GuiController.h" VIEW_DEF(VTDValves, TDValvesData) void VTDValves::onActionReceive(const TDValvesData &vData) { valveID ( vData.mValveid ); state ( vData.mState ); currentPosID ( vData.mCurrentposid ); currentPos ( vData.mCurrentpos ); cmdPos ( vData.mCmdpos ); // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the previous values before being set. *** adjustment ( true ); }