/* Machine-made version of this file copyright (c) 2005 Somusar */ /* Derived from samples that are Copyright (c) 2004, Nokia. All rights reserved */ // RESOURCE IDENTIFIER NAME TWFM // INCLUDES #include #include #include #include #include #include #include "twoforms.loc" #include "TwoForms.hrh" // CONSTANTS #define TWOFORMS_EDWIN_WIDTH 1 #define TWOFORMS_EDWIN_LINES 2 #define TWOFORMS_DATE_MAX_DAY_VALUE 30 #define TWOFORMS_DATE_MIN_DAY_VALUE 0 #define TWOFORMS_DATE_MAX_MONTH_VALUE 11 #define TWOFORMS_DATE_MIN_MONTH_VALUE 0 #define TWOFORMS_DATE_MAX_YEAR_VALUE 2009 #define TWOFORMS_DATE_MIN_YEAR_VALUE 2000 #define TWOFORMS_TIME_MIN_SECOND_VALUE 0 #define TWOFORMS_TIME_MAX_SECOND_VALUE 59 #define TWOFORMS_TIME_MIN_MINUTE_VALUE 0 #define TWOFORMS_TIME_MAX_MINUTE_VALUE 59 #define TWOFORMS_TIME_MIN_HOUR_VALUE 0 #define TWOFORMS_TIME_MAX_HOUR_VALUE 23 #define TWOFORMS_NUMBER_MIN_VALUE 12 #define TWOFORMS_NUMBER_MAX_VALUE 24 #define TWOFORMS_DURATION_MIN_VALUE 0 #define TWOFORMS_DURATION_MAX_VALUE 7200 #define TWOFORMS_PASSWORD_MAX_LENGTH 8 // MACROS // RESOURCE DEFINITIONS //----------------------------------------------------------------------------- // // RSS_SIGNATURE // // //----------------------------------------------------------------------------- // RESOURCE RSS_SIGNATURE { } //----------------------------------------------------------------------------- // // TBUF16 // // //----------------------------------------------------------------------------- // RESOURCE TBUF16 { buf = qtn_twoforms_title; } //----------------------------------------------------------------------------- // // EIK_APP_INFO // // //----------------------------------------------------------------------------- // RESOURCE EIK_APP_INFO { menubar = r_twoforms_menubar; cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; } //----------------------------------------------------------------------------- // // r_aknextest_view // // //----------------------------------------------------------------------------- // RESOURCE AVKON_VIEW r_twoforms_view { } //----------------------------------------------------------------------------- // // r_twoforms_menubar // MenuBar // //----------------------------------------------------------------------------- // RESOURCE MENU_BAR r_twoforms_menubar { titles = { MENU_TITLE { menu_pane = r_twoforms_menu; txt = qtn_twoforms_menubar; } }; } //----------------------------------------------------------------------------- // // r_twoforms_menu // Menu pane // //----------------------------------------------------------------------------- // RESOURCE MENU_PANE r_twoforms_menu { items = { MENU_ITEM { command = ETwoFormsCmdFirstFormCommand; txt = qtn_twoforms_menu_first_form; }, MENU_ITEM { command = ETwoFormsCmdSecondFormCommand; txt = qtn_twoforms_menu_second_form; }, MENU_ITEM { command = EAknCmdExit; txt = qtn_twoforms_menu_exit; } }; } RESOURCE TBUF256 r_twoforms_text_status_pane_title_first_form { buf = qtn_twoforms_title_first_form; } //----------------------------------------------------------------------------- // // r_twoforms_first_form_title // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_twoforms_first_form_title { buf = qtn_twoforms_first_form_label_title; } //----------------------------------------------------------------------------- // // r_twoforms_first_form_operation // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_twoforms_first_form_operation { buf = qtn_twoforms_first_form_label_operation; } //----------------------------------------------------------------------------- // // r_twoforms_first_form_dialog // For TwoForms // //----------------------------------------------------------------------------- // RESOURCE DIALOG r_twoforms_first_form_dialog { flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | EEikDialogFlagCbaButtons; buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; form = r_twoforms_first_form_form; } //----------------------------------------------------------------------------- // // r_twoforms_first_form_form // For TwoForms // //----------------------------------------------------------------------------- // RESOURCE FORM r_twoforms_first_form_form { items = { DLG_LINE { type = EEikCtNumberEditor; prompt = qtn_twoforms_first_form_label_number; id = ETwoFormsDlgCtrlIdFirstFormNumber; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = NUMBER_EDITOR { min = TWOFORMS_NUMBER_MIN_VALUE; max = TWOFORMS_NUMBER_MAX_VALUE; }; }, DLG_LINE { type = EEikCtDateEditor; prompt = qtn_twoforms_first_form_label_date; id = ETwoFormsDlgCtrlIdFirstFormDate; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = DATE_EDITOR { minDate = DATE { day = TWOFORMS_DATE_MIN_DAY_VALUE; month = TWOFORMS_DATE_MIN_MONTH_VALUE; year = TWOFORMS_DATE_MIN_YEAR_VALUE; }; maxDate = DATE { day = TWOFORMS_DATE_MAX_DAY_VALUE; month = TWOFORMS_DATE_MAX_MONTH_VALUE; year = TWOFORMS_DATE_MAX_YEAR_VALUE; }; }; }, DLG_LINE { type = EEikCtTimeEditor; prompt = qtn_twoforms_first_form_label_time; id = ETwoFormsDlgCtrlIdFirstFormTime; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = TIME_EDITOR { flags = EEikTimeForce24HourFormat; minTime = TIME { second = TWOFORMS_TIME_MIN_SECOND_VALUE; minute = TWOFORMS_TIME_MIN_MINUTE_VALUE; hour = TWOFORMS_TIME_MIN_HOUR_VALUE; }; maxTime = TIME { second = TWOFORMS_TIME_MAX_SECOND_VALUE; minute = TWOFORMS_TIME_MAX_MINUTE_VALUE; hour = TWOFORMS_TIME_MAX_HOUR_VALUE; }; }; }, DLG_LINE { type = EEikCtDurationEditor; prompt = qtn_twoforms_first_form_label_duration; id = ETwoFormsDlgCtrlIdFirstFormDuration; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = DURATION_EDITOR { flags = EEikTimeForce24HourFormat; minDuration = DURATION { seconds = TWOFORMS_DURATION_MIN_VALUE; }; maxDuration = DURATION { seconds = TWOFORMS_DURATION_MAX_VALUE; }; }; }, DLG_LINE { type = EEikCtSecretEd; prompt = qtn_twoforms_first_form_label_password; id = ETwoFormsDlgCtrlIdFirstFormPassword; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = SECRETED { num_letters = TWOFORMS_PASSWORD_MAX_LENGTH; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_first_form_label_first_name; id = ETwoFormsDlgCtrlIdFirstFormFirstName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_first_form_label_last_name; id = ETwoFormsDlgCtrlIdFirstFormLastName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_first_form_label_company; id = ETwoFormsDlgCtrlIdFirstFormCompany; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_first_form_label_address; id = ETwoFormsDlgCtrlIdFirstFormAddress; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_first_form_label_city; id = ETwoFormsDlgCtrlIdFirstFormCity; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; } }; } RESOURCE TBUF256 r_twoforms_text_status_pane_title_second_form { buf = qtn_twoforms_title_second_form; } //----------------------------------------------------------------------------- // // r_twoforms_second_form_title // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_twoforms_second_form_title { buf = qtn_twoforms_second_form_label_title; } //----------------------------------------------------------------------------- // // r_twoforms_second_form_operation // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_twoforms_second_form_operation { buf = qtn_twoforms_second_form_label_operation; } //----------------------------------------------------------------------------- // // r_twoforms_second_form_dialog // For TwoForms // //----------------------------------------------------------------------------- // RESOURCE DIALOG r_twoforms_second_form_dialog { flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | EEikDialogFlagCbaButtons; buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; form = r_twoforms_second_form_form; } //----------------------------------------------------------------------------- // // r_twoforms_second_form_form // For TwoForms // //----------------------------------------------------------------------------- // RESOURCE FORM r_twoforms_second_form_form { items = { DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_second_form_label_city; id = ETwoFormsDlgCtrlIdSecondFormCity; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_second_form_label_address; id = ETwoFormsDlgCtrlIdSecondFormAddress; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_second_form_label_company; id = ETwoFormsDlgCtrlIdSecondFormCompany; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_second_form_label_last_name; id = ETwoFormsDlgCtrlIdSecondFormLastName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; }, DLG_LINE { type = EEikCtEdwin; prompt = qtn_twoforms_second_form_label_first_name; id = ETwoFormsDlgCtrlIdSecondFormFirstName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = TWOFORMS_EDWIN_WIDTH; lines = TWOFORMS_EDWIN_LINES; maxlength = ETwoFormsEdwinMaxLength; // added to limit expanding in forms. // If you want full screen use 5 here max_view_height_in_lines = 5; // if you have the line above, you must have this. // It's calculable from LAF base_line_delta = 21; }; } }; } RESOURCE TBUF256 r_twoforms_title { buf = qtn_twoforms_title; } // End of File