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             },
00161         MENU_ITEM 
00162             {
00163             command = ESMSExampleCmdDeleteMessage; 
00164             txt = DELETE_SMS_MENU_TEXT; 
00165             cascade = r_smsexample_delete_sub_menu;
00166             },
00167         MENU_ITEM 
00168             {
00169             command = ESMSExampleListBoxSettings; 
00170             txt = SETTINGS_SMS_MENU_TEXT; 
00171             cascade = r_smsexample_settings_sub_menu;
00172             },
00173         MENU_ITEM
00174             {
00175             command = EAknCmdExit;
00176             txt = qtn_appl_exit;
00177             }
00178         };
00179     }
00180 
00181 // ---------------------------------------------------------
00182 
00183 RESOURCE MENU_PANE r_smsexample_move_sms_sub_menu
00184     {
00185     items=
00186         {
00187         MENU_ITEM
00188             {
00189             command = ESMSExampleCmdMoveMessageFromDraftsToInbox;
00190             txt = FROM_DRAFTS_TO_INBOX_MENU_TEXT;
00191             },
00192         MENU_ITEM
00193             {
00194             command = ESMSExampleCmdMoveMessageFromDraftsToOutbox;
00195             txt = FROM_DRAFTS_TO_OUTBOX_MENU_TEXT;
00196             },
00197         MENU_ITEM
00198             {
00199             command = ESMSExampleCmdMoveMessageFromOutboxToInbox;
00200             txt = FROM_OUTBOX_TO_INBOX_MENU_TEXT;
00201             },
00202         MENU_ITEM
00203             {
00204             command = ESMSExampleCmdMoveMessageFromOutboxToDrafts;
00205             txt = FROM_OUTBOX_TO_DRAFTS_MENU_TEXT;
00206             },
00207         MENU_ITEM
00208             {
00209             command = ESMSExampleCmdMoveMessageFromInboxToOutbox;
00210             txt = FROM_INBOX_TO_OUTBOX_MENU_TEXT;
00211             },
00212         MENU_ITEM
00213             {
00214             command = ESMSExampleCmdMoveMessageFromInboxToDrafts;
00215             txt = FROM_INBOX_TO_DRAFTS_MENU_TEXT;
00216             }
00217         };
00218     }
00219 
00220 // ---------------------------------------------------------
00221 
00222 RESOURCE MENU_PANE r_smsexample_copy_from_sub_menu
00223     {
00224     items=
00225         {
00226         MENU_ITEM
00227             {
00228             command = ESMSExampleCmdCopyMessageFromDraftsToInbox;
00229             txt = FROM_DRAFTS_TO_INBOX_MENU_TEXT;
00230             },
00231         MENU_ITEM
00232             {
00233             command = ESMSExampleCmdCopyMessageFromDraftsToOutbox;
00234             txt = FROM_DRAFTS_TO_OUTBOX_MENU_TEXT;
00235             },
00236         MENU_ITEM
00237             {
00238             command = ESMSExampleCmdCopyMessageFromOutboxToInbox;
00239             txt = FROM_OUTBOX_TO_INBOX_MENU_TEXT;
00240             },
00241         MENU_ITEM
00242             {
00243             command = ESMSExampleCmdCopyMessageFromOutboxToDrafts;
00244             txt = FROM_OUTBOX_TO_DRAFTS_MENU_TEXT;
00245             },
00246         MENU_ITEM
00247             {
00248             command = ESMSExampleCmdCopyMessageFromInboxToOutbox;
00249             txt = FROM_INBOX_TO_OUTBOX_MENU_TEXT;
00250             },
00251         MENU_ITEM
00252             {
00253             command = ESMSExampleCmdCopyMessageFromInboxToDrafts;
00254             txt = FROM_INBOX_TO_DRAFTS_MENU_TEXT;
00255             }
00256         };
00257     }
00258 
00259 // ---------------------------------------------------------
00260 //
00261 //   r_smsexample_delete_sub_menu
00262 //   Delete a message from folder
00263 //
00264 // ---------------------------------------------------------
00265 //
00266 RESOURCE MENU_PANE r_smsexample_delete_sub_menu
00267     {
00268     items=
00269         {
00270         MENU_ITEM 
00271             {
00272             command = ESMSExampleCmdDeleteMessageFromDrafts;
00273             txt = FROM_DRAFTS_SMS_MENU_TEXT;
00274             },
00275         MENU_ITEM 
00276             {
00277             command = ESMSExampleCmdDeleteMessageFromOutbox;
00278             txt = FROM_OUTBOX_SMS_MENU_TEXT;
00279             },
00280         MENU_ITEM 
00281             {
00282             command = ESMSExampleCmdDeleteMessageFromInbox;
00283             txt = FROM_INBOX_SMS_MENU_TEXT;
00284             }
00285         };
00286     }
00287 
00288 // ---------------------------------------------------------
00289 //
00290 //   r_smsexample_settings_sub_menu
00291 //   Set automatic delete on / off menu.
00292 //
00293 // ---------------------------------------------------------
00294 //
00295 RESOURCE MENU_PANE r_smsexample_settings_sub_menu
00296     {
00297     items=
00298         {
00299         MENU_ITEM 
00300             {
00301             command = ESMSExampleListBoxSetAutomaticDeleteOn;
00302             txt = AUTOMATIC_DELETE_ON_TEXT;
00303             },
00304         MENU_ITEM 
00305             {
00306             command = ESMSExampleListBoxSetAutomaticDeleteOff;
00307             txt = AUTOMATIC_DELETE_OFF_TEXT;
00308             }
00309         };
00310     }
00311 
00312 // ---------------------------------------------------------
00313 //
00314 //   r_mtms_example_address_query
00315 //   Ask message recipient.
00316 //
00317 // ---------------------------------------------------------
00318 //
00319 RESOURCE DIALOG r_mtms_example_address_query
00320     {
00321     flags = EGeneralQueryFlags;
00322     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00323     items =
00324         {
00325         DLG_LINE
00326             {
00327             type = EAknCtQuery;
00328             id = EGeneralQuery;
00329             
00330             control = AVKON_DATA_QUERY
00331                 {
00332                 layout = EPhoneLayout; //ECodeLayout
00333                 label = ADDRESS_QUERY_CAPTION;
00334                 control = EDWIN
00335                     {
00336                     //flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
00337                     maxlength = EMtmsExampleMaxAddressLength;
00338                     };
00339                     
00340                 };
00341             }
00342         };
00343     }
00344 
00345 // ---------------------------------------------------------
00346 //
00347 //   r_mtms_example_message_query
00348 //   Ask message body from the user.
00349 //
00350 // ---------------------------------------------------------
00351 //
00352 RESOURCE DIALOG r_mtms_example_message_query
00353     {
00354     flags = EGeneralQueryFlags;
00355     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00356     items =
00357         {
00358         DLG_LINE
00359             {
00360             type = EAknCtQuery;
00361             id = EGeneralQuery;
00362             control = AVKON_DATA_QUERY
00363                 {
00364                 layout = EDataLayout;
00365                 label = MESSAGE_QUERY_TEXT;
00366                 control = EDWIN
00367                     {
00368                     //flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
00369                     width = 30;
00370                     lines = 1;
00371                     maxlength = 159;
00372                     };
00373                 };
00374             }
00375         };
00376     }
00377 
00378 // ---------------------------------------------------------
00379 //
00380 //   r_smsexample_markable_listbox
00381 //   Listbox resources.
00382 //
00383 // ---------------------------------------------------------
00384 //
00385 RESOURCE LISTBOX r_smsexample_markable_listbox
00386     {
00387     flags = EAknListBoxMarkableList;
00388     }
00389 
00390 // ---------------------------------------------------------
00391 //
00392 //   r_icon_file_name
00393 //   Icon file name.
00394 //
00395 // ---------------------------------------------------------
00396 //
00397 RESOURCE TBUF r_icon_file_name
00398     {
00399     buf = ICON_FILE_NAME; 
00400     }
00401 
00402 // ---------------------------------------------------------
00403 //
00404 //   r_automatic_delete_confirmation_query_dialog
00405 //   Turn automatic delete on confirmation dialog.
00406 //
00407 // ---------------------------------------------------------
00408 //
00409 RESOURCE DIALOG r_automatic_delete_confirmation_query_dialog
00410     {
00411     flags=EGeneralQueryFlags;
00412     buttons = R_AVKON_SOFTKEYS_YES_NO;
00413     items =
00414         {
00415         DLG_LINE
00416             {
00417             type = EAknCtQuery;
00418             id = EGeneralQuery;
00419             control = AVKON_CONFIRMATION_QUERY
00420                 {
00421                 layout = EConfirmationQueryLayout;
00422                 label = TURN_AUTOMATIC_DELETE_ON_TEXT;
00423                 };
00424             }
00425         };
00426     }
00427 
00428 RESOURCE LOCALISABLE_APP_INFO r_SmsExample_lai
00429     {
00430     short_caption = qtn_app_short_caption_string;
00431     
00432     caption_and_icon = 
00433         {
00434         CAPTION_AND_ICON_INFO
00435             {
00436             caption = qtn_app_caption_string;
00437             number_of_icons = 2;
00438             icon_file = r_icon_file;
00439             }
00440         };
00441     }
00442 // End of File

Generated by  doxygen 1.6.2