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

📄 hview.rss

📁 一个Symbain 文本编辑器
💻 RSS
字号:
NAME HVIE

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

#include "hv.hrh"


// ---------------------------------------------------------
//   
//    Define the resource file signature 
//    This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE { }

// ---------------------------------------------------------
//   
//    Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_default_document_name { buf=""; }

// ---------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
	menubar = r_hv_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}

RESOURCE AVKON_VIEW r_hvapp_view
{
	menubar = r_hv_menubar;
}



// ---------------------------------------------------------
//   
//   r_v_menubar
//   Menubar for HV
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_hv_menubar
{
    titles =
    {
        MENU_TITLE {menu_pane = r_hv_menu_options;}
    };
}



// ---------------------------------------------------------
//   
//   r_hv_menu
//   Menu for "Options" when binary mode
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_hv_menu_options
{
	items = 
	{
        // added the new Options menu command here
		MENU_ITEM
		{
			command = ESwitchToPlain;
			txt = "Switch to plain";
		},
		MENU_ITEM
		{
			command = ESwitchToBinary;
			txt = "Switch to binary";
		},
		MENU_ITEM
		{
			command = EGotoFilePos;
			txt = "Go to position";
			flags = EEikMenuItemSeparatorAfter;
		},
		//MENU_ITEM
		//{
		//	command = ESearchFile;
		//	txt = "Find";
		//	flags = EEikMenuItemSeparatorAfter;
		//},
        // added the new Options menu command here
		MENU_ITEM
		{
			command = EOpenFile;
			txt = "Open file";
		},
		MENU_ITEM 
		{
			command = EAknSoftkeyExit;
			txt = "Exit";
		}

	};
}


// dialog: open new file
RESOURCE DIALOG r_open_file_query
{
	flags = EGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
	items =
	{
        DLG_LINE
		{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control = AVKON_DATA_QUERY
			{
				layout = EStaticSizeDataLayout; // EDataLayout;
				label = "Enter file name:";
				control = EDWIN
				{
					flags = EEikEdwinNoHorizScrolling;// | EEikEdwinResizable;
					width = 5;
					//lines = 1;
					maxlength = 128;
					// added to limit expanding in forms. 
					// If you want full screen use 6 here
					max_view_height_in_lines = 1; // AKNEXQUERY_ONELINE_DATAQUERY_LINES; // 6; 

					/*// if you have the line above, you must have this. 
					// It's calculable from LAF
					base_line_delta = 21; */

				};
			};
		}
	};
}

RESOURCE DIALOG r_goto_position_query
{
	flags = EGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
	items =
	{
		DLG_LINE
		{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control= AVKON_DATA_QUERY
			{
				layout = ENumberLayout;
				label = "Enter file position:";
				// control = NUMBER_EDITOR
				control = AVKON_INTEGER_EDWIN
				{
					min = 0; //AKNEXQUERY_NUMBER_EDITOR_MIN;
					max = 2147483647; //AKNEXQUERY_NUMBER_EDITOR_MAX;
				};
			};
		}
	};
}


// strings
RESOURCE TBUF32 r_file_not_found_note
{
	buf = "File open error:\n";
}

// strings
RESOURCE TBUF32 r_filepos_too_big_note
{
	buf = "End of file.\n";
}

⌨️ 快捷键说明

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