CN114185469A - Software implementation method for setting simple GUI (graphical user interface) in menu under real-time operating system - Google Patents
Software implementation method for setting simple GUI (graphical user interface) in menu under real-time operating system Download PDFInfo
- Publication number
- CN114185469A CN114185469A CN202111345509.6A CN202111345509A CN114185469A CN 114185469 A CN114185469 A CN 114185469A CN 202111345509 A CN202111345509 A CN 202111345509A CN 114185469 A CN114185469 A CN 114185469A
- Authority
- CN
- China
- Prior art keywords
- cursor
- value
- page
- setting
- operating system
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000011800 void material Substances 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a software implementation method for setting simple GUI (graphical user interface) in a menu under a real-time operating system, which comprises the following steps: step 1: abstracting the characteristic of menu cursor switching of each page; step 2: abstracting numerical value switching characteristics under the current cursor of each page; and step 3: abstracting the characteristics of whether the current set value of each page is stored and the boundary crossing prompt is performed; compared with the existing GUI engine, the method is more concise and appropriate, has the advantages of easy operation, realization and less occupied system resources, greatly simplifies the setting efficiency of the setting interface of the generator set controller, and improves the high efficiency of the setting page of the generator set controller.
Description
Technical Field
The invention relates to the technical field of real-time operating systems, in particular to a software implementation method for setting simple GUI (graphical user interface) in a menu under a real-time operating system.
Background
At present, there are many frames for interface operation GUI, such as Emwin supported on ST chip miniaturized operating system, QT easy to operate under Linux system; these chips are either supported by the autonomous brand chips or under more complex operating systems; the real-time operating system used by the user does not support Emwin, and QT cannot be transplanted; the supported GUI engine is similar to graphical programming under Windows, and is complex and has little data; therefore, in order to accelerate the development process and improve the working efficiency, a simple GUI operation framework is realized on the basis of the prior art.
Disclosure of Invention
The invention aims to provide a software implementation method for setting simple GUI (graphical user interface) in a menu under a real-time operating system, which aims to solve the problems that the existing real-time operating system is too complicated and consumes too much resources due to a GUI engine.
In order to achieve the purpose, the invention adopts the following technical scheme:
a software implementation method for setting simple GUI by menu under real-time operating system includes the following steps:
step 1: abstracting the characteristic of menu cursor switching of each page;
step 2: abstracting numerical value switching characteristics under the current cursor of each page;
and step 3: and abstracting the characteristics of whether the currently set numerical value of each page is stored and the boundary crossing prompt is performed.
The step 1 comprises the following steps:
step 1.1: confirming the coordinates of each cursor of each page, and if the interfaces are the same, reusing the cursor;
step 1.2: confirming the color of the background color of the cursor area to be switched to, and clearing the area;
step 1.3: the foreground color of the cursor area to be switched to is confirmed, and then the current numerical value is displayed.
The step 2 comprises the following steps:
step 2.1: confirming each cursor value which is taken to be switched;
step 2.2: confirming the possible value of each cursor which can be switched up and down;
step 2.3: updating the value corresponding to the adjusted current cursor;
step 2.4: step 1.3 is invoked to display the current value.
The step 3 comprises the following steps:
step 3.1: when exiting the current setting page, comparing whether each setting value is the same as the original value;
step 3.2: if not, the method exits, if the method changes, each value stores the updated and changed value in the set range, and if the value is not in the set range, the method exits as confirmed after prompting the normal range.
Compared with the prior art, the invention has the beneficial effects that:
compared with the existing GUI engine, the method is more concise and appropriate, has the advantages of easy operation, realization and less occupied system resources, greatly simplifies the setting efficiency of the setting interface of the generator set controller, and improves the high efficiency of the setting page of the generator set controller.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but 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.
As shown in fig. 1: the invention relates to a software implementation method for setting simple GUI (graphical user interface) in a menu under a real-time operating system, which comprises the following steps:
step 1: abstracting the characteristic of menu cursor switching of each page;
specifically, the step 1 comprises the following steps:
step 1.1: confirming the coordinates of each cursor of each page, and if the interfaces are the same, reusing the cursor;
step 1.2: confirming the color of the background color of the cursor area to be switched to, and clearing the area;
step 1.3: confirm the foreground of the Cursor area to be switched to, then display the current Value, specifically call this function, Engine _ Setup _22_ Cursor _ Value (rt _ uint8_ t Cursor, rt _ uint8_ t Data, rt _ uint8_ t Iint).
Step 2: abstracting numerical value switching characteristics under the current cursor of each page;
specifically, the step 2 comprises the following steps:
step 2.1: confirming each cursor value which is taken to be switched;
step 2.2: confirming the possible value of each cursor which can be switched up and down;
step 2.3: updating the value corresponding to the adjusted current cursor;
step 2.4: step 1.3 is invoked to display the current Value, specifically invoking this function, Engine _ Setup _22_ Page _ Value _ Exchange (rt _ uint8_ tCursor, rt _ uint16_ tCursor _ Value, rt _ uint8_ t Dir).
And step 3: and abstracting the characteristics of whether the currently set numerical value of each page is stored and the boundary crossing prompt is performed.
Specifically, the step 3 comprises the following steps:
step 3.1: when exiting the current setting page, comparing whether each setting value is the same as the original value, and specifically calling the function int Ischange _ Engine _ Setup _22_ Page (void);
step 3.2: if the change is not in the set range, each Value stores the updated and changed Value, and if the change is not in the set range, the function int IsSetValueBeyond _22_ Page (void) is called according to confirmation after the normal range is prompted.
The software implementation method for setting the simple GUI in the menu under the real-time operating system has the beneficial effects that:
compared with the existing GUI engine, the method is more concise and appropriate, has the advantages of easy operation, realization and less occupied system resources, greatly simplifies the setting efficiency of the setting interface of the generator set controller, and improves the high efficiency of the setting page of the generator set controller.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (4)
1. A software implementation method for setting simple GUI by menu under real-time operating system is characterized by comprising the following steps:
step 1: abstracting the characteristic of menu cursor switching of each page;
step 2: abstracting numerical value switching characteristics under the current cursor of each page;
and step 3: and abstracting the characteristics of whether the currently set numerical value of each page is stored and the boundary crossing prompt is performed.
2. The software implementation method for setting the easy GUI for the menu under the real-time operating system according to claim 1, wherein the step 1 comprises the following steps:
step 1.1: confirming the coordinates of each cursor of each page, and if the interfaces are the same, reusing the cursor;
step 1.2: confirming the color of the background color of the cursor area to be switched to, and clearing the area;
step 1.3: the foreground color of the cursor area to be switched to is confirmed, and then the current numerical value is displayed.
3. The software implementation method of the menu setup easy GUI under the real-time operating system according to claim 2, wherein the step 2 comprises the steps of:
step 2.1: confirming each cursor value which is taken to be switched;
step 2.2: confirming the possible value of each cursor which can be switched up and down;
step 2.3: updating the value corresponding to the adjusted current cursor;
step 2.4: step 1.3 is invoked to display the current value.
4. The software implementation method of the menu setup easy GUI under the real-time operating system according to claim 3, wherein the step 3 comprises the following steps:
step 3.1: when exiting the current setting page, comparing whether each setting value is the same as the original value;
step 3.2: if not, the method exits, if the method changes, each value stores the updated and changed value in the set range, and if the value is not in the set range, the method exits as confirmed after prompting the normal range.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111345509.6A CN114185469A (en) | 2021-11-15 | 2021-11-15 | Software implementation method for setting simple GUI (graphical user interface) in menu under real-time operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111345509.6A CN114185469A (en) | 2021-11-15 | 2021-11-15 | Software implementation method for setting simple GUI (graphical user interface) in menu under real-time operating system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114185469A true CN114185469A (en) | 2022-03-15 |
Family
ID=80540411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111345509.6A Pending CN114185469A (en) | 2021-11-15 | 2021-11-15 | Software implementation method for setting simple GUI (graphical user interface) in menu under real-time operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114185469A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH066705A (en) * | 1992-06-22 | 1994-01-14 | Fujitsu General Ltd | Text broadcasting receiver |
JP2006185274A (en) * | 2004-12-28 | 2006-07-13 | Sony Ericsson Mobilecommunications Japan Inc | Display method, portable terminal equipment and display program |
CN101119499A (en) * | 2007-09-06 | 2008-02-06 | 中兴通讯股份有限公司 | Method for performing self-adaption paint to text focus on set up box |
CN102722371A (en) * | 2012-05-25 | 2012-10-10 | 许继集团有限公司 | Method for constructing embedded user operating interface by using bitmap |
CN104199671A (en) * | 2014-09-15 | 2014-12-10 | 武汉精伦软件有限公司 | Implementing method for easy-to-transplant small graphic system |
CN104780416A (en) * | 2015-03-18 | 2015-07-15 | 福建新大陆通信科技股份有限公司 | A set top box subtitle display system |
-
2021
- 2021-11-15 CN CN202111345509.6A patent/CN114185469A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH066705A (en) * | 1992-06-22 | 1994-01-14 | Fujitsu General Ltd | Text broadcasting receiver |
JP2006185274A (en) * | 2004-12-28 | 2006-07-13 | Sony Ericsson Mobilecommunications Japan Inc | Display method, portable terminal equipment and display program |
CN101119499A (en) * | 2007-09-06 | 2008-02-06 | 中兴通讯股份有限公司 | Method for performing self-adaption paint to text focus on set up box |
CN102722371A (en) * | 2012-05-25 | 2012-10-10 | 许继集团有限公司 | Method for constructing embedded user operating interface by using bitmap |
CN104199671A (en) * | 2014-09-15 | 2014-12-10 | 武汉精伦软件有限公司 | Implementing method for easy-to-transplant small graphic system |
CN104780416A (en) * | 2015-03-18 | 2015-07-15 | 福建新大陆通信科技股份有限公司 | A set top box subtitle display system |
Non-Patent Citations (2)
Title |
---|
张智祥: "基于Linux的示波器校准仪本控软件设计", 《中国优秀硕士学位论文全文数据库 工程科技II辑》, 15 September 2018 (2018-09-15), pages 22 - 25 * |
张玉强: "用C语言实现图形方式的中/西文输入", 《延安大学学报(自然科学版)》, vol. 21, no. 1, 31 March 2002 (2002-03-31), pages 30 - 32 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3474136A1 (en) | Method and apparatus for use in converting building block programming into program code | |
CN111176133A (en) | Method and device for determining smart home scene | |
CN105867920A (en) | APP multi-language switching method and system | |
CN102624762B (en) | Based on method and the cloud computing server of cloud computing hoisting machine people software function | |
CN106448779B (en) | Master-control room of nuclear power plant screen inter-linked controlling method and device | |
CN102253860A (en) | Asynchronous operation method and asynchronous operation management device | |
CN109101233A (en) | It is adapted to the method, storage equipment and Android device of a variety of screen resolutions | |
CN106610837A (en) | Application development method and development platform | |
WO2020150899A1 (en) | Voice control method, voice control apparatus, and computer-executable non-volatile storage medium | |
CN110532058B (en) | Management method, device and equipment of container cluster service and readable storage medium | |
CN113741273A (en) | Multi-gateway scene linkage control method and system | |
CN101227323A (en) | System and method for implementing synchronous operating data of interface collocation and command line collocation | |
CN114185469A (en) | Software implementation method for setting simple GUI (graphical user interface) in menu under real-time operating system | |
CN110780971A (en) | Method and system for realizing visual medical data mapping and converting tool | |
CN113760816A (en) | RISC-VCPU and AI core heterogeneous communication system and design method | |
CN112925811A (en) | Data processing method, device, equipment, storage medium and program product | |
CN112153495B (en) | Method for managing ONU configuration and related equipment | |
CN112558968A (en) | Resource tree view generation method, device, equipment and storage medium | |
CN110765009B (en) | Automatic AI voice software test frame of execution | |
CN112486679A (en) | Pod scheduling method, device and equipment for kubernets cluster | |
CN104408619A (en) | Method and device for configuring IC (integrated circuit) card payment terminal transaction flow, method and device for implementing IC card payment terminal transaction flow and business system | |
WO2024103865A1 (en) | Base station data processing method and apparatus, electronic device, and storage medium | |
CN113852669B (en) | Efficient container cluster deployment method suitable for various network environments | |
CN108958791A (en) | A kind of basic software integrated approach and system | |
CN109189562A (en) | The method and apparatus of control process operation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 450001 No.50 Dongqing street, high tech Development Zone, Zhengzhou City, Henan Province Applicant after: Zhengzhou Foguang power generation equipment Co.,Ltd. Applicant after: Beijing Century Kanghua Electric Technology Co., Ltd Address before: 450001 No.50 Dongqing street, high tech Development Zone, Zhengzhou City, Henan Province Applicant before: ZHENGZHOU FOGUANG POWER GENERATION EQUIPMENT Co.,Ltd. Applicant before: Beijing Century Kanghua Electric Technology Co., Ltd |
|
CB02 | Change of applicant information |