Summary of the invention
In view of this, present invention is primarily targeted at a kind of method providing file to show, with
Enable users to find required file faster.
The method that the file that the present invention provides shows, including:
A, travel through currently accessed file, it is thus achieved that this document folder comprise each subfile
The bibliographic structure of folder, and the file under each file;
E, on screen, specify each sub-folder, the breviary of each file described in position display
Figure.
By upper, it is possible to achieve just demonstrate the literary composition in this sub-folder when not accessing sub-folder
Part so that user can comparatively fast find required file, decreases user and accesses each sub-folder
Operating procedure, almost without remembering document directory structure, facilitate user, design is more
Hommization.
Wherein, also include after step A:
B, bibliographic structure according to described file, for each sub-folder of various level and
Each file distributes corresponding level attributes value;
C, each file of the most different level property value distribute different with each file
Display size property value;
Show described in step E and also include: the display size attribute according to being distributed processes each
File, the display of thumbnail of each file.
Wherein, display size property value described in step C with described level attributes value increase and
Reduce.
Wherein, show described in step E and also include: each sub-folder and the contracting of each file
Sketch map is arranged in order display according to the size of display size property value.
The thumbnail of this sample loading mode shows, is interviewed based on existing under the current file folder accessed
Ask that the probability of file is big, therefore display is big, it is simple to user is primarily upon these files, simultaneously
Alternative document under undersized preview sub-folder also ensure that the convenience that user checks,
And the convenience chosen by mouse or touch manner.
Optionally, the thumbnail of each file adjusts breviary according to the size of display size property value
The height of figure resolution.
By upper, according to different display size sizes, the resolution of thumbnail can be adjusted, so that
Must be accessed the employing high-resolution that file probability is big, with becoming apparent from of display, probability is little
Then use low resolution, reduce processor load, improve processor processing speed.
Optionally, also include before step E:
D, for each sub-folder and under color attribute corresponding to each file distribution;
Show described in step E and also include: process each file according to the color attribute distributed
Folder, the display of thumbnail of each file.
Wherein, the color attribute of file includes border color attribute or file color attribute;
Document color attribute includes the border color attribute that thumbnail shows.
By upper so that user can learn file which sub-folder corresponding of preview according to color
Optionally, described step E includes: specifies at screen one and divides above and below position
Do not show each sub-folder, the thumbnail of each file.
By upper, the mode as required that can realize is arranged the contracting of each sub-folder, each file
The position of sketch map, more flexible.
Optionally, the file of file to be shown selected by user is also comprised determining that before step A
Type;
Each file described in described step E is each file of described file type.
By upper, file to display is classified so that it is classification display so that in catalogue
Structure is loaded down with trivial details, in the case of inclusion relation complexity, it is ensured that only display to the user that selected file
The file of type (picture, music, video), it is simple to the quick locating file of user.
Detailed description of the invention
When accessing certain file, as clicked on certain file, as it is shown in figure 1, the present invention provides
The method that shows of file comprise the following steps:
Step 110: travel through currently accessed file and under each sub-folder, obtain
Obtain each file under the file and bibliographic structure, and each file traveled through, go forward side by side
Row cache.
Wherein, ergodic algorithm can use binary traversal algorithm, for this algorithm, the most not
Repeat again.
Step 120: according to the bibliographic structure of the described file obtained, for each file root
Set up corresponding level attributes according to its hierarchical depth, and the file in corresponding file is built
Vertical corresponding level attributes.Wherein, sub-folder level is the deepest, then the assignment of level attributes
The biggest.
In example as shown in Figure 2, for currently accessed file 0, file
The level attributes value of the file 1,2,3 under 0 is 1, file 1.1 under file 1,
1.2 and file 3 under file 3.1,3.2,3.3 level attributes value be 2, file
File 3.3.1,3.3.2,3.3.3 level attributes value under 3.3 is 3.
In like manner, for currently accessed file 0, the file (File) under file 0,
If file F0A, F0B level attributes value is 1, the file under file 1,2,3, such as literary composition
Part F1.0A, F2.0A, F3.0A level attributes value is 2, the file under file 3.3, as
File F3.3.0A level attributes value is 3, file F3.3.1.0A under file 3.3.1,3.3.2,
F3.3.2.0A level attributes value is 4.
Step 130: for the display chi that the file of different level property values is different with file distribution
Very little property value.Wherein, level attributes value is the least, then the display size property value distributed is then
The biggest.
Wherein, the display size attribute of file can be carried out respectively with the display size attribute of file
Distribution, so that the display size of the file of same level property value and file can be divided
Do not arrange.
In example as shown in Figure 2, according to level attributes value, file 1,2,3 correspondence one
Identical display size property value m, the corresponding phase of file 1.1,1.2,3.1,3.2,3.3
Same display size property value n, corresponding identical the showing of file 3.3.1,3.3.2,3.3.3
Show size attribute value o, and m > n > o.
In like manner, the corresponding identical display size property value m ' of file F0A, F0B, file
Corresponding identical the display size property value n ', file F3.3.0A of F1.0A, F2.0A, F3.0A
Corresponding display size property value o ', corresponding identical the showing of file F3.3.1.0A, F3.3.2.0A
Show size attribute value p ', and m ' > n ' > o ' > p '.
Step 140: for each file and the color of its lower each file distribution correspondence corresponding
Attribute so that file and under document color property value identical.
Such as in the example shown in Fig. 2, file F0A, F0B color attribute is identical, file
1 is identical with file F1.0A color attribute, and file 2 is identical with file F2.0A color attribute,
File 3 is identical with file F3.0A color attribute, file 3.3 and file F3.3.0A face
Color attribute is identical, and file 3.3.1 is identical with file F3.3.1.0A color attribute, file
3.3.2 identical with file F3.3.2.0A color attribute.
For file, color attribute can be border color attribute or file color attribute.
Can be border color attribute for each document color attribute.
Step 150: specific bit sets up vertical subfield on screen;To be divided above described subfield
Size, the color attribute joined process successively and show each file;With institute below subfield
The size of distribution, color attribute process the thumbnail showing each file successively;Wherein each
Sub-folder and each file are arranged in order according to the size of size attribute.
When showing that user accesses file 0 such as Fig. 3, the schematic diagram shown by screen (does not shows
Go out color).
When showing that user accesses file 3 such as Fig. 4, the schematic diagram shown by screen (does not shows
Go out color).It can be appreciated that when accessing file 3, can be using file 3 as currently
The file accessed, re-executes above-mentioned steps 110 to 150.
As Fig. 5 shows that the inventive method is applied to the schematic diagram that screen shows, wherein in screen
Between be used for showing institute's filesselected, lower section is i.e. for showing Fig. 3 of the present invention, interior shown by 4
Hold.Three frame respectively videos above screen, audio frequency, picture click frame, Yong Huxuan
Select video, audio frequency or picture when clicking frame, then lower section only shows respective file type, wherein,
Shown file type will hereinafter be described.
As Fig. 6 shows the schematic diagram of the method that the file of the another kind of present invention shows, this figure
In, each file, according to its different level attributes or the value of display size attribute, is longitudinally arranged
Row, the value of same level attribute or display size attribute is transversely arranged.
It addition, such as Fig. 3, in 4, the quantity of file to display and file thumbnail can
To be set respectively, when the quantity of file or file exceed setting quantity or often screen can
During the quantity shown, then will reveal whether arrow such as figure both sides, by clicking on arrow or passing through phase
The button (such as key position) answered controls not shown file or file moves to screen and shows.
Visible, by the display mode of above-mentioned file Yu file subfield, define file
Often shield display number, it is to avoid as background technology, affect this because file is too many
The lookup of file under file.The speed that media file is searched can be accelerated, improve file clear
Look at efficiency.
Further, due to the present invention, the display of file, except when file in preceding document folder, is also wrapped
File in enclosed tool file.Such that make user click through certain sub-folder the most layer by layer
Catalogue, it is also possible to find described file and choose.
Further, according to the present invention, when user successively accesses sub-folder, shown file
It is file under the file under accessed file and subdirectory thereof, shown file
Quantity can reduce successively, when accessing the deepest file, the most only shows under this document folder
File.Visible, along with the deep layer of sub-folder accesses, shown quantity of documents reduces,
When not arriving final act folder, just will reveal whether that required file is supplied to user, reduce literary composition
Part folder visit capacity.
It addition, the present invention uses the literary composition of different display size size always according to different level attributes
Part thumbnail, the file of the level of currently accessed file is easier to be looked into by such user
See, adopt thumbnail in this way, allow for the accessed lower existence of current file folder
The probability of accessed file is big, therefore display is big, it is simple to user is primarily upon these files,
Alternative document under the most undersized preview sub-folder also ensure that the facility that user checks
Property, and the convenience chosen by mouse or touch manner.And, show according to difference
Size, can adjust the resolution of thumbnail, so that accessed file probability is big
Use high-resolution, with becoming apparent from of display, the then employing low resolution that probability is little, reduce
Processor load, improves processor processing speed.
It addition, the present invention uses same color attribute for the file under file and its, as
The file that sample background color same color corresponding with the icon of housing color is arranged so that user
File which sub-folder corresponding of preview can be learnt according to color.
It is understood that, it is also possible to file to display is classified, as entered according to suffix name
Row classification so that it is classification display so that loaded down with trivial details at bibliographic structure, the feelings that inclusion relation is complicated
Under condition, it is ensured that only display to the user that selected file type (picture, music, video)
File, it is simple to the quick locating file of user.It is illustrated below:
Wherein, the file type that television is mainly used has 3 kinds: video, music, picture,
Can the suffix name that comprised of prespecified Miscellaneous Documents, so when by corresponding file type
When entrance enters, then said method only travels through the file of the corresponding the type of display.Wherein, institute
State file type entrance and determine the file type selected by user for realization, such as, can be right
Answer the icon of described 3 kinds of file types.Below this display is illustrated:
When selecting video entry to enter 1 grade of catalogue of USB device, travel through each file and son
File according to video suffix name, as .mp4 .mov .xvid .m4v .asm.
avi、.asf、.wmv、.flv、mkv、.rm、.rmvb、.ts、m2ts、mt
Video file is leached by s, tp, trp .dat .mpg, mpeg .vob etc., display
At document location, alternative document does not shows, can find video file more intuitively;
When selecting music portal to enter 1 grade of catalogue of USB device, travel through each file and son
File according to video suffix name, as .mp3 .wma .asf .wav .aac.
Music file is leached by mp4 .M4A .ogg .flac etc., shows at document location,
Alternative document does not shows, can find music file more intuitively;
When selecting picture entrance to enter 1 grade of catalogue of USB device, travel through each file and son
File is according to video suffix name, and such as .jpg .jpeg .bmp .png .gif etc. are by picture literary composition
Part leaches, and display is at document location, and alternative document does not shows, can find more intuitively
Picture file.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention,
All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement made
Deng, should be included within the scope of the present invention.Such as, direction described herein
Key, it is also possible to for page turning key.