Patent ID: 11928270
Assignee: SHANGHAI NCATEST TECHNOLOGIES CO., LTD
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. A quick waveform editing method based on a mouse comprising a left button, a right button, a mouse wheel and a mouse button, comprising following steps:
step S1: receiving an original waveform which needs to be edited and setting an editing task, wherein, the editing task comprises a single waveform editing or a full waveform editing and is used to edit an edge waveform of a pulse wave waveform at least;
step S2: monitoring a mouse event and determining a type of the mouse event, wherein, the type of the mouse event comprises a left button event, a mouse wheel event and a right button event; in a case that the type of the mouse event is the left button event, performing step S3; in a case that the type of the mouse event is the mouse wheel event, performing step S4; in a case that the type of the mouse event is the right button event, performing step S5;
step S3: receiving occurrence of the left button event monitored, which has a selected edge, and moving the selected edge left by a predetermined distance;
step S4: receiving occurrence of the mouse wheel event monitored, which has thselected edge, and moving the selected edge up or down by the predetermined distance; and
step S5: receiving occurrence of the right button event monitored, which has thselected edge, and moving the selected edge right by the predetermined distance;
wherein the mouse wheel event comprises a press event and a scroll event, in a case that the mouse wheel triggers the press event and an edge exists in an press point, then the edge is selected as the selected edge, the press event of the mouse wheel is used to select the edge, the scroll event comprises scrolling up and scrolling down, in a case that the mouse wheel triggers the scrolling up, the selected edge is moved up till the press event of the mouse wheel is over, which is indicated by releasing the pressing of the mouse wheel; and in a case that the mouse wheel triggers the scrolling down, the selected edge is moved down till the press event of the mouse wheel is over, which is indicated by releasing the pressing of the mouse wheel; wherein, the press event of the mouse wheel comprises a rolling press operation and a rolling release operation.