📄 editorcontainer.rssi
字号:
/*
========================================================================
Name : EditorContainer.rssi
Author : elite
Copyright : Your copyright notice
Description :
========================================================================
*/
#include <Editor_aif.mbg>
#include "EditorContainer.hrh"
#include "EditorContainer.loc"
RESOURCE AVKON_VIEW r_editor_container_editor_container_view
{
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
menubar = r_editor_container_options_menu;
toolbar = r_editor_container_tool_bar1;
}
RESOURCE MENU_BAR r_editor_container_options_menu
{titles =
{
MENU_TITLE
{
menu_pane = r_editor_container_menu_pane1_menu_pane;
}
};
}
RESOURCE STATUS_PANE_APP_MODEL r_editor_container_status_pane
{
panes =
{
SPANE_PANE
{
id = EEikStatusPaneUidTitle;
type = EAknCtTitlePane;
resource = r_editor_container_title_resource;
}
};
}
RESOURCE TITLE_PANE r_editor_container_title_resource
{
txt = STR_EditorContainerView_4;
}
RESOURCE MENU_PANE r_editor_container_menu_pane1_menu_pane
{
items =
{
MENU_ITEM
{
cascade = r_editor_container_menu_pane2;
txt = STR_EditorContainerView_6;
},
MENU_ITEM
{
cascade = r_editor_container_menu_pane3;
txt = STR_EditorContainerView_10;
},
MENU_ITEM
{
command = EEditorContainerViewLoad_PictureMenuItemCommand;
txt = STR_EditorContainerView_17;
},
MENU_ITEM
{
cascade = r_editor_container_menu_pane4;
txt = STR_EditorContainerView_11;
}
};
}
RESOURCE MENU_PANE r_editor_container_menu_pane2
{
items =
{
MENU_ITEM
{
command = EEditorContainerViewRedMenuItemCommand;
txt = STR_EditorContainerView_7;
},
MENU_ITEM
{
command = EEditorContainerViewGreenMenuItemCommand;
txt = STR_EditorContainerView_8;
},
MENU_ITEM
{
command = EEditorContainerViewBlueMenuItemCommand;
txt = STR_EditorContainerView_9;
}
};
}
RESOURCE MENU_PANE r_editor_container_menu_pane3
{
items =
{
MENU_ITEM
{
command = EEditorContainerViewRedMenuItem1Command;
txt = STR_EditorContainerView_14;
},
MENU_ITEM
{
command = EEditorContainerViewGreenMenuItem1Command;
txt = STR_EditorContainerView_15;
},
MENU_ITEM
{
command = EEditorContainerViewBlueMenuItem1Command;
txt = STR_EditorContainerView_16;
}
};
}
RESOURCE RTXTED r_editor_container_rich_text1
{
numlines = 0;
default_case = EAknEditorTextCase;
allowed_case_modes = EAknEditorAllCaseModes;
numeric_keymap = EAknEditorStandardNumberModeKeymap;
default_input_mode = EAknEditorTextInputMode;
allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode | EAknEditorSecretAlphaInputMode | EAknEditorKatakanaInputMode | EAknEditorFullWidthTextInputMode | EAknEditorFullWidthNumericInputMode | EAknEditorFullWidthKatakanaInputMode | EAknEditorHiraganaKanjiInputMode | EAknEditorHalfWidthTextInputMode;
}
RESOURCE TBUF r_editor_container_rich_text1_2
{
buf = STR_EditorContainerView_5;
}
RESOURCE MENU_PANE r_editor_container_menu_pane4
{
items =
{
MENU_ITEM
{
command = EEditorContainerViewBoldMenuItemCommand;
txt = STR_EditorContainerView_12;
},
MENU_ITEM
{
command = EEditorContainerViewIttalicMenuItemCommand;
txt = STR_EditorContainerView_13;
},
MENU_ITEM
{
command = EEditorContainerViewUnderlineMenuItemCommand;
txt = STR_EditorContainerView_19;
}
};
}
RESOURCE AVKON_TOOLBAR r_editor_container_tool_bar1
{
flags = KAknToolbarSmall | KAknToolbarWithoutCba;
items =
{
TBAR_CTRL
{
type = EAknCtButton;
id = EEditorContainerViewLoad_PictureMenuItemCommand; // We are using same set of commands as of used in AppUi:HandleCommandL
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text1";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
id = EEditorContainerViewLoad_PictureMenuItemCommand;
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text2";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}/*,
AVKON_BUTTON_STATE
{
txt = "button2";
helptxt = "help text2";
flags = KAknButtonStateHasLatchedFrame;
}*/
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
id = EEditorContainerViewLoad_PictureMenuItemCommand;
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text2";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}/*,
AVKON_BUTTON_STATE
{
txt = "button2";
helptxt = "help text2";
flags = KAknButtonStateHasLatchedFrame;
}*/
};
};
},
TBAR_CTRL
{
type = EAknCtToolbarExtension;
control = AVKON_TOOLBAR_EXTENSION
{
flags = KAknTbExtensionTransparent;
items =
{
TBAR_CTRL
{
type = EAknCtButton;
id = EEditorContainerViewLoad_PictureMenuItemCommand;
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text2";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
//id = ECommand2;
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text2";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
//id = ECommand2;
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text2";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
//id = ECommand2;
control = AVKON_BUTTON
{
flags = KAknButtonTextInsideFrame;
states =
{
AVKON_BUTTON_STATE
{
txt = "";
helptxt = "help text2";
bmpfile = "\\resource\\apps\\Editor_aif.mif";
bmpid = EMbmEditor_aifQgn_menu_editor;
bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
dim_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
press_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
hover_bmpmask = EMbmEditor_aifQgn_menu_editor_mask;
}
};
};
}
};
};
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -