Download documentation
Transcript
8.3. FILTERING OF RECEIVED AND DISPLAYED CAN MESSAGES 55 and drop of item data to different widgets that allow it. In order to enable these item properties, there had to be set-up some special features to this model. Each model item has a number of data elements associated with it, and each of these can be retrieved by specifying a role to the model’s data() function. Items can be queried with flags() to see if they can be selected, dragged, or manipulated in any other way. To enable editing and drag/drop of the items, particular item flags must return editable flags and drag/drop flags for the valid item indexes. Plus, the model must have setData() method implemented. 8.2.2.4 Sent message history tool Sent message history tool is a secondary option how a user can send a message sequence to the CAN bus. By secondary, I mean that this tool was not designed for this purpose and adds this functioniality because of additional user requirements. User can send to the CAN bus only the messages that this tool displays. So it offers only the possibility of resending of messages that had already been sent to the CAN bus by either of mentioned options - application main window or message sequence tool. Model, that this tool implement, does not allow a user to edit particular items, but it enables dragging its items data to different application widgets that allow it (i.e. CAN message sequence tool). 8.3 Filtering of received and displayed CAN messages The notion of filtering covered implementation of two different filtering objects in this application. Although they may seem the same, they cover two different tasks: • Traffic filtering • View filtering Traffic filtering gives a user option to filter the captured data that can be displayed to the user, while view filtering allows a user to filter only the view of actually displayed data.