| 1 | /* Copyright (c) 2004-2005 Nokia. All rights reserved. */ |
| 2 | |
| 3 | /* The PerlUi class is licensed under the same terms as Perl itself. */ |
| 4 | |
| 5 | /* The S60 definitions. */ |
| 6 | |
| 7 | NAME PERL |
| 8 | |
| 9 | #include <eikon.rh> |
| 10 | #include <avkon.rh> |
| 11 | #include <avkon.rsg> |
| 12 | |
| 13 | #include "PerlUi.hrh" |
| 14 | #include "PerlApp.hrh" |
| 15 | |
| 16 | RESOURCE RSS_SIGNATURE |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | RESOURCE TBUF r_default_document_name |
| 21 | { |
| 22 | buf = ""; |
| 23 | } |
| 24 | |
| 25 | RESOURCE EIK_APP_INFO |
| 26 | { |
| 27 | menubar = r_Perl_menubar; |
| 28 | cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | RESOURCE MENU_BAR r_Perl_menubar |
| 33 | { |
| 34 | titles = { |
| 35 | MENU_TITLE |
| 36 | { |
| 37 | menu_pane = r_Perl_menu; |
| 38 | } |
| 39 | }; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | RESOURCE MENU_PANE r_Perl_menu |
| 44 | { |
| 45 | items = { |
| 46 | MENU_ITEM { |
| 47 | command = EPerlAppCommandAbout; |
| 48 | txt = "About"; |
| 49 | }, |
| 50 | MENU_ITEM { |
| 51 | command = EPerlAppCommandTime; |
| 52 | txt = "Time"; |
| 53 | }, |
| 54 | MENU_ITEM { |
| 55 | command = EPerlAppCommandRunFile; |
| 56 | txt = "Run"; |
| 57 | }, |
| 58 | MENU_ITEM { |
| 59 | command = EPerlAppCommandOneLiner; |
| 60 | txt = "Oneliner"; |
| 61 | }, |
| 62 | MENU_ITEM { |
| 63 | command = EPerlAppCommandCopyright; |
| 64 | txt = "Copyright"; |
| 65 | } |
| 66 | }; |
| 67 | } |
| 68 | |
| 69 | RESOURCE DIALOG r_perlui_ok_cancel_dialog |
| 70 | { |
| 71 | flags = EEikDialogFlagWait | EEikDialogFlagCbaButtons; |
| 72 | buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
| 73 | items = { |
| 74 | DLG_LINE |
| 75 | { |
| 76 | type = EAknCtNote; |
| 77 | id = EGeneralNote; |
| 78 | control = AVKON_NOTE |
| 79 | { |
| 80 | layout = EGeneralLayout; |
| 81 | }; |
| 82 | } |
| 83 | }; |
| 84 | } |
| 85 | |
| 86 | RESOURCE DIALOG r_perlui_yes_no_dialog |
| 87 | { |
| 88 | flags = EEikDialogFlagWait | EEikDialogFlagCbaButtons; |
| 89 | buttons = R_AVKON_SOFTKEYS_YES_NO; |
| 90 | items = { |
| 91 | DLG_LINE |
| 92 | { |
| 93 | type = EAknCtNote; |
| 94 | id = EGeneralNote; |
| 95 | control = AVKON_NOTE |
| 96 | { |
| 97 | layout = EGeneralLayout; |
| 98 | }; |
| 99 | } |
| 100 | }; |
| 101 | } |
| 102 | |
| 103 | RESOURCE DIALOG r_perlui_text_query_dialog |
| 104 | { |
| 105 | flags = EGeneralQueryFlags; |
| 106 | buttons = R_AVKON_SOFTKEYS_OK_CANCEL; |
| 107 | items = { |
| 108 | DLG_LINE |
| 109 | { |
| 110 | type = EAknCtQuery; |
| 111 | id = EGeneralQuery; |
| 112 | control = AVKON_DATA_QUERY |
| 113 | { |
| 114 | layout = EDataLayout; |
| 115 | control = EDWIN {}; |
| 116 | }; |
| 117 | } |
| 118 | }; |
| 119 | } |
| 120 | |
| 121 | RESOURCE AVKON_LIST_QUERY r_perlui_list_query_dialog |
| 122 | { |
| 123 | flags = EGeneralQueryFlags; |
| 124 | softkeys = R_AVKON_SOFTKEYS_OK_CANCEL; |
| 125 | items = { |
| 126 | DLG_LINE |
| 127 | { |
| 128 | type = EAknCtListQueryControl; |
| 129 | id = EListQueryControl; |
| 130 | control = AVKON_LIST_QUERY_CONTROL |
| 131 | { |
| 132 | listtype = EAknCtSinglePopupMenuListBox; |
| 133 | }; |
| 134 | } |
| 135 | }; |
| 136 | } |
| 137 | |
| 138 | #include <CommonDialogs.hrh> |
| 139 | #include <CommonDialogs.rh> |
| 140 | |
| 141 | RESOURCE MEMORYSELECTIONDIALOG r_perlui_file_selection_dialog |
| 142 | { |
| 143 | } |
| 144 | |