irserial.rss

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· RSS 代码 · 共 153 行

RSS
153
字号
/**
*
* @brief Resource file for IrSerial 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 "irserial.hrh"
#include "irserial.loc"

#define AKNEXFORM_EDWIN_WIDTH                  10
#define AKNEXFORM_EDWIN_LINES                  10

//  RESOURCE DEFINITIONS

RESOURCE RSS_SIGNATURE { }

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

RESOURCE EIK_APP_INFO
{

    menubar=r_irserial_menubar;
}

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


//----------------------------------------------------
//
//    r_irserial4_menu_pane
//    options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_irserial_menu_pane
{
    items =
    {
        MENU_ITEM
        {
            command = EIrSerialCmdSendIr;
            txt = send_ir_menu_text;
        },
        MENU_ITEM
        {
            command = EIrSerialCmdEdit;
            txt = edit_menu_text;
        },
        MENU_ITEM
        {
            command = EAknCmdExit;
            txt = exit_text;
        }
    };
}


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


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


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

RESOURCE TBUF r_test_ir_text { buf = TEST_IR_TEXT; }

RESOURCE TBUF r_ir_example2_ok { buf = ir_example2_ok; }
RESOURCE TBUF r_ir_example2_timeout { buf = ir_example2_timeout; }
RESOURCE TBUF r_ir_example2_in_use { buf = ir_example2_timeout; }
RESOURCE TBUF r_ir_example2_error { buf = ir_example2_error; }


// End of File

⌨️ 快捷键说明

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