📄 hwrmtestapp.rss
字号:
/*
* ==============================================================================
* Name : HWRMTestApp.rss
* Part of : HWRMTestApp
* Interface :
* Description : This file contains all the resources for the HWRMTestApp.
* Version :
*
* Copyright (c) 2002-2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
// RESOURCE IDENTIFIER
NAME HWRM
// INCLUDES
#include <appinfo.rh>
#include <eikon.rh>
#include "HWRMTestApp.hrh"
#include "HWRMTestApp.rls"
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
// RESOURCE DEFINITIONS
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf="HWRMTestApp"; }
RESOURCE EIK_APP_INFO
{
hotkeys=r_hwrmtestapp_hotkeys;
menubar=r_hwrmtestapp_menubar;
cba=R_AVKON_SOFTKEYS_OPTIONS_BACK;
}
//----------------------------------------------------
//
// r_hwrmtestapp_hotkeys
// ?description
//
//----------------------------------------------------
//
RESOURCE HOTKEYS r_hwrmtestapp_hotkeys
{
control=
{
HOTKEY { command=EAknCmdExit; key='e'; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_menubar
// ?description
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_hwrmtestapp_menubar
{
titles=
{
MENU_TITLE { menu_pane=r_hwrmtestapp_menu; txt="File"; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_list
// ?description
//
//----------------------------------------------------
//
RESOURCE LISTBOX r_hwrmtestapp_list
{
flags = EEikListBoxMultipleSelection;
}
//----------------------------------------------------
//
// r_hwrmtestapp_menu
// ?description
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_hwrmtestapp_menu
{
items=
{
MENU_ITEM { command=EAknCmdExit; txt="Exit"; },
MENU_ITEM { command=EHWRMTestAppCmdVibra; txt="Vibra.."; cascade=r_hwrmtestapp_vibramenu; },
MENU_ITEM { command=EHWRMTestAppCmdLights; txt="Lights.."; cascade=r_hwrmtestapp_lightsmenu; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_vibramenu
// ?description
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_hwrmtestapp_vibramenu
{
items=
{
MENU_ITEM { command=EHWRMTestAppCmdVibraReserve; txt="Reserve"; },
MENU_ITEM { command=EHWRMTestAppCmdVibraRelease; txt="Release"; },
MENU_ITEM { command=EHWRMTestAppCmdVibraStart; txt="Start"; },
MENU_ITEM { command=EHWRMTestAppCmdVibraStop; txt="Stop"; },
MENU_ITEM { command=EHWRMTestAppCmdVibraSettings; txt="Settings"; },
MENU_ITEM { command=EHWRMTestAppCmdVibraStatus; txt="Status"; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_lightsmenu
// ?description
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_hwrmtestapp_lightsmenu
{
items=
{
MENU_ITEM { command=EHWRMTestAppCmdLightsReserve; txt="Reserve"; },
MENU_ITEM { command=EHWRMTestAppCmdLightsRelease; txt="Release"; },
MENU_ITEM { command=EHWRMTestAppCmdLightsOn; txt="On"; },
MENU_ITEM { command=EHWRMTestAppCmdLightsBlink; txt="Blink"; },
MENU_ITEM { command=EHWRMTestAppCmdLightsOff; txt="Off"; },
MENU_ITEM { command=EHWRMTestAppCmdLightsStatus; txt="Status"; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_vibra_intensity_query
// ?description
//
//----------------------------------------------------
//
RESOURCE DIALOG r_hwrmtestapp_vibra_intensity_query
{
flags=EGeneralQueryFlags;
buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
items=
{
DLG_LINE
{
type=EAknCtQuery;
id=EGeneralQuery;
control= AVKON_DATA_QUERY
{
layout = ENumberLayout;
label = "Enter vibra intensity (-100 to 100)";
control = AVKON_INTEGER_EDWIN
{
min=-100;
max=100;
};
};
}
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_light_intensity_query
// ?description
//
//----------------------------------------------------
//
RESOURCE DIALOG r_hwrmtestapp_light_intensity_query
{
flags=EGeneralQueryFlags;
buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
items=
{
DLG_LINE
{
type=EAknCtQuery;
id=EGeneralQuery;
control= AVKON_DATA_QUERY
{
layout = ENumberLayout;
label = "Enter light intensity (0 to 100)";
control = AVKON_INTEGER_EDWIN
{
min=0;
max=100;
};
};
}
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_duration_query
// ?description
//
//----------------------------------------------------
//
RESOURCE DIALOG r_hwrmtestapp_duration_query
{
flags=EGeneralQueryFlags;
buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
items=
{
DLG_LINE
{
type=EAknCtQuery;
id=EGeneralQuery;
control= AVKON_DATA_QUERY
{
layout = ENumberLayout;
label = "Enter duration (0 to 2147482)";
control = AVKON_INTEGER_EDWIN
{
min=0;
max=2147482;
};
};
}
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_lightstarget_items
// ?description
//
//----------------------------------------------------
//
RESOURCE ARRAY r_hwrmtestapp_lightstarget_items
{
items =
{
LBUF { txt = "ENoTarget"; },
LBUF { txt = "EPrimaryDisplay"; },
LBUF { txt = "EPrimaryKeyboard"; },
LBUF { txt = "EPrimaryDisplayAndKeyboard"; },
LBUF { txt = "ESecondaryDisplay"; },
LBUF { txt = "ESecondaryKeyboard"; },
LBUF { txt = "ESecondaryDisplayAndKeyboard"; },
LBUF { txt = "ECustomTarget1"; },
LBUF { txt = "ECustomTarget2"; },
LBUF { txt = "ECustomTarget3"; },
LBUF { txt = "ECustomTarget4"; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_lightstarget_list
// ?description
//
//----------------------------------------------------
//
RESOURCE DIALOG r_hwrmtestapp_lightstarget_list
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
heading = "Lights target:";
listbox = LISTBOX
{
flags = EAknListBoxSelectionList;
array_id = r_hwrmtestapp_lightstarget_items;
};
};
}
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_lightsfade_items
// ?description
//
//----------------------------------------------------
//
RESOURCE ARRAY r_hwrmtestapp_bool_items
{
items =
{
LBUF { txt = "EFalse"; },
LBUF { txt = "ETrue"; }
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_restore_list
// ?description
//
//----------------------------------------------------
//
RESOURCE AVKON_LIST_QUERY r_hwrmtestapp_restore_list
{
flags = EGeneralQueryFlags;
items =
{
//DLG_LINE
AVKON_LIST_QUERY_DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
heading = "Restore parameter:";
listbox = LISTBOX
{
flags = EAknListBoxSelectionList;
array_id = r_hwrmtestapp_bool_items;
};
};
}
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_noccoeenv_list
// ?description
//
//----------------------------------------------------
//
RESOURCE AVKON_LIST_QUERY r_hwrmtestapp_noccoeenv_list
{
flags = EGeneralQueryFlags;
items =
{
//DLG_LINE
AVKON_LIST_QUERY_DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
heading = "NoCCoeEnv parameter:";
listbox = LISTBOX
{
flags = EAknListBoxSelectionList;
array_id = r_hwrmtestapp_bool_items;
};
};
}
};
}
//----------------------------------------------------
//
// r_hwrmtestapp_fade_list
// ?description
//
//----------------------------------------------------
//
RESOURCE AVKON_LIST_QUERY r_hwrmtestapp_fade_list
{
flags = EGeneralQueryFlags;
items =
{
//DLG_LINE
AVKON_LIST_QUERY_DLG_LINE
{
type = EAknCtListQueryControl;
id = EListQueryControl;
control = AVKON_LIST_QUERY_CONTROL
{
listtype = EAknCtSinglePopupMenuListBox;
heading = "Fade parameter:";
listbox = LISTBOX
{
flags = EAknListBoxSelectionList;
array_id = r_hwrmtestapp_bool_items;
};
};
}
};
}
// ----------------------------------------------------------------------------
//
// r_hwrmtestapp_localisable_app_info
//
// ----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_hwrmtestapp_localisable_app_info
{
short_caption = "HWRMTestApp";
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = "HWRMTestApp";
number_of_icons = 1;
icon_file =
"\\resource\\apps\\hwrmtestapp_aif.mif";
};
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -