Symbian development-UI framework design tutorial (1)

Source: Internet
Author: User

We have told you about Android UI design tutorial and MeeGo design tutorial, but currently the most used mobile terminal device is the Symbian operating system. This article will introduce you to the Symbian development UI framework design tutorial. The so-called "application architecture" refers to the collection of application framework classes. Based on the required uidesign, applications can have slightly different architectures, but each architecture has some public parts, called the "core application class"

I. Let's take a look at the Symbian UI design basics.

1) core applications.

◆ All S60 UI applications have some basic functions:

◆ Provides a user interface for displaying information and allowing users to interact

◆ Respond to various user-initiated events, such as selecting a menu item

◆ Respond to different events initiated by the system, such as Windows server events that cause screen re-painting

◆ Able to save and restore Application Data

◆ Uniquely identifies itself to the frame

◆ Provide the framework with descriptive information about the application, comparison mark and title.

These classes are: View), Document), Application), Application UIApplication UI ).

A program can have only one document and multiple views.

2) Application Initialization

Each of the following methods must be created to provide the minimum S60 application:

A. All S60 UIS implement a global function E32DLL). When an application starts, the framework will first call this function, which is also called the DLL entry point, this function must exist in the application. Each S60 UI application is a multi-state DLL.

B. Let the framework call NewApplication). This function is the only function exported by DLL.

C. Create an instance of the application class and return its pointer. Later, the framework uses this pointer to create the application.

D. The Framework calls AppDllUid) to return the UID of the application. This function must return the value specified in the. mmp file and be used to determine whether the application instance is running.

E. The framework obtains the pointer to the newly created Document class, CreateDocumentL ).

F, NewL) specific to create

G. For details about how to obtain the pointer of the AppUi class, CreateAppUiL ).

H. Created by new Eleave) CappUi.

Such a brief and intuitive framework is created.

3) Important AppUi methods:

AppUi provides many methods that the framework can call to notify each application of various events.

◆ HandKeyEvent) used to process user buttons

◆ HandleForegroundEventL) This function is called when the application switches to the foreground or from the foreground to the background. The default implementation can handle changes in the keyboard focus.

◆ HandleSystemEventL) transmits events generated by the window Server

◆ HandleApplicationSpecificEventL) You can customize Event Notifications. By default, the color scheme change notification can be processed.

◆ HandleCommandL) is used to process the menu items selected by the user.

4) design the application UI

About the term "view )":

A "View" is a conceptual term that defines "representation of a data model on the screen". In fact, a view is implemented by one or more UI controls derived from CcoeControl, these controls are organized by hierarchy. The parent control is usually called the Container iner INER). In addition to the parent control used to implement the view, this control is called the Dialog box diiner ).

In the Avkon View switching architecture, the term "Avkon View" refers to the class registered by the View server within the system, which controls the instantiation and structure of the View.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.