03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

#include <br />

RESOURCE AIF_DATA<br />

{<br />

caption_list=<br />

{<br />

CAPTION { code=ELangEnglish; caption="Hello!"; },<br />

CAPTION { code=ELangFrench; caption="Bonjour!"; },<br />

CAPTION { code=ELangSpanish; caption="Ola!"; }<br />

};<br />

//<br />

app_uid=0x101f74aa;<br />

//<br />

num_icons=1;<br />

}<br />

� The caption_list struct contains a list of captions in various languages. For our<br />

example, the English caption is Hello!, which is going to look better on the Application<br />

Launcher than HelloGUI did.<br />

� The app_uid item specifies the application's UID and must be the same as the one<br />

that is listed in the project specification file and is returned by the application's<br />

AppDllUid() function.<br />

� The num_icons item specifies the number of icons to be added to the application (not<br />

including any masks) which, in this case, is one.<br />

Note Your application icon will not be displayed if you don't include the correct<br />

UID. As is explained in <strong>Chapter</strong> 4, you should always check that all the<br />

UIDs you have specified in your application match each other.<br />

It is possible to add more information to this file if necessary (for example, MIME type<br />

associations). For more information on the resource file format syntax used by AIF files, see<br />

the Tools & Utilities section of the UIQ SDK.<br />

14.2.3 Rebuilding Your Application<br />

Once you have created the bitmap files, included the AIF statement in your project<br />

specification file, as well as created an AIF resource file, you are ready to build your<br />

application again, using the same commands as described earlier in this chapter. The only<br />

difference this time is that aiftool is called straight after bmconv in order to produce the<br />

.aif file in your target directory.<br />

When viewing the result in the emulator, you should be able to see the new, more visually<br />

appealing icon and localized caption in the Application Launcher (Figure 14.8):

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!