1. Technical Field
The present disclosure relates to electronic readers and methods for previewing files and, particularly, to an electronic reader and a method for previewing files capable of selecting the number of preview pages on an interface of the electronic reader.
2. Description of the Related Art
Mechanical buttons are usually provided on an electronic reader for users to flip through an electronic file displayed on the electronic reader. However, repeated pressing of the buttons to go through pages may give rise to boredom.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic reader and a method for previewing files. Moreover, in the drawings, like reference numerals designate corresponding parts throughout multiple views.
Referring to
The display unit 10 is for displaying electronic files and the resized pages. The resized pages display in the document window side by side and may be continuous or discontinuous in page number. If the resized pages displayed in the document window side by side are discontinuous, a particular number of pages between every two adjacent resized pages displayed in the document window are concealed. Referring to
In the embodiment, the input unit 40 may include a mode button (not shown) and a preview button (not shown), the mode button and the preview button are configured for instructing the electronic reader 100 to enter a reading mode and a preview mode respectively. In other embodiments, the mode button and the preview button may be mechanical buttons fixed on the electronic reader 100. When the electronic reader 100 enters the reading mode, a home page of a selected file is displayed on the display unit 11. Users can drag a diagonal line of the home page to resize the page (see
The processing unit 30 includes a display module 304, a detection module 301, a calculation module 302, and an analysis module 303. The display module 304 displays a page 20 of a selected file on the display unit 10 in response to an open file operation. The detection module 301 detects sliding touch signals in response to a slide operation on the page and transmits the sliding touch signals to the calculation module 302. The calculation module 302 determines a slide distance and a resizing proportion of the page 20 corresponding to the slide distance according to a pre-stored table and continuously resizes the page according to the real time resizing proportion. The table records the relation between the slide distance and the resizing proportion of the page. Referring to Table 1, Table 1 is an example of the table and records a number of relations between a number of slide distances and a number of resizing proportions. In Table 1, 1 cm slide distance corresponds to a resizing proportion 90%; 3 cm slide distance corresponds to a resizing proportion 60%.
The calculation module 302 calculates the size of the page 20 according to a determined resizing proportion and resizes the page 20 in real time. The display module 304 on the display unit 10 dynamically displays the real time resized process.
The analysis module 303 determines how many resized pages can to be displayed side by side in the document window according to the last determined resizing proportion of the page 20; the display module 304 further displays the resized pages with continuous or discontinuous in page number in the document window. In the embodiment, the number of resized pages displayed in the document window is four and the four resized pages are continuous in page number in the file (see
Referring to
In step S501, a display module 304 displays a page 20 of a file in a document window of a display unit 10.
In step S502, a detection module 33 detects sliding touch signals in response to the slide operation on the page and transmits the slide touch signals to a calculation module 302.
In step S503, the calculation module 302 determines a slide distance and a resizing proportion of the page 20 corresponding to the slide distance according to a pre-stored table and continuously resizes the page 20 according to the real time resizing proportion. The table records the relation between the slide distance and the resizing proportion of the page 20.
In step S504, a display module 304 dynamically displays the real time resized process on the display unit 10.
In step S505, an analysis module 303 determines how many resized pages can to be displayed side by side in the document window according to the last determined resizing proportion of the page 20.
In step S506, the display module 304 displays the resized pages including the page 20 in the document window and a forward direction button 101 and a backward direction button 102 below the resized pages. In the embodiment, the resized pages are defaulted to be continuous in page number, or defaulted to be discontinuous in page number.
In step S507, the display module 304 determines whether signals from the forward direction button 101 or the backward direction button 102 are received.
If the display module 304 receives signals from the forward direction button 101 or the backward direction button 102, in step S508, the display module 304 determines how many pages are to be concealed between every two adjacent pages displayed in the document window and the procedure goes to step S509; otherwise the procedure goes to the step S506.
In step S509, the display module 304 updates pages in the document window. In detail, if signals from the forward direction button 101 are received, the display module 304 reduces the number of pages concealed. If the pages displayed in the document window are continuous in page number and signals from the forward direction button 101 are received, the display module 304 does not respond to the signals. If signals from the backward direction button 102 are received, the display module 304 increases the number of pages that are concealed.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010573635.2 | Dec 2010 | CN | national |