examples/ForumNokia/CalendarExample/data/CalendarAPIexample.rss

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 
00006 //  RESOURCE IDENTIFIER
00007 NAME    CAPI // 4 letter ID
00008 
00009 //  INCLUDES
00010 
00011 #include <eikon.rh>
00012 #include "calendarapiexample.hrh"
00013 #include "calendarapiexample.loc"
00014 #include <avkon.rsg>
00015 #include <avkon.rh>
00016 #include <avkon.mbg>
00017 
00018 
00019 //  RESOURCE DEFINITIONS
00020 
00021 RESOURCE RSS_SIGNATURE { }
00022 
00023 RESOURCE TBUF { buf = ""; }
00024 
00025 RESOURCE EIK_APP_INFO
00026     {
00027     status_pane = 0;
00028     }
00029 
00030 
00031 //----------------------------------------------------
00032 //   
00033 //    Views
00034 //
00035 //----------------------------------------------------
00036 //
00037 RESOURCE AVKON_VIEW r_calendarapiexample_search_view
00038     {
00039     menubar = r_calendarapiexample_search_menubar;
00040     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00041     }    
00042 
00043 RESOURCE AVKON_VIEW r_calendarapiexample_entries_view
00044     {
00045     menubar = r_calendarapiexample_entries_menubar;
00046     cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
00047     }
00048     
00049 RESOURCE AVKON_VIEW r_calendarapiexample_entry_view
00050     {
00051     menubar = r_calendarapiexample_entry_menubar;
00052     cba = R_AVKON_SOFTKEYS_OPTIONS_DONE;
00053     }
00054     
00055 //----------------------------------------------------
00056 //   
00057 //    Dialogs
00058 //
00059 //----------------------------------------------------
00060 //
00061 RESOURCE DIALOG r_calendarapiexample_progress_note
00062     {
00063     flags = EAknProgressNoteFlags;
00064     buttons = R_AVKON_SOFTKEYS_EMPTY;
00065     items =
00066         {
00067         DLG_LINE
00068             {
00069             type = EAknCtNote;
00070             id = ECalendarAPIexampleProgressNote;
00071             control = AVKON_NOTE
00072                 {
00073                 layout = EProgressLayout;
00074                 singular_label = qtn_calendarapiexample_reading_calendar_singular;
00075                 plural_label = qtn_calendarapiexample_reading_calendar_plural;
00076                 };
00077             }
00078         };
00079     }
00080     
00081 RESOURCE DIALOG r_calendarapiexample_confirmation_query
00082     {
00083     flags = EGeneralQueryFlags;
00084     buttons = R_AVKON_SOFTKEYS_YES_NO;
00085     items = 
00086         {
00087         DLG_LINE
00088             {
00089             type = EAknCtQuery;
00090             id = ECalendarAPIexampleConfirmationQuery;
00091             control = AVKON_CONFIRMATION_QUERY
00092                 {
00093                 layout = EConfirmationQueryLayout;
00094                 };
00095             }
00096         };
00097     }
00098         
00099 //----------------------------------------------------
00100 //   
00101 //    Menubars
00102 //
00103 //----------------------------------------------------
00104 //
00105 RESOURCE MENU_BAR r_calendarapiexample_search_menubar
00106     {
00107     titles =
00108         {
00109         MENU_TITLE { menu_pane = r_calendarapiexample_search_menu; txt = ""; }
00110         };
00111     }
00112 
00113 RESOURCE MENU_BAR r_calendarapiexample_entries_menubar
00114     {
00115     titles =
00116         {
00117         MENU_TITLE { menu_pane = r_calendarapiexample_entries_menu; txt = ""; }
00118         };
00119     }
00120     
00121 RESOURCE MENU_BAR r_calendarapiexample_entry_menubar
00122     {
00123     titles =
00124         {
00125         MENU_TITLE { menu_pane = r_calendarapiexample_entry_menu; txt = ""; }
00126         };
00127     }
00128 
00129 //----------------------------------------------------
00130 //   
00131 //    Menupanes
00132 //
00133 //----------------------------------------------------
00134 //
00135 RESOURCE MENU_PANE r_calendarapiexample_search_menu
00136     {
00137     items =
00138         {
00139         MENU_ITEM { command = ECalendarAPIexampleCmdSearch; txt = qtn_options_search; flags = EEikMenuItemAction;},
00140         MENU_ITEM { command = ECalendarAPIexampleCmdAdd; txt = qtn_options_add; },
00141         MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
00142         };
00143     }
00144 
00145 RESOURCE MENU_PANE r_calendarapiexample_entries_menu
00146     {
00147     items =
00148         {
00149         MENU_ITEM { command = ECalendarAPIexampleCmdEdit; txt = qtn_options_edit; flags = EEikMenuItemAction;},
00150         MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete; flags = EEikMenuItemSpecific;}
00151         };
00152     }
00153     
00154 RESOURCE MENU_PANE r_calendarapiexample_entry_menu
00155     {
00156     items =
00157         {
00158         MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete; }
00159         };
00160     }
00161 
00162 //----------------------------------------------------
00163 //   
00164 //    Arrays
00165 //
00166 //----------------------------------------------------
00167 //
00168 
00169 RESOURCE ARRAY r_calendarapiexample_search_array 
00170     { 
00171     items = 
00172         {
00173         LBUF
00174             {
00175             txt = qtn_calendarapiexample_week_item;
00176             }, 
00177         LBUF 
00178             { 
00179             txt = qtn_calendarapiexample_month_item; 
00180             }, 
00181         LBUF 
00182             { 
00183             txt = qtn_calendarapiexample_6months_item; 
00184             }, 
00185         LBUF 
00186             { 
00187             txt = qtn_calendarapiexample_year_item; 
00188             } 
00189         }; 
00190     } 
00191 
00192 RESOURCE ARRAY r_sync_texts
00193     {
00194     items =
00195         {
00196         AVKON_ENUMERATED_TEXT { value=KSyncNo; text = qtn_calendarapiexample_no; },
00197         AVKON_ENUMERATED_TEXT { value=KSyncPublic; text = qtn_calendarapiexample_public; },
00198         AVKON_ENUMERATED_TEXT { value=KSyncPrivate; text = qtn_calendarapiexample_private; }
00199         };
00200     }    
00201     
00202 RESOURCE ARRAY r_sync_popped_up
00203    {
00204    items =
00205       {
00206       LBUF { txt = qtn_calendarapiexample_no; },
00207       LBUF { txt = qtn_calendarapiexample_public; },
00208       LBUF { txt = qtn_calendarapiexample_private; }
00209       };
00210    }
00211    
00212 //----------------------------------------------------
00213 //   
00214 //    Buffers
00215 //
00216 //----------------------------------------------------
00217 //
00218 RESOURCE TBUF r_calendarapiexample_search_string
00219     { 
00220     buf=qtn_calendarapiexample_search_string; 
00221     }
00222     
00223 RESOURCE TBUF r_calendarapiexample_no_entries_found
00224     {
00225     buf = qtn_calendarapiexample_no_entries_found;
00226     }
00227     
00228 RESOURCE TBUF r_calendarapiexample_invalid_data
00229     {
00230     buf = qtn_calendarapiexample_invalid_data;
00231     }
00232 
00233 //----------------------------------------------------
00234 //   
00235 //    Setting item list
00236 //
00237 //----------------------------------------------------
00238 //
00239 RESOURCE AVKON_SETTING_ITEM_LIST r_entry_settings_list
00240     {
00241     title = qtn_s60uilab_details;
00242     initial_number = 7;
00243     items =     
00244         {
00245         AVKON_SETTING_ITEM
00246             {
00247             identifier = ECalendarAPIexampleNameItem;
00248             setting_page_resource = r_name_setting_page;
00249             name = name_label;
00250             },
00251         AVKON_SETTING_ITEM
00252             {
00253             identifier = ECalendarAPIexampleDateItem;
00254             setting_page_resource = r_date_setting_page;
00255             name = date_label;
00256             },
00257         AVKON_SETTING_ITEM
00258             {
00259             identifier = ECalendarAPIexampleAlarmItem;
00260             setting_page_resource = r_alarm_setting_page;
00261             associated_resource = r_alarm_setting_binary_texts;
00262             name = alarm_label;
00263             },
00264         AVKON_SETTING_ITEM
00265             {
00266             identifier = ECalendarAPIexampleAlarmTimeItem;
00267             setting_page_resource = r_alarm_time_setting_page;
00268             name = alarm_time_label;
00269             },
00270         AVKON_SETTING_ITEM
00271             {
00272             identifier = ECalendarAPIexampleAlarmDateItem;
00273             setting_page_resource = r_alarm_date_setting_page;
00274             name = alarm_date_label;
00275             },
00276         AVKON_SETTING_ITEM
00277             {
00278             identifier = ECalendarAPIexampleSyncItem;
00279             setting_page_resource = r_sync_setting_page;
00280             associated_resource = r_sync_popup_setting_list;
00281             name = sync_label;
00282             }
00283         };
00284     }
00285 
00286 //----------------------------------------------------
00287 //   
00288 //    Setting pages
00289 //
00290 //----------------------------------------------------
00291 //  
00292 RESOURCE AVKON_SETTING_PAGE r_name_setting_page
00293     {
00294     number = 1;
00295     label = name_label;
00296     type = EEikCtEdwin;
00297     editor_resource_id = r_name_edwin;
00298     }
00299     
00300 RESOURCE AVKON_SETTING_PAGE r_date_setting_page
00301     {
00302     number = 2;
00303     label = date_label;
00304     type = EEikCtDateEditor;
00305     editor_resource_id = r_date_edwin;
00306     }    
00307     
00308 RESOURCE AVKON_SETTING_PAGE r_age_setting_page
00309     {
00310     number = 3;
00311     label = age_label;
00312     type = EAknCtIntegerEdwin;
00313     editor_resource_id = r_age_edwin;
00314     }     
00315 
00316 RESOURCE AVKON_SETTING_PAGE r_alarm_setting_page
00317     {    
00318     number = 4;
00319     label = alarm_label;
00320     type = EAknCtPopupSettingList;
00321     editor_resource_id = r_binary;
00322     }
00323 
00324 RESOURCE POPUP_SETTING_LIST r_binary
00325     {
00326     // no definitions required - values obtained from 
00327     // associated_resource of owning AVKON_SETTING_ITEM_LIST
00328     }
00329 
00330     
00331 RESOURCE AVKON_SETTING_PAGE r_alarm_time_setting_page
00332     {
00333     number = 5;
00334     label = alarm_time_label;
00335     type = EEikCtTimeEditor;
00336     editor_resource_id = r_time_edwin;
00337     }  
00338 
00339 RESOURCE AVKON_SETTING_PAGE r_alarm_date_setting_page
00340     {
00341     number = 6;
00342     label = alarm_date_label;
00343     type = EEikCtDateEditor;
00344     editor_resource_id = r_date_edwin;
00345     }      
00346     
00347 RESOURCE AVKON_SETTING_PAGE r_sync_setting_page
00348     {    
00349     number = 7;
00350     label = sync_label;
00351     type = EAknCtPopupSettingList;
00352     editor_resource_id = r_sync_setting_list;
00353     }
00354     
00355     
00356 //----------------------------------------------------
00357 //   
00358 //    Controls
00359 //
00360 //----------------------------------------------------
00361 //
00362 RESOURCE LISTBOX r_calendarapiexample_search_list 
00363     { 
00364     array_id = r_calendarapiexample_search_array; 
00365     flags = EAknListBoxSelectionList; 
00366     } 
00367 
00368 
00369 RESOURCE EDWIN r_name_edwin
00370     {
00371     width = 10;
00372     maxlength = KMaxNameLength;
00373     }
00374     
00375 RESOURCE DATE_EDITOR r_date_edwin
00376     {
00377     minDate= DATE {year=1980;};
00378     maxDate= DATE {year=2100;};
00379     flags=0;
00380     }       
00381 
00382 RESOURCE AVKON_INTEGER_EDWIN r_age_edwin
00383     {
00384     min = 0;
00385     max = 150;
00386     }           
00387     
00388 RESOURCE TIME_EDITOR r_time_edwin
00389     {
00390     minTime = TIME
00391         {
00392         second = 0;
00393         minute = 0;
00394         hour = 0;
00395         };
00396 
00397     maxTime = TIME
00398         {
00399         second = 59;
00400         minute = 59;
00401         hour = 23;
00402         };
00403     }
00404     
00405 
00406 
00407 RESOURCE POPUP_SETTING_LIST r_sync_setting_list
00408     {
00409     flags = 0;
00410     }
00411     
00412 //----------------------------------------------------
00413 //   
00414 //    Popup setting texts
00415 //
00416 //----------------------------------------------------
00417 //    
00418 RESOURCE AVKON_POPUP_SETTING_TEXTS r_alarm_setting_binary_texts
00419     {
00420     setting_texts_resource = r_alarm_on_off_texts;
00421     }    
00422 
00423 RESOURCE ARRAY r_alarm_on_off_texts
00424     {
00425     items =
00426         {
00427         AVKON_ENUMERATED_TEXT { value=1; text = qtn_calendarapiexample_yes; },
00428         AVKON_ENUMERATED_TEXT { value=0; text = qtn_calendarapiexample_no; }
00429         };
00430     } 
00431 
00432 
00433 
00434     
00435 RESOURCE AVKON_POPUP_SETTING_TEXTS r_sync_popup_setting_list
00436     {
00437     setting_texts_resource = r_sync_texts;
00438     popped_up_texts_resource = r_sync_popped_up;
00439     }
00440 
00441 
00442    
00443 
00444     
00445 // End of File

Generated by  doxygen 1.6.2