CN102520946A - Method for realizing desktop system based on embedded Linux - Google Patents
Method for realizing desktop system based on embedded Linux Download PDFInfo
- Publication number
- CN102520946A CN102520946A CN2011104089631A CN201110408963A CN102520946A CN 102520946 A CN102520946 A CN 102520946A CN 2011104089631 A CN2011104089631 A CN 2011104089631A CN 201110408963 A CN201110408963 A CN 201110408963A CN 102520946 A CN102520946 A CN 102520946A
- Authority
- CN
- China
- Prior art keywords
- window
- over
- desktop
- module
- change
- 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
Images
Abstract
The invention relates to a desktop system based on embedded Linux and realization method thereof, which belongs to the field of computer embedded technology. The desktop system includes two function modules, namely window manager module and desktop manager module. The window manager module includes a window management module, a window stack maintenance module and a window theme style transform module, and mainly has the functions of managing a top-level window created by application program, maintaining stack order of the top-level window, modifying appearance of the top-level window and so on. The desktop manager module includes desktop short-cut icons and a system tray module; extended controls can be designed to support multi-desktop display; and transient icons indicating a specific state and message menus can be displayed. The desktop system has the advantages of clear structure level, less system overhead and high stability, and can well support desktop environment characteristics and realize transparent window effect as well as animation effect, thereby providing good user interface.
Description
Technical field
The present invention relates to a kind of implementation method of the desktop system based on built-in Linux, belong to the computing machine field of embedded technology.
Background technology
Universal day by day along with Embedded Application; Industry is had higher requirement to many aspects such as embedded OS user interface aesthetic properties; And desktop environment is an operating system a more perfect interface and a large amount of all kinds of integrated tool and application program are provided; Because the limitation of embedded system soft or hard resource, ripe on the desktop computer, huge desktop system is not suitable for being applied on the embedded device.Research is of great practical significance with the desktop environment that realizes lightweight on embedded device.Like the patent No. is that CN01141429.4, denomination of invention promptly belong to these row for the patent of " in real-time multi-task operating system, setting up the method for embedded graphic user interface ".
Main flow GUI (the Graphical User Interface of present embedded Linux platform; Be called for short GUI; Claim graphical user interface again) mainly comprise MiniGUI, Microwindows, OpenGUI, Qt/Embedded; There is very big difference in these interfaces at interface definition, architecture, functional characteristic, and the technology path of taking is also different.
MiniGUI is based upon on the graphics engine of comparative maturity, exploitation focus on window system, its small and exquisite exquisiteness and as far as possible and Win32 compatible.The emphasis of MicroWindows exploitation at present is at the graphics engine of bottom, and window system and graphic interface aspect function ratio be shortcoming, keeps compatible with Win32 and XWindows window system, and perfect relatively graphing capability is provided.OpenGUI provides C, the C++ graphical window interface of a high level based on an x86 figure kernel of realizing with compilation, and its resource consumption is little, and is portable poor, do not support multi-process.
Qt/Embedded is a multi-platform C++ graphical user interface application program frame, and its object easy expansion is portable good, supports the mutual exploitation of a plurality of GUI platforms.Now, Qt/Embedded is widely used in various embedded products and the equipment, from consumer appliances (like smart mobile phone, STB) to industrial control equipment (like medical imaging devices, mobile message etc.).
Though traditional G UI to all characteristics of desktop environment all support relatively good, the system overhead that is brought is very big, the construction cycle is oversize, look & feel is easy acceptance by users not too.
Summary of the invention
To defective and the deficiency that prior art exists, the invention provides a kind of implementation method of the desktop system based on built-in Linux.
Technical scheme of the present invention is following:
A kind of implementation method of the desktop system based on built-in Linux, desktop system is write with C Plus Plus, comprises window manager module and desktop handler module two big functional modules; The window manager module comprises window management module, window stack maintenance module and window theme style conversion module, and the incident that the window management module need be handled comprises that left mouse button is pressed incident, left mouse button is decontroled incident, window change events; The desktop handler module is divided into desktop shortcut icon module and system tray module; The implementation method of the desktop system of built-in Linux is following:
It is following that described left mouse button is pressed the event handling flow process:
1, beginning;
2, detect left mouse button pressing;
3, the window attribute of being clicked being set is active window;
4, preserve the position of mouse with respect to active window;
5, finish.
It is following that described left mouse button is decontroled the event handling flow process:
1, beginning;
2, detect left mouse button relieving;
3, judge whether the window attribute of clicking is active window, if then change step 4 over to, if not then changing step 8 over to:
4, judge the click zone, if the X button zone then changes step 5 over to, then change step 6 over to, if the maximize button zone then changes step 7 over to if minimize button area;
5, close window;
6, minimized window;
7, maximized window;
8, finish.
Described window change events treatment scheme is following:
1, beginning;
2, detecting window changes;
3, judge whether window attribute is active window, if then change step 4 over to, if not then changing step 10 over to;
4, judge whether it is that window moves, if then change step 5 over to, if not then changing step 7 over to;
The x of the big or small calculation window that 5, moves according to mouse, the displacement of y coordinate;
6, according to the calculated value moving window;
7, judge whether it is that window changes size, if then change step 8 over to, if not then changing step 10 over to;
8, the big or small calculation window width that moves according to the position and the mouse at mouse place and the displacement of height;
9, change window size according to calculated value;
10, finish.
Described window stack maintenance module operating procedure is following:
1, beginning;
2, the user selects window to switch;
3, judge whether it is full screen window, if then change step 4 over to, if not then changing step 5 over to;
4, hide other window;
5, this window is risen to top;
6, finish.
Described window theme style conversion module operating procedure is following:
1, beginning;
2, the user selects the switch window theme style, triggers window theme style change events;
3, the window theme style of selecting the user is mapped to character string;
4, window theme style module is according to the style name of string searching correspondence in document style that receive, if do not find then change step 8 over to, if find then change step 5 over to;
5, search the icon of such style needs according to the style name;
6, search corresponding data structure;
7, according to the data structure lookup icon file, if do not find then change step 8 over to, if find then change step 9 over to;
8, load default theme style;
9, load the theme style that the user selects;
10, switch window theme style;
11, finish.
Described desktop shortcut icon module operating procedure is following:
1, beginning;
2, read configuration file;
3, create window;
4, according to Application Type display icon and literal in the configuration file to desktop;
5, the user clicks the mouse, and gets into event handling;
6, discharge the resource of using;
7, finish.
Described system tray module operating procedure is following:
1, beginning;
2, obtain supervisory routine and select the zone;
3, window attribute is set and monopolizes screen area;
4, read application program, start configuration file;
5, reception incident;
6, judge whether it is operational code message, if then change step 7 over to, if not then changing step 9 over to;
7, read opcode;
8, beginning display message menu;
9, judge whether to change icon display, if then change step 10 over to, if not then changing step 11 over to;
10, change the icon display order;
11, finish.
The present invention has realized a kind of desktop system based on built-in Linux, and the native system expense is less, and system stability is easy to safeguard and provide good user interface.
Description of drawings
Fig. 1 is the one-piece construction block diagram of desktop system.
Fig. 2 is that left mouse button is pressed the event handling process flow diagram.
Fig. 3 is that left mouse button is decontroled the event handling process flow diagram.
Fig. 4 is a window change events processing flow chart.
Fig. 5 is a window stack maintenance module processing flow chart.
Fig. 6 is a window theme style conversion module processing flow chart.
Fig. 7 is a desktop shortcut icon resume module process flow diagram.
Fig. 8 is a system tray resume module process flow diagram.
Wherein, 1, application program, 2, desktop shortcut icon module, 3, the desktop handler module, 4, the system tray module, 5, the window management module, 6, the window stack maintenance module, 7, window theme style conversion module, 8, window manager module.
Embodiment:
Below in conjunction with accompanying drawing and embodiment the present invention is further specified, but be not limited thereto.
Embodiment:
A kind of implementation method of the desktop system based on built-in Linux; The one-piece construction of desktop system is as shown in Figure 1; Implementation method process flow diagram such as Fig. 2-shown in Figure 8, desktop system is write with C Plus Plus, comprises window manager module (8) and desktop handler module (3) two big functional modules; Window manager module (8) comprises window management module (5), window stack maintenance module (6) and window theme style conversion module (7), and the incident that window management module (5) needs to handle comprises that left mouse button is pressed incident, left mouse button is decontroled incident, window change events; Desktop handler module (3) is divided into desktop shortcut icon module (2) and system tray module (4); The implementation method of the desktop system of built-in Linux is following:
It is following that described left mouse button is pressed the event handling flow process:
1, beginning;
2, detect left mouse button pressing;
3, the window attribute of being clicked being set is active window;
4, preserve the position of mouse with respect to active window;
5, finish.
It is following that described left mouse button is decontroled the event handling flow process:
1, beginning;
2, detect left mouse button relieving;
3, judge whether the window attribute of clicking is active window, if then change step 4 over to, if not then changing step 8 over to;
4, judge the click zone, if the X button zone then changes step 5 over to, then change step 6 over to, if the maximize button zone then changes step 7 over to if minimize button area;
5, close window;
6, minimized window;
7, maximized window;
8, finish.
Described window change events treatment scheme is following:
1, beginning;
2, detecting window changes;
3, judge whether window attribute is active window, if then change step 4 over to, if not then changing step 10 over to;
4, judge whether it is that window moves, if then change step 5 over to, if not then changing step 7 over to;
The x of the big or small calculation window that 5, moves according to mouse, the displacement of y coordinate;
6, according to the calculated value moving window;
7, judge whether it is that window changes size, if then change step 8 over to, if not then changing step 10 over to;
8, the big or small calculation window width that moves according to the position and the mouse at mouse place and the displacement of height;
9, change window size according to calculated value;
10, finish.
Described window stack maintenance module operating procedure is following:
1, beginning;
2, the user selects window to switch;
3, judge whether it is full screen window, if then change step 4 over to, if not then changing step 5 over to;
4, hide other window;
5, this window is risen to top;
6, finish.
Described window theme style conversion module operating procedure is following:
1, beginning;
2, the user selects the switch window theme style, triggers window theme style change events;
3, the window theme style of selecting the user is mapped to character string;
4, window theme style module is according to the style name of string searching correspondence in document style that receive, if do not find then change step 8 over to, if find then change step 5 over to;
5, search the icon of such style needs according to the style name;
6, search corresponding data structure;
7, according to the data structure lookup icon file, if do not find then change step 8 over to, if find then change step 9 over to;
8, load default theme style;
9, load the theme style that the user selects;
10, switch window theme style;
11, finish.
Described desktop shortcut icon module operating procedure is following:
1, beginning;
2, read configuration file;
3, create window;
4, according to Application Type display icon and literal in the configuration file to desktop;
5, the user clicks the mouse, and gets into event handling;
6, discharge the resource of using;
7, finish.
Described system tray module operating procedure is following:
1, beginning;
2, obtain supervisory routine and select the zone;
3, window attribute is set and monopolizes screen area;
4, read application program, start configuration file;
5, reception incident;
6, judge whether it is operational code message, if then change step 7 over to, if not then changing step 9 over to;
7, read opcode;
8, beginning display message menu;
9, judge whether to change icon display, if then change step 10 over to, if not then changing step 11 over to;
10, change the icon display order;
11, finish.
Claims (1)
1. implementation method based on the desktop system of built-in Linux, desktop system is write with C Plus Plus, comprises window manager module and desktop handler module two big functional modules; The window manager module comprises window management module, window stack maintenance module and window theme style conversion module, and the incident that the window management module need be handled comprises that left mouse button is pressed incident, left mouse button is decontroled incident, window change events; The desktop handler module is divided into desktop shortcut icon module and system tray module; It is characterized in that the implementation method of the desktop system of built-in Linux is following:
It is following that described left mouse button is pressed the event handling flow process:
1, beginning;
2, detect left mouse button pressing;
3, the window attribute of being clicked being set is active window;
4, preserve the position of mouse with respect to active window;
5, finish.
It is following that described left mouse button is decontroled the event handling flow process:
1, beginning;
2, detect left mouse button relieving;
3, judge whether the window attribute of clicking is active window, if then change step 4 over to, if not then changing step 8 over to:
4, judge the click zone, if the X button zone then changes step 5 over to, then change step 6 over to, if the maximize button zone then changes step 7 over to if minimize button area;
5, close window;
6, minimized window;
7, maximized window;
8, finish.
Described window change events treatment scheme is following:
1, beginning;
2, detecting window changes;
3, judge whether window attribute is active window, if then change step 4 over to, if not then changing step 10 over to;
4, judge whether it is that window moves, if then change step 5 over to, if not then changing step 7 over to;
The x of the big or small calculation window that 5, moves according to mouse, the displacement of y coordinate;
6, according to the calculated value moving window;
7, judge whether it is that window changes size, if then change step 8 over to, if not then changing step 10 over to;
8, the big or small calculation window width that moves according to the position and the mouse at mouse place and the displacement of height;
9, change window size according to calculated value;
10, finish.
Described window stack maintenance module operating procedure is following:
1, beginning;
2, the user selects window to switch;
3, judge whether it is full screen window, if then change step 4 over to, if not then changing step 5 over to;
4, hide other window;
5, this window is risen to top;
6, finish.
Described window theme style conversion module operating procedure is following:
1, beginning;
2, the user selects the switch window theme style, triggers window theme style change events;
3, the window theme style of selecting the user is mapped to character string;
4, window theme style module is according to the style name of string searching correspondence in document style that receive, if do not find then change step 8 over to, if find then change step 5 over to;
5, search the icon of such style needs according to the style name;
6, search corresponding data structure;
7, according to the data structure lookup icon file, if do not find then change step 8 over to, if find then change step 9 over to;
8, load default theme style;
9, load the theme style that the user selects;
10, switch window theme style;
11, finish.
Described desktop shortcut icon module operating procedure is following:
1, beginning;
2, read configuration file;
3, create window;
4, according to Application Type display icon and literal in the configuration file to desktop;
5, the user clicks the mouse, and gets into event handling;
6, discharge the resource of using;
7, finish.
Described system tray module operating procedure is following:
1, beginning;
2, obtain supervisory routine and select the zone;
3, window attribute is set and monopolizes screen area;
4, read application program, start configuration file;
5, reception incident;
6, judge whether it is operational code message, if then change step 7 over to, if not then changing step 9 over to;
7, read opcode;
8, beginning display message menu;
9, judge whether to change icon display, if then change step 10 over to, if not then changing step 11 over to;
10, change the icon display order;
11, finish.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104089631A CN102520946A (en) | 2011-12-09 | 2011-12-09 | Method for realizing desktop system based on embedded Linux |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104089631A CN102520946A (en) | 2011-12-09 | 2011-12-09 | Method for realizing desktop system based on embedded Linux |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102520946A true CN102520946A (en) | 2012-06-27 |
Family
ID=46291888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104089631A Pending CN102520946A (en) | 2011-12-09 | 2011-12-09 | Method for realizing desktop system based on embedded Linux |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102520946A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937859A (en) * | 2012-10-19 | 2013-02-20 | 山东大学 | Realization method of desktop system based on Android operation system |
CN105528240A (en) * | 2014-09-28 | 2016-04-27 | 福建星网视易信息系统有限公司 | Desktop environment implementing apparatus and method |
CN108595231A (en) * | 2018-05-15 | 2018-09-28 | Oppo广东移动通信有限公司 | Application program preloads method, apparatus, storage medium and intelligent terminal |
CN113535287A (en) * | 2020-04-17 | 2021-10-22 | 中标软件有限公司 | Method for automatically arranging windows of desktop environment of Linux operating system |
CN114489605A (en) * | 2022-03-15 | 2022-05-13 | 浙江云针信息科技有限公司 | Window view display method of cloud operating system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1538273A (en) * | 2003-02-25 | 2004-10-20 | System and method for easy used of computer desk | |
CN101606124A (en) * | 2007-01-25 | 2009-12-16 | 夏普株式会社 | Multi-window managing device and program, storage medium and signal conditioning package |
-
2011
- 2011-12-09 CN CN2011104089631A patent/CN102520946A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1538273A (en) * | 2003-02-25 | 2004-10-20 | System and method for easy used of computer desk | |
CN101606124A (en) * | 2007-01-25 | 2009-12-16 | 夏普株式会社 | Multi-window managing device and program, storage medium and signal conditioning package |
Non-Patent Citations (1)
Title |
---|
冯延伟: "嵌入式卓面环境的研究与实现", 《华中科技大学,硕士学位论文》, 14 March 2011 (2011-03-14) * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102937859A (en) * | 2012-10-19 | 2013-02-20 | 山东大学 | Realization method of desktop system based on Android operation system |
CN105528240A (en) * | 2014-09-28 | 2016-04-27 | 福建星网视易信息系统有限公司 | Desktop environment implementing apparatus and method |
CN105528240B (en) * | 2014-09-28 | 2018-12-28 | 福建星网视易信息系统有限公司 | Desktop environment realization device and method |
CN108595231A (en) * | 2018-05-15 | 2018-09-28 | Oppo广东移动通信有限公司 | Application program preloads method, apparatus, storage medium and intelligent terminal |
CN108595231B (en) * | 2018-05-15 | 2021-06-15 | Oppo广东移动通信有限公司 | Application program preloading method and device, storage medium and intelligent terminal |
CN113535287A (en) * | 2020-04-17 | 2021-10-22 | 中标软件有限公司 | Method for automatically arranging windows of desktop environment of Linux operating system |
CN114489605A (en) * | 2022-03-15 | 2022-05-13 | 浙江云针信息科技有限公司 | Window view display method of cloud operating system |
CN114489605B (en) * | 2022-03-15 | 2022-07-12 | 浙江云针信息科技有限公司 | Window view display method of cloud operating system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5881824B2 (en) | Method in touch screen terminal and touch screen terminal | |
US10528210B2 (en) | Foreground/background assortment of hidden windows | |
US20120192078A1 (en) | Method and system of mobile virtual desktop and virtual trackball therefor | |
CN103645906B (en) | The method and system that interface is laid out again are realized based on fixed interface layout files | |
US20150033171A1 (en) | Segment ring menu | |
US20140007008A1 (en) | Techniques for select-hold-release electronic device navigation menu system | |
CN102937859A (en) | Realization method of desktop system based on Android operation system | |
CN103870095A (en) | User interface operation method based on touch screen and terminal device using same | |
EP3436942A1 (en) | Tabs in system task switchers | |
US20120151368A1 (en) | Application operating environment for mobile computing devices | |
US11620034B2 (en) | Systems and methods for providing tab previews via an operating system user interface | |
CN102520946A (en) | Method for realizing desktop system based on embedded Linux | |
CN102402375A (en) | Display terminal and display method | |
CN103984464A (en) | Display method and device of mobile terminal shortcut | |
US20170249295A1 (en) | Techniques to present a dynamic formula bar in a spreadsheet | |
CN102214060A (en) | Touch electronic device and window control method thereof | |
CN102023805B (en) | Method for assisting in browsing text messages on software interface | |
CN103677596A (en) | Method for displaying graphical user interfaces and electronic device adopting method | |
CN112269501A (en) | Icon moving method and device and electronic equipment | |
WO2017201655A1 (en) | Background application display method and apparatus, electronic device and computer program product | |
CN114089885A (en) | Application icon management method and device, electronic equipment and readable storage medium | |
US10162602B2 (en) | Method for handling user-level events for programming an application | |
CN101408839B (en) | Method for implementing menu | |
CN113672136A (en) | Information display method, device, equipment and storage medium | |
CN103543824A (en) | Gesture input system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120627 |