📄 streams.rss
字号:
// streams.rss
//
// Copyright (c) 2002 Symbian Ltd. All rights reserved.
//
NAME STRM
#include <eikon.rh>
#include <eikcore.rsg>
#include "streams.hrh"
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
RESOURCE EIK_APP_INFO
{
hotkeys = r_streams_hotkeys;
menubar = r_streams_menubar;
}
RESOURCE HOTKEYS r_streams_hotkeys
{
control =
{
HOTKEY
{
command = EEikCmdExit;
key = 'e';
}
};
}
RESOURCE MENU_BAR r_streams_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_streams_hello_menu;
txt = "Streams...";
},
MENU_TITLE
{
menu_pane = r_streams_edit_menu;
txt = "Edit";
}
};
}
RESOURCE MENU_PANE r_streams_hello_menu
{
items =
{
MENU_ITEM
{
command = EEikCmdExit;
txt = "Close (debug)";
}
};
}
RESOURCE MENU_PANE r_streams_edit_menu
{
items=
{
MENU_ITEM
{
command = EStreamsExampleCmdWriteFile;
txt = "Write file";
},
MENU_ITEM
{
command = EStreamsExampleCmdReadFile;
txt = "Read file";
},
MENU_ITEM
{
command = EStreamsExampleCmdParse;
txt="Parse filename";
}
};
}
RESOURCE DIALOG r_example_write_file_dialog
{
title="Write file...";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
prompt="File name";
id=EExampleControlIdFileName;
type=EEikCtFileNameEd;
control=FILENAMEEDITOR
{};
},
DLG_LINE
{
type=EEikCtEdwin;
prompt="Text";
id=EExampleControlIdText;
control=EDWIN {width=25; maxlength=256;};
}
};
}
RESOURCE DIALOG r_example_read_file_dialog
{
title="Read file";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtFileNameEd;
prompt="File name";
id=EExampleControlIdFileName;
control=FILENAMEEDITOR {};
}
};
}
RESOURCE DIALOG r_example_parse_dialog
{
title="Filename components";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtEdwin;
prompt="Drive";
id=EExampleControlIdDrive;
control=EDWIN {width=2; maxlength=2;};
itemflags=EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
},
DLG_LINE
{
type=EEikCtEdwin;
prompt="Path";
id=EExampleControlIdPath;
control=EDWIN {width=25; maxlength=256;};
itemflags=EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
},
DLG_LINE
{
type=EEikCtEdwin;
prompt="Name";
id=EExampleControlIdName;
control=EDWIN {width=25; maxlength=256;};
itemflags=EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
},
DLG_LINE
{
type=EEikCtEdwin;
prompt="Extension";
id=EExampleControlIdExtension;
control=EDWIN {width=25; maxlength=256;};
itemflags=EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
}
};
}
RESOURCE TBUF r_example_initial_file { buf="c:\\streams.dat"; }
RESOURCE TBUF r_example_text_hello { buf="Text to be streamed !"; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -