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.

<strong>Chapter</strong> 14: Finishing Touches<br />

Overview<br />

After several heavy programming chapters, it's time to step back from the C++ and take a<br />

look at some of the softer, but equally important, aspects of producing a well-crafted GUI<br />

application for Symbian OS smartphones based on UIQ. The title of this chapter is Finishing<br />

Touches, but that's probably misleading – without these finishing touches, your application<br />

will be a non-starter in the mass market.<br />

In this chapter, we'll go through the following improvements to the HelloGUI application<br />

that was the subject of <strong>Chapter</strong> 4:<br />

� adding a button bar and buttons to the user interface<br />

� adding an icon and a localizable language caption to be displayed in the Application<br />

Launcher<br />

� wrapping up the whole application into a single installable package and certifying it to<br />

allow easy delivery and secure installation for end users.<br />

We'll also discuss how to build applications from the command line, using some of the<br />

underlying Symbian OS build tools. All these tools and the file formats used are described in<br />

greater detail within the Tools and Utilities section of Developer Library supplied on the UIQ<br />

SDK.<br />

Finally, we'll look at some of the stylistic aspects to consider when creating GUI applications<br />

based on UIQ. The aim of this style guide is also to help maintain consistency between<br />

applications produced by different suppliers.<br />

Let's begin by adding the finishing touches to HelloGUI. You'll find all the source code in<br />

\scmp\HelloGUIfull, though all source files are still named HelloGui.*<br />

14.1 Adding Buttons<br />

Adding graphical icons to the button bar of your program can make a big difference to the<br />

end user's impression of your application, as well as enhancing usability. The procedure for<br />

doing this is fairly straightforward – in fact, all you need to do is to make the following<br />

changes:<br />

� Create Windows bitmaps for the icons and make them available to the application at<br />

build time.<br />

� Change the resource file for the application to include specifications for the button bar.<br />

� Change the project specification (.mmp) file to enable conversion of your Windows<br />

bitmaps to Symbian OS format files during the application build process.<br />

� That's it! You don't need to modify any C++ at all! The (Figure 14.1) screenshot shows<br />

the button bar of the HelloGUI application we're working toward.<br />

Figure 14.1<br />

Like some of the built-in applications available on UIQ, there are graphical icons visible on<br />

the button bar of the program itself.<br />

14.1.1 Creating the Bitmaps

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

Saved successfully!

Ooh no, something went wrong!