📄 camtest.rss
字号:
/*
============================================================================
Name : CamTest.rss
Author :
Version :
Copyright : Your copyright notice
Description : Application resource file
============================================================================
*/
// RESOURCE IDENTIFIER
NAME HEWB // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <appinfo.rh>
#include "CamTest.hrh"
#include "CamTest.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_camtest_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// Localizable application information
//
// -----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_camtest_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\\CamTest_reg.mif";
};
}
// -----------------------------------------------------------------------------
//
// r_camtest_menubar
// Menubar for CamTest example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_camtest_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_camtest_menu; }
};
}
RESOURCE MENU_PANE r_camtest_menu
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = ECamTestCommand1;
txt = qtn_hewb_command1;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_hewb_exit;
}
};
}
//----------------------------------------------------
//
// r_cameraapp_hotkeys
//
//----------------------------------------------------
//
RESOURCE HOTKEYS r_cameraapp_hotkeys
{
control =
{
HOTKEY { command = EAknCmdExit; key = 'e'; }
};
}
//----------------------------------------------------
//
// r_cameraapp_view1
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_cameraapp_view1
{
hotkeys = r_cameraapp_hotkeys;
menubar = r_cameraapp_menubar_view1;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
//----------------------------------------------------
//
// r_cameraapp_menubar_view1
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_cameraapp_menubar_view1
{
titles =
{
MENU_TITLE { menu_pane = r_cameraapp_app_menu; txt = qtn_appl_app; }
};
}
//----------------------------------------------------
//
// r_cameraapp_view1_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_cameraapp_view1_menu
{
items =
{
MENU_ITEM { command = ECameraAppCmdSnap; txt = qtn_appl_snap; }
};
}
//----------------------------------------------------
//
// r_cameraapp_view2
//
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_cameraapp_view2
{
hotkeys = r_cameraapp_hotkeys;
menubar = r_cameraapp_menubar_view2;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
RESOURCE MENU_BAR r_cameraapp_menubar_view2
{
titles =
{
MENU_TITLE { menu_pane = r_cameraapp_app_menu; txt = qtn_appl_app; }
};
}
RESOURCE MENU_PANE r_cameraapp_view2_menu
{
items =
{
MENU_ITEM { command = ECameraAppCmdSnap; txt = qtn_appl_snap; }
};
}
RESOURCE MENU_PANE r_cameraapp_app_menu
{
items =
{
MENU_ITEM { command = ECameraAppCmdSnap; txt = qtn_appl_snap; },
MENU_ITEM
{
command = ECameraAppCmdFocusRange;
cascade = r_cameraapp_app_focus_menu;
txt = qtn_appl_focus;
},
MENU_ITEM { command = ECameraAppCmdNewImage; txt = qtn_appl_new_image; },
MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
};
}
RESOURCE MENU_PANE r_cameraapp_app_focus_menu
{
items =
{
MENU_ITEM { command = ECameraAppCmdFRNormal; txt = qtn_appl_focus_normal; },
MENU_ITEM { command = ECameraAppCmdFRMacro; txt = qtn_appl_focus_macro; },
MENU_ITEM { command = ECameraAppCmdFRPortrait; txt = qtn_appl_focus_portrait; },
MENU_ITEM { command = ECameraAppCmdFRInfinite; txt = qtn_appl_focus_infinite; }
};
}
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_hewb_command1_text { buf=qtn_hewb_command1_text; }
RESOURCE TBUF r_memory_low { buf=qtn_appl_memory_low; }
RESOURCE TBUF r_saving_image { buf=qtn_appl_saving_image; }
RESOURCE TBUF r_image_saved { buf=qtn_appl_image_saved; }
RESOURCE TBUF r_camera_in_use { buf=qtn_appl_camera_in_use; }
RESOURCE TBUF r_no_camera { buf=qtn_appl_no_camera; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -