/*
* 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: 
*     This file contains all the resources for the module.
*
*/


//  RESOURCE DEFINITIONS 

/**
 * New/Edit memory entry Menu panes
 */
RESOURCE MENU_PANE r_contacteditor_menupane
	{
	items=
		{
		MENU_ITEM { command = EPbkCmdFetchThumbnail;  txt = qtn_phob_opt_thumbnail_get; },
		MENU_ITEM { command = EPbkCmdRemoveThumbnail; txt = qtn_phob_opt_thumbnail_remove; },
		MENU_ITEM { command = EPbkCmdAddItem;         txt = qtn_phob_opt_item_add; },
		MENU_ITEM { command = EPbkCmdDeleteItem;      txt = qtn_phob_opt_item_delete; },
		MENU_ITEM { command = EPbkCmdEditItemLabel;   txt = qtn_phob_opt_item_edit_label; },
        MENU_ITEM { command = EAknCmdHelp;            txt = qtn_options_help; },
        MENU_ITEM { command = EAknCmdExit;            txt = qtn_options_exit; }
        };
	}

/**
 * Menu Bar resource for New/edit contact menu pane.
 */
RESOURCE MENU_BAR r_pbk_contacteditor_menubar
    {
    titles = 
        { 
        MENU_TITLE { menu_pane=r_contacteditor_menupane; } 
        };
    }

/**
 * New/Edit memory entry context menu pane.
 */
RESOURCE MENU_PANE r_pbk_contacteditor_context_menupane
	{
	items=
		{
		MENU_ITEM { command = EPbkCmdAddItem;         txt = qtn_phob_opt_item_add; },
		MENU_ITEM { command = EPbkCmdDeleteItem;      txt = qtn_phob_opt_item_delete; },
		MENU_ITEM { command = EPbkCmdEditItemLabel;   txt = qtn_phob_opt_item_edit_label; }		
        };
	}

/**
 * Menu Bar resource for New/edit contact context menu pane.
 */
RESOURCE MENU_BAR r_pbk_contacteditor_context_menubar
    {
    titles = 
        { 
        MENU_TITLE { menu_pane = r_pbk_contacteditor_context_menupane; } 
        };
    }

RESOURCE DATE_EDITOR r_pbk_editor_date_settings
	{
	minDate =  
        DATE 
            {
            day     = KPbkDateMinDay;
	        month   = KPbkDateMinMonth; 
	        year    = KPbkDateMinYear;
            };
	maxDate =
        DATE 
            {
            day     = KPbkDateMaxDay; 
            month   = KPbkDateMaxMonth;
            year    = KPbkDateMaxYear;
            };
	}

/**
 * Dynamic form resource
 */
RESOURCE FORM r_phonebook_memoryentry_form
	{
    flags = EEikFormShowBitmaps | EEikFormUseDoubleSpacedFormat;
	}
	
// ---------------------------------------------------------
// Phonebook memory entry editor dialog template - Modal
// @type    modal form
// ---------------------------------------------------------
//
RESOURCE DIALOG r_pbk_edit_memory_entry_dialog
	{
	title = qtn_phob_unnamed;
	flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | 
            EEikDialogFlagFillAppClientRect | EEikDialogFlagCbaButtons | 
            EEikDialogFlagWait;
	buttons = r_pbk_softkeys_options_done_context;
	form = r_phonebook_memoryentry_form;
	}

// ---------------------------------------------------------
// Fetching a thumbnail to a contact wait note
// ---------------------------------------------------------
// 
RESOURCE DIALOG r_qtn_gen_note_fetching
	{
	flags = EAknWaitNoteFlags;
    	buttons = R_AVKON_SOFTKEYS_EMPTY;
	items =
		{
		DLG_LINE
			{
			type = EAknCtNote;
			id = EPbkNoteContactsFetching;
			control = AVKON_NOTE 
				{ 
				layout = EWaitLayout;
				singular_label = qtn_gen_note_fetching;
                animation = R_QGN_GRAF_WAIT_BAR_ANIM;
                imagefile = AVKON_ICON_FILE;
                imageid = EMbmAvkonQgn_note_copy;
                imagemask = EMbmAvkonQgn_note_copy_mask;
                };
			}
		};
	}	

// --------------------------------------------------------------------------
// Options - Context Menu - Done
// --------------------------------------------------------------------------
//
RESOURCE CBA r_pbk_softkeys_options_done_context
    {
    flags = 0;
    buttons =
        {
        CBA_BUTTON
            {
            id = EAknSoftkeyOptions;
            txt = text_softkey_option;
            },
        CBA_BUTTON
            {
            id = EAknSoftkeyDone;
            txt= text_softkey_done;
            },
        CBA_BUTTON
            {
            id = EAknSoftkeyContextOptions;
            txt = text_softkey_option;
            }
        };
    }


// End of File
