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

📄 bluetoothchat.rss

📁 symbian s60第3版下的点对点蓝牙聊天程序
💻 RSS
字号:
/*
============================================================================
 Name        : BluetoothChat.rss
 Author      : Lion
 Copyright   : Your copyright notice
 Description : This file contains all the resources for the BluetoothChat.
============================================================================
*/
//  RESOURCE IDENTIFIER
NAME BLUE    // 4 letter ID


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


// -----------------------------------------------------------------------------
//
//   r_menubar
//   Main menubar
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_bluetoothchat_menu_pane; }
        };
    }


//----------------------------------------------------
//
//	r_bluetoothchat4_menu_pane
//	options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_bluetoothchat_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = EBluetoothChatConnect;
			txt = CONNECT_TEXT;
			},
		MENU_ITEM
			{
			command = EBluetoothChatReceive;
			txt = RECEIVER_TEXT;
			},
		MENU_ITEM
			{
			command = EBluetoothChatStopReceive;
			txt = STOP_RECEIVER_TEXT;
			},
		MENU_ITEM
			{
			command = EBluetoothChatSend;
			txt = SEND_TEXT;
			},
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = EXIT_TEXT;
			}
		};
	}


//----------------------------------------------------
//
//		r_bluetoothchat_dialog
//		definition of the dialog
//		N.B. The dialog is modeless, as it is the main 
//		application window.
//
//----------------------------------------------------
//
RESOURCE DIALOG r_bluetoothchat_dialog
	{
	flags=EEikDialogFlagNoDrag | 
		EEikDialogFlagNoTitleBar | 
		EEikDialogFlagFillAppClientRect | 
		EEikDialogFlagCbaButtons | 
		EEikDialogFlagModeless;
	buttons=R_AVKON_SOFTKEYS_OPTIONS_BACK; 
	items=
		{
		};
	}

//----------------------------------------------------
//
//		r_bluetooth_connection_wait_dialog
//		definition of the dialog
//		N.B. The dialog is modal, as it provides a
//		mechanism for the user to cancel the connection
//		process
//
//----------------------------------------------------
//
RESOURCE DIALOG r_bluetooth_connection_wait_dialog
	{
	flags = EAknWaitNoteFlags| EEikDialogFlagWait;
	buttons = R_AVKON_SOFTKEYS_CANCEL;
	items =
		{
		DLG_LINE
			{
			type = EAknCtNote;
			id = EBluetoothConnectionWaitDialog;
			control= AVKON_NOTE 
				{ 
				layout = EWaitLayout;
				singular_label = "Searching for service";
				animation = R_QGN_GRAF_WAIT_BAR_ANIM;
				};
			}
		};
	}

//----------------------------------------------------
//
//		r_bluetooth_chat_message_dialog
//		definition of the dialog
//		N.B. The dialog is used to obtain a message to
//		send to a remote device
//
//----------------------------------------------------
//
RESOURCE DIALOG r_bluetooth_chat_message_dialog
	{
	flags = EGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
	items =
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control = AVKON_DATA_QUERY
				{
				layout = EDataLayout;
				label = qtn_aknexquery_data_label_text;
				control = EDWIN
					{
					flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
					width = 5;
					maxlength = 60;
					// added to limit expanding in forms. 
					// If you want full screen use 6 here
					max_view_height_in_lines = 5; 
					// if you have the line above, you must have this. 
					// It's calculable from LAF
					base_line_delta = 21; 
					};
				};
			}
		};
	}

//----------------------------------------------------
//
//		r_bluetooth_chat_reply_dialog
//		definition of the dialog
//		N.B. Reply or Cancel query dialog
//
//----------------------------------------------------
//
RESOURCE DIALOG r_bluetooth_chat_reply_dialog
	{
	flags = EGeneralQueryFlags;
	buttons = r_chat_message_buttons;
	items =
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control = AVERELL_CONFIRMATION_QUERY 
				{ 
				layout = EConfirmationLayout;
				};
			}
		};
	}

//----------------------------------------------------
//
//		r_chat_message_buttons
//		definition of the softkeys
//		N.B. Reply or Cancel softkey options
//
//----------------------------------------------------
//
RESOURCE CBA r_chat_message_buttons
	{
	buttons =
		{
		AVKON_CBA_BUTTON
			{
			id = EBluetoothReply; 
			txt = "Reply";
			},
		CBA_BUTTON 
			{
			id = EAknSoftkeyCancel;
			txt = "Cancel";
			}
		};
	}

// ---------------------------------------------------------
//
//	Strings used by the application
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_service_not_found	{ buf="Service not found"; }
RESOURCE TBUF r_connected			{ buf="Connected"; }
RESOURCE TBUF r_chat_title			{ buf="Message to Send"; }
RESOURCE TBUF r_waiting_message		{ buf="Waiting For Connection"; }
RESOURCE TBUF r_disconnected		{ buf="Disconnected"; }
RESOURCE TBUF r_connection_lost		{ buf="Connection Lost"; }
RESOURCE TBUF r_could_not_connect	{ buf="Could Not Connect"; }
RESOURCE TBUF r_unknown_error		{ buf="Unknown Error"; }
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_command1_text { buf=qtn_command1_text; }
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }

// ---------------------------------------------------------------------------- 
//
// 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\\BluetoothChat.mif";
	    };
    }

// End of File

⌨️ 快捷键说明

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