📄 contextmenu.rss
字号:
/**
*
* @brief Resource file for ContextMenu application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// RESOURCE IDENTIFIER
NAME MEN3 // 4 letter ID
// INCLUDES
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <eikon.rh>
#include "ContextMenu.hrh"
#include "ContextMenu.loc"
// RESOURCE DEFINITIONS
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf="ContextMenu"; }
RESOURCE EIK_APP_INFO
{
menubar=r_contextmenu_menu_bar;
cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
}
//----------------------------------------------------
//
// r_contextmenu_menu_bar
// options menu for the application
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_contextmenu_menu_bar
{
titles=
{
MENU_TITLE
{
txt = ""; // the text is not used in Series 60
menu_pane = r_contextmenu_menu_pane;
}
};
}
//----------------------------------------------------
//
// r_contextmenu_menu_pane
// options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_contextmenu_menu_pane
{
items =
{
MENU_ITEM
{
command = EAknCmdExit;
txt = EXIT_TEXT;
}
};
}
//----------------------------------------------------
//
// r_contextmenu_saved_games_menu_bar
// context sensitive menu bar for the saved games list
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_contextmenu_saved_games_menu_bar
{
titles=
{
MENU_TITLE
{
txt = ""; // the text is not used in Series 60
menu_pane = r_contextmenu_saved_games_menu_pane;
}
};
}
//----------------------------------------------------
//
// r_contextmenu_saved_games_menu_pane
// context sensitive menu pane for the saved games list
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_contextmenu_saved_games_menu_pane
{
items =
{
MENU_ITEM
{
command = EContextMenuCmdPlayGame;
txt = PLAY_GAME_TEXT;
},
MENU_ITEM
{
command = EContextMenuCmdDeleteGame;
txt = DELETE_GAME_TEXT;
}
};
}
// ---------------------------------------------------------
// r_contextmenu_saved_games_listbox
// The saved games list
//
// ---------------------------------------------------------
//
RESOURCE LISTBOX r_contextmenu_saved_games_listbox
{
array_id = r_contextmenu_saved_games_items;
flags = EAknListBoxSelectionList;
}
// ---------------------------------------------------------
//
// The saved games list
//
// ---------------------------------------------------------
//
RESOURCE ARRAY r_contextmenu_saved_games_items
{
items =
{
LBUF
{
txt = SAVED_GAME1_TEXT;
},
LBUF
{
txt = SAVED_GAME2_TEXT;
},
LBUF
{
txt = SAVED_GAME3_TEXT;
}
};
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -