简体   繁体   English

Smalltalk GUI库

[英]Smalltalk GUI libraries

I am working on creating a Smalltalk application with Pharo 4.0 for Checkers and was trying to see which GUI library could work for my application. 我正在使用Pharo 4.0 for Checkers创建一个Smalltalk应用程序,并且正在尝试查看哪个GUI库可以用于我的应用程序。

I see that there are 3 options 我看到有3种选择

  • Spec 规格
  • Athens 雅典
  • Morphic 的Morphic

I could not find a lot of information on pros and cons for each GUI library. 我找不到关于每个GUI库的利弊的大量信息。 However, looking at the details I am inclining towards Morphic . 然而,看着我倾向于Morphic的细节。

Could someone please give me some advise on which one to use and advantages/disadvantages details based on experience or know how? 有人可以根据经验或诀窍告诉我一个使用哪个和优缺点的详细信息?

Any help would be greatly appreciated. 任何帮助将不胜感激。

Athens is a low level vector graphics. 雅典是一种低级矢量图形。 You can youse is to draw everything. 你可以选择绘制一切。 Morphic is a UI building framework with a basic components. Morphic是一个具有基本组件的UI构建框架。 There is also BLOC which is a successor of Morphic. 还有BLOC是Morphic的继承者。 If you don't plan to release your app in next half of a year but rather want to pay with programming I'd suggest you to use BLOC, as in future Morphic will be replaced by BLOC. 如果您不打算在下半年发布您的应用程序,而是希望通过编程支付,我建议您使用BLOC,因为将来Morphic将被BLOC取代。

Spec and Glamour are high level frameworks which provide a DSL to quickly build UI. Spec和Glamour是高级框架,提供DSL来快速构建UI。 Spec is widget oriented and Glamour is browser oriented. Spec是面向小部件的,Glamour是面向浏览器的。

For your task it think that Morphic or BLOC are the most appropriate ones 对于您的任务,它认为Morphic或BLOC是最合适的

Migrating from Morphic to Bloc will not be very complex. 从Morphic迁移到Bloc将不会非常复杂。 Bloc tears apart the view and event listener and has different layouters. Bloc撕裂了视图和事件监听器,并有不同的布局。 It also has local coordinates and transformations instead of the global coordinates of Morphic. 它还具有局部坐标和变换,而不是Morphic的全局坐标。 Knowledge of Morphic transfers well to Bloc. 对Morphic的了解很好地传递给了Bloc。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM