SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 320 | Next

Steven Kelly and Juha-Pekka Tolvanen

"Domain-Specific Modeling"

8.8.
As many of these modeling constructs have some shared behavior, such as naming
and navigation, common parts were implemented in shared generator modules.
Generator modules ???_Internal name??? and ???_Return variable name??? are widely used
during Autobuild and thus their use in the call order is not shown in Fig. 8.8 to make
the ?¬?gure more readable. When it comes to the common code, one generator module
(Python script) created a part common to all Python for S60 applications: the
176 MOBILE PHONE APPLICATIONS USING A PYTHON FRAMEWORK
navigation stack handling and the main dispatcher to start the application. This code
was nearly identical for every application and thus that generator module did not use
much data from the design models. The results of that module are shown in the sample
application code in the next section: see lines 128??“145 in Listing 8.5.
FIGURE 8.8 Structure of the Python for S60 generator
GENERATOR FOR PYTHON 177
A Basic Generator Module for One Dialog Concept Let??™s look in detail at
the generator de?¬?nition for one of the dialog types: pop-up. It opens a dialog with a
prompt label and list of choices. Based on the choice made, the next function is called.
The generator de?¬?nition is described in Listing 8.1. It is de?¬?ned in the generator
de?¬?nition language used by the MetaEdit+ tool.


Pages:
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6