g., for making a phone call with the possibility of entering the phone
number directly or accessing the phonebook ?¬?rst to choose the number).
Entering the number to be called could already be supported with the Query
concept, and then passing it to the phone call module could send the text
message.
Specifying Domain Concepts with Internal Behavior In addition to
dialogs and services, a Python for S60 application also usually contains some more
complex user interface controls. The main UI controls are different from previously
de?¬?ned dialogs as they ?¬?ll the whole display (see Fig. 8.2) and have a richer internal
structure with their own state behavior. Their structure in the language de?¬?nition is
hence richer too. It is usually best to specify such complex internal behavior with a
new language, as in the case of the watch in Chapter 9. Here, UI controls had rather
limited internal structure that could be handled with menu connections and property
types that describe behavior. Therefore, an additional language for the UI controls was
not needed, although it could easily be added if needed, with subdiagrams for each UI
control.
On the menu side, all UI controls could change the menus provided via the soft
key buttons. The soft key buttons and menus for UI controls are managed by the
underlying S60 platform, but the menu items available with the left soft key could
be extended depending on the de?¬?nition given for the UI control.
Pages:
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319