⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calendarapiexample.rss

📁 塞班3D游戏
💻 RSS
字号:
/*
* ============================================================================
*  Name     : CalendarAPIexample.rss
*  Part of  : CalendarAPIexample
*  Created  : 02/22/2005 by Forum Nokia
*  Description:
*     This file contains all the resources for the CalendarAPIexample.
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

//  RESOURCE IDENTIFIER
NAME    CAPI // 4 letter ID

//  INCLUDES

#include <eikon.rh>
#include "calendarapiexample.hrh"
#include "calendarapiexample.loc"
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>


//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf = ""; }

RESOURCE EIK_APP_INFO
    {
	status_pane = 0;
    }


//----------------------------------------------------
//   
//    Views
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_calendarapiexample_search_view
	{
	menubar = r_calendarapiexample_search_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
	}    

RESOURCE AVKON_VIEW r_calendarapiexample_entries_view
	{
	menubar = r_calendarapiexample_entries_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
	}
	
RESOURCE AVKON_VIEW r_calendarapiexample_entry_view
	{
	menubar = r_calendarapiexample_entry_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_DONE;
	}
	
//----------------------------------------------------
//   
//    Dialogs
//
//----------------------------------------------------
//
RESOURCE DIALOG r_calendarapiexample_progress_note
    {
    flags = EAknProgressNoteFlags;
    buttons = R_AVKON_SOFTKEYS_EMPTY;
    items =
        {
        DLG_LINE
            {
            type = EAknCtNote;
            id = ECalendarAPIexampleProgressNote;
            control = AVKON_NOTE
                {
                layout = EProgressLayout;
                singular_label = qtn_calendarapiexample_reading_calendar_singular;
                plural_label = qtn_calendarapiexample_reading_calendar_plural;
                };
            }
        };
    }
    
RESOURCE DIALOG r_calendarapiexample_confirmation_query
	{
	flags = EGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_YES_NO;
	items = 
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = ECalendarAPIexampleConfirmationQuery;
			control = AVKON_CONFIRMATION_QUERY
				{
				layout = EConfirmationQueryLayout;
				};
			}
		};
	}
    	
//----------------------------------------------------
//   
//    Menubars
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_calendarapiexample_search_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_calendarapiexample_search_menu; txt = ""; }
        };
    }

RESOURCE MENU_BAR r_calendarapiexample_entries_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_calendarapiexample_entries_menu; txt = ""; }
		};
	}
	
RESOURCE MENU_BAR r_calendarapiexample_entry_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_calendarapiexample_entry_menu; txt = ""; }
		};
	}

//----------------------------------------------------
//   
//    Menupanes
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_calendarapiexample_search_menu
    {
    items =
        {
        MENU_ITEM { command = ECalendarAPIexampleCmdSearch; txt = qtn_options_search; },
        MENU_ITEM { command = ECalendarAPIexampleCmdAdd; txt = qtn_options_add; },
        MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
        };
    }
    
RESOURCE MENU_PANE r_calendarapiexample_entries_menu
	{
	items =
		{
		MENU_ITEM { command = ECalendarAPIexampleCmdEdit; txt = qtn_options_edit; },
		MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete; }
		};
	}
	
RESOURCE MENU_PANE r_calendarapiexample_entry_menu
	{
	items =
		{
		MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete; }
		};
	}

//----------------------------------------------------
//   
//    Arrays
//
//----------------------------------------------------
//

RESOURCE ARRAY r_calendarapiexample_search_array 
    { 
    items = 
        {
        LBUF
        	{
        	txt = qtn_calendarapiexample_week_item;
        	}, 
        LBUF 
            { 
            txt = qtn_calendarapiexample_month_item; 
            }, 
        LBUF 
            { 
            txt = qtn_calendarapiexample_6months_item; 
            }, 
        LBUF 
            { 
            txt = qtn_calendarapiexample_year_item; 
            } 
        }; 
    } 

RESOURCE ARRAY r_alarm_on_off_texts
    {
    items =
        {
        AVKON_ENUMERATED_TEXT { value=1; text = qtn_calendarapiexample_yes; },
        AVKON_ENUMERATED_TEXT { value=0; text = qtn_calendarapiexample_no; }
        };
    } 
    
RESOURCE ARRAY r_sync_texts
    {
    items =
        {
        AVKON_ENUMERATED_TEXT { value=KSyncNo; text = qtn_calendarapiexample_no; },
        AVKON_ENUMERATED_TEXT { value=KSyncPublic; text = qtn_calendarapiexample_public; },
        AVKON_ENUMERATED_TEXT { value=KSyncPrivate; text = qtn_calendarapiexample_private; }
        };
    }    
    
RESOURCE ARRAY r_sync_popped_up
   {
   items =
      {
      LBUF { txt = qtn_calendarapiexample_no; },
      LBUF { txt = qtn_calendarapiexample_public; },
      LBUF { txt = qtn_calendarapiexample_private; }
      };
   }
   
//----------------------------------------------------
//   
//    Buffers
//
//----------------------------------------------------
//
RESOURCE TBUF r_calendarapiexample_search_string
	{ 
	buf=qtn_calendarapiexample_search_string; 
	}
	
RESOURCE TBUF r_calendarapiexample_no_entries_found
	{
	buf = qtn_calendarapiexample_no_entries_found;
	}
	
RESOURCE TBUF r_calendarapiexample_invalid_data
	{
	buf = qtn_calendarapiexample_invalid_data;
	}

//----------------------------------------------------
//   
//    Setting item list
//
//----------------------------------------------------
//
RESOURCE AVKON_SETTING_ITEM_LIST r_entry_settings_list
	{
	title = qtn_s60uilab_details;
	initial_number = 7;
	items =     
		{
		AVKON_SETTING_ITEM
			{
			identifier = ECalendarAPIexampleNameItem;
			setting_page_resource = r_name_setting_page;
			name = name_label;
			},
		AVKON_SETTING_ITEM
			{
			identifier = ECalendarAPIexampleDateItem;
			setting_page_resource = r_date_setting_page;
			name = date_label;
			},
		AVKON_SETTING_ITEM
			{
			identifier = ECalendarAPIexampleAlarmItem;
			setting_page_resource = r_alarm_setting_page;
			associated_resource = r_alarm_setting_binary_texts;
			name = alarm_label;
			},
		AVKON_SETTING_ITEM
			{
			identifier = ECalendarAPIexampleAlarmTimeItem;
			setting_page_resource = r_alarm_time_setting_page;
			name = alarm_time_label;
			},
		AVKON_SETTING_ITEM
			{
			identifier = ECalendarAPIexampleAlarmDateItem;
			setting_page_resource = r_alarm_date_setting_page;
			name = alarm_date_label;
			},
		AVKON_SETTING_ITEM
			{
			identifier = ECalendarAPIexampleSyncItem;
			setting_page_resource = r_sync_setting_page;
			associated_resource = r_sync_popup_setting_list;
			name = sync_label;
			}
		};
	}

//----------------------------------------------------
//   
//    Setting pages
//
//----------------------------------------------------
//	
RESOURCE AVKON_SETTING_PAGE r_name_setting_page
    {
    number = 1;
    label = name_label;
    type = EEikCtEdwin;
    editor_resource_id = r_name_edwin;
    }
    
RESOURCE AVKON_SETTING_PAGE r_date_setting_page
    {
    number = 2;
    label = date_label;
    type = EEikCtDateEditor;
    editor_resource_id = r_date_edwin;
    }    
    
RESOURCE AVKON_SETTING_PAGE r_age_setting_page
    {
    number = 3;
    label = age_label;
    type = EAknCtIntegerEdwin;
    editor_resource_id = r_age_edwin;
    }     

RESOURCE AVKON_SETTING_PAGE r_alarm_setting_page
    {    
    number = 4;
    label = alarm_label;
    type = EEikCtEdwin;
    type = EAknCtPopupSettingList;
    }
    
RESOURCE AVKON_SETTING_PAGE r_alarm_time_setting_page
    {
    number = 5;
    label = alarm_time_label;
    type = EEikCtTimeEditor;
    editor_resource_id = r_time_edwin;
    }  

RESOURCE AVKON_SETTING_PAGE r_alarm_date_setting_page
    {
    number = 6;
    label = alarm_date_label;
    type = EEikCtDateEditor;
    editor_resource_id = r_date_edwin;
    }      
    
RESOURCE AVKON_SETTING_PAGE r_sync_setting_page
    {    
    number = 7;
    label = sync_label;
    type = EAknCtPopupSettingList;
    editor_resource_id = r_sync_setting_list;
    }
    
    
//----------------------------------------------------
//   
//    Controls
//
//----------------------------------------------------
//
RESOURCE LISTBOX r_calendarapiexample_search_list 
    { 
    array_id = r_calendarapiexample_search_array; 
    flags = EAknListBoxSelectionList; 
    } 


RESOURCE EDWIN r_name_edwin
    {
    width = 10;
    maxlength = KMaxNameLength;
    }
    
RESOURCE DATE_EDITOR r_date_edwin
    {
    minDate= DATE {year=1980;};
    maxDate= DATE {year=2100;};
    flags=0;
    }    	

RESOURCE AVKON_INTEGER_EDWIN r_age_edwin
    {
    min = 0;
    max = 150;
    }    	    
    
RESOURCE TIME_EDITOR r_time_edwin
	{
    minTime = TIME
        {
        second = 0;
        minute = 0;
        hour = 0;
        };

    maxTime = TIME
        {
        second = 59;
        minute = 59;
        hour = 23;
        };
	}
    


RESOURCE POPUP_SETTING_LIST r_sync_setting_list
    {
	flags = 0;
    }
    
//----------------------------------------------------
//   
//    Popup setting texts
//
//----------------------------------------------------
//    
RESOURCE AVKON_POPUP_SETTING_TEXTS r_alarm_setting_binary_texts
    {
    flags = 0; 
    setting_texts_resource = r_alarm_on_off_texts;
    }    
    
RESOURCE AVKON_POPUP_SETTING_TEXTS r_sync_popup_setting_list
    {
    setting_texts_resource = r_sync_texts;
    popped_up_texts_resource = r_sync_popped_up;
    }


   

    
// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -