/*
* Copyright (c) 2007-2008 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
*
*/
NAME IMCV
#include <eikon.rh>
#include <imcvuiapp.mbg>
#include <eikon.rsg>
#include <avkon.rh>
#include <avkon.hrh>
#include <avkon.rsg>
#include <appinfo.rh>
#include <avkon.loc>
#include "imcvuiapp.hrh"
#include <meco.loc>
#include <finditem.hrh>
#include <avkon.mbg>
#include <data_caging_paths_strings.hrh>
#include <AvkonIcons.hrh>
#include <aknsconstants.hrh>
#include "imcvappsmileutility.hrh"
#include "imcvappsmileutility.rh"
// ---------------------------------------------------------
//
// Define the resource file signature
// This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }
// ---------------------------------------------------------
//
// Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_default_document_name { buf=""; }
// ---------------------------------------------------------
//
// LOCALISABLE_APP_INFO
//
// ---------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_cv_localisable_app_info
{
short_caption = " ";
caption_and_icon =
{
CAPTION_AND_ICON_INFO
{
caption=" ";
}
};
}
// ---------------------------------------------------------
//
// Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
menubar = r_conversationview_view_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
//----------------------------------------------------
//
// r_chatclient_friendslist_view
// View-resource definition for friendslist-view
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_conversationview_view
{
hotkeys= r_conversationview_hotkeys;
menubar= r_conversationview_view_menubar;
// cba state is dynamically changed within implementation
cba = r_cv_softkeys_options_back__send;
toolbar = r_im_cv_toolbar;
}
//----------------------------------------------------
//
// r_chatclient_menubar_friendslist_view
// Menubar definition for friendslist-view
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_conversationview_view_menubar
{
titles=
{
MENU_TITLE { menu_pane = r_converationview_general_menu; }, // this genaral menu ,help,exit
MENU_TITLE { menu_pane = r_conversationview_view_menu; } // add any new menu item in this menu
};
}
//----------------------------------------------------
//
// r_cv_softkeys_options_back__empty
//----------------------------------------------------
RESOURCE CBA r_cv_softkeys_options_back__empty
{
flags = 0;
buttons =
{
CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; },
CBA_BUTTON { id = EAknSoftkeyBack; txt = text_softkey_back; },
CBA_BUTTON { id = EAknSoftkeyEmpty; txt = text_softkey_empty; }
};
}
//
// r_chat_softkeys_options_continue__contextoptions
//
//----------------------------------------------------------
//
RESOURCE CBA r_cv_softkeys_options_back__contextoptions
{
flags = 0;
buttons =
{
CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; },
CBA_BUTTON { id = EAknSoftkeyBack; txt = text_softkey_back; },
CBA_BUTTON { id = EAknSoftkeyContextOptions; txt = text_softkey_option; }
};
}
//----------------------------------------------------------
//
// r_chat_softkeys_options_exit__empty
//
//----------------------------------------------------------
//
RESOURCE CBA r_cv_softkeys_options_back__send
{
flags = 0;
buttons =
{
CBA_BUTTON { id = EAknSoftkeyOptions; txt = text_softkey_option; },
CBA_BUTTON { id = EAknSoftkeyBack; txt = text_softkey_back; },
CBA_BUTTON { id = EAknSoftkeySend; txt = qtn_msk_send; }
};
}
//----------------------------------------------------
//
// r_chatclient_hotkeys
// ?description
//
//----------------------------------------------------
//
RESOURCE HOTKEYS r_conversationview_hotkeys
{
control=
{
HOTKEY { command=EEikCmdExit; key='e'; }
};
}
//----------------------------------------------------
//
// r_chatclient_general_menu
// Items for general menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_converationview_general_menu
{
items=
{
MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
};
}
//----------------------------------------------------
//
// r_chatclient_friendslist_view_menu
// Items in friendslist-view´s menubar
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_conversationview_view_menu
{
items=
{
MENU_ITEM { command = EIMCVCmdSend; txt = qtn_im_ibox_om_send; },
MENU_ITEM { command = EIMCVCmdSmiley; txt = qtn_chat_conv_insert_smiley; } ,
MENU_ITEM { command = EIMCVCmdFindMenuPlaceHolder;txt = ""; },
MENU_ITEM { command = EIMCVCmdCloseConversation; txt = qtn_servtab_close_conversation; }
};
}
//----------------------------------------------------
//
// r_conversationview_menubar_finditemui
// Menubar definition for find item menu
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_conversationview_menubar_finditemui
{
titles=
{
MENU_TITLE { menu_pane = r_conversationview_finditemui_menu; }
};
}
//----------------------------------------------------
//
// r_conversationview_finditemui_menu
// Items for menupane in find item menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_conversationview_finditemui_menu
{
items =
{
MENU_ITEM
{
command = EFindItemContextMenuPlaceHolder;
txt = "";
}
};
}
// Failed message//////////////////////////////////////////////////////////////
RESOURCE TBUF R_QTN_CONVIEW_FAILED { buf = qtn_conview_failed; }
RESOURCE TBUF r_chat_ceditor_memlo { buf = qtn_memlo_not_enough_memory; }
RESOURCE TBUF r_chat_ceditor_memfull { buf = qtn_memlo_memory_full; }
RESOURCE TBUF r_chat_error_service_err { buf = qtn_chat_error_service_err; }
RESOURCE TBUF r_chat_error_not_reach { buf = qtn_chat_error_not_reach; }
RESOURCE TBUF r_chat_error_gen_error { buf = qtn_chat_error_gen_error; }
RESOURCE TBUF r_chat_error_disconnect_error { buf = qtn_chat_error_disconnect_error; }
RESOURCE TBUF r_servtab_status_change_online { buf = qtn_servtab_status_change_online; }
RESOURCE TBUF r_servtab_status_change_offline { buf = qtn_servtab_status_change_offline; }
RESOURCE TBUF r_servtab_status_change_away { buf = qtn_servtab_status_change_away; }
RESOURCE TBUF r_servtab_status_change_onthephone { buf = qtn_servtab_status_change_onthephone; }
RESOURCE TBUF r_servtab_status_change_dnd { buf = qtn_servtab_status_change_dnd; }
RESOURCE TBUF r_servtab_status_change_blocked { buf = qtn_servtab_default_statustext_blocked; }
RESOURCE TBUF r_servtab_exit_query { buf = qtn_servtab_exit_query; }
RESOURCE TBUF r_chat_cquery_close_conv { buf = qtn_chat_cquery_close_conv; }
RESOURCE DIALOG r_chat_info_note_template
{
flags = EAknInformationNoteFlags | EEikDialogFlagWait;
buttons=R_AVKON_SOFTKEYS_EMPTY;
items=
{
DLG_LINE
{
type = EAknCtNote;
id = EGeneralNote;
control= AVKON_NOTE
{
layout = EGeneralLayout;
animation = R_QGN_NOTE_INFO_ANIM;
};
}
};
}
RESOURCE DIALOG r_chat_error_note_template
{
flags = EAknErrorNoteFlags | EEikDialogFlagWait;
buttons=R_AVKON_SOFTKEYS_EMPTY;
items=
{
DLG_LINE
{
type = EAknCtNote;
id = EGeneralNote;
control= AVKON_NOTE
{
layout = EGeneralLayout;
animation = R_QGN_NOTE_ERROR_ANIM;
};
}
};
}
RESOURCE DIALOG r_generic_yes_no_confirmation_query
{
flags=EGeneralQueryFlags;
buttons=R_AVKON_SOFTKEYS_YES_NO__YES;
items=
{
DLG_LINE
{
type=EAknCtQuery;
id=EGeneralQuery;
control= AVKON_CONFIRMATION_QUERY
{
layout = EConfirmationQueryLayout;
};
}
};
}
// avkon loc string
RESOURCE TBUF r_servtab_login_ongoing { buf = qtn_chat_login_ongoing_note; }
RESOURCE TBUF r_servtab_connection_needed_to { buf = qtn_chat_connection_needed_to; }
// ---------------------------------------------------------
//
// r_servtab_wait_note_template
//
// ---------------------------------------------------------
//
RESOURCE DIALOG r_servtab_wait_note_template
{
flags = EAknDialogGenericNoteFlags ; //EAknProgressNoteFlags;
buttons = R_AVKON_SOFTKEYS_EMPTY;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = ELoginWaitNote;
control = AVKON_NOTE
{
layout = EWaitLayout;
imagefile = AVKON_ICON_FILE;
imageid = EMbmAvkonQgn_note_progress;
imagemask = EMbmAvkonQgn_note_progress_mask;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_im_cv_toolbar_indi_tb_msg_send_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbMsgSend;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_im_cv_toolbar_indi_tb_smiley_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbSmiley;
}
RESOURCE AVKON_BUTTON_STATE_EXTENSION r_im_cv_toolbar_indi_tb_business_card_extension
{
bmbSkinIdMajor= EAknsMajorGeneric;
bmbSkinIdMinor= EAknsMinorGenericQgnIndiTbBusinessCard;
}
//----------------------------------------------------
//
// r_cv_app_toolbar
//
//
//
//----------------------------------------------------
//
RESOURCE AVKON_TOOLBAR r_im_cv_toolbar
{
flags = KAknToolbarFixed;
items =
{
TBAR_CTRL
{
type = EAknCtButton;
id = EIMCVCmdToolbarSend;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_servtab_toolbar_send;
bmpfile = BITMAP_DIR"//imcvuiapp.mif";
bmpid = EMbmImcvuiappQgn_indi_tb_msg_send;
bmpmask = EMbmImcvuiappQgn_indi_tb_msg_send_mask;
extension = r_im_cv_toolbar_indi_tb_msg_send_extension;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
id = EIMCVCmdToolbarInsertSmiley;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_servtab_toolbar_smiley;
bmpfile = BITMAP_DIR"//imcvuiapp.mif";
bmpid = EMbmImcvuiappQgn_indi_tb_smiley;
bmpmask = EMbmImcvuiappQgn_indi_tb_smiley_mask;
extension = r_im_cv_toolbar_indi_tb_smiley_extension;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
id = EIMCVCmdToolbarDetails;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_servtab_toolbar_details;
bmpfile = BITMAP_DIR"//imcvuiapp.mif";
bmpid = EMbmImcvuiappQgn_indi_tb_business_card;
bmpmask = EMbmImcvuiappQgn_indi_tb_business_card_mask;
extension = r_im_cv_toolbar_indi_tb_business_card_extension;
}
};
};
}
};
}
// RESOURCE DEFINITIONS
RESOURCE DIALOG r_select_smile_dialog
{
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
buttons = R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT;
items=
{
DLG_LINE
{
type = EAknCtPopupHeadingPane;
id = EIMIdSelectSmileLabel;
control = AVKON_HEADING
{
label = qtn_chat_conv_smiley;
headinglayout = R_AVKON_SCT_LIST_HEADING_PANE;
};
},
DLG_LINE
{
type = EIMCtrlSelectSmileGrid;
id = EIMIdSelectSmileGrid;
}
};
}
//Message to truncate long received message
RESOURCE TBUF r_qtn_conview_truncated { buf = qtn_conview_truncated; }