/*
* Copyright (c) 2005-2007 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: Phonebook 2 contact editor resources.
*
*/
#include "Pbk2UIControls.hrh"
#include "Pbk2EditorLineIds.hrh"
#include "Pbk2FieldProperty.hrh"
#include "Pbk2UIFieldProperty.hrh"
#include "Pbk2UIFieldProperty.rh"
#include <Pbk2IconId.hrh>
#include <phonebook2.loc>
#include <phonebook2ece.loc>
#include <pbk2mapcommands.hrh>
#include <Pbk2Config.hrh>
// --------------------------------------------------------------------------
// Contact editor menu pane
// --------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_pbk2_contacteditor_menupane
{
items=
{
//For Image
/** No submenu at least now
MENU_ITEM
{
command = EPbk2CmdEditorImage;
txt = qtn_phob_opt_image;
cascade = r_pbk2_contacteditor_image_menu;
}
**/
MENU_ITEM
{
command = EPbk2CmdEditorOpen;
txt = qtn_options_change;
flags = EEikMenuItemDimmed;
},
MENU_ITEM
{
command = EPbk2ExtensionAssignFromMapSelect;
txt = qtn_cca_opt_select;
flags = EEikMenuItemDimmed;
},
MENU_ITEM
{
command = EPbk2CmdEditorAddImage;
txt = qtn_phob_opt_add_image;
},
MENU_ITEM
{
command = EPbk2CmdEditorChangeImage;
txt = qtn_phob_field_change_sync;
},
MENU_ITEM
{
command = EPbk2CmdEditorViewImage;
txt = qtn_cca_options_view_image;
},
MENU_ITEM
{
command = EPbk2CmdEditorRemoveImage;
txt = qtn_phob_opt_remove_image;
},
//For ringtone
MENU_ITEM
{
command = EPbk2CmdEditorChangeRingtone;
txt = qtn_phob_field_change_sync;
},
MENU_ITEM
{
command = EPbk2CmdEditorRemoveRingtone;
txt = qtn_phob_field_remove_tone;
},
//For synchronisation
MENU_ITEM
{
command = EPbk2CmdEditorChangeSync;
txt = qtn_phob_field_change_sync;
},
//For item handling
MENU_ITEM
{
command = EPbk2CmdAddItem;
txt = qtn_phob_opt_item_add;
},
MENU_ITEM
{
command = EPbk2CmdDeleteItem;
txt = qtn_phob_opt_item_delete;
},
MENU_ITEM
{
command = EPbk2CmdEditItemLabel;
txt = qtn_phob_opt_item_edit_label;
},
MENU_ITEM
{
command = EPbk2ExtensionAssignFromMap;
txt = qtn_phob_contact_editor_om_assign_from_map;
flags = EEikMenuItemDimmed;
},
MENU_ITEM
{
command = EAknCmdHelp;
txt = qtn_options_help;
},
MENU_ITEM
{
command = EAknCmdExit;
txt = qtn_options_exit;
}
};
}
/** No submenu at least now
// ---------------------------------------------------------
// Image submenu
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_pbk2_contacteditor_image_menu
{
items=
{
MENU_ITEM
{
command = EPbk2CmdEditorViewImage;
txt = qtn_phob_opt_image_view;
},
MENU_ITEM
{
command = EPbk2CmdEditorChangeImage;
txt = qtn_phob_opt_image_change;
},
MENU_ITEM
{
command = EPbk2CmdEditorRemoveImage;
txt = qtn_phob_opt_image_remove;
}
};
}
**/
// --------------------------------------------------------------------------
// Contact editor menu bar
// --------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_pbk2_contacteditor_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_pbk2_contacteditor_menupane;
}
};
}
// --------------------------------------------------------------------------
// Contact editor context menu pane
// --------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_pbk2_contacteditor_context_menupane
{
items=
{
MENU_ITEM
{
command = EPbk2CmdEditorChangeRingtone;
txt = qtn_phob_field_change_sync;
},
MENU_ITEM
{
command = EPbk2CmdEditorRemoveRingtone;
txt = qtn_phob_field_remove_tone;
},
MENU_ITEM
{
command = EPbk2CmdEditorAddImage;
txt = qtn_phob_opt_add_image;
},
MENU_ITEM
{
command = EPbk2CmdEditorChangeImage;
txt = qtn_phob_field_change_sync;
},
MENU_ITEM
{
command = EPbk2CmdEditorViewImage;
txt = qtn_cca_options_view_image;
},
#ifdef ECE_DISABLE_CONTEXT_MENU
MENU_ITEM
{
command = EPbk2CmdEditorRemoveImage;
txt = qtn_phob_opt_remove_image;
}
#else
MENU_ITEM
{
command = EPbk2CmdAddItem;
txt = qtn_phob_opt_item_add;
},
MENU_ITEM
{
command = EPbk2CmdDeleteItem;
txt = qtn_phob_opt_item_delete;
},
MENU_ITEM
{
command = EPbk2CmdEditItemLabel;
txt = qtn_phob_opt_item_edit_label;
}
#endif
};
}
// --------------------------------------------------------------------------
// Contact editor context menu bar
// --------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_pbk2_contacteditor_context_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_pbk2_contacteditor_context_menupane;
}
};
}
// --------------------------------------------------------------------------
// Date editor settings
// --------------------------------------------------------------------------
//
RESOURCE DATE_EDITOR r_pbk2_editor_date_settings
{
minDate =
DATE
{
day = KPbk2DateMinDay;
month = KPbk2DateMinMonth;
year = KPbk2DateMinYear;
};
maxDate =
DATE
{
day = KPbk2DateMaxDay;
month = KPbk2DateMaxMonth;
year = KPbk2DateMaxYear;
};
}
// --------------------------------------------------------------------------
// Dynamic form resource
// --------------------------------------------------------------------------
//
RESOURCE FORM r_pbk2_memoryentry_form
{
flags = EEikFormShowBitmaps | EEikFormUseDoubleSpacedFormat;
}
// --------------------------------------------------------------------------
// Memory entry editor dialog template
// --------------------------------------------------------------------------
//
RESOURCE DIALOG r_pbk2_edit_memory_entry_dialog
{
title = qtn_phob_unnamed;
flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar |
EEikDialogFlagFillAppClientRect | EEikDialogFlagCbaButtons |
EEikDialogFlagWait | EEikDialogFlagNotifyEsc;
buttons = r_pbk2_softkeys_options_done_empty;
form = r_pbk2_memoryentry_form;
}
// --------------------------------------------------------------------------
// A label query for editing field labels
// --------------------------------------------------------------------------
//
RESOURCE DIALOG r_pbk2_edit_field_label_query
{
flags = EGeneralQueryFlags;
buttons =R_AVKON_SOFTKEYS_OK_CANCEL__OK;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
control = EDWIN
{
max_view_height_in_lines = 1;
default_case = EAknEditorTextCase;
allowed_case_modes = EAknEditorAllCaseModes;
};
};
}
};
}
// --------------------------------------------------------------------------
// Synchronization popup selection items
// --------------------------------------------------------------------------
//
RESOURCE ARRAY r_pbk2_sync_popup_items
{
items=
{
LBUF
{
txt = qtn_cale_confident_private;
},
LBUF
{
txt = qtn_cale_confident_public;
},
LBUF
{
txt = qtn_cale_confident_none;
}
};
}
// --------------------------------------------------------------------------
// Synchronization selection popup dialog
// --------------------------------------------------------------------------
//
RESOURCE POPUP_FIELD r_pbk2_syncronization_popup_dlg
{
flags = 0;
width = 16; // in characters (tentative)
other = " "; // dummy
}
// --------------------------------------------------------------------------
// Image line
// --------------------------------------------------------------------------
//
RESOURCE DLG_LINE r_pbk2_image_line
{
type = EPbk2FieldCtrlTypeImageEditor;
prompt = qtn_phob_lbl_image;
id = EPbk2EditorLineImage;
itemflags = EEikDlgItemTakesEnterKey |
EEikDlgItemOfferAllHotKeys;
control = EDWIN
{
flags = EEikEdwinNoAutoSelection |
EEikEdwinNoWrap |
EEikEdwinNoHorizScrolling |
EEikEdwinReadOnly |
EEikEdwinAvkonNotEditable |
EEikEdwinAvkonDisableCursor;
maxlength = 50;
lines = 1;
max_view_height_in_lines = 1;
avkon_flags = EAknEditorFlagDefault |
EAknEditorFlagNoEditIndicators |
EAknEditorFlagNoLRNavigation;
};
}
// --------------------------------------------------------------------------
// Ringtone line
// --------------------------------------------------------------------------
//
RESOURCE DLG_LINE r_pbk2_ringtone_line
{
type = EPbk2FieldCtrlTypeRingtoneEditor;
prompt = qtn_phob_lbl_tone;
id = EPbk2EditorLineRingtone;
itemflags = EEikDlgItemTakesEnterKey |
EEikDlgItemOfferAllHotKeys;
control = EDWIN
{
flags = EEikEdwinNoAutoSelection |
EEikEdwinNoWrap |
EEikEdwinNoHorizScrolling |
EEikEdwinReadOnly |
EEikEdwinAvkonNotEditable |
EEikEdwinAvkonDisableCursor;
maxlength = 50;
lines = 1;
max_view_height_in_lines = 1;
avkon_flags = EAknEditorFlagDefault |
EAknEditorFlagNoEditIndicators |
EAknEditorFlagNoLRNavigation;
};
}
// --------------------------------------------------------------------------
// Address line
// --------------------------------------------------------------------------
//
RESOURCE DLG_LINE r_pbk2_address_line
{
type = EPbk2FieldCtrlTypeExtAddressEditor;
prompt = qtn_phob_header_address;
id = EPbk2EditorLineAddress;
itemflags = EEikDlgItemTakesEnterKey |
EEikDlgItemOfferAllHotKeys;
control = EDWIN
{
flags = EEikEdwinNoAutoSelection |
EEikEdwinNoHorizScrolling |
EEikEdwinReadOnly |
EEikEdwinAvkonNotEditable |
EEikEdwinAvkonDisableCursor;
maxlength = 50;
lines = 1;
max_view_height_in_lines = 3;
avkon_flags = EAknEditorFlagDefault |
EAknEditorFlagNoEditIndicators |
EAknEditorFlagNoLRNavigation;
};
}
// --------------------------------------------------------------------------
// Address Home line
// --------------------------------------------------------------------------
//
RESOURCE DLG_LINE r_pbk2_address_home_line
{
type = EPbk2FieldCtrlTypeExtAddressHomeEditor;
prompt = qtn_phob_header_address_home;
id = EPbk2EditorLineAddressHome;
itemflags = EEikDlgItemTakesEnterKey |
EEikDlgItemOfferAllHotKeys;
control = EDWIN
{
flags = EEikEdwinNoAutoSelection |
EEikEdwinNoHorizScrolling |
EEikEdwinReadOnly |
EEikEdwinAvkonNotEditable |
EEikEdwinAvkonDisableCursor;
maxlength = 50;
lines = 1;
max_view_height_in_lines = 3;
avkon_flags = EAknEditorFlagDefault |
EAknEditorFlagNoEditIndicators |
EAknEditorFlagNoLRNavigation;
};
}
// --------------------------------------------------------------------------
// Address Office line
// --------------------------------------------------------------------------
//
RESOURCE DLG_LINE r_pbk2_address_office_line
{
type = EPbk2FieldCtrlTypeExtAddressOfficeEditor;
prompt = qtn_phob_header_address_work;
id = EPbk2EditorLineAddressOffice;
itemflags = EEikDlgItemTakesEnterKey |
EEikDlgItemOfferAllHotKeys;
control = EDWIN
{
flags = EEikEdwinNoAutoSelection |
EEikEdwinNoHorizScrolling |
EEikEdwinReadOnly |
EEikEdwinAvkonNotEditable |
EEikEdwinAvkonDisableCursor;
maxlength = 50;
lines = 1;
max_view_height_in_lines = 3;
avkon_flags = EAknEditorFlagDefault |
EAknEditorFlagNoEditIndicators |
EAknEditorFlagNoLRNavigation;
};
}
// --------------------------------------------------------------------------
// Contact Editor UI field property array
// --------------------------------------------------------------------------
//
RESOURCE PHONEBOOK2_UI_FIELD_PROPERTY_ARRAY r_pbk2_ui_field_properties_contact_editor
{
items =
{
PHONEBOOK2_UI_FIELD_PROPERTY
{
multiplicity = EPbk2FieldMultiplicityOne;
maxLength = 50;
editMode = EPbk2FieldEditModeSelector;
defaultCase = EPbk2FieldDefaultCaseText;
iconId = PHONEBOOK2_ICON_ID
{
ownerUid = KPbk2UID3;
id = EPbk2qgn_prop_nrtyp_address;
};
ctrlType = EPbk2FieldCtrlTypeExtAddressEditor;
flags = KPbk2FieldFlagNull;
order = EPbk2FieldOrderAddress;
defaultLabel = qtn_phob_header_address;
},
PHONEBOOK2_UI_FIELD_PROPERTY
{
multiplicity = EPbk2FieldMultiplicityOne;
maxLength = 50;
editMode = EPbk2FieldEditModeSelector;
defaultCase = EPbk2FieldDefaultCaseText;
iconId = PHONEBOOK2_ICON_ID
{
ownerUid = KPbk2UID3;
id = EPbk2qgn_prop_nrtyp_address;
};
ctrlType = EPbk2FieldCtrlTypeExtAddressHomeEditor;
flags = KPbk2FieldFlagNull;
order = EPbk2FieldOrderAddressHome;
defaultLabel = qtn_phob_header_address_home;
},
PHONEBOOK2_UI_FIELD_PROPERTY
{
multiplicity = EPbk2FieldMultiplicityOne;
maxLength = 50;
editMode = EPbk2FieldEditModeSelector;
defaultCase = EPbk2FieldDefaultCaseText;
iconId = PHONEBOOK2_ICON_ID
{
ownerUid = KPbk2UID3;
id = EPbk2qgn_prop_nrtyp_address;
};
ctrlType = EPbk2FieldCtrlTypeExtAddressOfficeEditor;
flags = KPbk2FieldFlagNull;
order = EPbk2FieldOrderAddressOffice;
defaultLabel = qtn_phob_header_address_work;
},
PHONEBOOK2_UI_FIELD_PROPERTY
{
multiplicity = EPbk2FieldMultiplicityOne;
maxLength = 50;
editMode = EPbk2FieldEditModeSelector;
defaultCase = EPbk2FieldDefaultCaseText;
iconId = PHONEBOOK2_ICON_ID
{
ownerUid = KPbk2UID3;
id = EPbk2qgn_prop_blid_waypoint;
};
ctrlType = EPbk2FieldCtrlTypeExtAssignFromMapsEditor;
flags = KPbk2FieldFlagNull;
order = EPbk2FieldOrderTop;
defaultLabel = qtn_phob_nokia_maps;
}
};
}
// End of File