📄 helloworldbasic.rss
字号:
/*
* ==============================================================================
* Name : Helloworldbasic.rss
* Part of : Helloworldbasic
* Interface :
* Description :
* Version :
*
* Copyright (c) 2005-2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
// RESOURCE IDENTIFIER
NAME HEWB // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <appinfo.rh>
#include "HelloWorldBasic.hrh"
#include "HelloWorldBasic.rls"
// 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="HEWB";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
menubar = r_helloworldbasic_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// r_helloworldbasic_menubar
// Menubar for HelloWorldBasic example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_helloworldbasic_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_helloworldbasic_menu; }
};
}
// -----------------------------------------------------------------------------
//
// r_helloworldbasic_menu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_helloworldbasic_menu
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = EHelloWorldBasicCommand2;
txt = STRING_r_hewb_command2;
},
MENU_ITEM
{
command = EHelloWorldBasicCommand3;
txt = STRING_r_hewb_command3;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = STRING_r_hewb_exit;
}
};
}
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_hewb_command1_text { buf=STRING_r_hewb_command1_text; }
RESOURCE TBUF32 r_hewb_file_text { buf=STRING_r_hewb_file_text; }
RESOURCE TBUF32 r_hewb_caption_string { buf=STRING_r_hewb_caption_string; }
// ----------------------------------------------------------------------------
//
// r_helloworldbasic_localisable_app_info
//
// ----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_helloworldbasic_localisable_app_info
{
short_caption = STRING_r_hewb_caption_string;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = STRING_r_hewb_caption_string;
number_of_icons = 1;
icon_file = "\\resource\\apps\\Helloworldbasic_aif.mif";
};
}
// ----------------------------------------------------------------------------
//
// r_dialog_text_edit_query R_DIALOG_TEXT_EDIT_QUERY
//
// ----------------------------------------------------------------------------
//
RESOURCE DIALOG r_dialog_text_edit_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
/*
control = AVKON_DATA_QUERY
{
layout = EPhoneLayout;
label = "Please input the designate numbers!";
control = EDWIN
{
width = 100;
maxlength = 100;
lines = 1;
};
};
*/
/*
control = EDWIN
{
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
width = 11;
lines = 1;
maxlength = 20;
allowed_input_modes = EAknEditorAllInputModes;
default_input_mode = EAknEditorNumericInputMode;
numeric_keymap = EAknEditorPlainNumberModeKeymap;
};
*/
control = AVKON_DATA_QUERY //表示这是data询问对话框,需要用户输入内容
{
layout = EDataLayout;
label = "Please input the designate numbers";
control = EDWIN
{
flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
width = 30;
lines = 2;
maxlength = 159;
allowed_input_modes = EAknEditorAllInputModes;
default_input_mode = EAknEditorNumericInputMode;
};
};
}
};
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -