📄 aknexeditor.rss
字号:
/*
* ==============================================================================
* Name : aknexeditor.rss
* Part of : Editor example
* Interface :
* Description :
* Version :
*
* Copyright (c) 2004 - 2006 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ==============================================================================
*/
// RESOURCE IDENTIFIER
NAME EXED
// INCLUDES
#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>
#include <gulftflg.hrh>
#include <appinfo.rh>
#include "eikon.rsg"
#include "aknexeditor.hrh"
#include "aknexeditor.rls"
//d:NUMERIC value for resource
#define qnn_aknexeditor_tab_active_init 0
#define qnn_aknexeditor_view_gtexted_width 120
#define qnn_aknexeditor_view_gtexted_height 100
#define qnn_aknexeditor_view_gtexted_numlines 5
#define qnn_aknexeditor_view_gtexted_textlimit 5000
// RESOURCE DEFINITIONS
RESOURCE RSS_SIGNATURE
{
}
RESOURCE TBUF
{
buf = STRING_r_aknexeditor_appilcation_title;
}
RESOURCE EIK_APP_INFO
{
status_pane = r_aknexeditor_status_pane;
}
//----------------------------------------------------
//
// r_aknexeditor_status_pane
// status pane definition
//
//----------------------------------------------------
//
RESOURCE STATUS_PANE_APP_MODEL r_aknexeditor_status_pane
{
panes=
{
SPANE_PANE
{
id = EEikStatusPaneUidNavi;
type = EAknCtNaviPane;
resource = r_aknexeditor_navi_decorator;
}
};
}
//----------------------------------------------------
//
// r_aknexeditor_navi_decorator
// navi decorator definition.
//
//----------------------------------------------------
//
RESOURCE NAVI_DECORATOR r_aknexeditor_navi_decorator
{
type = ENaviDecoratorControlTabGroup;
control = TAB_GROUP
{
tab_width = EAknTabWidthWithOneTab;
active = qnn_aknexeditor_tab_active_init; // 0
tabs =
{
TAB
{
id = EAknExEditorViewTab; // from application hrh
txt = STRING_r_aknexeditor_tab_dummy;
}
};
};
}
//----------------------------------------------------
//
// r_aknexeditor_app_menu
// application menu pane definition.
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_aknexeditor_app_menu
{
items=
{
MENU_ITEM
{
command = EAknCmdExit;
txt = STRING_r_aknexeditor_menu_exit;
}
};
}
//----------------------------------------------------
//
// r_softkeys_options_next
// CBA definition ( OPTIONS - NEXT )
//
//----------------------------------------------------
//
RESOURCE CBA r_softkeys_options_next
{
buttons =
{
CBA_BUTTON
{
id = EAknSoftkeyOptions;
txt = STRING_r_aknexeditor_cba_options;
},
CBA_BUTTON
{
id = EAknCmdExit;
txt = STRING_r_aknexeditor_menu_exit;
}
};
}
//----------------------------------------------------
// r_aknexeditor_view
// view definition
//----------------------------------------------------
//
RESOURCE AVKON_VIEW r_aknexeditor_view
{
menubar = r_aknexeditor_menubar_view;
cba = r_softkeys_options_next;
}
//----------------------------------------------------
// r_aknexeditor_menubar_view
// menu bar definition for view
//----------------------------------------------------
//
RESOURCE MENU_BAR r_aknexeditor_menubar_view
{
titles=
{
MENU_TITLE
{
menu_pane = r_aknexeditor_app_menu;
txt=STRING_r_aknexeditor_menu_dummy;
},
MENU_TITLE
{
menu_pane=r_aknexeditor_view_menu;
txt = STRING_r_aknexeditor_menu_dummy;
}
};
}
//----------------------------------------------------
// r_aknexeditor_view_menu
// menu pane definition for view
//----------------------------------------------------
//
RESOURCE MENU_PANE r_aknexeditor_view_menu
{
items=
{
MENU_ITEM
{
command = EAknExEditorClearText;
txt = STRING_r_aknexeditor_menu_cleartext;
},
MENU_ITEM
{
cascade = r_aknexeditor_view_scrollmenu;
txt = STRING_r_aknexeditor_menu_scrollmenu;
},
MENU_ITEM
{
cascade = r_aknexeditor_view_fontmenu;
txt = STRING_r_aknexeditor_menu_fontmenu;
},
MENU_ITEM
{
cascade = r_aknexeditor_view_ccpumenu;
txt = STRING_r_aknexeditor_menu_ccpumenu;
},
MENU_ITEM
{
cascade = r_aknexeditor_view_filemenu;
txt = STRING_r_aknexeditor_menu_filemenu;
}
};
}
//----------------------------------------------------
// r_aknexeditor_view_gtexted
// resource for global text editor control on view
//----------------------------------------------------
//
RESOURCE GTXTED r_aknexeditor_view_gtexted
{
flags = EAknEditorFlagDefault;
avkon_flags = EAknEditorFlagEnableScrollBars;
width = qnn_aknexeditor_view_gtexted_width;
height = qnn_aknexeditor_view_gtexted_height;
numlines = qnn_aknexeditor_view_gtexted_numlines;
textlimit= qnn_aknexeditor_view_gtexted_textlimit;
fontcontrolflags = EGulFontControlAll;
fontnameflags = EGulNoSymbolFonts;
}
//----------------------------------------------------
// r_aknexeditor_view_ccpumenu
// menu pane definition for clipboard operations
//----------------------------------------------------
//
RESOURCE MENU_PANE r_aknexeditor_view_ccpumenu
{
items =
{
MENU_ITEM
{
command = EAknExEditorSelectText;
txt = STRING_r_aknexeditor_menu_selecttext;
},
MENU_ITEM
{
command = EAknExEditorClearSelection;
txt = STRING_r_aknexeditor_menu_clearselection;
},
MENU_ITEM
{
command = EAknExEditorCut;
txt = STRING_r_aknexeditor_menu_cut;
},
MENU_ITEM
{
command = EAknExEditorCopy;
txt = STRING_r_aknexeditor_menu_copy;
},
MENU_ITEM
{
command = EAknExEditorPaste;
txt = STRING_r_aknexeditor_menu_paste;
}
};
}
//----------------------------------------------------
// r_aknexeditor_view_fontmenu
// menu pane definition for font operations
//----------------------------------------------------
//
RESOURCE MENU_PANE r_aknexeditor_view_fontmenu
{
items =
{
MENU_ITEM
{
command = EAknExEditorCmdLatinBold13;
txt = STRING_r_aknexeditor_select_sysfont3;
},
MENU_ITEM
{
command = EAknExEditorCmdLatinBold17;
txt = STRING_r_aknexeditor_select_sysfont4;
},
MENU_ITEM
{
command = EAknExEditorCmdLatinBold19;
txt = STRING_r_aknexeditor_select_sysfont5;
}
};
}
//----------------------------------------------------
// r_aknexeditor_view_scrollmenu
// menu pane definition for scroll operations
//----------------------------------------------------
//
RESOURCE MENU_PANE r_aknexeditor_view_scrollmenu
{
items =
{
MENU_ITEM
{
command = EAknExEditorScrollUp;
txt = STRING_r_aknexeditor_menu_scrollup;
},
MENU_ITEM
{
command = EAknExEditorScrollDown;
txt = STRING_r_aknexeditor_menu_scrolldown;
}
};
}
//----------------------------------------------------
// r_aknexeditor_view_filemenu
// menu pane definition for file operations
//----------------------------------------------------
//
RESOURCE MENU_PANE r_aknexeditor_view_filemenu
{
items =
{
MENU_ITEM
{
command = EAknExEditorSaveToFile;
txt = STRING_r_aknexeditor_menu_savetofile;
},
MENU_ITEM
{
command = EAknExEditorOpenFile;
txt = STRING_r_aknexeditor_menu_openfile;
}
};
}
// ----------------------------------------------------------------------------
//
// r_aknexeditor_localisable_app_info
//
// ----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_aknexeditor_localisable_app_info
{
short_caption = STRING_r_apps_taed_list;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = STRING_r_apps_taed_list;
number_of_icons = 1;
icon_file = "\\resource\\apps\\AknExEditor_aif.mif";
};
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -