摘要
通信系统中用户信息交互频繁,格式种类繁多,为解决软件编码定制用户信息编辑界面大部分工作重复繁琐的现状,应用XML方法对图形界面元素进行描述,结合开源GTK+图形用户界面库的使用特点,给出了一种用户编辑界面自动生成的实现方法。通过解析XML文档并调用界面控件库接口动态生成图形用户界面,实现界面设计和生成实现的分离。实践证明,运用该方法实现多样化用户信息的编辑,能够大幅降低界面设计编程的工作量,提高了软件的开发效率和可维护性。
There are numerous and frequent interaction user information in communication system. To solve the problem of repetitive and tedious work in customizing user information editing interface by software coding,a method for graphical user interface automatic genera-tion is presented by applying the XML method in the description of graphical user interface,combining the characteristics of open source widget library GTK+. It dynamically creates graphical user interface by parsing the XML document and calling the API of widget library GTK+,this enables the separation of interface design from the generation. Practice proves by using this method in multiple information edit module,it can reduce the workload of interface design and coding greatly,and improve the developing efficiency and maintainability of software.
出处
《计算机技术与发展》
2014年第5期180-183,187,共5页
Computer Technology and Development
基金
江苏省自然科学基金资助项目(10KJB510014
BK2012832)