/*
* Copyright (c) 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 definitions for project ?myapp
*
*/


NAME PAGE

#include <avkon.rh>
#include <avkon.rsg>
#include <eikon.rh>
#include <eikon.rsg>
#include <avkon.hrh>
#include <avkon.mbg>

#include "testsdksettingpages.hrh"
#include "testsdksettingpages.rls"

RESOURCE RSS_SIGNATURE{ }

RESOURCE TBUF 
    {
    buf=""; 
    }

RESOURCE DIALOG r_text_query_dialog

    {

    flags = EGeneralQueryFlags;

    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;

    items=

        {

        DLG_LINE

            {

            type = EAknCtQuery;

            id = EGeneralQuery;

            control= AVKON_DATA_QUERY

                {

                layout = EDataLayout;

                label = "Test";

                control = EDWIN

                    {

                    width = 15;

                    lines = 1;

                    maxlength = 15;

                    allowed_input_modes = EAknEditorNumericInputMode;

                    default_input_mode = EAknEditorNumericInputMode;

                    };

                };

            }

        };

    }



RESOURCE DIALOG r_successful_note 
{
    flags=EAknConfirmationNoteFlags; 
    items= 
    { 
    DLG_LINE 
            { 
                type=EAknCtNote; 
                id = EConfirmationSuccessfulNote; 
                control=AVKON_NOTE 
                    {
                    layout = EGeneralLayout; 
                    singular_label = qtn_sucessful_txt;
                    imagefile = qtn_mbm_file; 
                    imageid = EMbmAvkonQgn_indi_marked_add; 
                    imagemask = EMbmAvkonQgn_indi_marked_add_mask; 
                    }; 
            } 
    }; 
}

RESOURCE DIALOG r_fail_note
{       
    flags=EAknConfirmationNoteFlags; 
    items= 
    { 
    DLG_LINE 
            { 
                type=EAknCtNote; 
                id = EConfirmationFailNote; 
                control=AVKON_NOTE 
                {
                layout = EGeneralLayout; 
                singular_label = qtn_fail_txt;
                imagefile = qtn_mbm_file; 
                imageid = EMbmAvkonQgn_indi_marked_add; 
                imagemask = EMbmAvkonQgn_indi_marked_add_mask; 
                }; 
            } 
    }; 
}


RESOURCE AVKON_PASSWORD_CONFIRMATION r_password_confirmation
    {
    password_query_resource = r_text_query_dialog;
    success_note_resource = r_successful_note;
    failure_note_resource = r_fail_note;
    }

RESOURCE AVKON_SETTING_PAGE r_example_setting_page
    {
    label = qtn_example_txt;
    type = EAknCtPopupSettingList;
    editor_resource_id = r_example_editor_control;
    }
 
 
RESOURCE POPUP_SETTING_LIST r_example_editor_control
    {
    flags = 0;
    }

RESOURCE AVKON_SETTING_PAGE r_volume_setting_page
    {
    number = 1;
    label = qtn_volume_txt;
    type = EAknCtVolumeControl;
    editor_resource_id = r_volume_control;
    }

RESOURCE VOLUME r_volume_control
    {
    flags = ESettingsVolumeControl;
    value = 1;
    }

RESOURCE AVKON_SETTING_PAGE r_text_setting_page    
    {    
    number = 1;    
    label = qtn_name_txt;    
    type = EEikCtEdwin;    
    editor_resource_id = r_text_control;    
    }

RESOURCE EDWIN r_text_control    
    {    
    maxlength = 30;    
    }

RESOURCE AVKON_SETTING_PAGE r_integer_setting_page
    {
    number = 0;
    label = qtn_number_txt;
    type = EAknCtIntegerEdwin;
    editor_resource_id = r_integer_control;
    }
RESOURCE AVKON_INTEGER_EDWIN r_integer_control
    {
    min = 0 ;
    max = 100 ;
    }

RESOURCE AVKON_SETTING_PAGE r_numeric_password_setting_page    
    {    
    number = 1;    
    label = qtn_password_txt;    
    type = EAknCtNumericSecretEditor;    
    editor_resource_id = r_numeric_password_control;    
    }

RESOURCE NUMSECRETED r_numeric_password_control    
    {    
    num_code_chars = 6;    
    }

RESOURCE AVKON_SETTING_PAGE r_alpha_password_setting_page    
    {    
    number = 1;    
    label = qtn_password_txt;    
    type = EEikCtSecretEd;    
    editor_resource_id = r_settinglist_alpha_password_control;    
    }

RESOURCE SECRETED r_settinglist_alpha_password_control    
    {    
    num_letters = 6;    
    }

RESOURCE AVKON_SETTING_PAGE r_slider_setting_page    
    {    
    number = 1;    
    label = qtn_slider_txt;    
    type = EAknCtSlider;    
    editor_resource_id = r_slider_control;    
    }

RESOURCE SLIDER r_slider_control    
    {    
    layout = EAknSettingsItemSliderLayout;    
    minvalue = 0;    
    maxvalue = 100;    
    step = 5;    
    valuetype = EAknSliderValueDecimal;    
    minlabel = qtn_lease_txt;    
    maxlabel = qtn_biggest_txt;    
    }

