节点文献
哈希表在基于GTK+库图形界面开发中的应用
The Application of the Hash Table to the GUI Design Based on GTK+
【摘要】 在linux系统下采用GTK+库进行应用于数控机床的图形界面编程时,一个具体的问题是:当菜单的层次结构比较复杂,单击了某一层次的某个菜单按钮后,如何找到对应所需要执行的功能函数?针对此问题,笔者提出了一个解决方法,此方法利用了数据结构中的哈希表来存储函数指针,通过哈希表的查找,可以成功地实现功能函数的调用。
【Abstract】 One problem in designing a GUI used in the numerical control machine tool with the GTK+ is how to find and execute the corresponding function when the layer’s structure is complex, to which a solution is brought forward: the Hash Table is used to store the pointers of functions, so that these functions can be found and executed through the search of the Hash Table.
【关键词】 哈希表;
GTK+;
Linux;
数控机床;
图形界面。;
【Key words】 Hash Table; GTK+; Linux; numerical control machine tool; GUI.;
【Key words】 Hash Table; GTK+; Linux; numerical control machine tool; GUI.;
【基金】 广东省科学技术厅重点科技攻关项目 (项目编号:2002A1040402)
- 【文献出处】 电子科技 ,It Age , 编辑部邮箱 ,2004年05期
- 【分类号】TP311.1
- 【下载频次】110