/*
* 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.
*
*/


/*
 * Names List View's state menu pane.
 */
RESOURCE MENU_PANE r_phonebook_nameslist_menu
    {
    items=
        {
        MENU_ITEM { command = EPbkCmdWrite;             txt = qtn_phob_opt_send; },
        MENU_ITEM { command = EPbkCmdCreateNew;         txt = qtn_phob_opt_entry_create; },
        MENU_ITEM { command = EPbkCmdEditMe;            txt = qtn_phob_opt_entry_edit; },
        MENU_ITEM { command = EPbkCmdDeleteMe;          txt = qtn_phob_opt_entry_delete; },
        MENU_ITEM { command = EPbkCmdDuplicateMe;       txt = qtn_phob_opt_entry_duplicate; },
        MENU_ITEM { command = EPbkCmdAddToGroup;        txt = qtn_phob_opt_entry_add_to_grp; },
        MENU_ITEM { command = EPbkCmdBelongsToGroups;   txt = qtn_phob_opt_entry_is_in_grp; },
        MENU_ITEM { command = EPbkCmdOpenOneTouch;      txt = qtn_phob_opt_entry_open1touch; }
        };
    }

/**
 * Phonebook info menu pane.
 */
RESOURCE MENU_PANE r_phonebook_info_menu_pane
    {
    items =
        {
        MENU_ITEM { command = EPbkCmdGoToURL;           txt = qtn_find_go_to_url; },
        MENU_ITEM { command = EPbkCmdSendUICommand; txt = qtn_bcard_opt_send_entry_via; },
        MENU_ITEM { command = EPbkPhonebookInfoSubMenu; txt = qtn_phob_opt_pb_info;
                    cascade = r_pbk_phonebook_info_submenu; }
        };
    }

/**
 * Phonebook info sub menu.
 */
RESOURCE MENU_PANE r_pbk_phonebook_info_submenu
    {
    items=
        {
        MENU_ITEM { command = EPbkCmdPhonebookInfo; txt = qtn_phob_opt_pb_info_memory; }
        };
    }


/**
 * Settings menu.
 */
RESOURCE MENU_PANE r_phonebook_settings_menu
    {
    items=
        {
        MENU_ITEM { command = EPbkCmdSettings;      txt = qtn_phob_opt_settings; }
        };
    }

/**
 * Names List View's menu bar.
 */
RESOURCE MENU_BAR r_phonebook_nameslist_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_phonebook_system_menu;           },
        MENU_TITLE { menu_pane = r_phonebook_settings_menu;         },
        MENU_TITLE { menu_pane = r_phonebook_syncml_menu;           },
        MENU_TITLE { menu_pane = r_phonebook_info_menu_pane;        },
        MENU_TITLE { menu_pane = r_pbk_nameslist_menu_pane_for_extensions; },
        MENU_TITLE { menu_pane = R_AVKON_MENUPANE_MARKABLE_LIST;    },
        MENU_TITLE { menu_pane = r_phonebook_nameslist_menu;        },
        MENU_TITLE { menu_pane = r_phonebook_poc_menu;              },
        MENU_TITLE { menu_pane = r_phonebook_call_menu;             },
        MENU_TITLE { menu_pane = r_phonebook_open_me_menu;          }
        };
    }

/*
 * Names List View's Context sensitive menu pane.
 */
RESOURCE MENU_PANE r_pbk_nameslist_contextmenu
    {
    items=
        {
        MENU_ITEM { command = EPbkCmdCreateNew;     txt = qtn_phob_opt_entry_create; }
        };
    }

/**
 * Names List View's Context sensitive menu bar.
 */
RESOURCE MENU_BAR r_pbk_nameslist_context_menubar
    {
    titles =
        {
        // Names List View's menu pane
        MENU_TITLE { menu_pane = r_pbk_nameslist_contextmenu;        }
        };
    }

/*
 * Names List View's Context sensitive menu pane when items are marked.
 */
RESOURCE MENU_PANE r_pbk_nameslist_contextmenu_marked_items
    {
    items=
        {
        MENU_ITEM { command = EPbkCmdDeleteMe;          txt = qtn_phob_opt_entry_delete;        },
        MENU_ITEM { command = EPbkCmdAddToGroup;        txt = qtn_phob_opt_entry_add_to_grp;    }
        };
    }


/*
 * Names List View's dummy menu pane for extensions
 */
RESOURCE MENU_PANE r_pbk_nameslist_menu_pane_for_extensions
    {
    items=
        {
        // Intentionally left blank, needed by extensions
        };
    }

/*
 * Names List View's dummy context sensitive menu pane for extensions
 */
RESOURCE MENU_PANE r_pbk_context_menu_pane_for_extensions
    {
    items=
        {
        // Intentionally left blank, needed by extensions
        };
    }

/**
 * Names List View's Context sensitive menu bar when items are marked.
 */
RESOURCE MENU_BAR r_pbk_nameslist_context_menubar_items_marked
    {
    titles =
        {
        // Names List View's menu pane
        MENU_TITLE { menu_pane = r_pbk_context_menu_pane_for_extensions;    },
        MENU_TITLE { menu_pane = R_AVKON_MENUPANE_MARKABLE_LIST;            },
        MENU_TITLE { menu_pane = r_pbk_nameslist_contextmenu_marked_items;  }
        };
    }

/**
 * Names List View's main resource.
 */
RESOURCE AVKON_VIEW r_phonebook_nameslist_appview
    {
    menubar = r_phonebook_nameslist_menubar;
    cba = R_AVKON_SOFTKEYS_EXIT;
    }

/**
 * Deletion wait note.
 */
RESOURCE DIALOG r_qtn_phob_note_clearing_pb
    {
    flags = EAknProgressNoteFlags;
    buttons = R_AVKON_SOFTKEYS_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtNote;
            id = EPbkNoteMemoryDeleteInProgress;
            control = AVKON_NOTE
                {
                layout = EProgressLayout;
                singular_label = qtn_phob_note_clearing_pb;
                imagefile = AVKON_ICON_FILE;
                imageid   = qgn_note_erased;
                imagemask = qgn_note_erased_mask;
                };
            }
        };
    }


// End of File
