Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 4 shows the process flow diagram according to the method that is used for editor's organic chemistry structural formula of the embodiment of the invention, may further comprise the steps:
Step S10, monitoring is from the click of mouse;
Step S20 determines that click location is the position without object that is in the interactive chemical composing interface in the organic chemistry piece of focus condition;
Step S30, if in the organic chemistry piece without focus, then click location is set to selected state, and has been shown as color dot.
Correlation technique provides suitable method of operating not to choosing the type of the empty position (position that does not namely have object) in the organic chemistry piece.And in the present embodiment, to the position that mouse is clicked judge judge whether vitochemical object (atom, chemical bond etc.), if there is no any object are arranged on the mouse position, the position of then upgrading current click is selected state, thereby various operations can be provided.Present embodiment more is conducive to the fast operating that uses keyboard to set type, because keyboard itself does not possess the ability of intended target point, but keyboard operation can utilize color dot to realize fast station-keeping ability.
Fig. 5 shows the synoptic diagram according to the selected state of the embodiment of the invention, and mouse is clicked white space on the right, and then click location is set to selected state, and is shown as red point.Need to prove that because the cause of publishing, accompanying drawing is shown as black with red point.In an embodiment of the present invention, realize that with red point this has color dot, and this selected state be called red dotted state that this operation can be described as red point operation.This red point operation is applicable to the organic chemistry of piece formula and sets type, and especially suitable form with plug-in unit is integrated in the middle of other softwares for composing.
Red point operation can save the operation tool that needs the location, can adopt the mode of button to produce the content of wanting.So just avoid complicated tool design, shortened the development time, also saved the layout space simultaneously.
Preferably, this method also comprises: if the organic chemistry piece at click location place is not in the focus condition, then ignore this click.If the organic chemistry piece at click location place is not in the focus condition, can think that then the user does not plan this organic chemistry piece is carried out any operation, it may be maloperation that current mouse is clicked, and by ignoring this click, thereby can eliminate user's maloperation.
Preferably, this method also comprises: when having focus in the chemical composing of the interactive mode interface, then to click location cancellation selection mode, and be concealed with color dot; When clicking when the focus disappearance and without new mouse, then click location is set to selected state again, and again shows color dot.It is mutual exclusion that red point operation and the vitochemical space of a whole page are chosen focus, this preferred embodiment is so that only when the organic chemistry piece is without any selected object, red point just can occur, and has so just avoided the conflict with other operation, avoided the ambiguity operation, made operation logic become simpler.Be conducive to suitable user and adapt to rapidly this operation, reduce learning time.
Preferably, this method also comprises: if had color dot in the organic chemistry piece, what then cancellation had existed has color dot and a canceling position selected state that color dot is arranged to having existed.This has realized the uniqueness of red point, and in current organic chemistry piece, can only there be one in red point, prevents that operation from producing ambiguity.
Preferably, this method also comprises: allow the user to create chemical object in the mode of keyboard and/or mouse action in click location, such as setting up atom, chemical bond, label, plus sige, reaction arrow etc.; The chemical object that establishment is set is selected state, and cancellation has color dot, and to click location cancellation selected state.This preferred embodiment makes the discrete structure organic structure possibility that becomes, and has realized the content splicing that piece formula organic chemistry is set type, and can reduce the quantity of the Control Tool by red point operation, reduces development difficulty, has improved piece formula chemistry editor's mutual and ability to express.Improve ease for use and the composing efficient of chemical composing, also improved composing speed and the efficient of organic chemistry structural formula simultaneously.
Fig. 6 shows the according to another embodiment of the present invention synoptic diagram of selected state; Fig. 7 shows the synoptic diagram that creates plus sige among the embodiment of Fig. 6; Fig. 8 shows the synoptic diagram that creates the reaction arrow among the embodiment of Fig. 6; Fig. 9 shows the synoptic diagram that creates atom or atomic tag among the embodiment of Fig. 6; Figure 10 shows the synoptic diagram that creates a plurality of objects among the embodiment of Fig. 6.As shown in the figure, be the red dotted state of the chemical structural formula of Cefixime, can create in the position of red some the object of various needs, for example plus sige, reaction arrow, atom or atomic tag, a plurality of objects etc.
Figure 11 shows the synoptic diagram according to the device that is used for editor's organic chemistry structural formula of the embodiment of the invention, comprising:
Monitoring module 10 is used for monitoring from the click of mouse;
Determination module 20 be used for to determine that click location is that interactive chemical composing interface is in the position without object in the organic chemistry piece of focus condition;
Coloured point module 30, if be used for the organic chemistry piece without focus, then click location is set to selected state, and has been shown as color dot.
Preferably, this device also comprises: ignore module, be not in focus condition if be used for the organic chemistry piece at click location place, then ignore click.
Preferably, this device also comprises: hide module, be used for when interactive chemical composing interface has focus, then to click location cancellation selection mode, and be concealed with color dot; Display module is used for disappearing and during without new mouse click, then click location is set to selected state again, and again shows color dot when focus.
Preferably, this device also comprises: update module, had color dot if be used for the organic chemistry piece, and then cancellation has existed color dot and the canceling position selected state that color dot is arranged to having existed.
Preferably, this device also comprises: creation module is used for allowing the user to create chemical object in the mode of keyboard and/or mouse action in click location; Shift module is selected state for the chemical object that establishment is set, and cancellation has color dot, and to click location cancellation selected state.
As can be seen from the above description, the present invention has realized a kind of new operation of choosing type, this is that it has solved the problem that keyboard can't be located to quick operating a kind of replenish of keyboard, a large amount of again composing of also having avoided that mouse action brings simultaneously and the efficiency that causes.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.