diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_image_conv_8rss-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_image_conv_8rss-source.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,195 @@ + +
+00001 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +00002 // All rights reserved. +00003 // This component and the accompanying materials are made available +00004 // under the terms of "Eclipse Public License v1.0" +00005 // which accompanies this distribution, and is available +00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". +00007 // +00008 // Initial Contributors: +00009 // Nokia Corporation - initial contribution. +00010 // +00011 // Contributors: +00012 // +00013 // Description: +00014 // +00015 +00016 NAME IMGC +00017 +00018 #include <eikon.rh> +00019 #include <eikon.rsg> +00020 +00021 #include "ImageConv.hrh" +00022 +00023 +00024 RESOURCE RSS_SIGNATURE { } +00025 +00026 RESOURCE TBUF { buf=""; } +00027 +00028 // App UI +00029 RESOURCE EIK_APP_INFO +00030 { +00031 menubar=r_image_menubar; +00032 hotkeys=r_image_hotkeys; +00033 } +00034 +00035 // Command hotkeys +00036 RESOURCE HOTKEYS r_image_hotkeys +00037 { +00038 control= +00039 { +00040 HOTKEY { command=EImageCmdSaveAs; key='a'; }, +00041 HOTKEY { command=EEikCmdExit; key='e'; }, +00042 HOTKEY { command=EImageCmdExtractFrame; key='f'; }, +00043 HOTKEY { command=EImageCmdZoomIn; key='m'; }, +00044 HOTKEY { command=EImageCmdOpenFile; key='o'; }, +00045 HOTKEY { command=EImageCmdRotateClockwise; key='q'; }, +00046 HOTKEY { command=EImageCmdRefresh; key='r'; } +00047 }; +00048 shift_control= +00049 { +00050 HOTKEY { command=EImageCmdZoomOut; key='m'; }, +00051 HOTKEY { command=EImageCmdRotateAntiClockwise; key='q'; } +00052 }; +00053 } +00054 +00055 // Menu bar +00056 RESOURCE MENU_BAR r_image_menubar +00057 { +00058 titles= +00059 { +00060 MENU_TITLE { menu_pane=r_image_file_menu; txt="File"; }, +00061 MENU_TITLE { menu_pane=r_image_view_menu; txt="Image"; } +00062 }; +00063 } +00064 +00065 // File menu +00066 RESOURCE MENU_PANE r_image_file_menu +00067 { +00068 items= +00069 { +00070 MENU_ITEM { command=EImageCmdOpenFile; txt="Open file"<KEllipsis>; }, +00071 MENU_ITEM { command=EImageCmdSaveAs; txt="Save as"<KEllipsis>; flags=EEikMenuItemSeparatorAfter; }, +00072 MENU_ITEM { command=EEikCmdExit; txt="Close"; } +00073 }; +00074 } +00075 +00076 // Image menu +00077 RESOURCE MENU_PANE r_image_view_menu +00078 { +00079 items= +00080 { +00081 MENU_ITEM { command=EImageCmdZoomIn; txt="Zoom in"; }, +00082 MENU_ITEM { command=EImageCmdZoomOut; txt="Zoom out"; }, +00083 MENU_ITEM { command=EImageCmdRotateClockwise; txt="Rotate clockwise"; }, +00084 MENU_ITEM { command=EImageCmdRotateAntiClockwise; txt="Rotate anti-clockwise"; }, +00085 MENU_ITEM { command=EImageCmdMirror; txt="Mirror"; }, +00086 MENU_ITEM { command=EImageCmdFlip; txt="Flip"; }, +00087 MENU_ITEM { command=EImageCmdRefresh; txt="Refresh"; }, +00088 MENU_ITEM { command=EImageCmdExtractFrame; txt="Select frame"<KEllipsis>; } +00089 }; +00090 } +00091 +00092 // Frame selection dialog +00093 RESOURCE DIALOG r_image_frame_dialog +00094 { +00095 title="Set current frame"; +00096 flags=EEikDialogFlagWait; +00097 buttons=R_EIK_BUTTONS_CANCEL_OK; +00098 items= +00099 { +00100 DLG_LINE +00101 { +00102 prompt="Frame number:"; +00103 type=EEikCtNumberEditor; +00104 id=EImageIdNumberOfFrames; +00105 control=NUMBER_EDITOR +00106 { +00107 min=0; +00108 max=999999; +00109 }; +00110 } +00111 }; +00112 } +00113 +00114 // Save As dialog +00115 RESOURCE DIALOG r_image_file_saveas_dialog +00116 { +00117 flags=EEikDialogFlagWait; +00118 title="Save as"; +00119 buttons=r_image_browse_cancel_ok_buttons; +00120 items= +00121 { +00122 DLG_LINE +00123 { +00124 prompt="Name"; +00125 type=EEikCtFileNameEd; +00126 id=EEikCidFileNameEd; +00127 control=FILENAMEEDITOR {}; +00128 }, +00129 DLG_LINE +00130 { +00131 prompt="Folder"; +00132 type=EEikCtFolderNameSel; +00133 id=EEikCidFolderNameSel; +00134 control=FOLDERNAMESELECTOR {}; +00135 }, +00136 DLG_LINE +00137 { +00138 prompt="Disk"; +00139 type=EEikCtDriveNameSel; +00140 id=EEikCidDriveNameSel; +00141 control=DRIVENAMESELECTOR {}; +00142 }, +00143 DLG_LINE +00144 { +00145 type=EEikCtCheckBox; +00146 prompt="Use new file"; +00147 id=EEikCidUseNewFileChbx; +00148 }, +00149 DLG_LINE +00150 { +00151 type=EEikCtChoiceList; +00152 prompt="Type"; +00153 id=EImageIdSaveAsFormat; +00154 control=CHOICELIST {}; +00155 }, +00156 DLG_LINE +00157 { +00158 type=EEikCtChoiceList; +00159 prompt="Sub-type"; +00160 id=EImageIdSubtype; +00161 control=CHOICELIST {}; +00162 } +00163 }; +00164 } +00165 +00166 // Set-format dialog buttons +00167 RESOURCE DLG_BUTTONS r_image_browse_cancel_ok_buttons +00168 { +00169 buttons= +00170 { +00171 DLG_BUTTON { id=EEikBidBrowse; button=CMBUT {txt="Browse"<KEllipsis>;}; hotkey='B'; }, +00172 DLG_BUTTON { id=EEikBidCancel; button=CMBUT {txt="Cancel";}; hotkey=EEikBidCancel; flags=0;}, +00173 DLG_BUTTON { id=EEikBidOk; button=CMBUT {txt="OK";}; hotkey=EEikBidOk; flags=0; } +00174 }; +00175 } +00176 +00177 RESOURCE ARRAY r_no_sub_types +00178 { +00179 items= +00180 { +00181 LBUF { txt="None";} +00182 }; +00183 } +