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

📄 irsockets.rss

📁 最新官方例子,图形,描述副,基本控件,通讯协议,等等,
💻 RSS
字号:
/**
* 
* @brief Resource file for IrSockets application
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

//  RESOURCE IDENTIFIER
NAME	DILG // 4 letter ID

//  INCLUDES

#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <eikon.rh>

#include "irsockets.hrh"
#include "irsockets.loc"

#define AKNEXFORM_EDWIN_WIDTH                  10
#define AKNEXFORM_EDWIN_LINES                  10

#define MAX_VIEW_HEIGHT_IN_LINES                6
#define BASE_LINE_DELTA                        21


//  RESOURCE DEFINITIONS 

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf="IR Print Ex"; }

RESOURCE EIK_APP_INFO
	{

	menubar=r_irsockets_menubar; 
	}

//----------------------------------------------------
//   
//    r_irsockets_menubar
//    options menu for the application
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_irsockets_menubar
	{
	titles=
		{
		MENU_TITLE 
			{
			txt = ""; // the text is not used in Series 60
			menu_pane = r_irsockets_menu_pane;
			}
		};
	}


//----------------------------------------------------
//   
//    r_irsockets4_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_irsockets_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = EIrSocketsCmdSendIr;
			txt = send_ir_menu_text;
			},
		MENU_ITEM
			{
			command = EIrSocketsCmdEdit;
			txt = edit_menu_text;
			},
		MENU_ITEM
			{
			command = EIrSocketsCmdReceiveIr;
			txt = receive_ir_menu_text;
			},
		MENU_ITEM
			{
			command = EIrSocketsCmdCancelReceiveIr;
			txt = cancel_receive_ir_menu_text;
			},			
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = exit_text;
			}
		};
	}


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


RESOURCE FORM r_infrared_example_form
    {
    items =
        {
        DLG_LINE
            {
            type = EEikCtEdwin;
            prompt = ir_example_form_prompt;
            id = EIrSocketsFormText;
            itemflags=EEikDlgItemTakesEnterKey| EEikDlgItemOfferAllHotKeys;
            control = EDWIN
                {
                flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                width = AKNEXFORM_EDWIN_WIDTH;
                lines = AKNEXFORM_EDWIN_LINES;
                maxlength = EFormEdwinMaxLength;
                // added to limit expanding in forms.
                // If you want full screen use 6 here
                max_view_height_in_lines = MAX_VIEW_HEIGHT_IN_LINES;
                // if you have the line above, you must have this. 
                // It is calculable from LAF
                base_line_delta = BASE_LINE_DELTA;
                };
            }
        };
    }

// ---------------------------------------------------------
//   
//    Strings used by the application
//
// ---------------------------------------------------------
//

RESOURCE TBUF r_test_ir_text { buf = TEST_IR_TEXT; }

RESOURCE TBUF r_ir_example_send_ok { buf = ir_example_send_ok; }
RESOURCE TBUF r_ir_example_timeout { buf = ir_example_timeout; }
RESOURCE TBUF r_ir_example_in_use { buf = ir_example_timeout; }
RESOURCE TBUF r_ir_example_error { buf = ir_example_error; }
RESOURCE TBUF r_ir_example_recv_ok { buf = ir_example_recv_ok; }
RESOURCE TBUF r_ir_example_no_devices_discovered { buf = ir_example_no_devices_discovered; }

// End of File

⌨️ 快捷键说明

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