CN103049280B - A kind of method and mobile terminal for realizing key macro definition function - Google Patents
A kind of method and mobile terminal for realizing key macro definition function Download PDFInfo
- Publication number
- CN103049280B CN103049280B CN201110312937.9A CN201110312937A CN103049280B CN 103049280 B CN103049280 B CN 103049280B CN 201110312937 A CN201110312937 A CN 201110312937A CN 103049280 B CN103049280 B CN 103049280B
- Authority
- CN
- China
- Prior art keywords
- macrodefinition
- atomicity
- key
- mobile terminal
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of method and mobile terminal for realizing key macro definition function, including:Step 100, the minimum operation step unit i.e. atomicity that mobile terminal system can be identified and performed is defined to operate;Step 200, all atomicity operations are stored defined in relevant database and;Step 300, operated by atomicity and form macrodefinition, macrodefinition typing forms buffer area chained list after completing, and is stored in permanent memory;Step 400, when mobile terminal device turns back on, the macrodefinition being stored in permanent memory is remapped to system cache area to respond button;Step 500, when user triggers the button of defined macrodefinition, by the system value of the button, by key assignments correspondence from defined map data structure during macrodefinition typing, the corresponding atomicity operation chained list for being present in system cache area can be obtained.
Description
Technical field
The present invention relates to a kind of shortcut design of human-computer interaction, particularly a kind of side for realizing key macro definition function
Method and mobile terminal.
Background technology
With the development of communication apparatus, humanization level of more and more mobile terminals in terms of human-computer interaction is increasingly
Height, from the point of view of currently marketed mainstream model, most of mobile terminals have the quick side such as shortcut key or desktop widget
Formula designs.
But these shortcut keys or shortcut design are all often pre-set by manufacturer, or user can be certainly
Row defines shortcut key or shortcut, but can only be defined as starting certain program or enter the simple functions such as certain menu, and can not
Reproduce all complex operations of user.
1) from the point of view of existing design, using the design of shortcut key, the function of button is fixed in part design
Design, such as camera start button, music player start button, user cannot change the corresponding function of button;A part is set
Allow the corresponding function of User Defined shortcut in meter, such as the function corresponding to direction navigation key or left and right soft key, but allow
User-defined scope is very limited, most of only to allow to define a certain function of button startup or enter a certain interface.
2) shortcut used by current most of touch screen mobile terminals, often allows user by some common functions
Or application definition is to the position such as desktop or toolbar,
It assigns the authority of user and the free degree is still limited, and most of shortcuts are still a certain function of startup or entrance
A certain interface.
3) said from the angle of human oriented design, different user operation habits are not quite similar, the single shortcut key of function
Or shortcut can not meet the needs of different user.
The content of the invention
To solve the above problems, the present invention is during user interacts with mobile terminal, prerecorded a series of
User be a macrodefinition to the Operation Definition of mobile terminal, and this instruction is tied on some button specified
(wherein button includes:The either real or virtual operation such as touch operation button of the physical button of mobile terminal, and by by
The shortcut of key combination generation, or user-defined shortcut), pass through single button in the operating process in later stage
Realize the operation of a series of complex.
A kind of method for realizing mobile terminal key macrodefinition function, comprises the following steps:
Step 100, the minimum operation step unit i.e. atomicity that mobile terminal system can be identified and performed is defined to operate;
Step 200, all atomicity operations are stored defined in relevant database and;
Step 300, operated by atomicity and form macrodefinition, macrodefinition typing forms buffer area chained list, storage after completing
In permanent memory;
Step 400, the macrodefinition being stored in permanent memory is remapped to system cache area to respond button;
Step 500, when user triggers the button of defined macrodefinition, by the system value of the button, from macrodefinition typing
When defined map data structure in by key assignments correspondence, the corresponding original for being present in system cache area can be obtained
Sub- property operates chained list.
The method for realizing mobile terminal key macrodefinition function, step 100 further include:
Step 110, each atomicity operation has corresponding attribute.
The method for realizing mobile terminal key macrodefinition function, it is former per class in the atomicity operation of the step 200
Sub- property operation is defined as a table, and corresponding attribute is then the key assignments in table, chooses the category that some is not in repetition values
Major key of the property as the table;
The different instances of same atomicity operation are the data item in the table.
The method for realizing mobile terminal key macrodefinition function, step 200 further include:
Step 210, when user carries out macrodefinition typing first, first selection need to reproduce this macrodefinition function by
Key, as it is a certain need the button for being defined macrodefinition to be pressed after, the key assignments quilt in one in ground pattern data structure record
Write the system key assignments corresponding to this button;
Step 220, after writing key assignments, system cache area initializes the single-track link table type data for being used to store the instruction
Structure, user's operation all during macrodefinition typing are captured and are broken down into pre-defined atom sequentially in time
Property operation, atomicity operation that is decomposing and being filled self attributes data is stored into the chained list of buffer area;
Step 230, the atomicity operational chain tabular value that will be obtained in step 220, writes corresponding note in ground pattern data structure
The value of record, the Input Process of macrodefinition are completed.
The method for realizing mobile terminal key macrodefinition function, the latter atomicity is grasped in the step 210,220
Make the directive property authority always with the operation of previous atomicity.
The method for realizing mobile terminal key macrodefinition function, the step 300 further include:
Step 310, system opens database connection, and the key assignments after its macrodefinition is stored in number according to the type of data object
According in the corresponding table in storehouse, the operation of each atomicity and its attribute are written into number when database is connected and opened as a data
According to corresponding table in storehouse, the corresponding chained list of a macrodefinition is then conceptualized as it and includes the major key set of atomicity operation;
Step 320, data storage performs database identification operation after completing;
Step 330, the macrodefinition of user's typing will be permanently stored in database, if not delete this grand by user
Define and physical storage does not break down, then this instruction is effective all the time;
Step 340, the instruction set of system is changed after the completion of macrodefinition typing, macrodefinition is mapped in button.
The method for realizing mobile terminal key macrodefinition function, system cache area creates one in the step 400
Empty chain table is used to write atomicity operational instances data, while it is original that the abstract chained list corresponding to the chained list, which obtains first element,
The major key of sub- property operation.
The method for realizing mobile terminal key macrodefinition function, the step 400 further include:
Step 410, the major key operated by obtained atomicity, performs selection life in database after a connection is established
Order, takes out the data item of corresponding major key;
Step 420, the mapping data item selected from database being persisted as in file system, after instantiation
Mapping include all information in corresponding data item.
The method for realizing mobile terminal key macrodefinition function, the step 500 further include:
Step 510, the operating right of the system priority setting user for the atomicity operation being performed as needed, if
Other operations of user can cause system crash during macrodefinition performs, then other operating rights of user are locked in this period;
Step 520, system cache area atomicity operation chained list according to atomicity operate between association it is sequentially executed,
If having locked the operating right of user during execution, the operating right of user is reopened in instruction after the completion of performing.
A kind of mobile terminal for realizing key macro definition function, including:
Defining operation module, the minimum operation step unit i.e. original that can be identified and perform for defining mobile terminal system
Sub- property operation;
Memory module, for defined in relevant database and storing all atomicity operations;
Macrodefinition completes module, and macrodefinition is formed for being operated by atomicity, and macrodefinition typing forms caching after completing
Area's chained list, is stored in memory module;
Macrodefinition mapping block, it is grand fixed in memory module by being stored in for when mobile terminal device turns back on
Justice is remapped to system cache area to respond button;
Macrodefinition trigger module, when triggering the button of defined macrodefinition for user, by the system value of the button, from
By key assignments correspondence in defined map data structure during macrodefinition typing, acquisition is corresponding to be present in system cache
The atomicity operation chained list in area.
The system for realizing mobile terminal key macrodefinition function, defining operation module further include:
Attribute matching module, has corresponding attribute for defining each atomicity operation.
The mobile terminal for realizing key macro definition function, in the atomicity operation of memory module, per class atomicity behaviour
Work is defined as a table, and corresponding attribute is then the key assignments in table, chooses the attribute conduct that some is not in repetition values
The major key of the table;
The different instances of same atomicity operation are the data item in the table.
The mobile terminal for realizing key macro definition function, memory module further include:
Macrodefinition button selecting module, for when user carries out macrodefinition typing first, selection first to need to reproduce this
The button of macrodefinition function, as it is a certain need the button for being defined macrodefinition to be pressed after, one in ground pattern data structure
Key assignments in record is written into the system key assignments corresponding to this button;
Atomicity operates memory module, and after writing key assignments, system cache area initializes one and is used to store the instruction
Single-track link table type data structure, user's operation all during macrodefinition typing is captured and is decomposed sequentially in time
Operated for pre-defined atomicity, atomicity operation that is decomposing and being filled self attributes data is stored into caching
The chained list in area;
Atomicity, is operated the atomicity operational chain tabular value obtained in memory module by macrodefinition writing module, writes map
The value of corresponding record in type data structure, the Input Process of macrodefinition are completed.
The mobile terminal for realizing key macro definition function, macrodefinition button selecting module, atomicity operation storage mould
Block, for no matter which kind of implementation being used, the operation of the latter atomicity always has the directive property of previous atomicity operation
Authority.
The mobile terminal for realizing key macro definition function, macrodefinition are completed module and are further included:
Macrodefinition key assignments respective modules, database connection is opened for system, according to the type of data object that its is grand fixed
In the corresponding table of key assignments deposit database after justice, the operation of each atomicity and its attribute conduct when database is connected and opened
A data is written into corresponding table in database, and the corresponding chained list of a macrodefinition is then conceptualized as it and includes atomicity behaviour
The major key set of work;
Storage confirms module, and database identification operation is performed after being completed for data storage;
Macrodefinition key assignments preserving module, the macrodefinition for user's typing will be permanently stored in database, such as
Fruit user does not delete the macrodefinition and physical storage does not break down, then this instruction is effective all the time;
Macrodefinition key assignments mapping block, for changing the instruction set of system after the completion of macrodefinition typing, macrodefinition is reflected
It is mapped in button.
The mobile terminal for realizing key macro definition function, system cache area creates a sky in macrodefinition mapping block
Chained list is used to write atomicity operational instances data, while the abstract chained list corresponding to the chained list obtains first element, that is, atom
Property operation major key.
The mobile terminal for realizing key macro definition function, macrodefinition mapping block further include:
Macrodefinition key assignments takes out module, the major key operated for the atomicity by obtaining, number after a connection is established
According to select command is performed in storehouse, the data item of corresponding major key is taken out;
Macrodefinition key assignments respective modules, for the data item selected from database to be persisted as mobile terminal text
Mapping in part system, the mapping after instantiation include all information in corresponding data item.
The mobile terminal for realizing key macro definition function, macrodefinition trigger module further include:
Authority limits module, and the system priority of the atomicity operation for being performed as needed sets the operation of user
Authority, if other operations of user can cause system crash during macrodefinition performs, locks user other in this period
Operating right;
Authority open module, for system cache area atomicity operation chained list according to atomicity operate between association it is suitable
Sequence is performed, if having locked the operating right of user during execution, the operating rights of user is reopened in instruction after the completion of performing
Limit.
The mobile terminal for realizing key macro definition function, further includes:Special caching delimited after starting macrodefinition function
Area stores macrodefinition, and system begins listening for the instruction of macrodefinition mobile terminal key, is pressed when user triggers macrodefinition mobile terminal
System can respond at any time during key.
The mobile terminal for realizing key macro definition function, further includes:Authority locking is introduced in macrodefinition implementation procedure
Whether control, allow to introduce other operations to control in macrodefinition implementation procedure.
Effect of the invention is that realize a kind of macrodefinition instruction system that there is high-freedom degree and can realize complex operations
System, has wider adaptability compared to traditional design method, being capable of accurate all complex operations of simulation reconstruction user
So as to which the repetitive operation of user be greatly decreased.
(1) mapping corresponding to macrodefinition includes but is not limited only to specially designed button, and common key-press is same in theory
Sample can be mapped.
(2) equipment delimit special buffer area storage macrodefinition after starting, and system begin listening for macrodefinition mobile terminal by
Key instructs, and when user triggers macrodefinition mobile terminal key, system can respond at any time.
(3) authority locking control is introduced in macrodefinition implementation procedure, whether is allowed to control in macrodefinition implementation procedure
Introduce other operations.
Brief description of the drawings
Fig. 1 is mobile terminal key macrodefinition functional database design drawing of the present invention;
Fig. 2 is macrodefinition input method flow chart of the present invention;
Fig. 3 performs method flow diagram for macrodefinition of the present invention;
Fig. 4 is the system block diagram that the present invention possesses mobile terminal key macrodefinition function.
Embodiment
The present invention is described in detail below in conjunction with the drawings and specific embodiments, still, is not intended as to this hair
Bright restriction.
As shown in Figure 1, in the design of database, " macrodefinition " tables of data is core data table, it is numbered with macrodefinition
For major key, every attribute of macrodefinition is as data Table Properties." macrodefinition " tables of data passes through " macrodefinition mapping table " this pass
It is that tables of data is associated with another physical data table " key command table ", passes through " macrodefinition action chained list " this relation database table
It is associated with another physical data table " action chained list "." macrodefinition " tables of data association " combination button ", " single-button ", " touch
Click ", " system delay ", " touch and slide " and " more (two) touches " multiple physical data tables.
The present invention be during user interacts with mobile terminal, user by it is a series of prerecord to mobile terminal
Operation, a macrodefinition is defined as, and this macrodefinition is tied on some button specified, in the operation in later stage
The operation of a series of complex can be achieved in journey by single button.
The purpose of the present invention is by designing and Implementing a kind of method for possessing mobile terminal key macrodefinition function, for
Family offer is a kind of can to record a series of buttons arbitrarily operated, realize more convenient and hommization man-machine interaction mode.
User wants to open the call firewall functionality in certain mobile terminal, the operating procedure needed under normal circumstances
For:Main menu-click setting-click to dial setting-click to dial fire wall-click unlatching-return is clicked on, and every time later
Need to perform identical operating procedure.
As shown in Fig. 2, if after applying the technical scheme of the present invention, operation principle is:
1) mobile Terminals design a series of buttons for being endowed macrodefinition, the normal function button in realization principle
Macrodefinition can also be endowed.
2) user's operation all in typing macrodefinition is broken down into predefined atomicity and operates, in a macrodefinition
Different atomicity operations is stored by relevant database and persistence mapping.
3) it is as follows that flow is embodied:
Step 100, the minimum operation step unit i.e. atomicity that mobile terminal system can be identified and performed is defined to operate
(action)。
From the point of view of the work angle of user, it is some operation that cannot be divided into other multiple user's operations again, belongs to
Atomicity operates:Button is such as single clickd on, clicking operation is touched, touches slide.
Step 110, each atomicity operation has corresponding attribute.Button this atomicity operation is such as single clickd on to include
Key label and button two attribute of delay.
It is an atomicity operation and for example to click on some position of screen, and attribute refers to the data for recognizing this operation, such as
The coordinate value of screen taps position, click on duration, so an atomicity operation may need multiple attributes to define.
Step 200, all atomicity operations are stored defined in relevant database and.
In the atomicity operation, it is defined as a table per the operation of class atomicity, corresponding attribute is then in table
Key assignments (key), chooses major key (primary key) of the attribute as the table that some is not in repetition values.Same original
The different instances of sub- property operation are the data item (item) in the table.
Step 210, when user carries out macrodefinition typing first, first selection need to reproduce this macrodefinition function by
Key, as it is a certain need the button for being defined macrodefinition to be pressed after, the key in one in map (Map) type data structure record
Value (Key) is written into the system key assignments corresponding to this button.
Step 220, after writing key assignments, system cache area initializes the single-track link table type data for being used to store the instruction
Structure (Arraylist), user's operation all during macrodefinition typing are captured and are broken down into pre- sequentially in time
The atomicity operation (action) first defined, atomicity operation that is decomposing and being filled self attributes data
(action) it is stored into the chained list of buffer area.
No matter which kind of implementation is used in the step 210,220, and the latter atomicity operation (action) always has
There is the directive property authority of previous atomicity operation (action).
Step 230, the atomicity obtained in step 220 is operated into (action) chain tabular value, (chain tabular value refers to chained list herein
Corresponding numbering, corresponding chained list can be indexed by the numbering, therefore only needs to write the numbering of chained list) write-in map
(Map) in type data structure corresponding record value, at this time the Input Process of macrodefinition complete.
Step 300, operated by atomicity and form macrodefinition, macrodefinition typing forms buffer area chained list, storage after completing
In permanent memory.
Buffer area chained list is the set of the entity mapping (object) of database in permanent memory.
Step 310 system opens database connection, and the key assignments after its macrodefinition is stored in number according to the type of data object
According in the corresponding table in storehouse, each atomicity operates (action) and its attribute when database is connected and opened as a data
Corresponding table in database is written into, the corresponding chained list of a macrodefinition is then conceptualized as it and includes atomicity operation
(action) major key set.
Step 320, data storage performs database identification operation after completing.
Step 330, the macrodefinition of user's typing will be permanently stored in database, if not delete this grand by user
Define and physical storage does not break down, then this instruction is effective all the time.
Step 340, the instruction set of system is changed after the completion of macrodefinition typing, macrodefinition is mapped in button.
Step 400, the macrodefinition being stored in permanent memory is remapped to system cache area to respond button.
System cache area creates an empty chain table and is used to write atomicity operation (action) instance data, while the chained list
Corresponding abstract chained list obtains the major key of first element, that is, atomicity operation (action).
Step 410, the major key of (action) is operated by the atomicity obtained in step 400, after a connection is established
Selection (select) order is performed in database, takes out the data item (item) of corresponding major key.
The data item selected from database (item) is persisted as in mobile terminal document system by step 420
Map (object), the mapping (object) after instantiation includes all information in corresponding data item (item).
Map the element of (Object) as chained list after instantiation to be stored into the chained list in system cache area, repeat
The macrodefinition that the operation of step 400, step 410, step 420 may finally be reduced.
Step 500, when user triggers the button of defined macrodefinition, by the system value of the button, from macrodefinition typing
When defined map (Map) data structure in by key assignments correspondence, can obtain and corresponding be present in system cache
Atomicity operation (action) chained list in area, completes the calling of macrodefinition function.
Step 510, the operation of the system priority setting user for the atomicity operation (action) being performed as needed
Authority, if other operations of user can cause system crash during macrodefinition performs, locks user other in this period
Operating right.
Step 520, atomicity operation (action) chained list in system cache area is operated between (action) according to atomicity
Association it is sequentially executed, if having locked the operating right of user during execution, instruction perform after the completion of reopen user
Operating right.
The operation of first time is carried out according to the step of above-mentioned method of work is:Main menu-click macrodefinition typing-is clicked on to press
Some lower macrodefinition button-typing instruction (clicks on main menu-click setting-click to dial setting-click to dial fire wall-point
Hit unlatching)-typing completion, clicking on macrodefinition button every time later can the identical operating procedure of automated execution.
As shown in figure 4, a kind of system for possessing mobile terminal key macrodefinition function, including:
Defining operation module 10, for define mobile terminal system can identify and the minimum operation step unit that performs i.e.
Atomicity operates;
Preferably, user sends instruction according to the needs of itself to mobile terminal, memory module is stored in;
Memory module 20, for defined in relevant database and storing all atomicity operations;
Preferably, memory module not only stores the atomicity operation that user sends, but also store the macrodefinition of later stage formation
Mobile terminal key instructs;
Macrodefinition completes module 30, and macrodefinition is formed for being operated by atomicity, and macrodefinition typing forms slow after completing
Area's chained list is deposited, is stored in memory module;
Preferably, macrodefinition completes the set of module generation user action, i.e. user defines a macrodefinition mobile terminal
The required complete atomicity operation of button;
Macrodefinition mapping block 40, it is grand in memory module by being stored in for when mobile terminal device turns back on
Definition is remapped to system cache area to respond button;
Macrodefinition trigger module 50, when triggering the button of defined macrodefinition for user, by the system value of the button,
By key assignments correspondence from defined map data structure during macrodefinition typing, can obtain it is corresponding be present in be
The atomicity operation chained list of system buffer area;
Preferably, macrodefinition trigger module is used for the atomicity operation for caching macrodefinition mobile terminal key, cache at the same time
Mobile terminal key after macrodefinition in the set of user action, and feedback memory module.
Defining operation module further includes:
Attribute matching module, has corresponding attribute for the operation of each atomicity.
In the atomicity operation of memory module, it is defined as a table per the operation of class atomicity, corresponding attribute is then table
In key assignments, choose major key of the attribute as the table that some is not in repetition values;
The different instances of same atomicity operation are the data item in the table.
Memory module further includes:
Macrodefinition button selecting module, for when user carries out macrodefinition typing first, selection first to need to reproduce this
The button of macrodefinition function, as it is a certain need the button for being defined macrodefinition to be pressed after, one in ground pattern data structure
Key assignments in record is written into the system key assignments corresponding to this button;
Atomicity operates memory module, and after writing key assignments, system cache area initializes one and is used to store the instruction
Single-track link table type data structure, user's operation all during macrodefinition typing is captured and is decomposed sequentially in time
Operated for pre-defined atomicity, atomicity operation that is decomposing and being filled self attributes data is stored into caching
The chained list in area;
Atomicity, is operated the atomicity operational chain tabular value obtained in memory module by macrodefinition writing module, writes map
The value of corresponding record in type data structure, the Input Process of macrodefinition are completed.
Macrodefinition button selecting module, atomicity operation memory module, for no matter using which kind of implementation, the latter
Atomicity operation always has the directive property authority of previous atomicity operation.
Macrodefinition is completed module and is further included:
Macrodefinition key assignments respective modules, database connection is opened for system, according to the type of data object that its is grand fixed
In the corresponding table of key assignments deposit database after justice, the operation of each atomicity and its attribute conduct when database is connected and opened
A data is written into corresponding table in database, and the corresponding chained list of a macrodefinition is then conceptualized as it and includes atomicity behaviour
The major key set of work;
Storage confirms module, and database identification operation is performed after being completed for data storage;
Macrodefinition key assignments preserving module, the macrodefinition for user's typing will be permanently stored in database, such as
Fruit user does not delete the macrodefinition and physical storage does not break down, then this instruction is effective all the time;
Macrodefinition key assignments mapping block, for changing the instruction set of system after the completion of macrodefinition typing, macrodefinition is reflected
It is mapped in button.
System cache area creates an empty chain table and is used to write atomicity operational instances data in macrodefinition mapping block, together
When the chained list corresponding to abstract chained list obtain the major key of first element, that is, atomicity operation.
Macrodefinition mapping block further includes:
Macrodefinition key assignments takes out module, the major key operated for the atomicity by obtaining, number after a connection is established
According to select command is performed in storehouse, the data item of corresponding major key is taken out;
Macrodefinition key assignments respective modules, for the data item selected from database to be persisted as mobile terminal text
Mapping in part system, the mapping after instantiation include all information in corresponding data item.
Macrodefinition trigger module further includes:
Authority limits module, and the system priority of the atomicity operation for being performed as needed sets the operation of user
Authority, if other operations of user can cause system crash during macrodefinition performs, locks user other in this period
Operating right;
Authority open module, for system cache area atomicity operation chained list according to atomicity operate between association it is suitable
Sequence is performed, if having locked the operating right of user during execution, the operating rights of user is reopened in instruction after the completion of performing
Limit.
A kind of system for possessing mobile terminal key macrodefinition function, further includes:Delimited specially after starting macrodefinition function
Buffer area stores macrodefinition, and system begins listening for the instruction of macrodefinition mobile terminal key, when user triggers macrodefinition movement eventually
System can respond at any time when holding button.
A kind of system for possessing mobile terminal key macrodefinition function, further includes:Authority is introduced in macrodefinition implementation procedure
Whether locking control, allow to introduce other operations to control in macrodefinition implementation procedure.
Effect of the invention is that realize a kind of macrodefinition instruction system that there is high-freedom degree and can realize complex operations
System, has wider adaptability compared to traditional design method, being capable of accurate all complex operations of simulation reconstruction user
So as to which the repetitive operation of user be greatly decreased.
(1) mapping corresponding to macrodefinition includes but is not limited only to specially designed button, and common key-press is same in theory
Sample can be mapped.
(2) equipment delimit special buffer area storage macrodefinition after starting, and system begin listening for macrodefinition mobile terminal by
Key instructs, and when user triggers macrodefinition mobile terminal key, system can respond at any time.
(3) authority locking control is introduced in macrodefinition implementation procedure, whether is allowed to control in macrodefinition implementation procedure
Introduce other operations.
As shown in figure 3, it is macrodefinition executive mode flow chart of the present invention:
Step S301, the initialization of macrodefinition function system;
Step S302, connection mobile terminal key macrodefinition storage database-driven;
Step S303, reads the data of mobile terminal key macrodefinition database;
Step S304, macrodefinition data writing systems buffer area;
Step S305, (combination is any data to data splitting) reduction macrodefinition;
Step S306, judges that whether all macrodefinition complete by loading, is then to perform step S307, otherwise performs step
S303;
Step S307, it is allowed to trigger the macrodefinition function of mobile terminal key;
Step S308, performs predetermined macrodefinition function;
Step S309, judges whether system operatio locks, and is then to perform step S308, otherwise performs step S310;
Step S310, system monitor other mobile terminal key macrodefinition functions;
Step S311, macrodefinition perform completion.
It is a feature of the present invention that macrodefinition mechanism is introduced for mobile terminal key, by a series of behaviour of the advance typing of user
Make, be encapsulated as macrodefinition, then the sequence of operations by the advance typing of specified button analog subscriber:
1. mobile terminal fast button or the concept corresponding to mode are not simple function or specified path in the present invention, and
It is that what is be defined by the user include the macrodefinition of any man-machine interactive operation, there is higher for traditional self-definition design
The free degree and individual adaptation degree.
2. the present invention devises macrodefinition function structure suitable for mobile terminal device, realize record, processing and
Map the solution of macrodefinition.
3. the storage and mapping process in the present invention for macrodefinition use light-weight database and persistence design method,
The response speed of macrodefinition can be effectively improved and reduce the consumption of mobile terminal device resource.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence
Know those of ordinary skill in the art and make various corresponding changes and deformation, but these corresponding changes in accordance with the present invention
The protection domain of appended claims of the invention should all be belonged to deformation.
Claims (14)
- A kind of 1. method for realizing mobile terminal key macrodefinition function, it is characterised in that comprise the following steps:Step 100, the minimum operation step unit i.e. atomicity that mobile terminal system can be identified and performed is defined to operate;Step 200, all atomicity operations are stored defined in relevant database and;Step 300, operated by atomicity and form macrodefinition, macrodefinition typing forms buffer area chained list after completing, and is stored in and deposits Store up in module;Step 400, the macrodefinition being stored in memory module is mapped to system cache area to respond button;Step 500, when user triggers the button of defined macrodefinition, by the system value of the button, from macrodefinition typing when institute By key assignments correspondence in the map data structure of definition, the corresponding atomicity operation for being present in system cache area is obtained Chained list;The step 500 further includes:Step 510, the operating right of the system priority setting user for the atomicity operation being performed as needed, if grand fixed Other operations of user can cause system crash during justice performs, then other operating rights of user are locked in this period;Step 520, system cache area atomicity operation chained list according to atomicity operate between association it is sequentially executed, perform If period has locked the operating right of user, the operating right of user is reopened in instruction after the completion of performing;Step 200 further includes:Step 210, when user carries out macrodefinition typing first, selection first needs to reproduce the button of this macrodefinition function, such as It is a certain need the button for being defined macrodefinition to be pressed after, the key assignments in one in ground pattern data structure record is written into this System key assignments corresponding to button;Step 220, after writing key assignments, system cache area initializes a single-track link table type data knot for being used to store the instruction Structure, user's operation all during macrodefinition typing are captured and are broken down into pre-defined atomicity sequentially in time Operation, atomicity operation that is decomposing and being filled self attributes data are stored into the chained list of buffer area;Step 230, the atomicity operational chain tabular value that will be obtained in step 220, writes corresponding record in ground pattern data structure Value, the Input Process of macrodefinition are completed.
- 2. the method for realizing mobile terminal key macrodefinition function as claimed in claim 1, it is characterised in that step 100 is also wrapped Include:Step 110, each atomicity operation has corresponding attribute.
- 3. the method for realizing mobile terminal key macrodefinition function as claimed in claim 1, it is characterised in that the step 200 Atomicity operation in, per class atomicity, operation is defined as a table, and corresponding attribute is then the key assignments in table, chooses a certain A is not in major key of the attribute as the table of repetition values;The different instances of same atomicity operation are the data item in the table.
- 4. the method for realizing mobile terminal key macrodefinition function as claimed in claim 1, it is characterised in that the step 210, The operation of the latter atomicity always has the directive property authority of previous atomicity operation in 220.
- 5. the method for realizing mobile terminal key macrodefinition function as claimed in claim 1, it is characterised in that the step 300 Further include:Step 310, system opens database connection, and the key assignments after its macrodefinition is stored in database according to the type of data object In corresponding table, the operation of each atomicity and its attribute are written into database when database is connected and opened as a data In corresponding table, the corresponding chained list of a macrodefinition be then conceptualized as its include atomicity operation major key set;Step 320, data storage performs database identification operation after completing;Step 330, the macrodefinition of user's typing will be permanently stored in database, if user does not delete the macrodefinition And physical storage does not break down, then this instruction is effective all the time;Step 340, the instruction set of system is changed after the completion of macrodefinition typing, macrodefinition is mapped in button.
- 6. the method for realizing mobile terminal key macrodefinition function as claimed in claim 1, it is characterised in that the step 400 Middle system cache area creates an empty chain table and is used to write atomicity operational instances data, while the abstraction chain corresponding to the chained list Table obtains the major key of first element, that is, atomicity operation.
- 7. the method for realizing mobile terminal key macrodefinition function as claimed in claim 6, it is characterised in that the step 400 Further include:Step 410, the major key operated by obtained atomicity, performs select command in database after a connection is established, Take out the data item of corresponding major key;Step 420, the mapping data item selected from database being persisted as in mobile terminal document system, example Mapping after change includes all information in corresponding data item.
- A kind of 8. mobile terminal for realizing key macro definition function, it is characterised in that including:Defining operation module, the minimum operation step unit i.e. atomicity that can be identified and perform for defining mobile terminal system Operation;Memory module, for defined in relevant database and storing all atomicity operations;Macrodefinition completes module, and macrodefinition is formed for being operated by atomicity, and macrodefinition typing forms buffer area chain after completing Table, is stored in memory module;Macrodefinition mapping block, for the macrodefinition being stored in memory module to be mapped to system cache area to respond button;Macrodefinition trigger module, when triggering the button of defined macrodefinition for user, by the system value of the button, from grand fixed Defined in justice-recording is fashionable by key assignments correspondence in map data structure, the corresponding system cache area that is present in is obtained Atomicity operates chained list;Wherein, macrodefinition trigger module further includes:Authority limits module, and the system priority of the atomicity operation for being performed as needed sets the operating rights of user Limit, if other operations of user can cause system crash during macrodefinition performs, other behaviour for locking user interior during this period Make authority;Authority open module, for system cache area atomicity operation chained list according to atomicity operate between association order quilt Perform, if having locked the operating right of user during execution, the operating right of user is reopened in instruction after the completion of performing;Memory module further includes:Macrodefinition button selecting module, for when user carries out macrodefinition typing first, selection first needs to reproduce this grand fixed The button of adopted function, as it is a certain need the button for being defined macrodefinition to be pressed after, one in ground pattern data structure record In key assignments be written into system key assignments corresponding to this button;Atomicity operates memory module, and after writing key assignments, system cache area initializes a list for being used to store the instruction To chain phentotypic data structure, user's operation all during macrodefinition typing is captured and is broken down into pre- sequentially in time The atomicity operation first defined, atomicity operation that is decomposing and being filled self attributes data are stored into buffer area Chained list;Atomicity, is operated the atomicity operational chain tabular value obtained in memory module, write-in ground pattern number by macrodefinition writing module According to the value of corresponding record in structure, the Input Process of macrodefinition is completed.
- 9. the mobile terminal of key macro definition function is realized as claimed in claim 8, it is characterised in that defining operation module is also wrapped Include:Attribute matching module, has corresponding attribute for the operation of each atomicity.
- 10. the mobile terminal of key macro definition function is realized as claimed in claim 8, it is characterised in that the atom of memory module Property operation in, per class atomicity, operation is defined as a table, and corresponding attribute is then the key assignments in table, and choosing some will not There are major key of the attribute as the table of repetition values;The different instances of same atomicity operation are the data item in the table.
- 11. the mobile terminal of key macro definition function is realized as claimed in claim 8, it is characterised in that macrodefinition button selects Module, atomicity operation memory module, for no matter which kind of implementation being used, the operation of the latter atomicity always has previous The directive property authority of a atomicity operation.
- 12. the mobile terminal of key macro definition function is realized as claimed in claim 8, it is characterised in that macrodefinition completes module Further include:Macrodefinition key assignments respective modules, open database connection, according to the type of data object by after its macrodefinition for system The corresponding table of key assignments deposit database in, the operation of each atomicity and its attribute are when database is connected and opened as one Data are written into corresponding table in database, and the corresponding chained list of a macrodefinition is then conceptualized as it and includes atomicity operation Major key set;Storage confirms module, and database identification operation is performed after being completed for data storage;Macrodefinition key assignments preserving module, the macrodefinition for user's typing will be permanently stored in database, if with The macrodefinition is not deleted at family and physical storage does not break down, then this instruction is effective all the time;Macrodefinition key assignments mapping block, for changing the instruction set of system after the completion of macrodefinition typing, macrodefinition is mapped to In button.
- 13. the mobile terminal of key macro definition function is realized as claimed in claim 8, it is characterised in that macrodefinition mapping block Middle system cache area creates an empty chain table and is used to write atomicity operational instances data, while the abstraction chain corresponding to the chained list Table obtains the major key of first element, that is, atomicity operation.
- 14. the mobile terminal of key macro definition function is realized as claimed in claim 13, it is characterised in that macrodefinition mapping block Further include:Macrodefinition key assignments takes out module, the major key operated for the atomicity by obtaining, database after a connection is established Middle execution select command, takes out the data item of corresponding major key;Macrodefinition key assignments respective modules, for the data item selected from database to be persisted as mobile terminal document system Mapping in system, the mapping after instantiation include all information in corresponding data item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110312937.9A CN103049280B (en) | 2011-10-14 | 2011-10-14 | A kind of method and mobile terminal for realizing key macro definition function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110312937.9A CN103049280B (en) | 2011-10-14 | 2011-10-14 | A kind of method and mobile terminal for realizing key macro definition function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103049280A CN103049280A (en) | 2013-04-17 |
CN103049280B true CN103049280B (en) | 2018-04-20 |
Family
ID=48061932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110312937.9A Expired - Fee Related CN103049280B (en) | 2011-10-14 | 2011-10-14 | A kind of method and mobile terminal for realizing key macro definition function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103049280B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927166B (en) * | 2014-03-25 | 2017-12-29 | 深圳市基思瑞科技有限公司 | A kind of method that Android system mobile terminal that can be exchanged with key position and a kind of Android system mobile terminal key position are exchanged |
CN104699063B (en) * | 2015-03-17 | 2018-04-27 | 成都智慧之芯科技有限公司 | The implementation method that User Defined runtime macros operates in centralized control system |
CN104899156B (en) * | 2015-05-07 | 2017-11-14 | 中国科学院信息工程研究所 | A kind of diagram data storage and querying method towards extensive social networks |
CN105786198A (en) * | 2016-02-24 | 2016-07-20 | 合肥联宝信息技术有限公司 | Keyboard key control method and electronic equipment applying same |
CN108322797A (en) * | 2017-01-16 | 2018-07-24 | 阿里巴巴集团控股有限公司 | A kind of response of key assignments and response configuration method, device, the device and operating system |
CN108170638A (en) * | 2017-12-21 | 2018-06-15 | 平安科技(深圳)有限公司 | Computational methods, device, equipment and storage medium based on Excel tables |
CN109753537A (en) * | 2019-01-25 | 2019-05-14 | 中国人民大学 | A kind of interactive data moving method from relation data to diagram data |
CN111831202B (en) * | 2020-07-02 | 2023-08-25 | 努比亚技术有限公司 | Combined interaction control method, equipment and computer readable storage medium |
CN113448447B (en) * | 2021-06-11 | 2024-05-10 | 赵贤芳 | Macro command execution method and control device |
CN113810554A (en) * | 2021-08-26 | 2021-12-17 | 广州和辰信息科技有限公司 | Method and device for digital rapid processing of archives |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901563A (en) * | 2005-07-18 | 2007-01-24 | 乐金电子(中国)研究开发中心有限公司 | Multifunctional shortcut key setting device and method, and mobile terminal with the same |
CN101179781A (en) * | 2006-11-07 | 2008-05-14 | 乐金电子(中国)研究开发中心有限公司 | Function simplifying operation system and method for mobile terminal |
CN101873383A (en) * | 2010-06-23 | 2010-10-27 | 华为终端有限公司 | Terminal operation configuration method and terminal |
CN101882137A (en) * | 2009-05-08 | 2010-11-10 | 北京闻言科技有限公司 | Method for quickly deleting file at mobile phone client |
CN102098380A (en) * | 2010-12-22 | 2011-06-15 | 中兴通讯股份有限公司 | Method and device for customizing shortcut in mobile terminal |
-
2011
- 2011-10-14 CN CN201110312937.9A patent/CN103049280B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1901563A (en) * | 2005-07-18 | 2007-01-24 | 乐金电子(中国)研究开发中心有限公司 | Multifunctional shortcut key setting device and method, and mobile terminal with the same |
CN101179781A (en) * | 2006-11-07 | 2008-05-14 | 乐金电子(中国)研究开发中心有限公司 | Function simplifying operation system and method for mobile terminal |
CN101882137A (en) * | 2009-05-08 | 2010-11-10 | 北京闻言科技有限公司 | Method for quickly deleting file at mobile phone client |
CN101873383A (en) * | 2010-06-23 | 2010-10-27 | 华为终端有限公司 | Terminal operation configuration method and terminal |
CN102098380A (en) * | 2010-12-22 | 2011-06-15 | 中兴通讯股份有限公司 | Method and device for customizing shortcut in mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103049280A (en) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103049280B (en) | A kind of method and mobile terminal for realizing key macro definition function | |
CN105339900B (en) | Act on behalf of gesture recognition | |
CN103229141B (en) | Working space in managing user interface | |
CN106095418B (en) | Event recognition | |
CN105988860B (en) | Method for executing application program and mobile device | |
CN105512023B (en) | A kind of Monkey test method and device | |
CN103885943B (en) | The implementation method of drop-down list box control in webpage | |
CN103218107B (en) | Method and system to provide user interface with respect to multiple applications | |
CN106780685B (en) | A kind of generation method and terminal of dynamic picture | |
CN107678644A (en) | A kind of image processing method and mobile terminal | |
CN105975324B (en) | Method for memorizing human-computer interface operation habit | |
CN108170333A (en) | Application program management method and device and mobile terminal | |
CN106033507A (en) | Screen unlocking methods and devices for touch screen devices | |
CN109901733A (en) | A kind of touch control method, touch control device and computer readable storage medium | |
CN102855068A (en) | Interface operation control method and device and electronic equipment | |
US20180088966A1 (en) | Electronic device and method thereof for managing applications | |
CN104317517A (en) | Touch screen terminal hidden unlocking method and system | |
CN110443938A (en) | Store cabinet control method, device, computer equipment and storage medium | |
CN109885244A (en) | Touch operation response method and device, storage medium and terminal | |
CN107015743A (en) | A kind of suspension key control method and terminal | |
CN107347111A (en) | The control method and terminal of terminal | |
CN107450804A (en) | A kind of method and terminal for responding touch control operation | |
CN104636506A (en) | Method and device for adding home pages in intelligent terminal | |
CN109558187A (en) | A kind of user interface rendering method and device | |
Anam et al. | Usability study of smart phone messaging for elderly and low-literate users |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180420 Termination date: 20191014 |
|
CF01 | Termination of patent right due to non-payment of annual fee |