RESOURCE AVKON_SETTING_PAGE r_date_setting_page    
    {    
    label = qtn_date_txt;    
    type = EEikCtDateEditor;    
    editor_resource_id = r_date_control;    
    }

RESOURCE DATE_EDITOR r_date_control    
    {    
    minDate = DATE { year = 1980; };    
    maxDate = DATE { year = 2060; };    
    flags = 0;    
    }

RESOURCE AVKON_SETTING_PAGE r_time_setting_page    
    {    
    number = 1;    
    label = qtn_time_txt;    
    type = EEikCtTimeEditor;    
    editor_resource_id = r_time_control;    
    }

RESOURCE TIME_EDITOR r_time_control    
    {    
    minTime = TIME        
        {        
        second = 0;        
        minute = 0;        
        hour = 0;        
        };    
    maxTime = TIME        
        {        
        second = 59;        
        minute = 59;        
        hour = 23;        
        };    
    }

RESOURCE AVKON_SETTING_PAGE r_timeoffset_setting_page    
    {    
    number = 1;    
    label = qtn_time_offset_txt;    
    type = EEikCtTimeOffsetEditor;    
    editor_resource_id = r_timeoffset_control;    
    }

RESOURCE TIME_OFFSET_EDITOR r_timeoffset_control    
    {    
    minTimeOffset = TIME_OFFSET 
        { 
        seconds = -43200; 
        };    
    maxTimeOffset = TIME_OFFSET 
        { 
        seconds = 43200; 
        };    
    flags = EEikTimeWithoutSecondsField | EEikTimeZoneOffsetFormat;    
    }

RESOURCE AVKON_SETTING_PAGE r_ip_address_setting_page    
    {       
    label = qtn_address_txt;    
    type = EAknCtIpFieldEditor;    
    editor_resource_id = r_ip_control;    
    }

RESOURCE IP_FIELD_EDITOR r_ip_control    
    {    
    min_field_values = IP_FIELD        
        {         
        first_field = 0;        
        second_field = 0;        
        third_field = 0;        
        fourth_field = 0;        
        };    
    max_field_values = IP_FIELD        
        {        
        first_field = 255; 
        second_field = 255;        
        third_field = 255;        
        fourth_field = 255;        
        };    
    flags = 0;    
    }

RESOURCE AVKON_SETTING_PAGE r_enumtext_setting_page
{
number = 2;
label = qtn_test_example_txt;
type = EAknCtPopupSettingList;
editor_resource_id = r_popup_setting_list_control;
}

RESOURCE POPUP_SETTING_LIST r_popup_setting_list_control
{
flags = EAknPopupSettingListFlagAllowsUserDefinedEntry;
}

RESOURCE AVKON_POPUP_SETTING_TEXTS r_popup_setting_list    
    {    
    setting_texts_resource = r_settinglist_page_list;    
    }

RESOURCE ARRAY r_settinglist_page_list    
    {    
    items =        
        {        
        AVKON_ENUMERATED_TEXT {value = 0; text = qtn_red_txt;},        
        AVKON_ENUMERATED_TEXT {value = 1; text = qtn_green_txt;},        
        AVKON_ENUMERATED_TEXT {value = 2; text = qtn_blue_txt;}        
        };    
    }

RESOURCE AVKON_SETTING_ITEM_LIST r_setting_list_setting_binary    
    {    
    flags = EAknSettingItemNumberedStyle;    
    title = qtn_setting_list_txt;    
    initial_number = 1;    
    items =        
        {        
        AVKON_SETTING_ITEM            
            {            
            identifier = ETestSettingItemBinary;
            setting_page_resource = r_binary_setting_page;
            associated_resource = r_popup_setting_binary_texts;
            name = qtn_test_setting_list_txt;            
            }        
        };    
    }

RESOURCE AVKON_SETTING_PAGE r_binary_setting_page    
    {       
    number = 0;    
    label = qtn_test_example_txt;     
    type = EAknCtPopupSettingList;    
    editor_resource_id = r_binary_popup_control;    
    }

RESOURCE POPUP_SETTING_LIST r_binary_popup_control    
    {    
    flags= 0;    
    }

RESOURCE AVKON_POPUP_SETTING_TEXTS r_popup_setting_binary_texts    
    {    
    flags = 0;    
    setting_texts_resource = r_on_off_texts;    
    popped_up_texts_resource = r_popped_up_on_off_texts;    
    }

RESOURCE ARRAY r_on_off_texts    
    {    
    items =        
        {        
        AVKON_ENUMERATED_TEXT { value = 1; text = qtn_on_txt; },        
        AVKON_ENUMERATED_TEXT { value = 0; text = qtn_off_txt; }        
        };    
    }

RESOURCE ARRAY r_popped_up_on_off_texts    
    {    
    items =        
        {        
        LBUF { txt = qtn_enabld_txt; },        
        LBUF { txt = qtn_disable_txt; }        
        };
    }



