Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description herein are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Further, as used herein, "and/or" means at least one of the connected objects, e.g., a and/or B and/or C, means 7 cases including a alone, B alone, C alone, and both a and B present, B and C present, a and C present, and A, B and C present.
The following describes a document processing method according to an embodiment of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a file processing method according to an embodiment of the present invention. The file processing method provided by the embodiment of the invention can be applied to electronic equipment. In practical applications, the electronic Device may be an electronic Device, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), a vehicle-mounted Device, or the like.
As shown in fig. 1, the file processing method may include the steps of:
step 101, receiving a first input, responding to the first input, and displaying N controls, wherein the first input is screen capture input or recording ending input, and N is a positive integer.
In specific implementation, the electronic device may generate a screenshot file and display the N controls in response to the screenshot input when receiving the screenshot input.
The electronic device may generate a recording file and display the N controls in response to the recording end input when receiving the recording end input. Further, the record ending input may be used to trigger the electronic device to end recording, end recording a screen, or end recording a video, and accordingly, the recording file may be a recording file, a screen recording file, or a video file.
In practical applications, N controls may be displayed in a floating window (also referred to as a floating frame). Further, the floating window can also comprise a thumbnail. For ease of understanding, please refer to fig. 2. In fig. 2, the screen 20 pops up a floating window 21, the floating window 21 including a thumbnail 22 and a control 23.
In one implementation manner, optionally, the N controls may include at least one of a first control and a second control, where a page corresponding to the first control may be used to determine a file name of the target file, and a page corresponding to the second control may be used to determine a storage location of the target file.
In another implementation manner, optionally, the N controls may include a third control, and a page corresponding to the third control may be used to determine the file name and the storage location of the target file.
It should be understood that the target file has a correspondence with the first input. Specifically, when the first input is screen capture input, the target file is a screen capture file; and if the first input is the recording ending input, the target file is a recording file.
And 102, receiving a second input of a target control in the N controls, and responding to the second input to display a page corresponding to the target control.
In this embodiment, each of the N controls is in a touchable state. As can be seen from the foregoing, the pages corresponding to different controls are different, and the functions of different pages are different. Therefore, in practical application, a user can select a target control for touch control according to own requirements.
In specific implementation, the display size of the page corresponding to the target can be flexibly adjusted.
And 103, determining at least one of a storage position and a file name of a target file on a page corresponding to the target control, wherein the target file is a screen capture file or a recording file.
In this embodiment, the electronic device may save the target file before, when, or after the page corresponding to the target control determines at least one of the saving location and the file name of the target file. The method can be determined according to actual requirements, and the embodiment of the invention is not limited to the method.
According to the file processing method, after recording or screen capturing is finished, the electronic device displays the N controls, and a user can trigger the electronic device to display a page corresponding to a target control by touching the target control in the N controls, so that at least one of a storage position and a file name of a target file is determined on the page. Therefore, compared with the prior art that a user can only change the file name and/or the storage position of the target file according to the requirement of the user after the target file is stored to the default storage position by the default file name, the file processing efficiency can be improved by the embodiment of the invention.
The following description deals with the case where different expressions of the target control correspond to each other.
In case one, the target control is the first control.
In case one, the page corresponding to the target control is a file name determination page.
Optionally, the determining, at a page corresponding to the target control, at least one of a storage location and a file name of the target file includes:
and determining the input information of the user on the file name determination page as the file name of the target file.
In this embodiment, the file name determination page may include an input box (or called an edit box), and the user may input information such as characters and symbols in the input box.
As shown in fig. 3, the file name determination page 31 may include an input box 32, a determination control 33, and a cancel control 34. In particular implementations, the user may enter information such as characters, symbols, etc. in the input box 32.
If the user clicks the determination control 33, the current input information in the input box 32 may be determined as the file name of the target file. If the user clicks on the cancel control 34, the target file may be named using a default file name.
It should be noted that the file name determination page in fig. 3 is only an example, and the concrete expression of the file name determination page is not limited thereto.
In other embodiments, the file name determination page may include M file names, where M is an integer greater than 1, for selection by a user. In this embodiment, the electronic device may determine a target file name selected by the user at the file name determination page as the file name of the target file. It should be noted that, in some embodiments, the file name determination page may include an input box and M file names.
And in case two, the target control is the second control.
In case two, the page corresponding to the target control is a storage location determination page.
Optionally, the determining, at a page corresponding to the target control, at least one of a storage location and a file name of the target file includes:
and determining a target saving position selected by the user from the candidate saving positions included in the saving position determination page as the saving position of the target file.
In a specific implementation, optionally, the saving position determination page may be as shown in fig. 4. In fig. 4, the saved position determination page 41 includes a selection box 42, a display box 43, a new control 44, a determination control 45, and a cancel control 46.
In which the selection box 42 shows the top-level folder directory already existing in the electronic device. During specific implementation, if a user executes a first touch operation on a certain directory, the electronic device can be triggered to determine the directory as a saved file of a target file; if the user executes a second touch operation on a certain directory, the electronic device can be triggered to display the next folder directory of the directory, and so on.
The display box 43 may display the target saving location selected by the user to prompt the user for the currently selected target saving location. Illustratively, as shown in FIG. 4, the selection box 42 includes a document folder, a movie folder, and a music folder. If the user performs the first touch operation on the document folder, the document folder may be displayed in the display frame 43. Of course, it should be understood that in other embodiments, the electronic device may prompt the user for the currently selected target saving location in other manners, such as highlighting the currently selected target saving location in the selection box 42, in which case the display box may not be included in the saving location determination page.
The user can touch the new control 44 to trigger the electronic device to establish a new storage location. Specifically, the user may trigger the electronic device to create a new directory under the current directory by touching the new creation control 44.
If the user touches the determination control 45, the target saving position currently displayed in the display frame 43 may be determined as the saving position of the target file. If the user touches the cancel control 46, the default save location may be determined as the save location of the target file. Alternatively, the default storage location may be preset, or set to the most recently used storage location.
It should be noted that the saving position determination page in fig. 4 and 5 is only an example, and the specific representation form of the saving position determination page is not limited thereby.
And in case III, the target control is the third control.
For case three, it differs from cases one and two in that: the first case and the second case are to determine the file name and the storage location of the target file through two different pages, respectively, and the third case is to determine the file name and the storage location of the target file through one page at the same time. However, the file name of the target file may be determined in the same manner as in the first case, and the storage location may be determined in the same manner as in the second case, which may specifically refer to the description of the foregoing content, and will not be described herein again.
In this embodiment, optionally, after displaying the N controls, the method further includes:
and hiding the N controls under the condition that the N controls do not receive third input within a preset time length, and saving the target file to a default saving position by using a default file name.
In this embodiment, the N controls only display the preset duration when no input is received. The starting time of the preset duration may be the display time of the N controls, or the time when the electronic device receives the first input.
In specific implementation, the electronic device may detect whether the N controls receive an input within the preset duration.
And if the input is not received, hiding the N controls, and saving the target file to a default saving position by using a default file name. And if the target control in the N controls receives a second input, displaying a page corresponding to the target control, and determining at least one of a storage position and a file name of a target file in the page corresponding to the target control.
It should be noted that, various optional implementations described in the embodiments of the present invention may be implemented in combination with each other or separately without conflict between the implementations, and the embodiments of the present invention are not limited in this respect.
For ease of understanding, examples are described below.
Referring to fig. 5, fig. 5 is a second flowchart of a file processing method according to an embodiment of the present invention. As shown in fig. 5, the file processing method may include the steps of:
step 501, under the condition that the screen recording operation of the user is finished, generating a floating window with an editing file name button on the screen.
And after the user clicks the ending screen recording, a suspension frame pops up in the middle of the electronic equipment. The suspension frame is divided into a thumbnail and a button for editing a file name, the thumbnail can be generated by taking continuous K frames of the beginning of the content of the screen, the button is in a clickable state, and the suspension window only stays for a preset time, such as 2 seconds, under the condition that a user does not touch.
Step 502, detecting whether a user touches a button for editing a file name within a preset time.
The electronic equipment records a time point when screen recording is finished, and detects whether a user touches a button for editing a file name within preset time from the time point.
If yes, go to step 503; if not, go to step 505.
Step 503, pop up the editing page.
The edit page may include an edit box, a cancel button, and a confirm button.
A file name can be generated in the edit box by default, and the file name can be edited.
Step 504, saving the screen file using the name in the edit box.
In particular, the user may edit the file name. And clicking and determining by the user, storing the screen recording content, and adopting the file name in the edit box for screen recording. And clicking by the user to cancel, storing the screen recording content, and naming the file name by adopting an automatically generated name.
And 505, saving the screen recording file by using the automatically generated file name.
The implementation can realize that the user can specify the self-defined file name after the screen is finished, and the user does not need to save the screen recording file and then enter the corresponding directory to modify the name of the file, so that the scheme is more convenient to operate and more flexible in specifying the file name.
Referring to fig. 6, fig. 6 is a third flowchart of a file processing method according to an embodiment of the present invention. As shown in fig. 6, the file processing method may include the steps of:
step 601, under the condition that the user finishes screen recording operation, generating a floating window with a button for selecting and saving the catalog on the screen.
After a user clicks and finishes recording a screen, a suspension frame pops up in the middle of the electronic equipment, the suspension frame is divided into a thumbnail and a button for selecting and storing a catalog, the button is in a clickable state, and the suspension window only stays for a reserved time, such as 2 seconds, under the condition that the user does not touch.
Step 602, detecting whether a user touches a button for selecting a saved directory within a preset time period.
The electronic equipment records the time point of finishing recording the screen, and detects whether a user touches a button for selecting and saving the catalog within a preset time period from the time point.
If yes, go to step 603. Otherwise, step 604 is performed.
Step 603, pop up dialog box that can browse the top-level directory already existing in the electronic device.
In particular, the electronic device may pop up a dialog box in the middle of the screen that may browse the existing top-level directory. Specifically, the dialog box includes a selectable directory, a new folder button, a cancel button, and a confirm button.
The user clicks the specified directory to enter the corresponding directory, and the current folder is updated.
A user clicking on the new folder button may create a directory in the current directory.
And clicking the determined button by the user, and saving the screen recording file to the current directory.
And clicking a cancel button by the user, and recording the screen file to store the default directory of the system. Alternatively, the folder defaults to using the most recently used directory.
And step 604, saving the screen recording file by using the directory selected by the user.
The user selects the save directory. And determining by clicking of the user, storing screen recording contents, and storing the screen recording contents to a documents directory. And clicking by the user to cancel, storing screen recording contents, and storing the screen recording contents to a default directory.
Step 605, saving the screenshot file using a default directory.
According to the method and the device, the user can designate the user-defined directory to store the file after the screen recording is finished, the corresponding directory does not need to be entered after the screen recording file is stored, and the file is moved to the target directory through the copying or cutting function, so that the operation is more convenient and the file storage is more flexible.
Referring to fig. 7, fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device 700 includes:
the first display module 701 is configured to receive a first input, and in response to the first input, display N controls, where the first input is a screen capture input or a recording ending input, and N is a positive integer;
a second display module 702, configured to receive a second input to a target control in the N controls, and in response to the second input, display a page corresponding to the target control;
a determining module 703, configured to determine at least one of a storage location and a file name of a target file in a page corresponding to the target control, where the target file is a screen capture file or a recording file.
Optionally, the N controls include at least one of a first control and a second control, a page corresponding to the first control is used to determine a file name of the target file, and a page corresponding to the second control is used to determine a storage location of the target file.
Optionally, the target control is the first control; the page corresponding to the target control is a file name determining page;
the determining module 703 is specifically configured to:
and determining the input information of the user on the file name determination page as the file name of the target file.
Optionally, the target control is the second control, and a page corresponding to the target control is a storage location determination page;
the determining module 703 is specifically configured to:
and determining a target saving position selected by the user from the candidate saving positions included in the saving position determination page as the saving position of the target file.
Optionally, the electronic device 700 further includes:
and the hiding module is used for hiding the N controls and saving the target file to a default saving position by a default file name under the condition that the N controls do not receive a third input within a preset time length.
The electronic device 700 can implement the processes in the method embodiment of the present invention and achieve the same beneficial effects, and is not described herein again to avoid repetition.
Referring to fig. 8, fig. 8 is a second structural diagram of an electronic device according to a second embodiment of the present invention, where the electronic device may be a hardware structural diagram of an electronic device for implementing various embodiments of the present invention. As shown in fig. 8, electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 8 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, an electronic device, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
Wherein, the display unit 806 is configured to:
in a case where the user input unit 807 receives a first input, which is a screen capture input or an end recording input, N controls are displayed in response to the first input, where N is a positive integer;
in a case where the user input unit 807 receives a second input for a target control of the N controls, displaying a page corresponding to the target control in response to the second input;
a processor 810 configured to: and determining at least one of a storage position and a file name of a target file on a page corresponding to the target control, wherein the target file is a screen shot file or a recorded file.
Optionally, the N controls include at least one of a first control and a second control, a page corresponding to the first control is used to determine a file name of the target file, and a page corresponding to the second control is used to determine a storage location of the target file.
Optionally, the target control is the first control; the page corresponding to the target control is a file name determining page;
the processor 810 is specifically configured to:
and determining the input information of the user on the file name determination page as the file name of the target file.
Optionally, the target control is the second control, and a page corresponding to the target control is a storage location determination page;
the processor 810 is specifically configured to:
and determining a target saving position selected by the user from the candidate saving positions included in the saving position determination page as the saving position of the target file.
Optionally, the processor 810 is further configured to:
and hiding the N controls under the condition that the N controls do not receive third input within a preset time length, and saving the target file to a default saving position by using a default file name.
It should be noted that, in this embodiment, the electronic device 800 may implement each process in the method embodiment of the present invention and achieve the same beneficial effects, and for avoiding repetition, details are not described here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 810, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the file processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the file processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as an electronic device, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.