嵌入式图形界面系统 外文翻译.docx

上传人:b****5 文档编号:11642725 上传时间:2023-03-29 格式:DOCX 页数:27 大小:121.52KB
下载 相关 举报
嵌入式图形界面系统 外文翻译.docx_第1页
第1页 / 共27页
嵌入式图形界面系统 外文翻译.docx_第2页
第2页 / 共27页
嵌入式图形界面系统 外文翻译.docx_第3页
第3页 / 共27页
嵌入式图形界面系统 外文翻译.docx_第4页
第4页 / 共27页
嵌入式图形界面系统 外文翻译.docx_第5页
第5页 / 共27页
点击查看更多>>
下载资源
资源描述

嵌入式图形界面系统 外文翻译.docx

《嵌入式图形界面系统 外文翻译.docx》由会员分享,可在线阅读,更多相关《嵌入式图形界面系统 外文翻译.docx(27页珍藏版)》请在冰豆网上搜索。

嵌入式图形界面系统 外文翻译.docx

嵌入式图形界面系统外文翻译

密级

分类号

编号

成绩

本科生毕业设计(论文)

外文翻译

 

原文标题

ResearchandImplementationofEmbedded

GraphicUserInterfaceBasedonLinux

译文标题

嵌入式图形界面系统的设计与实现

作者所在系别

计算机科学与工程

作者所在专业

计算机科学与技术

作者所在班级

******

作者姓名

******

作者学号

****

指导教师姓名

**

指导教师职称

**

完成时间

2012年2月

北华航天工业学院教务处制

译文标题

嵌入式图形界面系统的设计与实现

原文标题

ResearchandImplementationofEmbeddedGraphicUserInterface

BasedonLinux

作者

LiuYijun,ChenWenbin,HeXiaoman

译名

刘毅军,陈文

斌,何小曼

国籍

中国

原文出处

 会议记录

ResearchandImplementationofEmbeddedGraphicUserInterfaceBasedo基于Linux的嵌入式图形用户界面的研究与实现

LiuYijtm,ChenWenbin,HeXiaoman刘毅军,陈文斌,何小曼

ComputerScienceCollege,SouthwestPetroleumUniversity西南石油大学计算机科学学院

hexiaoman_2008@163.comhexiaoman_2008@

Abstract-thoughtheIn-depthresearchonLinuxsystemandembeddedsystemgraphicaluserinterface(GUI),thispaperdesignsanembeddedGUIbasedonLinuxandimplementsit.Thetestanalysisshowsthattheresearchresultsandthedescribeddesignideasandmethodsarereasonable,feasible,havecertainreferencevalueforsimilarsoftwaredevelopment.摘要:

虽然在深入的研究Linux系统和嵌入式系统的图形用户界面(GUI),本文设计了一种基于Linux的嵌入式GUI,并将之实现。

测试分析表明,研究成果和描述的设计思路和方法是合理,可行的,对于类似软件的开发有一定的参考价值。

Keywords-Linux;embeddedsystem;GUI关键词:

Linux的嵌入式系统,图形用户界面

Ⅰ.Ⅰ.INTRODUCTION引言

Withthedevelopmentofcomputertechnology,embeddedsystemhasbecomeanimportantpartofthecomputerfield.Theso-calledembeddedsystem,thatis.a随着计算机技术的发展,嵌入式系统已成为计算机领域的一个重要组成部分。

所谓的嵌入式系统,是specialcomputersystemwithapplicationascenter,computertechnologyasthebasis,softwareandhardwarecanbetailoredtomeettheapplicationSystemstrict以应用为中心,以计算机技术为基础,软件和硬件可定制的,以满足应用系统的严格的专用计算机系统对功能,可靠性,成本,体积,功耗的要求。

嵌入式计算机中的应用数量远远超过了各种通用计算机,制造工业,过程控制,通讯,设备,仪器仪表,汽车,船舶,航空,航空航天,军事装备,消费类产品都是嵌入式计算机的应用领域。

requirementsforfunctionality,reliability,cost,size,andpowerconsumption.Embeddedcomputerfarexceedsavarietyofgeneral-purposecomputersinthenumberoftheapplications,manufacturingindustry,processcontrol,communications,equipment,instruments,automobiles,ships,aviation,aerospace,militaryequipment,andconsumerproductsarealltheapplicationfieldoftheembeddedcomputer.

Ⅱ.USERINTERFACEBASEDONEMBEDDEDLINUXⅡ基于嵌入式Linux的用户界面

A.EmbeddedoperationsystA.嵌入式作业系统

Embeddedsystemhasuser-oriented,product-oriented,application-orientedfeatures.Differentfromgeneral—purposecomputers,embeddedsystemisaspecial嵌入式系统以用户为导向,以产品为导向,以应用为导向,功能不同于一般通用计算机,嵌入式系统是一个特殊的针对特定应用系统,一般其对成本敏感,对其硬件和软件必须有效地设计,量身定制,去除冗余。

一个很好的嵌入式系统是最小的系统来完成的预定目标。

在嵌入式系统开发过程中,嵌入式软件是实现多种系统功能的关键,也是计算机技术最活跃的研究方向之一。

systemforspecificapplications,generallyiscost-sensitive,anditshardwareandsoftwaremustbeefficientlydesigned,tailoredtoremoveredundancy.Agoodembeddedsystemistheminimumsystemtocompletethetargetfunctions.在一般情况下,嵌入式系统由硬件和软件两个主要部分组成,硬件部分包括处理器/微处理器,存储器,外围设备的I/O端口,图形控制器等嵌入式系统。

与一般的计算机处理系统不同,它不具有大容量硬盘作为存储介质,而用最普遍使用的EPROM,EEPROM,或闪存作为存储介质。

软件部分包括操作系统软件,该软件需要实时和多任务操作,并可对应用程序编程。

操作系统控制着应用程序与硬件交互,以及应用程序控制系统的操作和行为。

B.GUIoverviB.图形用户界面概述

Theoperatingsystemcontrolstheapplicationprogrammingandhardwareinteraction,andtheapplicationcontrolsthesystemoperationandbehaviors.Thebroadpopularityisoneofthemajorachievementsofcurrentcomputertechnology,whichgreatlyfacilitatestheuseofnon-professionalusers,andpeoplenolongerneedstocramalotofcommands.butcaneasilyoperatethrought广泛普及是目前的计算机技术极大地方便了非专业用户使用的主要成就之一,人们不再需要死记硬背大量的命令,但可以很容易地通过操作窗口和菜单对计算机进行操作。

windowandmenu.GUI系统通常由三个基本层次是显示模式,窗口模式和用户模式,用户模型,包含显示器的主要特点和互动,从而长期的GUI有时仅是指用户模型。

图1是GUI系统的层次结构。

Desktopmanagementsystem桌面管理系统

Usermodel用户模型

Windowmodel窗口模型

Operatingsystem操作系统

Hardware硬件

Figure1.图1.GUIsystemhierarchystructureGUI系统的层次结构

Thebottomisthecomputerhardwareplatform,theaboveofwhichisthecomputeroperatingsystem.TheaboveoftheoperatingsystemistheGUIdisplaymodelwhich底部是上述操作系统的计算机硬件平台,上面的是计算机操作系统,是GUI显示模式,用以确定屏幕上的图形显示模式。

不同的图形用户界面系统使用不同的显示模式。

以上显示模式isthewindowmodeloftheGUIsystem.whichistodeterminehowtodisplaythewindowonthescreen.howtochangethesize,howtomoveandthelevelrelationship是窗口GUI系统模型。

这是决定如何显示在屏幕上的窗口,如何改变大小,如何移动和水平的关系betweenthewindows.Itusuallyconsistsoftwoparts:

firstistheprogrammingtool,andthesecondisthehowtomoveoutputandreadthedescriptionofthescreeninformation.BecauseXwindownotonlyrequireshowtodisplay之间的窗口,它通常由两部分组成:

首先是编程工具,第二个是如何输出和阅读对屏幕上的信息的描述,因为X窗口不仅要求如何显示基本图形对象,也提供了如何显示窗口,所以它不仅可以是一个图形用户界面显示模式,而且还可以是窗口模式。

Thetopofthewindowmodelistheusermodelwhichisalsoknownasgraphicaluserinterfacesense.Itincludestwoparts:

oneistheuserinterfacetool;theotheristhedescriptionofhowtoorganizethevariousgraphicalobjects窗口模型的顶部是用户模式,这也被称为图形用户界面,它包括两部分:

一种是用户界面的工具,另一个是对如何在屏幕上组织各种图形对象和和onthescreen,andhowtocarryoutinteractionbetweentheseobjects.如何开展这些对象之间的互动的描述。

Ⅲ.EMBEDDEDGUISYSTEMDESIGNⅢ.嵌入式GUI系统的设计

A.SystemarchitectureA.系统架构

EmbeddedGUIsystemuseshierarchicaldesign,thearchitectureasshowninfigure2.嵌入式GUI系统采用分层设计,其体系结构如图2所示。

应用程序编程接口

Core核心

I/OinterfaceI/O接口

Figure2.图2.EmbeddedGUIhierarchicalstructure嵌入式GUI的层次结构

APIistoprovidetheapplicationprogramminginterfacefunctionsforvariousGUIobjects(suchaswindows,menus,etc.).API是应用程序编程接口,提供各种GUI对象(如窗口,菜单等)。

Coreistoprovidecentricgraphicaloperationfunctions,suchasmessagemechanism,graphicsdeviceinterface,fonts,windowanddesktopmanagementcapabilities.Theparticularpartitionofthecentricgraphicaloperationlayer,核心是提供中心的图形操作功能,如消息机制,图形设备接口,字体,窗口和桌面管理功能,中心的图形操作层的核心模块的特定分区如图3所示。

Coremoduleisshownasinfigure3.

 

 

图3.中心的图形操作层结构

LALandGALisseparatelythehardwaredeviceinputabstractionlayerandthegraphicsoutputabstractionlayer,whichareconnectedwiththeunderlyinginput-outputdevicetofacilitatetheGUItoconnectdifferentinputandoutpLAL和GAL是单独的硬件设备输入抽象层和图形输出抽象层,这是基本输入输出设备,以方便GUI连接到不同的输入和输出devices,toachievegoodportabilityandversatilityoftheGUIsystem.设备,以达到良好的可移植性和GUI系统的多功能性。

B.CoremechanismdesignandimplementatB.核心机制的设计和实施

ThecoremechanismmoduleisthemostimportantcomponentoftheembeddedGUIsystem,includingmessageandevent-drivenmechanism,desktopoperationspre-definedstack,initialization,andtimeroperationseveralsub-modules,thefollowswillbrieflyintroducethefunctionsofseveralsub-module核心机制模块是嵌入式GUI系统的最重要组成部分,包括消息和事件驱动机制,桌面操作预先定义的堆栈,初始化,定时器操作等几个子模块,以下将简要介绍这几个子功能模块。

CMessageandevent-drivenmechanismsub-moduC消息和事件驱动机制的子模块

Thissub-moduleismainlyresponsiblefarmessagereceiving,distributionandroutingoperations.该子模块主要负责消息接收,分配和路由操作。

1)Messagequeueinitialization:

consideringthedefectsofthemulti-messagequeueGUIsysteminsystemoverheadandresourceconsumption,andthereareusuallyverylittleinteractionbetweenthegraphicaluserinterfaceandreal-timecontroltasksinaembeddedsystem,sotheGUIinthispaperisasinglemessagequeuearchitecture.TheGUIsystemwillinitializethemessagequeuewhenbeginningrunningtomakeitinanormalworkstate.1)消息队列初始化:

考虑到多消息队列GUI系统开销和资源消耗的系统缺陷,通常有很少的互动关系的图形用户界面和实时控制任务,因此GUI本是一个单一的消息队列架构。

当运行在正常工作状态时,GUI系统将初始化消息队列。

2)Messagecycle:

whenthewindows,controlstheapplicationcreatedhavebeencompletelydisplayedonthescreen,toenterthemessageloopwaitingforinputevents,andthemessagecycleflowasshowninfigure2)消息循环:

当控制应用程序窗口和控件创建已经完全显示在屏幕上,进入消息循环,等待输入事件,消息循环流如图4所示。

 

图4消息循环流程图

3)Messagedistribution:

afterthemessagesremovedfromthemessagequeue,theywillbedistributedtothecorrespondingwindoworcontrol,toberespondedbytheir3)消息分布:

从消息队列中删除消息后,他们将被分配到相应的窗口或控件,被他们消息处理函数响应。

messageprocessingfunction.

D.Desketopsub-moduD.Desktop子模块

DesktopisaveryimportantpartoftheGUTsystem,whichisequivalenttoabottomwindow,allthemainwindowsarecoveredOnit,alsoitpreservesmanyglobal桌面是非常重要的图形用户界面系统的一部分,这相当于一个底部窗口,它涵盖了所有主要的窗口,也保留了许多全球业务在GUI中,如输入消息的分布;增加影响的主要窗口的处理。

此外,显示,删除,移动和其他对环境的业务,并完成相应的映射操作,通过分布的PAINT的相关消息,调用窗口模块或GUI模块的功能。

l)Windowaddition:

whentheusercreatingamainwindowinthecallingsystemAPI,inadditiontosettingitsowncharacterattributevalue,alsotherelatedsysteminformationwillbechanged,forexample,thereisoverlappingrelationshipbetweenthenewmainwindowandtheexistingmainwindow,whichwillberelatedtotheoperationoftheZorderlist:

andthenewaddedmainwindowwillleadtothechangeoftheexistingmainwindowcutinformation.1)窗口添加:

除了设定自己的属性值,当用户在调用系统API创建一个主窗口时,相关系统的信息也将被改变,例如:

新的主窗口和现有的主窗口之间有重叠的关系,这将关系到Z序列表的操作:

新增加的主窗口将导致现有的主要窗口削减信息的变化。

operationsintheGUI.suchasthedistributionofinputmessages;processingtheimpactofthemainwindowaddition,display,deletion,movementandotheroperationsontheenvironment,andthecompletionofthecorrespondingmappingoperationsthroughthedistributionofthePAINTrelatednews,callingthewindowmoduleorGDImodulefunctions.

2)Windowdeletion:

intheGUI,itisoftenneededtodeleteamainwindow,forexample,thedialogisoccurredintheformofmainwindow,sowhenitwillbecloseditshouldbedeletedandusersmayhavetoindependentlyremoveamainwindow.Thewindowmoduleprovidesthefunctiontodeletethewindowthroughsystemcalling,andultimatelysendsMEG_REMOVEMAINWINmessagetothedesktop.2)窗口删除:

在GUI中它往往需要删除一个主窗口,例如,对话框在主窗口的形式出现,所以它将被关闭,它应该被删除,用户可能有独立删除一个主窗口。

窗口模块提供的功能来删除通过系统调用的窗口,到桌面最终发送MEG_REMOVEMAINWIN的消息。

Tomoveamainwindowtothetoplaver.itneedstodisplaythepartoriginallycoveredbyotherwindows,andthenupdatetheimpactofthemovementonoth

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1