📄 datagramtest.rss
字号:
/*
* ==============================================================================
* Name : DatagramTest.rss
* Part of : DatagramTest
* Interface :
* Description :
* Version :
*
* Copyright (c) 2007 Symbian Ltd. All rights reserved.
* ==============================================================================
*/
// RESOURCE IDENTIFIER
NAME DGMT // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <appinfo.rh>
#include "DatagramTest.hrh"
#include "DatagramTest.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="DGMT";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
menubar = r_datagramtest_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// r_DatagramTest_menubar
// Menubar for DatagramTest example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_datagramtest_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_datagramtest_menu; }
};
}
// -----------------------------------------------------------------------------
//
// r_DatagramTest_menu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_datagramtest_menu
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = EDatagramTestCommand1;
txt = STRING_dgmt_command1;
},
MENU_ITEM
{
command = EDatagramTestCommand2;
txt = STRING_dgmt_command2;
},
MENU_ITEM
{cascade = r_datagramtest_menu_settings;
command=EDatagramTestSettingsMenu;
txt=STRING_dgmt_menu_settings;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = STRING_dgmt_exit;
}
};
}
//
RESOURCE MENU_PANE r_datagramtest_menu_settings
{
items=
{
MENU_ITEM
{
command = EDatagramTestCommand3;
txt = STRING_dgmt_command3;
}
};
}
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_dgmt_caption_string { buf=STRING_dgmt_caption_string; }
// -----------------------------------------------------------------------------
//
// Resources for dialogs
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_smsnumber_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EPhoneLayout;
label = "Phone number"; // prompt text
control = EDWIN
{
width = 5;
lines = 1;
maxlength = 15;
};
};
}
};
}
// ----------------------------------------------------------------------------
//
// r_DatagramTest_localisable_app_info
//
// ----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_DatagramTest_localisable_app_info
{
short_caption = STRING_dgmt_caption_string;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = STRING_dgmt_caption_string;
};
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -