Squirrel Lanaguage Wxwidgets UI Extension Study and Implementation
- Author
- LiGang
- Advisor
- ZhangDongMei
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 20
- Citations
- 0
Abstract
Squirrel is a high level imperative-00 programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games. Although Squirrel offers a wide range of features like dynamic typing, delegation, higher order functions, generators, tail recursion, exception handling, automatic memory management, both compiler and virtual machine fit together in about 6k lines of C++code.wxWidgets is a C++ framework providing GUI (Graphical User Interface) and other facilities on more than one platform. Version 2 currently supports all desktop versions of MS Windows, Unix/Linux with GTK+, Unix/Linux with Motif, and MacOS.This article discusses how the introduction of the wxWidgets functions to Squirrel language, and make it with GUI development capabilities, but also discussed the use of rapid development capabilities Squirrel language, how to make the wxWidgets development easier. This paper also describes Squirrel language C++ objects mapping, wxWidgets message processing and so on..
Table of contents
Summary 4-5
ABSTRACT 5-10
Chapter 1 Introduction 10-13
1.1 subject background 10-12
1.2 topics task 12
1.3 thesis structure design and implementation of Chapter II SQUIRREL 12-13
language and C bidirectional support library 13-22
2.1 SQUIRREL their language and C / C interface 13-17
2.1.1 Squirrel language basic features 13-15
2.1.2 Squirrel language running speed analysis 15
2.1.3 Squirrel language data types and C data types are automatically converted 15-17
2.2 C / C and SQUIRREL calls and two-way exchange of data quickly achieve 17-19
2.2.1 Squirrel language data storage system 17
2.2.2 virtual machine to call C / C function and pass data of 17 -18
2.2.3 C / C function calls and data transfer virtual machine implementations 18-19
2.3 C in SQUIRREL rapid mapping object 19-20 <br / > the basic idea 2.3.1 C object mapping 19
2.3.2 C object mapping project realization 19-20
2.4 Summary 20-22
the third chapter SQUIRREL language WXWIDGETS function package and achieve 22-40
3.1 WXWIDGETS About 22-23
3.2 WXWIDGETS basic structural analysis 23-27
3.2.1 wxWidgets composition structure 23
3.2.2 basic wxWidgets program 23-24
3.2.3 wxWidgets window and dynamically generated control mechanisms 24-25
3.2.4 wxWidgets in DC drawing mechanism 25-27
design nbsp 3.3 SQUIRREL UI classes and functions ; 27-34
3.3.1 Squirrel wxWidget packaging achieve 27-28
3.3.2 wxWidgets layout manager and Squirrel Window class 28-31
3.3.3 Squirrel AUI class 31-32
3.3.4 wxWidgets Squirrel pop-up menu in the realization 32-34
3.4 WXWIDGETS controls to SQUIRREL UI class mapping 34-40
3.4.1 Text control 34-35
3.4.2 Static control 35
3.4.3 ListBox control 35-36
3.4.4 ComboBox control 36
3.4.5 CheckBox controls 36-37
3.4.6 Button controls 37
3.4.7 BitmapButton controls 37-40
Chapter IV SQUIRREL language processing handling of WXWIDGETS events basic framework 40-47
4.1 WXWIDGETS event processing 40-41
4.1.1 wxWidgets static event handling mechanism 40
4.1.2 wxWidgets dynamic event handling mechanism 40-41
C callback conversion mechanism 4.2 SQUIRREL language 41 - 43
4.2.1 C and Squirrel callback table 41
4.2.2 virtual machine and cross-thread across global event delivery 41-42
4.2.3 Squirrel C message conversion process between 42-43
4.3 SQUIRRE cross-thread and cross-process virtual machine data exchange swap mechanism 43-47
basic data exchange format nbsp 4.3.1 ; 43-45
4.3.2 Squirrel language support for the JSON 45-47
Chapter specific examples after SQUIRREL language extensions for software development 47 - 62
5.1 real-time radar data to monitor the project requirements 47-48
5.2 mixed development nbsp C and SQUIRREL language ; 48-49
5.3 real-time radar signal quality monitoring system development functions to achieve 49-57
5.3.1 main screen 49
5.3.2 main Toolbar 49-50
5.3.3 server interface 50-52
5.3.4 track display interface 52-53
5.3.5 packet display interface 53-55
5.3. 6 track drawing interface 55-56
5.3.7 parameter setting interface 56-57
5.4 language program debugging embedded SQUIRREL 57-59 <br / > 5.4.1 exception handling debugging method 57-58
5.4.2 breakpoint output code law 58-59
5.4.3 Squirrel language debug mode 59
5.5 project development efficiency comparative study 59-62
5.5.1 comparison of the amount of code 59-60
5.5.2 compile-time analysis of the modified code 60-62
Chapter VI Conclusion 62-63
6.1 thesis summary 62
6.2 problems and prospects 62-63
Appendix 63-83
1.1 code section 1 63
1.2 code section 2 63-64
1.3 code section 3 64-65
1.4 code section 4 65-70
1.5 code section 5 70-71
1.6 code section 6 71-72
1.7 code section 7 72-73
1.8 code section 8 73-74
1.9 code section 9 74
1.10 snippet 10 74-75
1.11 snippet 11 75-76
1.12 snippet 12 76-77
1.13 snippet 13 77
1.14 snippet 14 77-78
1.15 code code 15 78-80
1.16 snippet 16 80-83
reference literature 83-84
Thanks 84
Related dissertations
- The Design of ADS-B Signal Decoding Board and Message Processing
- The Detection and Decoding Technology for ADS-B Signal in UAT Mode
- Analysis and design of tax kuyin transverse network end tax business process
- Overwintering Strategies of Eurasian Red Squirrels (Sciurus Vulgairs) and Its Effects on Natural Regeneration of Korean Pine
- Study on Foraging Betavior and Sex Proportion of Squirrel(Sciurus Vulgaris) in Sun Island
- A Study on Broad-leaved Korean Pine Forest Dynamics Modelling
- Design and Implementation of Cross-Platform SCADA System Based on ACE and wxWidgets
- Study of Cross-platform Vector Graphics in the Power-systems SCADA System and the Key Technologies for the Related Implementation
- Based on wxWidgets valuable historical information on digital audio restoration system design and implementation
- The dental image three-dimensional visualization platform research
- Dynamic terrain real-time rendering three-dimensional graphics engine technology research and implementation
- Design and Implementation of the Data Access Layer for Financial Application System
- Design and Implementation of the Software Decoding System for Integrating Compression System on Image and Video
- The Comparison of Hoarding Behavior of Red Squirrels between Urban Green Area and Liangshui Nature Reserve
- Research of Intelligent Measurement and Control System Software Based on Micro-Kernel Architecture
- Research and Design for the Virtual Facility Layout System Based on OSG
- Realization of Functions of the MAC Layer of Wireless Mesh Networks