00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 // RESOURCE IDENTIFIER 00006 NAME IMCV // 4 letter ID 00007 00008 // INCLUDES 00009 00010 #include <eikon.rh> 00011 #include "imageconverter.hrh" 00012 #include <avkon.rsg> 00013 #include <avkon.rh> 00014 #include <avkon.mbg> 00015 #include <CommonDialogs.hrh> // Enumerations 00016 #include <CommonDialogs.rh> // Resource structures 00017 #include <appinfo.rh> 00018 #include "ImageConverter.rls" 00019 00020 // RESOURCE DEFINITIONS 00021 00022 RESOURCE RSS_SIGNATURE { } 00023 00024 RESOURCE TBUF { buf = "ImageConverter"; } 00025 00026 RESOURCE EIK_APP_INFO 00027 { 00028 hotkeys = r_imageconverter_hotkeys; 00029 menubar = r_imageconverter_menubar; 00030 status_pane = r_status_pane_empty; 00031 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; 00032 } 00033 00034 00035 RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info 00036 { 00037 short_caption = "ImageConverter"; 00038 caption_and_icon = 00039 CAPTION_AND_ICON_INFO 00040 { 00041 caption="ImageConverter"; 00042 //number_of_icons = 1; 00043 icon_file = "\\resource\\apps\\ImageConverter.mif"; 00044 }; 00045 } 00046 00047 RESOURCE STATUS_PANE_APP_MODEL r_status_pane_empty 00048 { 00049 layout = R_AVKON_STATUS_PANE_LAYOUT_EMPTY; 00050 } 00051 00052 //---------------------------------------------------- 00053 // 00054 // r_imageconverter_hotkeys 00055 // 00056 //---------------------------------------------------- 00057 // 00058 RESOURCE HOTKEYS r_imageconverter_hotkeys 00059 { 00060 control = 00061 { 00062 HOTKEY { command = EAknCmdExit; key='e'; } 00063 }; 00064 } 00065 00066 //---------------------------------------------------- 00067 // 00068 // r_imageconverter_menubar 00069 // 00070 //---------------------------------------------------- 00071 // 00072 RESOURCE MENU_BAR r_imageconverter_menubar 00073 { 00074 titles = 00075 { 00076 MENU_TITLE { menu_pane = r_imageconverter_menu; txt = "File"; } 00077 }; 00078 } 00079 00080 //---------------------------------------------------- 00081 // 00082 // r_imageconverter_menu 00083 // 00084 //---------------------------------------------------- 00085 // 00086 RESOURCE MENU_PANE r_imageconverter_menu 00087 { 00088 items = 00089 { 00090 MENU_ITEM { command = EImageConverterCmdOpen; txt = "Open"; }, 00091 MENU_ITEM { command = EImageConverterCmdSaveAs; txt = "Save As"; }, 00092 MENU_ITEM { command = EImageConverterCmdNext; txt = "Next"; }, 00093 MENU_ITEM { command = EImageConverterCmdPrev; txt = "Previous"; }, 00094 MENU_ITEM { command = EImageConverterCmdZoomIn; txt = "Zoom in"; }, 00095 MENU_ITEM { command = EImageConverterCmdZoomOut; txt = "Zoom out"; }, 00096 MENU_ITEM { command = EImageConverterCmdRotate; cascade = r_imageconverter_cascade_rotate; txt = "Rotate";}, 00097 MENU_ITEM { command = EImageConverterCmdOrientation; txt = "Change orientation"; }, 00098 MENU_ITEM { command = EImageConverterCmdInfo; txt = "Image Details"; }, 00099 MENU_ITEM { command = EImageConverterCmdHelp; txt = "Help"; }, 00100 MENU_ITEM { command = EImageConverterCmdAbout; txt = "About"; }, 00101 MENU_ITEM { command = EAknCmdExit; txt = "Exit"; } 00102 }; 00103 } 00104 00105 RESOURCE MENU_PANE r_imageconverter_cascade_rotate 00106 { 00107 items = 00108 { 00109 MENU_ITEM { command = EImageConverterCmdRotateLeft; txt = "Left";}, 00110 MENU_ITEM { command = EImageConverterCmdRotateRight; txt = "Right";} 00111 }; 00112 } 00113 00114 00115 RESOURCE DIALOG r_imageconverter_typeselection_dialog 00116 { 00117 flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect | 00118 EEikDialogFlagNoTitleBar | EEikDialogFlagNoBorder | 00119 EEikDialogFlagCbaButtons | EEikDialogFlagWait | EEikDialogFlagDensePacking; 00120 00121 buttons = R_AVKON_SOFTKEYS_OK_BACK; 00122 } 00123 00124 RESOURCE DIALOG r_imageconverter_showinfo_dialog 00125 { 00126 flags = EGeneralQueryFlags; 00127 buttons = R_AVKON_SOFTKEYS_CLOSE; 00128 } 00129 00130 00131 RESOURCE MEMORYSELECTIONDIALOG r_memory_selection_dialog 00132 { 00133 title = "Select location"; 00134 softkey_1 = "Ok"; 00135 softkey_2 = "Back"; 00136 locations = 00137 { 00138 LOCATION { root_path = "C:\\"; } 00139 }; 00140 } 00141 00142 RESOURCE DIALOG R_QUERY_DIALOG 00143 { 00144 flags = EGeneralQueryFlags; 00145 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 00146 items= 00147 { 00148 DLG_LINE 00149 { 00150 type = EAknCtQuery; 00151 id = EGeneralQuery; 00152 control= AVKON_DATA_QUERY 00153 { 00154 layout = EDataLayout; 00155 control = EDWIN 00156 { 00157 flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; 00158 maxlength = 10; 00159 width = 4; 00160 lines = 1; 00161 }; 00162 }; 00163 } 00164 }; 00165 } 00166 00167 RESOURCE DIALOG r_about_query_dialog 00168 { 00169 flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow; 00170 buttons = R_AVKON_SOFTKEYS_OK_EMPTY; 00171 items= 00172 { 00173 DLG_LINE 00174 { 00175 type = EAknCtPopupHeadingPane; 00176 id = EAknMessageQueryHeaderId; 00177 itemflags = EEikDlgItemNonFocusing; 00178 control = AVKON_HEADING 00179 { 00180 }; 00181 }, 00182 DLG_LINE 00183 { 00184 type = EAknCtMessageQuery; 00185 id = EAknMessageQueryContentId; 00186 control = AVKON_MESSAGE_QUERY 00187 { 00188 }; 00189 } 00190 }; 00191 } 00192 00193 RESOURCE DIALOG r_selection_query 00194 { 00195 flags = EGeneralQueryFlags; 00196 buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 00197 items = 00198 { 00199 DLG_LINE 00200 { 00201 type = EAknCtListQueryControl; 00202 id = EListQueryControl; 00203 control = AVKON_LIST_QUERY_CONTROL 00204 { 00205 listtype = EAknCtSinglePopupMenuListBox; 00206 listbox = LISTBOX 00207 { 00208 flags = EAknListBoxSelectionList; 00209 height = 3; 00210 width = 3; 00211 }; 00212 heading = "Select format"; 00213 }; 00214 } 00215 }; 00216 } 00217 00218 RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; } 00219 RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; } 00220 00221 00222 // End of File
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.