idlehomescreen/examples/mcsexample/data/MCSExample.rss
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 20:58:58 +0300
branchRCL_3
changeset 35 3321d3e205b6
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

//  RESOURCE IDENTIFIER
NAME MCSE	// 4 letter ID


//  INCLUDES
#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <appinfo.rh>
#include "MCSExample.hrh"
#include "MCSExample.rls"

//  RESOURCE DEFINITIONS
// -----------------------------------------------------------------------------
//
//	Define the resource file signature
//	This resource should be empty.
//
// -----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
	{
	}

// -----------------------------------------------------------------------------
//
//	Default Document Name
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF r_default_document_name
	{
	buf="MCSE";
	}

// -----------------------------------------------------------------------------
//
//	Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
	{
	menubar = r_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
	}


// -----------------------------------------------------------------------------
//
//   r_menubar
//   Main menubar
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_menu; }
		};
	}


// -----------------------------------------------------------------------------
//
//   r_menu
//   Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_menu
	{
	items =
		{
		// added the new Options menu command here
		MENU_ITEM
				{
				command = ECommand1;
				txt = qtn_command1;
				},
		MENU_ITEM
				{
				command = ECommand2;
				txt = qtn_command2;
				},
		MENU_ITEM
				{
				command = EHelp;
				txt = qtn_help;
				},
		MENU_ITEM
				{
				command = EAbout;
				txt = qtn_about;
				},
		MENU_ITEM
				{
				command = EAknSoftkeyExit;
				txt = qtn_exit;
				}
		};
	}

// -----------------------------------------------------------------------------
//
// About dialog resource.
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_about_query_dialog
	{
	flags =  EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
	items=
		{
		DLG_LINE 
			{
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING
				{
				};
			},
		DLG_LINE
			{
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY
				{
				};
			}
		};
	}

RESOURCE DIALOG r_icon_query_dialog
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    form = r_icon_form;
    }

RESOURCE FORM r_icon_form
    {
    flags = EEikFormUseDoubleSpacedFormat|EEikFormEditModeOnly;
    items =
        {
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = "Major skin ID";
            id = EMyFirstLine;
            control = EDWIN
                 {
                 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                 width = 30;
                 maxlength = 30;
                 // added to limit expanding in forms. 
                 // If you want full screen use 6 here
                 max_view_height_in_lines = 1; 
                 // if you have the line above, you must have this. 
                 // It's calculable from LAF
                 base_line_delta = 21; 
                 };
            },
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = "Minor skin ID";
            id = EMySecondLine;
            control = EDWIN
                 {
                 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                 width = 30;
                 maxlength = 30;
                 // added to limit expanding in forms. 
                 // If you want full screen use 6 here
                 max_view_height_in_lines = 1; 
                 // if you have the line above, you must have this. 
                 // It's calculable from LAF
                 base_line_delta = 21; 
                 };
            },
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = "MIF/MBM file name";
            id = EMyThirdLine;
            control = EDWIN
                 {
                 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                 width = 30;
                 maxlength = 30;
                 // added to limit expanding in forms. 
                 // If you want full screen use 6 here
                 max_view_height_in_lines = 1; 
                 // if you have the line above, you must have this. 
                 // It's calculable from LAF
                 base_line_delta = 21; 
                 };
            },
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = "MIF/MBM bitmap ID";
            id = EMyFourthLine;
            control = EDWIN
                 {
                 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                 width = 30;
                 maxlength = 30;
                 // added to limit expanding in forms. 
                 // If you want full screen use 6 here
                 max_view_height_in_lines = 1; 
                 // if you have the line above, you must have this. 
                 // It's calculable from LAF
                 base_line_delta = 21; 
                 };
            },
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = "MIF/MBM mask ID";
            id = EMyFifthLine;
            control = EDWIN
                 {
                 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                 width = 30;
                 maxlength = 30;
                 // added to limit expanding in forms. 
                 // If you want full screen use 6 here
                 max_view_height_in_lines = 1; 
                 // if you have the line above, you must have this. 
                 // It's calculable from LAF
                 base_line_delta = 21; 
                 };
            },
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = "Presenceicon";
            id = EMySixthLine;
            control = EDWIN
                 {
                 flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                 width = 30;
                 maxlength = 30;
                 // added to limit expanding in forms. 
                 // If you want full screen use 6 here
                 max_view_height_in_lines = 1; 
                 // if you have the line above, you must have this. 
                 // It's calculable from LAF
                 base_line_delta = 21; 
                 };
            }
        };
    }



// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
RESOURCE TBUF r_command1_text { buf=qtn_command1_text; }


// ---------------------------------------------------------------------------- 
//
// r_localisable_app_info
//
// ---------------------------------------------------------------------------- 
//
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
	{
	short_caption = qtn_caption_string;
	caption_and_icon = 
	CAPTION_AND_ICON_INFO
		{
		caption = qtn_caption_string;

		number_of_icons = 1;
		icon_file = "\\resource\\apps\\MCSExample_0xEB753B18.mif";
		};
	}

// End of File