Summary of the invention
Method and device that the embodiment of the present invention provides a kind of file to show, be intended to solve file that the file methods of exhibiting of prior art exists or file shortcut while being directly illustrated in main interface, main interface is in disorder, be not easy to find respective file, and, when file is illustrated on main interface, can only carrys out opened file folder by double-click folder icon and could show the file in file, operate loaded down with trivial detailsly, be not easy to the problem of the file in user's browse through folders.
On the one hand, a kind of method that provides file to show, described method comprises:
Reception is held the switching of the document container of file and is shown instruction;
Switch the display state of described document container, so that described document container is by the described file of multi-form displaying, described display state comprises icon state, preview state and deployed condition, when described document container is during in icon state, shows the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.
On the other hand, the device that provides a kind of file to show, described device comprises:
Command reception unit, shows instruction for the switching that receives the document container that holds file;
Switch unit, for switching the display state of described document container, so that described document container is by the described file of multi-form displaying, described display state comprises icon state, preview state and deployed condition, when described document container is during in icon state, show the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.
In the embodiment of the present invention, reception is held the switching of the document container of file and is shown instruction, switch the display state of described document container, so that described document container is by the described file of multi-form displaying, described display state comprises icon state, preview state and deployed condition, when described document container is during in icon state, show the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.The present invention, switches by the different display states of document container, shows file with various forms, facilitates user's browser document, has guaranteed the clean and tidy of current interface, promotes current interface perception.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, reception is held the switching of the document container of file and is shown instruction, switch the display state of described document container, described display state comprises icon state, preview state and deployed condition, when described document container is during in icon state, show the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
Embodiment mono-
The realization flow of the method that the file that Fig. 1 shows the embodiment of the present invention one to be provided is shown, details are as follows:
It should be noted that, in the present embodiment and following examples, described file includes but not limited to: file and the shortcut of the needs management in file, web application and other high in the clouds in file, the net dish of local other catalogues, current interface includes but not limited to: desktop and other main interface.
In step S101, instruction is shown in the switching that receives the document container that holds file.
In the present embodiment, described switching shows that instruction is the instruction of switching the different display states of described document container, so that browse at the different display states of described document container the file that it holds.Described document container is a kind of instrument that holds file and show file, there is multiple display state, can hold the file of multiple fixed qties, described fixed qty determines according to the screen size of smart machine, be as the criterion so that browse, as shown in Figure 2 the pictorial element of deployed condition of document container, under the deployed condition of document container, user's 12 file icons that browser document container holds at a glance.Its arrangement in document container can be by the time order and function of copy, and the frequency height that also can click according to user can also be according to the letter sequence of document container title etc.The corresponding document container title of each document container, document container title can be named according to the type of the file of its management, as preserves the document container of various game, can play by called after; Preserve the document container of chat tool, can called after communication etc.At described document container, during in deployed condition or icon state, document container title is illustrated in the remarkable position of the title frame of described document container.General, title frame is placed in the top of described document container.Under current interface, file is too much, holds file by document container, has saved the display space of current interface, can guarantee the clean and tidy of current interface, promotes current interface perception.
In step S102, switch the display state of described document container, so that described document container is by the described file of multi-form displaying, described display state comprises icon state, preview state and deployed condition, when described document container is during in icon state, show the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.
In the present embodiment, described display state comprises icon state, preview state and deployed condition.Wherein, described icon state b is the minimized display state of described document container, minimizes the file of displaying, on the icon of described document container as shown in b in Fig. 3,4; Described icon state c is the display state in the middle of interim floating the above document container of layer, and its file holding with detail display, as shown in c in Fig. 4,5; Described deployed condition a is at the maximized display state of the above document container of current window, with detail display and can operate the file that it holds, as shown in a in Fig. 2,3,5.The different images element that the different display states of document container are made with skin engine is shown.Concrete, when described document container is during in icon state, show the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.Described interim floating layer includes but not limited to: any of special-shaped window layed windows and other interface forms, the size of described interim floating layer is no more than the size of current interface, is suspended on current window.File icon corresponding to All Files that document container comprises all will be presented on interim floating layer.
Preferably, the display state of the described document container of described switching, so that described document container is by the described file of multi-form displaying, specifically comprises:
When described document container is during in deployed condition, receive the first instruction, the display state of described document container is switched to icon state;
Concrete, described the first instruction is for switching to the deployed condition of document container the instruction of the icon state of document container, and described the first preset instructions includes but not limited to: click commands corresponding to window title frame in display state a.As described in the deployed condition of 3 document containers that show to the switching effect of the icon state of document container, like this in the file that user does not use or browser document container holds, on current window, minimize displaying, reduce current interface bearing capacity, make interface more clean and tidy and attractive in appearance, be applicable at document container in deployed condition, user does not need the situation of browser document container again.
When described document container is during in deployed condition, receive the second instruction, the display state of described document container is switched to preview state;
Concrete, described the second instruction switches to the icon state of document container the instruction of the preview state of document container, and described the second instruction includes but not limited to: the click commands of the icon of document container described in icon state b.Receive the click commands of the icon of described document container, the viewing area beyond the icon of described document container, launches interim floating layer, on described interim floating layer, shows described file.As described in the icon state of 4 document containers that show to the effect of the switching of the preview state of document container, be applicable at document container in icon state, user needs in detail, the situation of browser document container clearly.
When described document container is during in preview state, receive the 3rd instruction, the display state of described document container is switched to icon state;
Concrete, described the 3rd instruction is for switching to the preview state of document container the instruction of the icon state of document container, and described the 3rd instruction includes but not limited to: the corresponding operating instruction of other controls or the focus of described interim floating layer in preview state c except interim floating layer lose event.The focus that receives the command adapted thereto of other controls or receive described interim floating layer loses event, and described interim floating layer is packed up, and only shows the icon of described document container.Realize the preview state of document container to the switching of the icon state of document container, in the file situation that does not use document container to hold, document container is minimized to displaying, save interface shape, be applicable at document container in preview state, the file of user's browser document container is complete, makes document container in minimized displaying situation.
When described document container is during in preview state, receive the 4th instruction, the display state of described document container is switched to deployed condition.
Concrete, described the 4th instruction is for switching to the preview state of document container the instruction of the deployed condition of document container, and described the 4th instruction includes but not limited to: the click commands corresponding to title of interim floating layer in preview state c.The click commands that receives the title of described interim floating layer, window of full screen display is shown described file in described window.As described in the preview state of 5 document containers that show to the effect of the switching of the deployed condition of document container, at document container, in deployed condition, user can operate arbitrarily wherein a certain file.
Wherein, the applicable scene take desktop and document container as concrete object factory the present embodiment is as follows:
At desktop, user is placed in multiple files or shortcut in document container, and document container is in deployed condition, as shown in Figure 2 deployed condition a, wherein, the title that XXX is document container, comprising 12 file icons.User double-clicks the title of deployed condition a, and the display state of described document container is switched to icon state from deployed condition, and its process as shown in Figure 3.Icon state b shown in this Fig. 3 of user click, is switched to preview state by the display state of described document container from icon state, and its process as shown in Figure 4, shows the icon of the file holding in described document container by interim floating layer.If user has clicked beyond interim floating layer or interim floating layer loses focus, interim floating layer is packed up, a display icon state b.In user click Fig. 4, the title of the interim floating layer of preview state c, is switched to deployed condition by the display state of described document container from preview state, and its process as shown in Figure 5.The flexible switching of the display state by document container, makes file that desktop shows still less, and on desktop, display file or document container are very clear, user need to operate or browser document container in file time, operate simpler.
The present embodiment, can switch by the different display states of document container, shows file with various forms, facilitates user's browser document, has guaranteed the clean and tidy of current interface, has promoted current interface perception.
Embodiment bis-
The concrete structure block diagram of the device that the file that Fig. 6 shows the embodiment of the present invention two to be provided is shown, for convenience of explanation, only shows the part relevant to the embodiment of the present invention.In the present embodiment, the device that this file is shown comprises:command reception unit 61 andswitch unit 62, describedswitch unit 62 comprises the first handover module, the second handover module, the 3rd handover module and the 4th handover module.
Wherein,command reception unit 61, shows instruction for the switching that receives the document container that holds file;
Switch unit 62, for switching the display state of described document container, so that described document container is by the described file of multi-form displaying, described display state comprises icon state, preview state and deployed condition, when described document container is during in icon state, show the icon of described document container in current interface; When described document container is during in preview state, show the icon of described document container in current interface, and show an icon for the file holding in described document container by interim floating layer; When described document container is during in deployed condition, on current window, show the icon of the file holding in described document container.
Further, describedswitch unit 62 comprises:
The first handover module, for receiving the first instruction, is switched to icon state by the display state of described document container;
The second handover module, for receiving the second instruction, is switched to preview state by the display state of described document container;
The 3rd handover module, for receiving the 3rd instruction, is switched to icon state by the display state of described document container;
The 4th handover module, for receiving the 4th instruction, is switched to deployed condition by the display state of described document container.
Further, described the second handover module is specifically for receiving the click commands of icon of described document container, and the viewing area beyond the icon of described document container, launches interim floating layer, on described interim floating layer, shows described file.
Further, described the 3rd handover module loses event specifically for receiving the command adapted thereto of other controls or receiving described interim focus of floating layer, and described interim floating layer is packed up, and only shows the icon of described document container.
Further, described the 4th handover module is specifically for receiving the click commands of the described interim title that floats layer, and window of full screen display is shown described file in described window.
The device that the file that the embodiment of the present invention provides is shown can be applied in the embodiment of the method one of aforementioned correspondence, and details, referring to the description of above-described embodiment one, do not repeat them here.
It should be noted that in said system embodiment, included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method is can carry out the hardware that instruction is relevant by program to complete, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.