⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldk008.rss

📁 这是一个关于Symbian Gird控件的程序
💻 RSS
字号:
/*
============================================================================
 Name        : LDK008.rss
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application resource file
============================================================================
*/

//  RESOURCE IDENTIFIER
NAME HEWB    // 4 letter ID


//  INCLUDES
#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <appinfo.rh>
#include "LDK008.hrh"
#include "LDK008.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_ldk008_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
	}


// -----------------------------------------------------------------------------
//
//    Localizable application information
//
// -----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_ldk008_localisable_app_info
	{
	short_caption = qtn_hewb_short_caption_string;
	caption_and_icon = 
	CAPTION_AND_ICON_INFO
		{
		caption = qtn_hewb_caption_string;

		number_of_icons = 1;
		icon_file = "\\resource\\apps\\LDK008_reg.mif";
		};
	}

// -----------------------------------------------------------------------------
//
//   r_ldk008_menubar
//   Menubar for LDK008 example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_ldk008_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_ldk008_menu; }
		};
	}

// -----------------------------------------------------------------------------
//
//   r_ldk008_menu
//   Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_ldk008_menu
	{
	items =
		{
		// added the new Options menu command here
		MENU_ITEM
			{
			command = ELDK008Command1;
			txt = qtn_hewb_command1;
			},
		MENU_ITEM
			{
			command = EHelp;
			txt = qtn_help;
			},
		MENU_ITEM
			{
			command = EAbout;
			txt = qtn_about;
			},				
		MENU_ITEM
			{
			command = EAknSoftkeyExit;
			txt = qtn_hewb_exit;
			}
		};
	}

// -----------------------------------------------------------------------------
//
// 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
				{
				};
			}
		};
	}

// -----------------------------------------------------------------------------
//
// Privacy statement dialog resource.
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_privstmt_dialog {
	flags = EAknDialogGenericQueryFlags;
	buttons = R_AVKON_SOFTKEYS_YES_NO;
	items = {
		DLG_LINE {
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING {
				label = qtn_privacy_statement_header;
			};
		},
		DLG_LINE {
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY {
			};
		}
	};
}	

// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_hewb_command1_text { buf=qtn_hewb_command1_text; }
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_privacy_statement_filename { buf=qtn_privacy_statement_filename; }


/*************************************************
*****************Help View***********************
*************************************************/
RESOURCE AVKON_VIEW r_help_view
{
	cba = r_help_cba;
	menubar = r_help_menubar;
}

RESOURCE CBA r_help_cba
{
    buttons=
	{
        AVKON_CBA_BUTTON
		{
			id = EAknSoftkeyOptions;
            txt = "Option";	//选项
		},
		AVKON_CBA_BUTTON
		{
            id = EAknSoftkeyExit;
            txt = "Exit";    //退出
		}
	};
}

RESOURCE MENU_BAR r_help_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_help_menupane; }
		};
	}
	
RESOURCE MENU_PANE r_help_menupane
	{
	items =
		{
		MENU_ITEM 
		{ 
			command = EHelpMenuEdit; 
			txt = "Edit"; 
		},
		MENU_ITEM 
		{ 
			command = EHelpMenuHelp; 
			txt = "Help"; 
		}
		};
	}	
/*
rls_string LISTBOX_ITEM1 "1\tSingleItemOne"
rls_string LISTBOX_ITEM2 "2\tSingleItemTwo"

RESOURCE LISTBOX r_simplelist_listbox
	{
	array_id = r_simplelist_items;
	flags = EAknListBoxSelectionList;
	}	
RESOURCE ARRAY r_simplelist_items
{
items = 
	{
		LBUF{	txt = LISTBOX_ITEM1;	},
		LBUF{	txt = LISTBOX_ITEM2;	}
	};
}

TResourceReader reader;
iEikonEnv->CreateResourceReaderLC(reader, R_SIMPLELIST_LISTBOX);
iSingleList->ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy(); 
*/
/*************************************************
*****************Edit View***********************
*************************************************/
RESOURCE AVKON_VIEW r_edit_view
{
	cba = r_edit_cba;
	menubar = r_edit_menubar;
}

RESOURCE CBA r_edit_cba
{
    buttons=
	{
        AVKON_CBA_BUTTON
		{
			id = EAknSoftkeyOptions;
            txt = "Option";	//选项
		},
		AVKON_CBA_BUTTON
		{
            id = EEditMenuBack;
            txt = "Back";    //退出
		}
	};
}

RESOURCE MENU_BAR r_edit_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_edit_menupane; }
		};
	}
	
RESOURCE MENU_PANE r_edit_menupane
	{
	items =
		{
		MENU_ITEM 
		{ 
			command = EEditMenuStat; 
			txt = "Stat"; 
		},
		MENU_ITEM 
		{ 
			command = EEditMenuBack; 
			txt = "Back"; 
		}
		};
	}	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -