Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, by the emotion icons in the emotion icons memory is sorted by default sortord, and the emotion icons after will sorting is shown to the user, thereby the emotion icons that the user is searched more easily and need to select is accelerated the communication exchange between the user.
The process that realizes the emotion icons sending function by IM software is as follows: after the user is by account number and password login IM software, the main panel module of IM software will load contacts list and the group list in the local account, and be presented in the main panel.When the main panel of IM software detects mouse double-click message, obtain the contact person's corresponding contact number according to the current position of mouse, and export the session window corresponding with this contact person with this position.
When this session window detects emotion icons and selects request, read all emotion icons in the emotion icons memory, and the emotion icons that all emotion icons are presented at output is selected window, select for the user.The interface pointer of current sessions window for the response readjustment is set simultaneously.After the user selects window to select certain emotion icons from emotion icons, the type and the corresponding parameters of the emotion icons that transmits in the interface of session window according to readjustment parse data, and be presented at the information input area of session window, by the message sending function of IM software, the emotion icons of selecting is sent to the contact person or the group of selection.
Fig. 1 shows the realization flow of the display packing of the emotion icons that the embodiment of the invention provides, and details are as follows:
In step S101,, the emotion icons of storing is sorted by default sortord.Wherein Yu She sortord can be to use the situation of emotion icons to carry out perhaps manually dragging the mode that sorts by the user from the mode that sorts recently by the user;
In step S102, show the emotion icons after sorting.
When emotion icons is to use the situation of emotion icons to carry out when sorting recently according to the user, when the emotion icons that shows after sorting, can be behind the emotion icons that the user need to select, select the appropriate location of window at emotion icons, create a nearest emotion icons and use the tabulation viewing area, tabulate according to showing the nearest use emotion icons after the ordering, use the tabulation viewing area to create the schematic drawing of the emotion icons corresponding at above-mentioned nearest emotion icons, show and use emotion icons to tabulate recently with using emotion icons in the tabulation recently; Also can be when the user opens emotion icons selection window once more by the emotion icons selector button in the session window, select the appropriate location of window at emotion icons, create a nearest emotion icons and use the tabulation viewing area, tabulate according to showing the nearest use emotion icons after the ordering, use the tabulation viewing area to create the schematic drawing of the emotion icons corresponding at above-mentioned nearest emotion icons, show and use emotion icons to tabulate recently with using emotion icons in the tabulation recently.
When emotion icons is when sorting by the mode that the user manually drags, then during the emotion icons after showing ordering, the user can be dragged emotion icons after the ordering and be presented at expression and select in the window.
What Fig. 2 showed that the embodiment of the invention provides uses the situation of emotion icons to carry out realization flow from ordering according to the user recently, and details are as follows:
In step S201, receive the emotion icons selection request that the user sends, and from the emotion icons memory, read the emotion icons of selection.When the user clicks emotion icons selector button on session window, export an emotion icons to the user and select window, and read the emotion icons of storing in the emotion icons memory, the emotion icons that reads is presented at this emotion icons selects in window.The user sends an emotion icons and selects request by the emotion icons in the click emotion icons selection window, and the expression of selection reads this emotion icons in selecting to ask according to this icon from the emotion icons memory.
In step S202, the emotion icons that reads is stored in the nearest use emotion icons tabulation.Wherein use the emotion icons tabulation to adopt the mode of chained list that the emotion icons that adds is stored recently.
In step S203, sort by the emotion icons of default sortord to storage in the nearest use emotion icons tabulation.Wherein Yu She sortord comprises the mode that time of being used for the last time by emotion icons sorts, when adopting this sortord, as long as the each used emotion icons of user is arranged in the foremost of nearest use emotion icons chained list;
Perhaps press the user in the default time interval (in) as one day, the mode that the frequency of use emotion icons sorts, when adopting this sortord, also comprising the steps: to add up the user uses emotion icons in the default time interval number of times, the frequency of utilization of promptly adding up emotion icons before the step S203.In step S203 according to above-mentioned statistics, descending by the emotion icons frequency of utilization sorts to the emotion icons in the nearest use emotion icons chained list, be about to the maximum emotion icons of number of times that in the default time interval, uses, be arranged in the foremost of nearest use emotion icons chained list.
What Fig. 3 showed that preferred embodiment of the present invention provides uses the situation of emotion icons to carry out realization flow from ordering according to the user recently, its step S301, step S302 and step S303 step S201, step S202 and the step S203 with shown in Figure 2 respectively are identical, its difference only is, after step S303, also comprise the steps:
In step S304, judge whether total number of using the emotion icons of storage in the emotion icons tabulation recently surpasses default value, if, execution in step S305, otherwise ordering finishes.When total number of the emotion icons in the nearest use emotion icons tabulation reaches certain value, because the emotion icons that can show in the emotion icons selection window is limited, all emotion icons in the emotion icons tabulation all may be shown, at this moment, set the higher limit that nearest emotion icons uses storage emotion icons in the tabulation as required.When total number of the emotion icons of storage in the nearest use emotion icons tabulation surpasses this higher limit, execution in step S305, otherwise ordering finishes.
In step S305, the emotion icons of chained list tail storage in the emotion icons chained list is used in deletion recently.Because using the emotion icons in the emotion icons tabulation recently is to adopt the mode of chained list to store, after last ordering service time of the frequency of utilization of emotion icons or emotion icons, the emotion icons that is positioned at the chained list tail is to use frequency lower, perhaps last service time the earliest, therefore select the emotion icons of deletion chained list tail, be convenient to use recently emotion icons list for user most recently used emotion icons to store and show.
The realization flow that the mode that manually drags by the user that Fig. 4 shows the embodiment of the invention to be provided sorts to emotion icons, in embodiments of the present invention, when creating emotion icons selection window, the mode of this window for pulling is set, this expression promptly is set selects window to receive to pull object, details are as follows:
In step S401, obtain the emotion icons that carrying out that the user selectes manually drags ordering.Select the emotion icons selection operation that carries out in the window by detecting the user at emotion icons, can obtain the emotion icons that carrying out that the user selectes manually drags ordering.Select manually to drag the emotion icons of ordering by the emotion icons in the click emotion icons selection window as the user, by detecting the clicking operation of mouse in emotion icons selection window, obtain the pairing emotion icons in position that this click operation takes place.The user also can select manually to drag the emotion icons of ordering by the shortcut of keyboard simultaneously, by detecting the emotion icons that the user selects, the position that obtains emotion icons
In step S402, obtain the position of the selected emotion icons of placement that the user selectes.Select the choice of location operation carried out in the window by detecting the user at emotion icons, can obtain the position of the emotion icons that placement that the user selectes selects.Select to select emotion icons in the window as the user by the click emotion icons, drag selected emotion icons simultaneously, and mouse is moved to the position of selected this emotion icons of placement, select mouse drag message and mouse mobile messaging in the window by detecting mouse at emotion icons, obtain the position of the selected emotion icons of placement that the user selectes.
In step S403, the emotion icons of selecting is positioned over the position of the selected emotion icons of placement that the user selectes, thereby realize needs according to the user, the random emotion icons that drags is selected emotion icons in the window, reaching emotion icons selects the emotion icons in the window to arrange by the order that the user needs, have great convenience for the user the emotion icons of searching and selecting to need, accelerated between the user communication with exchange.When the emotion icons that will select is positioned over the position that the user selectes, all emotion icons that the emotion icons of this position correspondence and this position is later all move after successively, thereby make the emotion icons that drags after the ordering not change putting in order of original emotion icons as much as possible.
Fig. 5 shows that the embodiment of the invention provides when using the situation of emotion icons that emotion icons is sorted recently according to the user, and the structure of emotion icons display system for convenience of explanation, only shows the part relevant with the embodiment of the invention.This system can be the software unit that is built in the IM instrument, hardware cell, the perhaps unit that combines of software and hardware.
Store the various emotion icons that are used for communication exchange in the emotion icons memory 51.
Emotionicons order module 52 sorts to the emotion icons of storing in the emotion icons memory 51 by default sortord.Wherein Yu She sortord can be to use the situation of emotion icons to carry out perhaps manually dragging the mode that sorts by the user from the mode that sorts recently according to the user.Emotionicons display module 53 shows the emotion icons after the ordering.
Use the situation of emotion icons recently according to the user when emotionicons order module 52 emotion icons is carried out when sorting, emotionicons order module 52 comprises that emotion icons selection request receiver module 521, emotionicons memory module 522 and emotion icons are fromorder module 523.
Wherein emotion icons selects request receiver module 521 to receive the emotion icons selection request that the user sends, and reads the emotion icons that this emotion icons selects request to select from emotion icons memory 51.Can select emotion icons in the window by the click emotion icons as the user, select request, also can select window to select emotion icons at emotion icons, send emotion icons and select request by keyboard to send emotion icons.
Emotionicons memory module 522 is stored to the emotion icons that reads in the nearest use emotion icons tabulation.Wherein use the emotion icons tabulation to adopt the mode of chained list that the emotion icons that adds is stored recently.The emotion icons of emotion icons storage inorder module 523 is tabulated to nearest use emotion icons by default sortord sorts.Wherein Yu She sortord comprises the mode that time of being used for the last time by emotion icons sorts, when adopting this sortord, as long as the each used emotion icons of user is arranged in the foremost of nearest use emotion icons chained list;
Perhaps press the user in the default time interval (in) as one day, the mode that the frequency of use emotion icons sorts, when adopting this sortord, emotion icons also comprises frequency of utilizationstatistical module 5231 fromorder module 523, wherein frequency of utilizationstatistical module 5231 statistics users use the number of times of emotion icons, the i.e. frequency of utilization of emotion icons in the default time interval.Emotion icons is from the statistics oforder module 523 according to frequency of utilizationstatistical module 5231, descending by the emotion icons frequency of utilization sorts to the emotion icons in the nearest use emotion icons chained list, be about to the maximum emotion icons of access times in the default time interval, be arranged in the foremost of nearest use emotion icons chained list.
Because the emotion icons that can show in the emotion icons selection window is limited, when total number of the emotion icons in the nearest use emotion icons tabulation reaches certain value, all emotion icons in the emotion icons tabulation all may be shown, at this moment, set the higher limit that nearest emotion icons uses storage emotion icons in the tabulation as required.Storage judge module 524 judges whether total number of using the emotion icons of storage in the emotion icons tabulation recently surpasses preset upper limit value.When total number of the emotion icons of storage in the nearest use emotion icons tabulation surpasses this higher limit, according to the emotion icons chained list after 52 orderings of emotion icons order module, the emotion icons of chained list tail storage in the nearest use emotion icons chained list after the 525 deletion orderings of emotion icons removing module, with Free up Memory, be convenient to use recently emotion icons list for user most recently used emotion icons to store.
When the situation of using emotion icons according to the user recently sorts to emotion icons, emotionicons display module 53 can be behind the emotion icons that the user need to select, select the appropriate location of window at emotion icons, create nearest emotion icons and use the tabulation viewing area, show and use the emotion icons tabulation recently; Also can when the user open emotion icons selection window once more,, create nearest emotion icons and use the tabulation viewing area, show the tabulation of nearest use emotion icons in the appropriate location of emotion icons selection window.
When the mode that the employing that Fig. 6 shows the embodiment of the invention to be provided manually drags sorted to emotion icons, the structure of the display system of emotion icons for convenience of explanation, only showed the part relevant with the embodiment of the invention.This system can be the software unit that is built in the IM instrument, hardware cell, the perhaps unit that combines of software and hardware.The difference part of the ordering system of itself and emotion icons shown in Figure 5 only is that emotionicons order module 62 comprises display system 621, emotion icons placement location acquisition module 622 and the emotionicons placement module 623 of emotion icons.
Wherein emotion icons selects module 621 to obtain the emotion icons that carrying out that the user selectes manually drags ordering.Select the emotion icons selection operation that carries out in the window by detecting the user at emotion icons, can obtain the emotion icons that carrying out that the user selectes manually drags ordering.From emotion icons memory 61, read the emotion icons of selection.Select emotion icons in the window as the user by the click emotion icons,, can obtain the emotion icons that carrying out that the user selectes manually drags ordering by detecting this click operation
The positional information of the emotion icons that the placement that emotion icons placement location acquisition module 622 reception users select is selected.The user is by the emotion icons in the click emotion icons selection window, after selecting certain emotion icons, do not unclamp mouse, and rolling mouse, by detecting mouse mobile messaging and the released message of mouse, can obtain the positional information of the emotion icons that placement that the user selectes selects.
Emotionicons placement module 623 is positioned over the position that emotion icons placement location acquisition module 622 receives with the emotion icons of selecting, thereby realizes the needs of emotion icons by the user, and random arranges.
In embodiments of the present invention, select the emotion icons in the window to arrange by expressing one's feelings according to the order after sorting, the emotion icons that makes the user search more easily and to select to use always is accelerated the communication exchange between the user, has satisfied user's individual demand.When using the situation of emotion icons that emotion icons is sorted recently according to the user simultaneously, make the user search nearest use or the frequent emotion icons that uses more easily; When the mode that manually drags by the user sorts to emotion icons, make the user can be as required, self-defined expression be selected putting in order of emotion icons in the window, has satisfied user's personal needs.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.