/* 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 THFM // INCLUDES #include #include #include #include #include #include #include "threeforms.loc" #include "ThreeForms.hrh" // CONSTANTS #define THREEFORMS_EDWIN_WIDTH 1 #define THREEFORMS_EDWIN_LINES 2 #define THREEFORMS_DATE_MAX_DAY_VALUE 30 #define THREEFORMS_DATE_MIN_DAY_VALUE 0 #define THREEFORMS_DATE_MAX_MONTH_VALUE 11 #define THREEFORMS_DATE_MIN_MONTH_VALUE 0 #define THREEFORMS_DATE_MAX_YEAR_VALUE 2009 #define THREEFORMS_DATE_MIN_YEAR_VALUE 2000 #define THREEFORMS_TIME_MIN_SECOND_VALUE 0 #define THREEFORMS_TIME_MAX_SECOND_VALUE 59 #define THREEFORMS_TIME_MIN_MINUTE_VALUE 0 #define THREEFORMS_TIME_MAX_MINUTE_VALUE 59 #define THREEFORMS_TIME_MIN_HOUR_VALUE 0 #define THREEFORMS_TIME_MAX_HOUR_VALUE 23 #define THREEFORMS_VALUE_MIN_VALUE 1 #define THREEFORMS_VALUE_MAX_VALUE 5000 #define THREEFORMS_DURATION_MIN_VALUE 0 #define THREEFORMS_DURATION_MAX_VALUE 10800 #define THREEFORMS_PASSWORD_MAX_LENGTH 8 // MACROS // RESOURCE DEFINITIONS //----------------------------------------------------------------------------- // // RSS_SIGNATURE // // //----------------------------------------------------------------------------- // RESOURCE RSS_SIGNATURE { } //----------------------------------------------------------------------------- // // TBUF16 // // //----------------------------------------------------------------------------- // RESOURCE TBUF16 { buf = qtn_threeforms_title; } //----------------------------------------------------------------------------- // // EIK_APP_INFO // // //----------------------------------------------------------------------------- // RESOURCE EIK_APP_INFO { menubar = r_threeforms_menubar; cba = R_AVKON_SOFTKEYS_OPTIONS_BACK; } //----------------------------------------------------------------------------- // // r_aknextest_view // // //----------------------------------------------------------------------------- // RESOURCE AVKON_VIEW r_threeforms_view { } //----------------------------------------------------------------------------- // // r_threeforms_menubar // MenuBar // //----------------------------------------------------------------------------- // RESOURCE MENU_BAR r_threeforms_menubar { titles = { MENU_TITLE { menu_pane = r_threeforms_menu; txt = qtn_threeforms_menubar; } }; } //----------------------------------------------------------------------------- // // r_threeforms_menu // Menu pane // //----------------------------------------------------------------------------- // RESOURCE MENU_PANE r_threeforms_menu { items = { MENU_ITEM { command = EThreeFormsCmdSampleEditorCommand; txt = qtn_threeforms_menu_sample_editor; }, MENU_ITEM { command = EThreeFormsCmdBizMenu; cascade = r_threeforms_menu_biz_cascade; txt = qtn_threeforms_menu_biz; }, MENU_ITEM { command = EThreeFormsCmdFriendCommand; txt = qtn_threeforms_menu_friend; }, MENU_ITEM { command = EAknCmdExit; txt = qtn_threeforms_menu_exit; } }; } RESOURCE TBUF256 r_threeforms_text_status_pane_title_sample_editor { buf = qtn_threeforms_title_sample_editor; } //----------------------------------------------------------------------------- // // r_threeforms_sample_editor_title // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_threeforms_sample_editor_title { buf = qtn_threeforms_sample_editor_label_title; } //----------------------------------------------------------------------------- // // r_threeforms_sample_editor_operation // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_threeforms_sample_editor_operation { buf = qtn_threeforms_sample_editor_label_operation; } //----------------------------------------------------------------------------- // // r_threeforms_sample_editor_dialog // For ThreeForms // //----------------------------------------------------------------------------- // RESOURCE DIALOG r_threeforms_sample_editor_dialog { flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | EEikDialogFlagCbaButtons; buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; form = r_threeforms_sample_editor_form; } //----------------------------------------------------------------------------- // // r_threeforms_sample_editor_form // For ThreeForms // //----------------------------------------------------------------------------- // RESOURCE FORM r_threeforms_sample_editor_form { items = { DLG_LINE { type = EEikCtNumberEditor; prompt = qtn_threeforms_sample_editor_label_value; id = EThreeFormsDlgCtrlIdSampleEditorValue; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = NUMBER_EDITOR { min = THREEFORMS_VALUE_MIN_VALUE; max = THREEFORMS_VALUE_MAX_VALUE; }; }, DLG_LINE { type = EEikCtDateEditor; prompt = qtn_threeforms_sample_editor_label_date; id = EThreeFormsDlgCtrlIdSampleEditorDate; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = DATE_EDITOR { minDate = DATE { day = THREEFORMS_DATE_MIN_DAY_VALUE; month = THREEFORMS_DATE_MIN_MONTH_VALUE; year = THREEFORMS_DATE_MIN_YEAR_VALUE; }; maxDate = DATE { day = THREEFORMS_DATE_MAX_DAY_VALUE; month = THREEFORMS_DATE_MAX_MONTH_VALUE; year = THREEFORMS_DATE_MAX_YEAR_VALUE; }; }; }, DLG_LINE { type = EEikCtTimeEditor; prompt = qtn_threeforms_sample_editor_label_time; id = EThreeFormsDlgCtrlIdSampleEditorTime; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = TIME_EDITOR { flags = EEikTimeForce24HourFormat; minTime = TIME { second = THREEFORMS_TIME_MIN_SECOND_VALUE; minute = THREEFORMS_TIME_MIN_MINUTE_VALUE; hour = THREEFORMS_TIME_MIN_HOUR_VALUE; }; maxTime = TIME { second = THREEFORMS_TIME_MAX_SECOND_VALUE; minute = THREEFORMS_TIME_MAX_MINUTE_VALUE; hour = THREEFORMS_TIME_MAX_HOUR_VALUE; }; }; }, DLG_LINE { type = EEikCtDurationEditor; prompt = qtn_threeforms_sample_editor_label_duration; id = EThreeFormsDlgCtrlIdSampleEditorDuration; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = DURATION_EDITOR { flags = EEikTimeForce24HourFormat; minDuration = DURATION { seconds = THREEFORMS_DURATION_MIN_VALUE; }; maxDuration = DURATION { seconds = THREEFORMS_DURATION_MAX_VALUE; }; }; }, DLG_LINE { type = EEikCtSecretEd; prompt = qtn_threeforms_sample_editor_label_password; id = EThreeFormsDlgCtrlIdSampleEditorPassword; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = SECRETED { num_letters = THREEFORMS_PASSWORD_MAX_LENGTH; }; } }; } //----------------------------------------------------------------------------- // // r_threeforms_menu_biz_cascade // Sub menu-pane of Biz menu // //----------------------------------------------------------------------------- // RESOURCE MENU_PANE r_threeforms_menu_biz_cascade { items = { MENU_ITEM { command = EThreeFormsCmdBizCommand; txt = qtn_threeforms_title_biz; } }; } RESOURCE TBUF256 r_threeforms_text_status_pane_title_biz { buf = qtn_threeforms_title_biz; } //----------------------------------------------------------------------------- // // r_threeforms_biz_title // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_threeforms_biz_title { buf = qtn_threeforms_biz_label_title; } //----------------------------------------------------------------------------- // // r_threeforms_biz_operation // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_threeforms_biz_operation { buf = qtn_threeforms_biz_label_operation; } //----------------------------------------------------------------------------- // // r_threeforms_biz_dialog // For ThreeForms // //----------------------------------------------------------------------------- // RESOURCE DIALOG r_threeforms_biz_dialog { flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | EEikDialogFlagCbaButtons; buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; form = r_threeforms_biz_form; } //----------------------------------------------------------------------------- // // r_threeforms_biz_form // For ThreeForms // //----------------------------------------------------------------------------- // RESOURCE FORM r_threeforms_biz_form { items = { DLG_LINE { type = EEikCtEdwin; prompt = qtn_threeforms_biz_label_company; id = EThreeFormsDlgCtrlIdBizCompany; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_biz_label_last_name; id = EThreeFormsDlgCtrlIdBizLastName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_biz_label_first_name; id = EThreeFormsDlgCtrlIdBizFirstName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_biz_label_address; id = EThreeFormsDlgCtrlIdBizAddress; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_biz_label_city; id = EThreeFormsDlgCtrlIdBizCity; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_biz_label_country; id = EThreeFormsDlgCtrlIdBizCountry; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_text_status_pane_title_friend { buf = qtn_threeforms_title_friend; } //----------------------------------------------------------------------------- // // r_threeforms_friend_title // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_threeforms_friend_title { buf = qtn_threeforms_friend_label_title; } //----------------------------------------------------------------------------- // // r_threeforms_friend_operation // Text which is used by label // //----------------------------------------------------------------------------- // RESOURCE TBUF256 r_threeforms_friend_operation { buf = qtn_threeforms_friend_label_operation; } //----------------------------------------------------------------------------- // // r_threeforms_friend_dialog // For ThreeForms // //----------------------------------------------------------------------------- // RESOURCE DIALOG r_threeforms_friend_dialog { flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | EEikDialogFlagCbaButtons; buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; form = r_threeforms_friend_form; } //----------------------------------------------------------------------------- // // r_threeforms_friend_form // For ThreeForms // //----------------------------------------------------------------------------- // RESOURCE FORM r_threeforms_friend_form { items = { DLG_LINE { type = EEikCtEdwin; prompt = qtn_threeforms_friend_label_first_name; id = EThreeFormsDlgCtrlIdFriendFirstName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_friend_label_last_name; id = EThreeFormsDlgCtrlIdFriendLastName; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_friend_label_address; id = EThreeFormsDlgCtrlIdFriendAddress; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_friend_label_city; id = EThreeFormsDlgCtrlIdFriendCity; itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys; control = EDWIN { flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; width = THREEFORMS_EDWIN_WIDTH; lines = THREEFORMS_EDWIN_LINES; maxlength = EThreeFormsEdwinMaxLength; // 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_threeforms_title { buf = qtn_threeforms_title; } // End of File