YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
#include <ShlReader.h>
Public 成员函数 | |
ShlReader (const IO::Path &, const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={}) | |
构造:使用指定路径和上下桌面。 | |
void | Exit () |
退出阅读器:停止后台任务并发送消息准备切换至 ShlExplorer 。 | |
void | OnInput () override |
处理输入消息:发送绘制消息,当处于滚屏状态时自动执行滚屏。 | |
![]() | |
ShlDS (const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={}) | |
构造:使用指定上下桌面。 | |
DefGetter (const ynothrow, const shared_ptr< Desktop > &, DesktopUpHandle, desktop_up_ptr) DefGetter(const ynothrow | |
const shared_ptr< Desktop > desktop_down_ptr | DefGetter (const ynothrow, Desktop &, DesktopUp,*desktop_up_ptr) DefGetter(const ynothrow |
const shared_ptr< Desktop > desktop_down_ptr Desktop *desktop_down_ptr void | OnGotMessage (const Message &) override |
消息处理函数。 | |
void | OnInput () override |
处理输入消息:发送绘制消息。 | |
静态 Public 成员函数 | |
static BookmarkList | LoadBookmarks (const string &) |
static ReaderSetting | LoadGlobalConfiguration () |
载入阅读器配置。 | |
static void | SaveBookmarks (const string &, const BookmarkList &) |
static void | SaveGlobalConfiguration (const ReaderSetting &) |
保存阅读器配置。 | |
Protected 属性 | |
IO::Path | CurrentPath |
当前路径。 | |
std::function< void()> | fBackgroundTask |
背景任务:用于滚屏。 | |
bool | bExit |
退出标识。 | |
![]() | |
bool | bUpdateUp |
指定当前桌面是否需要更新。 | |
bool | bUpdateDown |
额外继承的成员函数 | |
![]() | |
const shared_ptr< Desktop > | DesktopDownHandle |
const shared_ptr< Desktop > desktop_down_ptr Desktop | DesktopDown |
在文件 ShlReader.h 第 144 行定义.
ShlReader::ShlReader | ( | const IO::Path & | pth, |
const shared_ptr< Desktop > & | h_dsk_up = {} , |
||
const shared_ptr< Desktop > & | h_dsk_dn = {} |
||
) |
void ShlReader::Exit | ( | ) |
退出阅读器:停止后台任务并发送消息准备切换至 ShlExplorer 。
在文件 ShlReader.cpp 第 181 行定义.
参考 bExit,CurrentPath,fBackgroundTask,GetDesktopDownHandle(),h_up,NowShellTo() , 以及 ResetDSDesktops().
参考自 ShlTextReader::Execute() , 以及 ShlTextReader::OnKeyDown().
|
static |
在文件 ShlReader.cpp 第 200 行定义.
参考 bookmarks(),FetchGlobalInstance(),ystdex::ltrim(),MakeEscape() , 以及 ystdex::split().
|
static |
载入阅读器配置。
在文件 ShlReader.cpp 第 220 行定义.
参考 FetchGlobalInstance() , 以及 LoadConfiguration().
|
override |
|
static |
在文件 ShlReader.cpp 第 241 行定义.
参考 FetchGlobalInstance(),YSLib::ValueNode::GetNode(),MakeEscape(),GUIApplication::Root,ystdex::to_string() , 以及 YSLib::ValueNode::Value.
参考自 ShlTextReader::~ShlTextReader().
|
static |
保存阅读器配置。
在文件 ShlReader.cpp 第 262 行定义.
参考 FetchGlobalInstance() , 以及 SaveConfiguration().
参考自 ShlTextReader::~ShlTextReader().
|
protected |
|
protected |
当前路径。
在文件 ShlReader.h 第 151 行定义.
参考自 Exit(),ShlTextReader::LoadFile(),ShlTextReader::Locate(),ShlTextReader::UpdateReadingList() , 以及 ShlTextReader::~ShlTextReader().
|
protected |
背景任务:用于滚屏。
在文件 ShlReader.h 第 156 行定义.
参考自 Exit(),OnInput(),ShlTextReader::OnKeyDown() , 以及 ShlTextReader::StopAutoScroll().