首页> 外文OA文献 >Form follows function: Editor GUIs in a functional style
【2h】

Form follows function: Editor GUIs in a functional style

机译:表格遵循功能:编辑功能样式的GUI

摘要

Programming a graphical user interface (GUI) is often time-consuming and boring, requires quite some knowledge about the GUI library, and is likely to result in monolithic, badly readable and inflexible code— even for small and simple programs like editors. These omnipresent GUI parts (for example, all ‘Options’ and ‘Properties’ dialogs are editors) allow the user to inspect and update a set of values. We introduce a small abstract language for describing editors in a modular, flexible, compositional and concise way. In this language, an editor is characterized by its subject type, the type of values it can edit. The operators ⊗, ⊕ and C are used to construct new editors with new subject types. We implement this language as a layer of functions upon the Object I/O Library in the purely functional language Clean. Using this functions, it is indeed possible to quickly construct editors in a declarative way, i.e. without defining object identifiers and event handlers. However, the layout structure of these editors is coupled to the structure of their subject type. We investigate two approaches to decouple these two structures: using a monadic style and using references.
机译:对图形用户界面(GUI)进行编程通常是耗时且枯燥的,需要大量有关GUI库的知识,并且可能会导致整体式,可读性差且不灵活的代码,即使对于小型和简单的程序(如编辑器)也是如此。这些无所不在的GUI部件(例如,所有的“选项”和“属性”对话框都是编辑器)使用户可以检查和更新一组值。我们引入一种小的抽象语言,以模块化,灵活,结构化和简洁的方式描述编辑器。用这种语言,编辑器的特征是其主题类型,可以编辑的值的类型。运算符⊗,⊕和C用于构造具有新主题类型的新编辑器。我们使用纯功能语言Clean将这种语言实现为对象I / O库上的功能层。使用此功能,确实可以以声明的方式快速构造编辑器,即无需定义对象标识符和事件处理程序。但是,这些编辑器的布局结构与其主题类型的结构相关。我们研究了两种方法来解耦这两种结构:使用单子风格和使用引用。

著录项

  • 作者

    Evers S.;

  • 作者单位
  • 年度 2004
  • 总页数
  • 原文格式 PDF
  • 正文语种 {"code":"en","name":"English","id":9}
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号