examples/ForumNokia/SMSExample/GUI/data/SMSExample.rss

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 //  RESOURCE IDENTIFIER
00006 NAME    SMSE // 4 letter ID
00007 
00008 //  INCLUDES
00009 
00010 #include <appinfo.rh>
00011 #include <eikon.rh>
00012 #include <avkon.rsg>
00013 #include <avkon.rh>
00014 #include <avkon.mbg>
00015 
00016 #include "SMSExample.hrh"
00017 #include "SMSExample.loc"
00018 #include "SMSExample.rls"
00019 
00020 //  RESOURCE DEFINITIONS 
00021 
00022 RESOURCE RSS_SIGNATURE { }
00023 
00024 RESOURCE TBUF { buf = "SMSExample"; }
00025 
00026 RESOURCE EIK_APP_INFO
00027     {
00028     }
00029 
00030 //----------------------------------------------------
00031 //
00032 //    r_smsexample_hotkeys
00033 //
00034 //----------------------------------------------------
00035 //
00036 RESOURCE HOTKEYS r_smsexample_hotkeys
00037     {
00038     control =
00039         {
00040         HOTKEY { command = EAknCmdExit; key='e'; }
00041         };
00042     }
00043 
00044 // ---------------------------------------------------------
00045 //
00046 //    r_listbox_multiviews_view
00047 //    Listbox view.
00048 //
00049 // ---------------------------------------------------------
00050 //
00051 RESOURCE AVKON_VIEW r_listbox_multiviews_view
00052     {
00053     menubar = r_listbox_menubar;
00054     cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
00055     }
00056 
00057 // ---------------------------------------------------------
00058 //
00059 //    r_listbox_multiviews_view
00060 //    Log view. 
00061 //
00062 // ---------------------------------------------------------
00063 //
00064 RESOURCE AVKON_VIEW r_richtexteditor_multiviews_view
00065     {
00066     menubar = r_smsexample_menubar;
00067     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00068     }
00069 
00070 // ---------------------------------------------------------
00071 //
00072 //   r_listbox_menubar
00073 //   Menu title definition
00074 //
00075 // ---------------------------------------------------------
00076 RESOURCE MENU_BAR r_listbox_menubar
00077     {
00078     titles =
00079         {
00080         MENU_TITLE 
00081             {
00082             menu_pane = r_listbox_menu;
00083             }
00084         };
00085     }
00086 
00087 // ---------------------------------------------------------
00088 //
00089 //   r_listbox_menu
00090 //   Menu for "Options"
00091 //
00092 // ---------------------------------------------------------
00093 //
00094 RESOURCE MENU_PANE r_listbox_menu
00095     {
00096     items = 
00097         {
00098         MENU_ITEM 
00099             {
00100             command = ESMSExampleListBoxSelectAll;  
00101             txt = SELECT_ALL_TEXT;
00102             },
00103         MENU_ITEM 
00104             {
00105             command = ESMSExampleListBoxDeSelectAll;  
00106             txt = DESELECT_ALL_TEXT;
00107             },
00108         MENU_ITEM 
00109             {
00110             command = ESMSExampleListBoxDone;   
00111             txt = "Done";
00112             }
00113         
00114         };
00115     }
00116 
00117 //----------------------------------------------------
00118 //
00119 //    r_smsexample_menubar
00120 //
00121 //----------------------------------------------------
00122 //
00123 RESOURCE MENU_BAR r_smsexample_menubar
00124     {
00125     titles =
00126         {
00127         MENU_TITLE
00128             {
00129             menu_pane = r_smsexample_menu;
00130             }
00131         };
00132     }
00133 
00134 //----------------------------------------------------
00135 //
00136 //    r_smsexample_menu
00137 //    Menu for "Options". This is the main menu. 
00138 //----------------------------------------------------
00139 //
00140 RESOURCE MENU_PANE r_smsexample_menu
00141     {
00142     items =
00143         {
00144         MENU_ITEM
00145             {
00146             command = ESMSExampleCmdSendMessage;
00147             txt = SEND_SMS_MENU_TEXT;
00148             },
00149         MENU_ITEM 
00150             { 
00151             command = ESMSExampleCmdMoveToMyFolders; 
00152             txt = MOVE_SMS_MENU_TEXT; 
00153             cascade = r_smsexample_move_sms_sub_menu;
00154             },
00155         MENU_ITEM 
00156             { 
00157             command = ESMSExampleCmdCopyMessage; 
00158             txt = COPY_SMS_MENU_TEXT; 
00159             cascade = r_smsexample_copy_from_sub_menu;
00160             flags = EEikMenuItemSpecificListQuery;
00161             },
00162         MENU_ITEM 
00163             {
00164             command = ESMSExampleCmdDeleteMessage; 
00165             txt = DELETE_SMS_MENU_TEXT; 
00166             cascade = r_smsexample_delete_sub_menu;
00167             flags = EEikMenuItemSpecific;
00168             },
00169         MENU_ITEM 
00170             {
00171             command = ESMSExampleListBoxSettings; 
00172             txt = SETTINGS_SMS_MENU_TEXT; 
00173             cascade = r_smsexample_settings_sub_menu;
00174             },
00175         MENU_ITEM
00176             {
00177             command = EAknCmdExit;
00178             txt = qtn_appl_exit;
00179             }
00180         };
00181     }
00182 
00183 // ---------------------------------------------------------
00184 
00185 RESOURCE MENU_PANE r_smsexample_move_sms_sub_menu
00186     {
00187     items=
00188         {
00189         MENU_ITEM
00190             {
00191             command = ESMSExampleCmdMoveMessageFromDraftsToInbox;
00192             txt = FROM_DRAFTS_TO_INBOX_MENU_TEXT;
00193             },
00194         MENU_ITEM
00195             {
00196             command = ESMSExampleCmdMoveMessageFromDraftsToOutbox;
00197             txt = FROM_DRAFTS_TO_OUTBOX_MENU_TEXT;
00198             },
00199         MENU_ITEM
00200             {
00201             command = ESMSExampleCmdMoveMessageFromOutboxToInbox;
00202             txt = FROM_OUTBOX_TO_INBOX_MENU_TEXT;
00203             },
00204         MENU_ITEM
00205             {
00206             command = ESMSExampleCmdMoveMessageFromOutboxToDrafts;
00207             txt = FROM_OUTBOX_TO_DRAFTS_MENU_TEXT;
00208             },
00209         MENU_ITEM
00210             {
00211             command = ESMSExampleCmdMoveMessageFromInboxToOutbox;
00212             txt = FROM_INBOX_TO_OUTBOX_MENU_TEXT;
00213             },
00214         MENU_ITEM
00215             {
00216             command = ESMSExampleCmdMoveMessageFromInboxToDrafts;
00217             txt = FROM_INBOX_TO_DRAFTS_MENU_TEXT;
00218             }
00219         };
00220     }
00221 
00222 // ---------------------------------------------------------
00223 
00224 RESOURCE MENU_PANE r_smsexample_copy_from_sub_menu
00225     {
00226     items=
00227         {
00228         MENU_ITEM
00229             {
00230             command = ESMSExampleCmdCopyMessageFromDraftsToInbox;
00231             txt = FROM_DRAFTS_TO_INBOX_MENU_TEXT;
00232             },
00233         MENU_ITEM
00234             {
00235             command = ESMSExampleCmdCopyMessageFromDraftsToOutbox;
00236             txt = FROM_DRAFTS_TO_OUTBOX_MENU_TEXT;
00237             },
00238         MENU_ITEM
00239             {
00240             command = ESMSExampleCmdCopyMessageFromOutboxToInbox;
00241             txt = FROM_OUTBOX_TO_INBOX_MENU_TEXT;
00242             },
00243         MENU_ITEM
00244             {
00245             command = ESMSExampleCmdCopyMessageFromOutboxToDrafts;
00246             txt = FROM_OUTBOX_TO_DRAFTS_MENU_TEXT;
00247             },
00248         MENU_ITEM
00249             {
00250             command = ESMSExampleCmdCopyMessageFromInboxToOutbox;
00251             txt = FROM_INBOX_TO_OUTBOX_MENU_TEXT;
00252             },
00253         MENU_ITEM
00254             {
00255             command = ESMSExampleCmdCopyMessageFromInboxToDrafts;
00256             txt = FROM_INBOX_TO_DRAFTS_MENU_TEXT;
00257             }
00258         };
00259     }
00260 
00261 // ---------------------------------------------------------
00262 //
00263 //   r_smsexample_delete_sub_menu
00264 //   Delete a message from folder
00265 //
00266 // ---------------------------------------------------------
00267 //
00268 RESOURCE MENU_PANE r_smsexample_delete_sub_menu
00269     {
00270     items=
00271         {
00272         MENU_ITEM 
00273             {
00274             command = ESMSExampleCmdDeleteMessageFromDrafts;
00275             txt = FROM_DRAFTS_SMS_MENU_TEXT;
00276             },
00277         MENU_ITEM 
00278             {
00279             command = ESMSExampleCmdDeleteMessageFromOutbox;
00280             txt = FROM_OUTBOX_SMS_MENU_TEXT;
00281             },
00282         MENU_ITEM 
00283             {
00284             command = ESMSExampleCmdDeleteMessageFromInbox;
00285             txt = FROM_INBOX_SMS_MENU_TEXT;
00286             }
00287         };
00288     }
00289 
00290 // ---------------------------------------------------------
00291 //
00292 //   r_smsexample_settings_sub_menu
00293 //   Set automatic delete on / off menu.
00294 //
00295 // ---------------------------------------------------------
00296 //
00297 RESOURCE MENU_PANE r_smsexample_settings_sub_menu
00298     {
00299     items=
00300         {
00301         MENU_ITEM 
00302             {
00303             command = ESMSExampleListBoxSetAutomaticDeleteOn;
00304             txt = AUTOMATIC_DELETE_ON_TEXT;
00305             },
00306         MENU_ITEM 
00307             {
00308             command = ESMSExampleListBoxSetAutomaticDeleteOff;
00309             txt = AUTOMATIC_DELETE_OFF_TEXT;
00310             }
00311         };
00312     }
00313 
00314 // ---------------------------------------------------------
00315 //
00316 //   r_mtms_example_address_query
00317 //   Ask message recipient.
00318 //
00319 // ---------------------------------------------------------
00320 //
00321 RESOURCE DIALOG r_mtms_example_address_query
00322     {
00323     flags = EGeneralQueryFlags;
00324     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00325     items =
00326         {
00327         DLG_LINE
00328             {
00329             type = EAknCtQuery;
00330             id = EGeneralQuery;
00331             
00332             control = AVKON_DATA_QUERY
00333                 {
00334                 layout = EPhoneLayout; //ECodeLayout
00335                 label = ADDRESS_QUERY_CAPTION;
00336                 control = EDWIN
00337                     {
00338                     //flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
00339                     maxlength = EMtmsExampleMaxAddressLength;
00340                     };
00341                     
00342                 };
00343             }
00344         };
00345     }
00346 
00347 // ---------------------------------------------------------
00348 //
00349 //   r_mtms_example_message_query
00350 //   Ask message body from the user.
00351 //
00352 // ---------------------------------------------------------
00353 //
00354 RESOURCE DIALOG r_mtms_example_message_query
00355     {
00356     flags = EGeneralQueryFlags;
00357     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00358     items =
00359         {
00360         DLG_LINE
00361             {
00362             type = EAknCtQuery;
00363             id = EGeneralQuery;
00364             control = AVKON_DATA_QUERY
00365                 {
00366                 layout = EDataLayout;
00367                 label = MESSAGE_QUERY_TEXT;
00368                 control = EDWIN
00369                     {
00370                     //flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
00371                     width = 30;
00372                     lines = 1;
00373                     maxlength = 159;
00374                     };
00375                 };
00376             }
00377         };
00378     }
00379 
00380 // ---------------------------------------------------------
00381 //
00382 //   r_smsexample_markable_listbox
00383 //   Listbox resources.
00384 //
00385 // ---------------------------------------------------------
00386 //
00387 RESOURCE LISTBOX r_smsexample_markable_listbox
00388     {
00389     flags = EAknListBoxMarkableList;
00390     }
00391 
00392 // ---------------------------------------------------------
00393 //
00394 //   r_icon_file_name
00395 //   Icon file name.
00396 //
00397 // ---------------------------------------------------------
00398 //
00399 RESOURCE TBUF r_icon_file_name
00400     {
00401     buf = ICON_FILE_NAME; 
00402     }
00403 
00404 // ---------------------------------------------------------
00405 //
00406 //   r_automatic_delete_confirmation_query_dialog
00407 //   Turn automatic delete on confirmation dialog.
00408 //
00409 // ---------------------------------------------------------
00410 //
00411 RESOURCE DIALOG r_automatic_delete_confirmation_query_dialog
00412     {
00413     flags=EGeneralQueryFlags;
00414     buttons = R_AVKON_SOFTKEYS_YES_NO;
00415     items =
00416         {
00417         DLG_LINE
00418             {
00419             type = EAknCtQuery;
00420             id = EGeneralQuery;
00421             control = AVKON_CONFIRMATION_QUERY
00422                 {
00423                 layout = EConfirmationQueryLayout;
00424                 label = TURN_AUTOMATIC_DELETE_ON_TEXT;
00425                 };
00426             }
00427         };
00428     }
00429 
00430 RESOURCE LOCALISABLE_APP_INFO r_SmsExample_lai
00431     {
00432     short_caption = qtn_app_short_caption_string;
00433     
00434     caption_and_icon = 
00435         {
00436         CAPTION_AND_ICON_INFO
00437             {
00438             caption = qtn_app_caption_string;
00439             number_of_icons = 2;
00440             icon_file = r_icon_file;
00441             }
00442         };
00443     }
00444 // End of File

Generated by  doxygen 1.6.2