?? menu.rss
字號:
/*
============================================================================
Name : Menu.rss
Author :
Copyright : Your copyright notice
Description : This file contains all the resources for the Menu.
============================================================================
*/
// RESOURCE IDENTIFIER
NAME MENU // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <appinfo.rh>
#include "Menu.hrh"
#include "Menu.rls"
//#include <eikmenup.h>
// RESOURCE DEFINITIONS
// -----------------------------------------------------------------------------
//
// Define the resource file signature
// This resource should be empty.
//
// -----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
{
}
// -----------------------------------------------------------------------------
//
// Default Document Name
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF r_default_document_name
{
buf="MENU";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
menubar = r_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
}
// -----------------------------------------------------------------------------
//
// r_menubar
// Main menubar
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_menupan; }
};
}
// -----------------------------------------------------------------------------
//
// r_menu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_menupan
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = ECommand1;
txt = qtn_command1;
},
MENU_ITEM
{
command = ECommand2;
txt = qtn_command2;
},
MENU_ITEM
{
command = EHelp;
txt = qtn_help;
},
MENU_ITEM
{
command = EAbout;
txt = qtn_about;
},
MENU_ITEM
{
command=EHelloWorldCmdAppTest;txt=qtn_app_test;
},
MENU_ITEM
{
command=EHelloWorldCmdAppTestSub;
cascade=r_hello_sub;
txt=qtn_app_test_sub;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_exit;
}
};
}
RESOURCE MENU_PANE r_hello_sub
{
items={
MENU_ITEM{command=EHelloWorldCmdAppTestSub1;txt=qtn_app_test_sub1;},
MENU_ITEM{command=EHelloWorldCmdAppTestSub2;txt=qtn_app_test_sub2;}
};
}
// -----------------------------------------------------------------------------
//
// About dialog resource.
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_about_query_dialog
{
flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
items=
{
DLG_LINE
{
type = EAknCtPopupHeadingPane;
id = EAknMessageQueryHeaderId;
itemflags = EEikDlgItemNonFocusing;
control = AVKON_HEADING
{
};
},
DLG_LINE
{
type = EAknCtMessageQuery;
id = EAknMessageQueryContentId;
control = AVKON_MESSAGE_QUERY
{
};
}
};
}
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
RESOURCE TBUF32 r_about_dialog_title { buf=qtn_about_dialog_title; }
RESOURCE TBUF r_about_dialog_text { buf=qtn_about_dialog_text; }
RESOURCE TBUF r_command1_text { buf=qtn_command1_text; }
// ----------------------------------------------------------------------------
//
// r_localisable_app_info
//
// ----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
{
short_caption = qtn_caption_string;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = qtn_caption_string;
number_of_icons = 1;
icon_file = "\\resource\\apps\\Menu_0xE1970608.mif";
};
}
// End of File
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -