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

📄 ocrexample.rss

📁 基于symbian 平台 ocr 示例程序
💻 RSS
📖 第 1 页 / 共 2 页
字号:
/*
* ==============================================================================
*  Name        : OcrExample.rss
*  Part of     : OcrExample
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

//  RESOURCE IDENTIFIER
NAME    OCRE // 4 letter ID

//  INCLUDES

#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
#include <appinfo.rh>
#include <CommonDialogs.rh>
#include "OcrExample.hrh"
#include "OcrExample.rls"


//  RESOURCE DEFINITIONS

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf = "OcrExample"; }

RESOURCE EIK_APP_INFO
    {
    hotkeys = r_ocr_example_hotkeys;
    menubar = r_image_view_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

//----------------------------------------------------
//    r_ocr_example_hotkeys
//----------------------------------------------------
//
RESOURCE HOTKEYS r_ocr_example_hotkeys
    {
    control =
        {
        HOTKEY { command = EAknCmdExit; key='e'; }
        };
    }

//----------------------------------------------------
//    r_ocr_example_image_view
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_ocr_example_image_view
    {
    menubar = r_image_view_menubar;

    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }

//----------------------------------------------------
//    r_ocr_example_settings_view
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_ocr_example_settings_view
    {
    //cba = R_AVKON_SOFTKEYS_BACK;
    cba = R_AVKON_SOFTKEYS_OK_EMPTY;
    }

//----------------------------------------------------
//    r_ocr_example_text_view
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_ocr_example_text_view
    {
    cba = R_AVKON_SOFTKEYS_BACK;
    }

//----------------------------------------------------
//    r_image_view_menubar
//----------------------------------------------------
//
RESOURCE MENU_BAR r_image_view_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_image_view_menu;
            txt = "";
            }
        };
    }

//----------------------------------------------------
//    Image View menu
//----------------------------------------------------
//
RESOURCE MENU_PANE r_image_view_menu
    {
    items =
        {
        MENU_ITEM
            {
            command = EOcrExampleCmdOpenFile;
            txt = STRING_r_ocr_open_file_cmnd;
            },
        MENU_ITEM
            {
            command = EOcrExampleCmdAnalyzeImage;
            txt = STRING_r_ocr_analyze_cmnd;
            },
        MENU_ITEM
            {
            command = EOcrExampleCmdRecognizeImage;
            txt = STRING_r_ocr_recognize_cmnd;
            },
        MENU_ITEM
            {
            command = EOcrExampleCmdRecognizeBlockMenu;
            txt = STRING_r_ocr_recognize_cmnd;
            cascade = r_image_view_recognize_submenu;
            },
        MENU_ITEM
            {
            command = EOcrExampleCmdToggleCrosshair;
            txt = STRING_r_ocr_toggle_crosshair_cmnd;
            },
        MENU_ITEM
            {
            command = EOcrExampleCmdSettings;
            txt = STRING_r_ocr_setting_title;
            },
        MENU_ITEM
            {
            command = EAknCmdExit;
            txt = STRING_r_ocr_exit_cmnd;
            }
        };
    }

//----------------------------------------------------
//    Submenu in Recognize-command
//----------------------------------------------------
//
RESOURCE MENU_PANE r_image_view_recognize_submenu
    {
  items =
        {
        MENU_ITEM
            {
            command = EOcrExampleCmdRecognizeBlock;
            txt = STRING_r_ocr_recognize_block_cmnd;
            },
        MENU_ITEM
            {
            command = EOcrExampleCmdRecognizeRegion;
            txt = STRING_r_ocr_recognize_region_cmnd;
            }
        };
    }

//----------------------------------------------------
//    Application name and startup icon
//----------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_ocr_example_localisable_app_info
    {
    short_caption = STRING_r_app_short_caption_string;
    caption_and_icon =
    CAPTION_AND_ICON_INFO
        {
        caption = STRING_r_app_caption_string;
        number_of_icons = 1;
        icon_file = "\\resource\\apps\\OcrExample.mif";
      };
    }

//----------------------------------------------------
// File Open Dialog
//----------------------------------------------------
//
RESOURCE MEMORYSELECTIONDIALOG r_ocr_select_dialog
    {
    locations =
        {
        LOCATION { root_path = "C:\\Data\\Images\\"; },
        LOCATION { root_path = "E:\\Data\\Images\\"; }
        };
    }

//----------------------------------------------------
//    Setting list items
//----------------------------------------------------
//
RESOURCE AVKON_SETTING_ITEM_LIST r_ocr_setting_item_list
    {
    // flags
    title = STRING_r_ocr_setting_title;

    items =
        {
        AVKON_SETTING_ITEM
            {
            identifier = EOCRExampleSettingHighlightColor;
            setting_page_resource = r_ocr_color_setting_page;
            associated_resource = r_ocr_color_texts;
            name = STRING_r_ocr_highlight_item;
            },
        AVKON_SETTING_ITEM
            {
            identifier = EOCRExampleSettingEnglish;
            setting_page_resource = r_ocr_binary_setting_page;
            associated_resource = r_ocr_popup_setting_binary_texts;
            name = STRING_r_ocr_lang_english;
            },
        AVKON_SETTING_ITEM
            {
            identifier = EOCRExampleSettingChinese;
            setting_page_resource = r_ocr_binary_setting_page;
            associated_resource = r_ocr_popup_setting_binary_texts;
            name = STRING_r_ocr_lang_chinese;
            },
        AVKON_SETTING_ITEM
            {
            identifier = EOCRExampleSettingJapanese;
            setting_page_resource = r_ocr_binary_setting_page;
            associated_resource = r_ocr_popup_setting_binary_texts;
            name = STRING_r_ocr_lang_japanese;
            },
        AVKON_SETTING_ITEM
            {
            identifier = EOCRExampleSettingCrosshairHeigth;
            setting_page_resource = r_ocr_height_setting_page;
            name = STRING_r_ocr_crosshair_height;
            },
        AVKON_SETTING_ITEM
            {
            identifier = EOCRExampleSettingCrosshairWidth;
            setting_page_resource = r_ocr_width_setting_page;
            name = STRING_r_ocr_crosshair_width;
            }
        };
    }

//----------------------------------------------------
//    r_ocr_skew_setting_page
//----------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_ocr_skew_setting_page
    {
    label  = STRING_r_ocr_skew_item;
    type   = EAknCtPopupSettingList;
    }

//----------------------------------------------------
//    r_ocr_binary_setting_page
//----------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_ocr_binary_setting_page
    {
    type   = EAknCtPopupSettingList;
    }

//----------------------------------------------------
//    r_ocr_popup_setting_binary_texts
//----------------------------------------------------
//
RESOURCE AVKON_POPUP_SETTING_TEXTS r_ocr_popup_setting_binary_texts
    {
    flags = 0;
    setting_texts_resource = r_on_off_texts;
    }

//----------------------------------------------------
//    r_on_off_texts
//----------------------------------------------------
//
RESOURCE ARRAY r_on_off_texts
    {
    items =
        {
        AVKON_ENUMERATED_TEXT { value=1; text = STRING_r_binary_on; },
        AVKON_ENUMERATED_TEXT { value=0; text = STRING_r_binary_off; }
        };
    }

//----------------------------------------------------
//    r_popup_setting_list
//----------------------------------------------------
//
RESOURCE POPUP_SETTING_LIST r_popup_setting_list
    {
    flags = 0;
    }

//----------------------------------------------------
//    r_ocr_color_setting_page
//----------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_ocr_color_setting_page
    {
    //hint_text =
    label  = STRING_r_ocr_highlight_item;
    type   = EAknCtPopupSettingList;
    editor_resource_id = r_popup_setting_list;
    }

//----------------------------------------------------
//    r_ocr_color_texts
//----------------------------------------------------
//
RESOURCE AVKON_POPUP_SETTING_TEXTS r_ocr_color_texts
    {
    flags = 0;
    setting_texts_resource = r_color_enum_text;
    popped_up_texts_resource = r_color_enum_text_array;
    }

//----------------------------------------------------
//    r_color_enum_text
//----------------------------------------------------
//
RESOURCE ARRAY r_color_enum_text
    {
    items =
        {
        AVKON_ENUMERATED_TEXT { value=0; text = STRING_r_color_red; },
        AVKON_ENUMERATED_TEXT { value=1; text = STRING_r_color_yellow; },
        AVKON_ENUMERATED_TEXT { value=2; text = STRING_r_color_black; }
        };
    }

//----------------------------------------------------
//    r_color_enum_text_array
//----------------------------------------------------
//
RESOURCE ARRAY r_color_enum_text_array
    {
    items =

⌨️ 快捷键说明

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