资源描述:
《abstract interviews a c++ graphical interface toolkit》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、InterViews:AC++GraphicalInterfaceToolkitMarkA.Linton,PaulR.Calder,andJohnM.VlissidesStanfordUniversityAbstractaview,definestheuserinterfacetoanabstractob-ject,calledthesubject.TheseparationofsubjectandWehaveimplementedanobject-orienteduserinterfaceviewsupportsdifferentviewsofthesamesubjecttopack
2、age,calledInterViews,thatsupportsthecomposi-suittheparticularapplicationortocustomizeinter-tionofagraphicaluserinterfacefromasetofinter-activestyle.Aviewcanbecustomizeddynamicallyactiveobjects.Thebaseclassforinteractiveobjects,usingametaview,aviewofanotherview'sinternalcalledaninteractor,andbas
3、eclassforcompositeob-state.Forexample,ametaviewmightallowtheuserjects,calledascene,defineaprotocolforcombiningtointeractivelymodifythemappingfromkeystrokestointeractivebehaviors.Subclassesofscenedefinecom-commandsinatextview.montypesofcomposition:aboxtilesitscomponents,Buildinggraphicalinterfaces
4、fromreusablecompo-atrayallowscomponentstooverlaporconstraineachnentsrequirestheabilitytodefineaninteractiveobjectother'splacement,adeckstacksitscomponentssothatthatcanbeusedinavarietyofcontexts.Tofulfillonlyoneisvisible,aframeaddsaborder,andaview-thisrequirement,wemustconsiderthewayinwhichportsho
5、wspartofacomponent.Predefinedcompo-thecharacteristicsofacomponentanditscontextaffectnentsincludemenus,scrollers,buttons,andtexteditors.eachother.InterViewsalsoincludesclassesforstructuredtextandInInterViews,eachinteractivecomponent,calledangraphics.InterViewsiswritteninC++andrunsontopinteractor,
6、hasapreferredshapeandsize.Thepre-oftheXwindowsystem.ferredshapeandsizeofacompositionofcomponents,calledascene,iscalculatedfromthoseofthecompo-nents.However,theactualdisplayspaceallocatedtoan1Introductioninteractormightnotcorrespondtoitspreferredsize—theinteractorisresponsibleformakingbestuseoft
7、heGraphicaluserinterfacesaredifficulttoimplementbe-spaceithasbeenallocated.Differentscenesallocatecauseofdiverseuserneedsandpreferences.Toolsthatdisplayspacetocomponentinteractorsusingdifferentassistagraphicalinterfaceprogrammermus