imageeditor/ImageEditorUI/data/ImageEditorUI.rss
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description:
       
    16 * Resource definitions for ImageEditorUi.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 //  RESOURCE IDENTIFIER
       
    22 NAME    UICO
       
    23 
       
    24 //  INCLUDES
       
    25 #include <eikon.rh>
       
    26 #include <avkon.rsg>
       
    27 #include <avkon.rh>
       
    28 #include <avkon.mbg>
       
    29 #include <data_caging_paths_strings.hrh>
       
    30 #include "definitions.def"
       
    31 
       
    32 #ifdef __AIW_PRINT_PROVIDER_USED__
       
    33 	#include <AiwCommon.rh>
       
    34 #endif
       
    35 
       
    36 #ifdef __OEM_SDK__
       
    37     #include <AvkonIcons.hrh>
       
    38 #endif
       
    39 
       
    40 #include "ImageEditorUI.rh"
       
    41 #include "ImageEditorUI.hrh"
       
    42 #include "ImageEditorUI_gen.loc"
       
    43 
       
    44 #include <ImageEditor.loc>
       
    45 
       
    46 //  CONSTANTS  
       
    47 
       
    48 //  MACROS  
       
    49 
       
    50 //  RESOURCE DEFINITIONS 
       
    51 RESOURCE RSS_SIGNATURE { }
       
    52 
       
    53 RESOURCE TBUF { buf="uicontrol"; }
       
    54 
       
    55 //=============================================================================
       
    56 //
       
    57 //  DEFINITION FOR AVKON IMAGE FILE
       
    58 //
       
    59 //=============================================================================
       
    60 #ifndef AVKON_ICON_FILE
       
    61     #define AVKON_ICON_FILE "z:\\resource\\apps\\avkon2.mbm"
       
    62 #endif
       
    63 
       
    64 //=============================================================================
       
    65 //
       
    66 //  MAIN VIEW
       
    67 //
       
    68 //=============================================================================
       
    69 
       
    70 RESOURCE AVKON_VIEW r_imageeditorui_view
       
    71 {
       
    72     menubar = r_imageeditorui_menubar;  
       
    73     
       
    74     // changed to empty bacause plugin grid is opened in app start
       
    75     //cba = R_AVKON_SOFTKEYS_EMPTY;    
       
    76     cba = r_imageeditorui_sk_options_back_apply; // MSK_PHASE_2
       
    77 }
       
    78 
       
    79 
       
    80 //=============================================================================
       
    81 //
       
    82 //  MAIN VIEW MENUBAR
       
    83 //
       
    84 //=============================================================================
       
    85 RESOURCE MENU_BAR r_imageeditorui_menubar
       
    86     {
       
    87     titles =
       
    88         {
       
    89         MENU_TITLE 
       
    90             { 
       
    91             menu_pane = r_imageeditorui_menupane; 
       
    92             txt = "ViewMenu"; 
       
    93             }
       
    94         };
       
    95     }
       
    96 
       
    97 //=============================================================================
       
    98 //
       
    99 //	MAIN VIEW MENUPANE
       
   100 //
       
   101 //=============================================================================
       
   102 
       
   103 RESOURCE MENU_PANE r_imageeditorui_menupane
       
   104 {
       
   105     items =
       
   106 	{
       
   107 		MENU_ITEM 
       
   108 		{ 
       
   109 			command = EImageEditorMenuCmdApplyEffect; 
       
   110 			txt = qtn_sie_options_apply_effect; 
       
   111 		},
       
   112 		MENU_ITEM 
       
   113 		{ 
       
   114 			command = EImageEditorMenuCmdUndo; 
       
   115 			txt = qtn_sie_options_undo; 
       
   116 		},
       
   117 
       
   118 #ifdef __FULLSCREEN_AVAILABLE__
       
   119 		MENU_ITEM 
       
   120 		{ 
       
   121 			command = EImageEditorMenuCmdFullScreen; 
       
   122 			txt = qtn_sie_options_full_screen; 
       
   123 		},
       
   124 		MENU_ITEM 
       
   125 		{ 
       
   126 			command = EImageEditorMenuCmdNormalScreen; 
       
   127 			txt = qtn_sie_options_normal_screen; 
       
   128 		},
       
   129 #endif // FULLSCREEN_AVAILABLE		
       
   130 
       
   131 		MENU_ITEM 
       
   132 		{ 
       
   133 			command = EImageEditorMenuCmdZoomIn; 
       
   134 			txt = qtn_sie_options_zoom_in; 
       
   135 		},
       
   136 		MENU_ITEM 
       
   137 		{ 
       
   138 			command = EImageEditorMenuCmdZoomOut; 
       
   139 			txt = qtn_sie_options_zoom_out; 
       
   140 		},
       
   141 		MENU_ITEM
       
   142                 { 
       
   143 	        	command = EImageEditorMenuCmdFitToScreen; 
       
   144 	        	txt = qtn_sie_options_fit_to_screen; 
       
   145                 },
       
   146 		MENU_ITEM 
       
   147 		{ 
       
   148 			command = EImageEditorMenuCmdSave; 
       
   149 			txt = qtn_sie_options_save; 
       
   150 		},
       
   151 		MENU_ITEM 
       
   152 		{
       
   153 			command = EImageEditorAiwCriteriaPrint;
       
   154 			txt = " "; // text string comes from provider
       
   155 #ifdef __AIW_PRINT_PROVIDER_USED__
       
   156             // let AIW provider provides also text for the menu
       
   157             // (that's why this is commented away)
       
   158 			// cascade = AIW_INTELLIGENT_CASCADE_ID | AIW_LOCK_SUBMENU_TITLE ;
       
   159 #endif
       
   160 		},
       
   161 		MENU_ITEM 
       
   162 		{ 
       
   163 			command = EImageEditorMenuCmdHelp; 
       
   164 			txt = qtn_options_help; 
       
   165 		},
       
   166 		MENU_ITEM 
       
   167 		{ 
       
   168 			command = EImageEditorMenuCmdExit;
       
   169 			txt = qtn_options_exit;
       
   170 		}
       
   171 	};
       
   172 }
       
   173 
       
   174 //=============================================================================
       
   175 //
       
   176 //  SOFTKEYS
       
   177 //
       
   178 //=============================================================================
       
   179 
       
   180 // MSK_PHASE_2
       
   181 RESOURCE CBA r_imageeditorui_sk_options_back_apply
       
   182     {
       
   183     buttons =
       
   184         {
       
   185         CBA_BUTTON
       
   186             {
       
   187 			id = EAknSoftkeyOptions;
       
   188             txt = qtn_sie_main_view_softkey_options;
       
   189             },
       
   190         CBA_BUTTON
       
   191             {
       
   192 			id = EAknSoftkeyBack;
       
   193             txt = qtn_sie_main_view_softkey_back;
       
   194             },
       
   195         CBA_BUTTON
       
   196             {
       
   197 			id = EImageEditorMenuCmdApplyEffect;
       
   198             txt = qtn_sie_msk_apply_effect;
       
   199             }    
       
   200         };
       
   201     }
       
   202     
       
   203 RESOURCE CBA r_imageeditorui_sk_options_cancel_zoomin
       
   204     {
       
   205     buttons =
       
   206         {
       
   207         CBA_BUTTON
       
   208             {
       
   209             id = EAknSoftkeyOptions;
       
   210             txt = qtn_sie_main_view_softkey_options;
       
   211             },
       
   212         CBA_BUTTON
       
   213             {
       
   214             id = EImageEditorMenuCmdFitToScreen;
       
   215             txt = qtn_sie_main_view_softkey_cancel;
       
   216             },
       
   217         CBA_BUTTON
       
   218             {
       
   219             id = EImageEditorMenuCmdZoomIn;
       
   220             txt = qtn_sie_msk_zoom_in;
       
   221             }    
       
   222         };
       
   223     }
       
   224 
       
   225 RESOURCE CBA r_imageeditorui_sk_options_cancel
       
   226     {
       
   227     buttons =
       
   228         {
       
   229         CBA_BUTTON
       
   230             {
       
   231             id = EAknSoftkeyOptions;
       
   232             txt = qtn_sie_main_view_softkey_options;
       
   233             },
       
   234         CBA_BUTTON
       
   235             {
       
   236             id = EImageEditorMenuCmdFitToScreen;
       
   237             txt = qtn_sie_main_view_softkey_cancel;
       
   238             },
       
   239         CBA_BUTTON
       
   240             {
       
   241             id = EAknSoftkeyOptions;
       
   242             txt = qtn_sie_main_view_softkey_options;
       
   243             }    
       
   244         };
       
   245     }
       
   246         
       
   247 //=============================================================================
       
   248 //
       
   249 //  MAIN VIEW TITLE (displayed in navi pane)
       
   250 //
       
   251 //=============================================================================
       
   252 // Currently no text is shown in navipane
       
   253 RESOURCE TBUF r_main_view_title
       
   254 {
       
   255     buf = qtn_sie_navi_edit;
       
   256 }
       
   257 
       
   258 //=============================================================================
       
   259 //
       
   260 //  LIST QUERY (contents updated dynamically)
       
   261 //
       
   262 //=============================================================================
       
   263 RESOURCE AVKON_LIST_QUERY r_image_editor_list_query
       
   264 {
       
   265 	items =
       
   266 	{
       
   267 		AVKON_LIST_QUERY_DLG_LINE
       
   268 		{
       
   269 			control = AVKON_LIST_QUERY_CONTROL
       
   270 			{
       
   271 				listtype = EAknCtSinglePopupMenuListBox;
       
   272 				heading = " ";
       
   273 				listbox = AVKON_LIST_QUERY_LIST
       
   274 				{
       
   275 					// array of items will be defined dynamically
       
   276 				};
       
   277 			};
       
   278 		}
       
   279 	};
       
   280 }
       
   281 
       
   282 //=============================================================================
       
   283 //
       
   284 //  TEXT DATA QUERY (contents updated dynamically)
       
   285 //
       
   286 //=============================================================================
       
   287 RESOURCE DIALOG r_image_editor_text_query
       
   288 {
       
   289     flags = EGeneralQueryFlags;
       
   290     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   291     items =
       
   292     {
       
   293         DLG_LINE
       
   294         {
       
   295             type = EAknCtQuery;
       
   296             id = EGeneralQuery;
       
   297             control = AVKON_DATA_QUERY
       
   298             {
       
   299                 layout = EStaticSizeDataLayout;
       
   300                 label = " ";
       
   301                 control = EDWIN
       
   302                 {
       
   303                     lines = 1;
       
   304                     maxlength = 128;
       
   305                 };
       
   306             };
       
   307         }
       
   308     };
       
   309 }
       
   310 
       
   311 // Image Editor specific softkeys for confirmation query
       
   312 RESOURCE CBA r_imageeditorui_sk_yes_no
       
   313     {
       
   314     buttons =
       
   315         {
       
   316         CBA_BUTTON
       
   317             {
       
   318             id = EImageEditorSoftkeyCmdYes;
       
   319             txt = text_softkey_yes;
       
   320             },
       
   321         CBA_BUTTON
       
   322             {
       
   323             id = EImageEditorSoftkeyCmdNo;
       
   324             txt = text_softkey_no;
       
   325             } 
       
   326         };
       
   327     }
       
   328     
       
   329 //=============================================================================
       
   330 //
       
   331 //  CONFIRMATION QUERY
       
   332 //
       
   333 //=============================================================================
       
   334 RESOURCE DIALOG r_image_editor_confirmation_query
       
   335 {
       
   336     flags = EGeneralQueryFlags;
       
   337     buttons = r_imageeditorui_sk_yes_no;
       
   338     items =
       
   339     {
       
   340         DLG_LINE
       
   341         {
       
   342             type = EAknCtQuery;
       
   343             id = EGeneralQuery;
       
   344             control = AVKON_CONFIRMATION_QUERY
       
   345             {
       
   346                 layout = EConfirmationQueryLayout;
       
   347                 label = " ";
       
   348             };
       
   349         }
       
   350     };
       
   351 }
       
   352 
       
   353 RESOURCE DIALOG r_image_editor_confirmation_query_ok_only
       
   354 {
       
   355     flags = EGeneralQueryFlags;
       
   356     buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   357     items =
       
   358     {
       
   359         DLG_LINE
       
   360         {
       
   361             type = EAknCtQuery;
       
   362             id = EGeneralQuery;
       
   363             control = AVKON_CONFIRMATION_QUERY
       
   364             {
       
   365                 layout = EConfirmationQueryLayout;
       
   366                 label = " ";
       
   367             };
       
   368         }
       
   369     };
       
   370 }
       
   371 
       
   372 
       
   373 
       
   374 RESOURCE TBUF r_list_query_exit_without_saving_confirmation
       
   375 {
       
   376     buf = qtn_sie_exit_without_saving_confirmation;
       
   377 }
       
   378 
       
   379 RESOURCE TBUF r_list_query_save_confirmation
       
   380 {
       
   381     buf = qtn_sie_query_conf_save_changes;
       
   382 }
       
   383 
       
   384 RESOURCE TBUF r_list_query_cancel_text_input
       
   385 {
       
   386     // If cancel text input is needed in the future, just a new string has to 
       
   387     // be defined in ImageEditor.loc and append it here 
       
   388     buf = " ";
       
   389 }
       
   390 
       
   391 //=============================================================================
       
   392 //
       
   393 //  WAIT DIALOGS
       
   394 //
       
   395 //=============================================================================
       
   396 RESOURCE DIALOG r_wait_dialog
       
   397 {
       
   398     flags = EAknWaitNoteFlags;
       
   399     buttons = R_AVKON_SOFTKEYS_EMPTY;
       
   400     items=
       
   401     {
       
   402         DLG_LINE
       
   403         {
       
   404             type = EAknCtNote;
       
   405             id = 10;
       
   406             control= AVKON_NOTE
       
   407             {
       
   408                 layout = EWaitLayout;
       
   409                 singular_label = " ";
       
   410                 imagefile = AVKON_ICON_FILE;
       
   411                 imageid = EMbmAvkonQgn_note_progress;
       
   412                 imagemask = EMbmAvkonQgn_note_progress_mask;
       
   413                 animation = R_QGN_GRAF_WAIT_BAR_ANIM;
       
   414             };
       
   415         }
       
   416     };
       
   417 }
       
   418 
       
   419 RESOURCE DIALOG r_progress_dialog
       
   420 {
       
   421     flags = EAknWaitNoteFlags;
       
   422     buttons = R_AVKON_SOFTKEYS_CANCEL;
       
   423     items=
       
   424     {
       
   425         DLG_LINE
       
   426         {
       
   427             type = EAknCtNote;
       
   428             id = 10;
       
   429             control= AVKON_NOTE
       
   430             {
       
   431                 layout = EProgressLayout;
       
   432                 singular_label = " ";
       
   433             };
       
   434         }
       
   435     };
       
   436 }
       
   437 
       
   438 RESOURCE TBUF r_wait_note_saving
       
   439 {
       
   440     buf = qtn_gen_note_saving;
       
   441 }
       
   442 
       
   443 RESOURCE TBUF r_wait_note_saving_to
       
   444 {
       
   445     buf = qtn_fldr_file_saving_wait;
       
   446 }
       
   447 
       
   448 RESOURCE TBUF r_wait_note_loading
       
   449 {
       
   450     buf = qtn_gen_note_opening;
       
   451 }
       
   452 
       
   453 //=============================================================================
       
   454 //
       
   455 //  COLOR SELECTION GRID (NEW POPUP)
       
   456 //
       
   457 //=============================================================================
       
   458 RESOURCE DIALOG r_image_editor_color_dialog
       
   459 {
       
   460     title = "";
       
   461     flags = EEikDialogFlagWait |
       
   462             EEikDialogFlagNoBackgroundFade |
       
   463             EEikDialogFlagFillAppClientRect |
       
   464             EEikDialogFlagNoBackup;
       
   465     buttons = R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT;
       
   466 }
       
   467 
       
   468 //=============================================================================
       
   469 //
       
   470 //  COLOR SELECTION GRID CAPTION
       
   471 //
       
   472 //=============================================================================
       
   473 RESOURCE TBUF r_select_colour
       
   474 {
       
   475     buf = qtn_sie_select_color_promt;
       
   476 }
       
   477 
       
   478 //=============================================================================
       
   479 //
       
   480 //  PLUG-IN SELECTION GRID
       
   481 //
       
   482 //=============================================================================
       
   483 RESOURCE DIALOG r_image_editor_plugin_dialog
       
   484 {
       
   485     title = "";
       
   486     flags = EEikDialogFlagWait |
       
   487             EEikDialogFlagNoBackgroundFade |
       
   488             EEikDialogFlagFillAppClientRect |
       
   489             EEikDialogFlagNoBackup;
       
   490     buttons = R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT;
       
   491 }
       
   492 
       
   493 //=============================================================================
       
   494 //
       
   495 //  PLUG-IN SELECTION GRID HEADING
       
   496 //
       
   497 //=============================================================================
       
   498 RESOURCE TBUF r_heading_apply_effect
       
   499 {
       
   500     buf = qtn_sie_heading_apply_effect;
       
   501 }
       
   502 
       
   503 //=============================================================================
       
   504 //
       
   505 //  AIW INTEREST
       
   506 //
       
   507 //=============================================================================
       
   508 #ifdef __AIW_PRINT_PROVIDER_USED__
       
   509 RESOURCE AIW_INTEREST r_image_editor_interest
       
   510 {
       
   511 	items=
       
   512 	{
       
   513 		// This application is interested in printing jpeg images
       
   514 		// from menu.	
       
   515 		AIW_CRITERIA_ITEM      
       
   516 		{
       
   517 		id              = EImageEditorAiwCriteriaPrint;
       
   518 		serviceCmd      = KAiwCmdPrint;
       
   519 		serviceClass    = KAiwClassMenu;
       
   520 		contentType     = "image/jpeg";
       
   521 		maxProviders    = 4;
       
   522 		}
       
   523 	};
       
   524 }
       
   525 #endif
       
   526 
       
   527 //=============================================================================
       
   528 //
       
   529 //  SAVE IMAGE LIST QUERY STRINGS
       
   530 //
       
   531 //=============================================================================
       
   532 RESOURCE TBUF r_sie_list_query_heading_save
       
   533 {
       
   534     buf = qtn_sie_heading_save;
       
   535 }
       
   536 
       
   537 RESOURCE TBUF r_sie_list_query_save_replace
       
   538 {
       
   539 //    command = EImageEditorCmdSaveReplace;
       
   540     buf = qtn_sie_query_save_replace;
       
   541 }
       
   542 
       
   543 RESOURCE TBUF r_sie_list_query_save_new
       
   544 {
       
   545 //    command = EImageEditorCmdSaveNew;
       
   546     buf = qtn_sie_query_save_new;
       
   547 }
       
   548 
       
   549 
       
   550 //=============================================================================
       
   551 //
       
   552 //  ZOOM TEXTS (There should be as many zoom texts as there are zoom states)
       
   553 //
       
   554 //=============================================================================
       
   555 RESOURCE TEXT_ARRAY r_zoom_texts
       
   556     {
       
   557     parameters=
       
   558         {
       
   559 
       
   560         " ", // EZoomNormal
       
   561 
       
   562         qtn_sie_zoom_in2, // EZoomIn1
       
   563 
       
   564         qtn_sie_zoom_in4, // EZoomIn2
       
   565 
       
   566         qtn_sie_zoom_in8 // EZoomIn3
       
   567 
       
   568         };
       
   569     }
       
   570     
       
   571 // End of File