extras/calcsoft/group/Calcsoft.rss
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:29:54 +0100
branchRCL_3
changeset 21 10c6e6d6e4d9
parent 0 3ee3dfdd8d69
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002 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 file for Calculator.
*
*/


//  RESOURCE IDENTIFIER
NAME    CALC


//  INCLUDES
#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.hrh>
#include <avkon.rsg>
#include <fontids.hrh>
#include <apcaptionfile.rh>
#include <avkon.loc>
#include <AiwCommon.rh>

#include "calc.hrh"
#include <calc.loc>
#include "CalcDrawingConst.laf"
#include <appinfo.rh>
#include <data_caging_paths_strings.hrh>
//  RESOURCE DEFINITIONS 

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


// ---------------------------------------------------------
//   
//    Default Document FileName
//
// ---------------------------------------------------------
//
RESOURCE TBUF32
    {
    buf = "C:\\system\\data\\Calcsoft";      
    }

// ---------------------------------------------------------
//   
//  Define UI's menu, CBA-key, and status pane.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    status_pane = r_calc_status_pane;
    }

// ---------------------------------------------------------
//   
//  r_calc_status_pane
//  Define status pane of Calculator.
//
// ---------------------------------------------------------
//
RESOURCE STATUS_PANE_APP_MODEL r_calc_status_pane
    {
   //  layout = R_AVKON_STATUS_PANE_LAYOUT_EMPTY;
    }
    
// ---------------------------------------------------------
//   
//    r_calc_view_info
//    Define menubar and cba key of Calculator  
//
// ---------------------------------------------------------
//
RESOURCE CBA r_calc_cba_center_softkey
{
	buttons =
	        {
	        CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;},
	        CBA_BUTTON {id=EAknSoftkeyExit; txt = text_softkey_exit; },
	        CBA_BUTTON {id=EAknSoftkeySelect; txt =	text_softkey_select;}
	        };
}
RESOURCE AVKON_VIEW r_calc_view_info
    {
    menubar = r_calc_menubar;      // menubar
    cba = r_calc_cba_center_softkey;//R_AVKON_SOFTKEYS_OPTIONS_EXIT;    // CBA
    }


// ---------------------------------------------------------
//   
//   r_calc_menubar
//   Menubar for Calculator
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_calc_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_calc_popupmenu;
            }
        };
    }

// ---------------------------------------------------------
//   
//   r_calc_popupmenu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_calc_popupmenu
    {
    items =
        {
        MENU_ITEM
            {
            command = ECalcCmdLastResult;
            txt = qtn_calc_om_last_result;
            },
        MENU_ITEM
            {
            command = ECalcCmdMemory;
            txt = qtn_calc_om_sub_mem;
            cascade = r_calc_memory_menu;
            },
        MENU_ITEM
            {
            command = ECalcCmdClearCalcAndHistory;
            txt = qtn_calc_clear_sheet;
            },
       
        MENU_ITEM
            {
            command = ECalcCmdHelp;
            txt = qtn_options_help;
            },
        MENU_ITEM
            {
            command=ECmdAiwPlaceHolder;
            txt = "Place Holder";
         	cascade = AIW_INTELLIGENT_CASCADE_ID;       
            },
        
        MENU_ITEM
            {
            command = EAknCmdExit;
            txt = qtn_options_exit;
            }
        };
    }
// ---------------------------------------------------------
//   
//   r_calc_popupmenu_aiw
//   Menu for "Options"
//
// ---------------------------------------------------------
//

RESOURCE MENU_PANE r_help_submenu
{
    items=
    {
        MENU_ITEM { command = ECmdAiwPlaceHolderShowHelp; txt = ""; }
    };
}


    // To let know what are the services that are provided

RESOURCE AIW_INTEREST r_aiwhelpapp_interest

	{	

		items =
		
		{
		 AIW_CRITERIA_ITEM
		 
		 	{
		 		id = ECmdAiwPlaceHolder;
		 		// Show help content
		 		serviceCmd = KAiwCmdHelp;   //from aiwcommon.hrh  
		 		serviceClass = KAiwClassMenu;   //from aiwcommon.hrh
		 		contentType = "*";
		 		// Here, the dll's implementation uid is being used instead of the dll uid.
		 		// Also the maxProviders can be removed as the dll will be loaded automatically if
		 		// it is provided.
		 		defaultProvider = 0x10207465; //AiwHelpProvider.dll uid
		 		//maxProviders =1;	 		
		 		
		 	}
		
		
		};


	}


