Instrument interactive interface based on window and menu and generation method thereof
Technical field
The present invention relates to computer picture data processing technique, particularly relate to a kind of based on window and menuInstrument interactive interface and generation method thereof.
Background technology
Along with the development of software engineering, modern instrument more and more trends towards intelligent direction development, andThe most important feature of Artificial Intelligence Instrument is exactly " fool ", and user does not need instrument to understand in depth,Just can very fast left-hand seat. Display interface is instrument and the most direct interactive interface of user, how to make user fastSpeed is understood instrument, is used instrument, is the emphasis of interface.
The method of existing generation signal generator display interface mainly contains two kinds, one be adopt comprehensively defeatedEnter the generating mode that district combines with menu. As shown in Figure 1, the option that will configure by menu setecting,In comprehensive input area, show and receive user's configuration information. This interface display method is also the most frequently usedIt is the most familiar mode of user.
Also having a kind of method is the generating mode that adopts graph window interface. As shown in Figure 2, this designFollow the design concept of modern direct viewing type operation, the process that display generates clearly. This interface is aobviousShow that method is taking window as unit, information shows abundant. When editor, choose successively by directionkeys or knobConfig option, better for the sophisticated signal support that need to edit with the element such as list, image.
For the interface display that adopts comprehensive input area to combine with menu, major defect is as follows: one, joinWhile putting, need repeat key, more loaded down with trivial details. Due to the restricted number of menu, one shields the configuration that can showItem is few, and user needs repeatedly page turning to search. Two, once can only show one group of menu, when user wants continuouslyConfiguration different menu different item time need to switch back and forth. Three, the appeal at interface and attraction are not strong,Graphics processing function a little less than. Instrumental function shows not outstanding, and signal product process can not be very clear.
For the interface display adopting taking window as unit, major defect is as follows: one, owing to having abandoned biographyThe mode option and installment item that passes through menu of system, makes troubles to user. Show joining of end for windowPut item, need to repeatedly search or rotary knob could be selected. Two, adopted windows display, cannot keep awayExempt from the overlapping problem of operation interface. Operation interface number is too much, and overlapped acquiring a certain degree again, canThe difference part that plays mark action at different operating interface can be concealed, when user need to configure a certainIn theactivewindow, when option, cannot clearly differentiate, thereby bring the inconvenience of operation.
Summary of the invention
Technical problem to be solved by this invention is to provide the mutual boundary of a kind of instrument based on window and menuFace and generation method thereof, it is based on window and menu, and configuration information shows abundant, and signal generates flow graph oneOrder is clear, and waveform display color is clearly demarcated; Not only can utilize the button auxiliary menus operation on instrument, alsoCan be convenient to use mouse, keyboard operation, there is the larger free degree; Join for completing identical functionPut in operation convenience and efficiency and be improved.
The present invention solves above-mentioned technical problem by following technical proposals: a kind of based on window and dishSingle instrument interactive interface, is characterized in that, it comprises: main window, and at the beginning of main window provides demonstration informationBeginningization, data show, window selection service; Control, control is used for realizing user interactions; Allocation window,Allocation window is the carrier of control, shows that for selective described control or control combine, and receive and showUser's input message, the allocation window mutual exclusion of difference in functionality shows; Menu, menu receives user and selects,And there is corresponding relation between described control; Mapping control module, for the correspondence to control and menu itemRelation is shone upon and management, reaches synchronous; Message management unit, message management unit is used for userInput is converted into Message Processing, and the message transmission between management control and menu reaches interactive.
Preferably, described control is the interface element of main window and allocation window.
Preferably, described allocation window is according to the window of instrumental function classifying and dividing.
Preferably, in described menu, have a menu item corresponding with control, when user select control orChange its attribute, mapping control module completes coupling automatically, selects corresponding menu item or change menu itemAttribute.
The present invention also provides a kind of generation method of the instrument interactive interface based on window and menu, its featureBe, it comprises the following steps:
S1: generate main window;
S2: need the allocation window of establishment configuration one class function and add control according to current;
S3: set up the menu corresponding with control in allocation window;
S4: the mapping relations of setting up described control and menu item;
S5: create message processing function, process user's input, create the message management between control and menuClass.
Preferably, described step S3 specifically comprises:
S31: generate menu class, for managing and store dish odd numbers, menu properties, the dish of the current set of menuSingle function information of processing; The all menus of complete machine data structure is according to the rules with the storage of array form;
S32: fill dish odd numbers, attribute, processing function entrance information in menu structure data;
S33: storage the current set of menu is in complete machine menu array.
Preferably, described step S4 specifically comprises:
S41: for each type control, again write control class, add this control corresponding in classDish odd numbers and menu item attribute;
S42: fill corresponding dish odd numbers and the menu item attribute of control;
S43: EN_GETFOCUS, the EN_KILLFOCUS, the EN_CHANGE that add control classMessage response function, realizes the mapping of control to menu item;
S44: write menu and process function, search the menu item of corresponding control in the current set of menu, fillMenu processing function entrance pointer, realizes the mapping of menu to control.
Preferably, described step S5 specifically comprises:
S51: generating messages administrative class, for completing the interaction of menu item and control;
S52: message management class is taken over all message of window, and use case distributor class distributes message,Operation to control in window is processed in menu by message response;
S53: message management class is taken over all message of menu, and use case distributor class distributes message,Operation to menu item is processed at window by message response.
Positive progressive effect of the present invention is: the present invention is based on window and menu, configuration information shows richRichness, it is very clear that signal generates flow graph, and waveform display color is clearly demarcated; Not only can utilize on instrument byThe operation of key auxiliary menus, can also be convenient to use mouse, keyboard operation, has the larger free degree.The graphic user interface that the present invention realizes, taking by the window of instrumental function classifying and dividing as unit, configuration letterBreath shows abundant, and signal graph and waveform show appeal. The allocation window mutual exclusion demonstration of difference in functionality,Interface is clean and tidy, unified. Graphic user interface retains menu operating function, brings cordial feeling and body to userTest sense. User can pass through two kinds of different mode of operation operating instruments, freely convenient. The present invention realizesGraphic user interface realized two kinds of modes of operation perfection merge, in the preferred embodiment of the inventionIn, by setting up mapping relations and message management class, for any one operation of window or menu, twoPerson can realize synchronous and interactive, is consistent. Compared with existing operating user interface mode, operationIn convenience and efficiency, be improved before.
Brief description of the drawings
Fig. 1 is the schematic diagram of the interactive interface that combines with menu of the comprehensive input area of existing employing.
Fig. 2 is the schematic diagram of existing employing graph window interactive interface.
Fig. 3 is the schematic diagram that the present invention is based on the instrument interactive interface embodiment of window and menu.
Fig. 4 is the flow process that the present invention is based on the generation embodiment of the method for the instrument interactive interface of window and menuFigure.
Detailed description of the invention
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
The explanation the technical program implementation process as an example of generated frequency allocation window and menu example, interactive interface is aobviousShow as shown in Figure 3, the instrument interactive interface that the present invention is based on window and menu comprises: main window, main windowMouth provides services such as showing information initializing, data demonstration, window selection; Control, control is for realizingUser interactions; Allocation window (can be the allocation windows such as frequency configuration window), allocation window is controlCarrier, show described control or control combination for selective, receive and show user's input message;Menu, menu receives user and selects, and has corresponding relation between described control; Mapping control module,For the corresponding relation of control and menu item being shone upon and management, reach synchronous; Message management unit,Message management unit is for being converted into Message Processing by user's input, and the message between management control and menu passesPass, reach interactive.
Preferably, described control is the interface element of main window and allocation window.
Preferably, described allocation window is according to the window of instrumental function classifying and dividing.
Preferably, for each control, in menu, there is a menu item corresponding with it, when user's choosingSelect control or change its attribute, mapping control module automatically complete coupling, select corresponding menu item orChange menu item attribute, vice versa.
As shown in Figure 4, the generation method that the present invention is based on the instrument interactive interface of window and menu comprise withLower step:
S1: generate main window. Main window creates as the parent window of allocation window, the work of display instrumentMake the main information such as state, frequency, power, modulation condition;
S2: (can be frequency configuration window according to the current allocation window that needs establishment configuration one class functionDeng allocation window) and add control. Concrete, in frequency configuration window, add a some frequency, frequency offset,The edit box such as frequency reference, frequency step control, adds the check box controls such as relative frequency switch, addsThe radio button controls such as sine wave, square wave, triangular wave, sawtooth waveforms, noise;
S3: set up the menu corresponding with control in allocation window;
S4: the mapping relations of setting up described control and menu item;
S5: create message processing function, process user's input, create the message management between control and menuClass.
Preferably, step S3 specifically comprises:
S31: generate menu class, for managing and store dish odd numbers, the menu properties (name of the current set of menuTitle, type, corresponding complete machine state number, whether mutual exclusion, whether single choice, whether forbid, mutual exclusion type,Corresponding flat type, pretreatment event number), menu processes the information such as function. The all menus of complete machine according toThe data structure of regulation is with the storage of array form;
S32: corresponding with the control adding, the corresponding menu item of each control, adds menu item,Fill the information such as dish odd numbers in menu structure data, attribute, processing function entrance;
S33: storage the current set of menu is in complete machine menu array.
Preferably, step S4 specifically comprises:
S41: for each type control, again write control class, add two in each control classVariable i MenuID and iMachStatusID, represent respectively dish odd numbers and menu item attribute, in class, addsAdd dish odd numbers and menu item attribute that this control is corresponding;
S42: fill corresponding dish odd numbers and the menu item attribute of control;
S43: EN_GETFOCUS, the EN_KILLFOCUS, the EN_CHANGE that add control classMessage response function, realizes the mapping of control to menu item. Concrete, when user's mouse is selected or non-choosingWhile determining frequency offset control, control sends EN_GETFOCUS or EN_KILLFOCUS message,In message response function, process, find corresponding menu item by iMenuID and iMachStatusID,Selected and the state of realizing menu item changes. In the time of control content changing, send EN_CHANGE and disappearBreath, the switching of the unit's of being implemented to menu;
S44: write menu and process function, search the menu item of corresponding control in the current set of menu, fillMenu processing function entrance pointer, realizes the mapping of menu to control.
Preferably, step S5 specifically comprises:
S51: generating messages administrative class, for completing the interaction of menu item and control;
S52: message management class is taken over all message of window, and use case distributor class distributes message,Operation to control in window is processed in menu by message response:
S53: message management class is taken over all message of menu, and use case distributor class distributes message,Operation to menu item is processed at window by message response.
The present invention is based on window and menu, configuration information shows abundant, and it is very clear that signal generates flow graph,Waveform display color is clearly demarcated; Not only can utilize the button auxiliary menus operation on instrument, can also facilitateUse mouse, keyboard operation, there is the larger free degree; Be configured in operation for completing identical functionIn convenience and efficiency, be improved. The graphic user interface that the present invention realizes, to draw by instrumental function classificationThe window dividing is unit, and configuration information shows abundant, and signal graph and waveform show appeal. DifferentThe allocation window mutual exclusion demonstration of function, interface is clean and tidy, unified. Graphic user interface retains menu operation meritCan, bring cordial feeling and experience sense to user. User can pass through two kinds of different mode of operation operation instrumentsDevice, freely convenient. The graphic user interface that the present invention realizes has been realized the perfection fusion of two kinds of modes of operation,In the preferred embodiment of the invention, by setting up mapping relations and message management class, for window orAny one operation of menu, both can realize synchronous and interaction, is consistent. With existing user circleFace mode of operation is compared, and in operation convenience and efficiency, is improved before.
Those skilled in the art can carry out various remodeling and change to the present invention. Therefore, the present invention is coveredVarious remodeling and change in the scope that falls into appending claims and equivalent thereof are covered.