//----------------------------------------------------
//   
//    r_calc_memory_menu
//    Define menu about memory
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_calc_memory_menu
    {
    items =
        {
        MENU_ITEM
            {
            command = ECalcCmdMemorySave;
            txt = qtn_calc_om_mem_save;
            },
        MENU_ITEM
            {
            command = ECalcCmdMemoryRecall;
            txt = qtn_calc_om_mem_recall;
            },
        MENU_ITEM
            {
            command = ECalcCmdMemoryClear;
            txt = qtn_calc_om_mem_clear;
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_calc_error_outofrange
//   Error message for overflow  
//
// ---------------------------------------------------------
//
//Localisation of scalable UI.
//RESOURCE TBUF256 r_calc_error_outofrange
RESOURCE TBUF r_calc_error_outofrange
    {
    buf = text_out_of_range;
    }


// ---------------------------------------------------------
//   
//   r_calc_error_divisionbyzero
//   Error message for division by zero  
//
// ---------------------------------------------------------
////Localisation of scalable UI.
//RESOURCE TBUF256 r_calc_error_divisionbyzero
RESOURCE TBUF r_calc_error_divisionbyzero
    {
    buf = text_calc_division_by_zero;
    }


// ---------------------------------------------------------
//   
//   r_calc_error_negativevaluesqrt
//   Error message for negative value for square root  
//
// ---------------------------------------------------------
////Localisation of scalable UI.
//RESOURCE TBUF256 r_calc_error_negativevaluesqrt
RESOURCE TBUF r_calc_error_negativevaluesqrt
    {
    buf = text_calc_negative_value_for_sqrt;
    }


// ---------------------------------------------------------
//   
//   r_calc_outsheet_operator_array
//   Operator array for OutputSheet.  
//
// ---------------------------------------------------------
//
RESOURCE ARRAY r_calc_outsheet_operator_array
    {
    items=
        {
        INT16
            {
            value = '+'; 
            },      
        INT16
            {
            value = 0x2212; 
            },      
        INT16
            {
            value = 0xD7; 
            },      
        INT16
            {
            value = 0xF7;
            },
        INT16
            {
            value = '='; 
            },
        INT16
            {
            value = 0x221A;
            },
        INT16
            {
            value = '%'; 
            },
        INT16
            {
            value = ' ';
            },
        INT16
            {
            value = '*'; 
            },
        INT16
            {
            value = '/';
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_calc_editor_operator_array
//   Operator array for editor.  
//
// ---------------------------------------------------------
//
RESOURCE ARRAY r_calc_editor_operator_array
    {
    items=
        {
        INT16
            {
            value = '+'; 
            },      
        INT16
            {
            value = 0x2212; 
            },      
        INT16
            {
            value = 0xD7; 
            },      
        INT16 
            {
            value = 0xF7;
            },
        INT16
            {
            value = '='; 
            },
        INT16
            {
            value = 0x221A;
            },
        INT16
            {
            value = '%';  
            },
        INT16
            {
            value = ' ';
            },
        INT16
            {
            value = '*'; 
            },
        INT16
            {
            value = '/';
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_calc_sttus_saved_to_mem
//   indicator for memory saved status  
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_calc_sttus_saved_to_mem
    {
    buf = qtn_calc_sttus_saved_to_mem;
    }

// ---------------------------------------------------------
//   
//   r_calc_sttus_saved_to_mem_sha
//   indicator of shadow for memory saved status  
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_calc_sttus_saved_to_mem_sha
    {
    buf = qtn_calc_sttus_saved_to_mem_sha;
    }

// ---------------------------------------------------------
//   
//   r_calc_minus_indicator
//   Minus indicator, e.g "-"  
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_calc_minus_indicator
    {
    buf = "-";
    }

//----------------------------------------------------
//   
//    r_calc_editor_numberentry_shadow_fontid
//    Define font id for editor number shadow.
//
//----------------------------------------------------
//
RESOURCE FONT r_calc_editor_numberentry_shadow_fontid
    {
    fontid = CALC_DRAWCONST_EDITOR_NUMBER_SHADOW_FONTID;
    }


//----------------------------------------------------
//   
//    r_calc_editor_numberentry_fontid
//    Define font id for editor number.
//
//----------------------------------------------------
//
RESOURCE FONT r_calc_editor_numberentry_fontid
    {
    fontid = CALC_DRAWCONST_EDITOR_NUMBER_FONTID;
    }

//----------------------------------------------------
//   
//    r_calc_editor_operator_shadow_fontid
//    Define font id for editor operator shadow.
//
//----------------------------------------------------
//
RESOURCE FONT r_calc_editor_operator_shadow_fontid
    {
    fontid = CALC_DRAWCONST_EDITOR_OPERATOR_SHADOW_FONTID; 
    }

//----------------------------------------------------
//   
//    r_calc_editor_operator_fontid
//    Define font id for editor operator.
//
//----------------------------------------------------
//
RESOURCE FONT r_calc_editor_operator_fontid
    {
    fontid = CALC_DRAWCONST_EDITOR_OPERATOR_FONTID; 
    }

//----------------------------------------------------
//   
//    r_calc_outsheet_operator_fontid
//    Define font id for outputsheet operator.
//
//----------------------------------------------------
//
RESOURCE FONT r_calc_outsheet_operator_fontid
    {
    fontid = CALC_DRAWCONST_OSHEET_OPERATOR_FONTID;  
    }

RESOURCE LOCALISABLE_APP_INFO r_calcsoft_localisable_app_info
    {
    short_caption = qtn_apps_calculator_grid; //qtn_my_app_short_caption;
    caption_and_icon = 
    CAPTION_AND_ICON_INFO
        {
        caption = qtn_apps_calculator_list;  //qtn_my_app_caption;
#ifdef __SCALABLE_ICONS
        number_of_icons = 1;
 		icon_file = APP_BITMAP_DIR"\\Calcsoft_aif.mif";
 #else
        number_of_icons = 2;
		icon_file = APP_BITMAP_DIR"\\Calcsoft_aif.mbm";
 #endif
        };
       
    }
// End of File