YSTest: ReaderSettingUI.h 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

ReaderSettingUI.h
浏览该文件的文档.
1 /*
2 © 2012-2013, 2015 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef INC_YReader_ReaderSettingUI_h_
29 #define INC_YReader_ReaderSettingUI_h_ 1
30
31 #include "ReaderSetting.h"
32 #include "ColorPicker.h"
33
34 namespace YReader
35 {
36
41 String
42 FetchEncodingString(MTextList::IndexType);
43
44
49 class SettingPanel : public DialogPanel
50 {
55 friend class ShlTextReader;
56
57 protected:
59 DynamicWidget dynWgts;
65 Label lblAreaUp, lblAreaDown;
66 ColorBox boxColor;
67
68 private:
74 Color* pColor;
79 Text::Encoding current_encoding;
84 std::chrono::milliseconds scroll_duration;
89 std::chrono::milliseconds smooth_scroll_duration;
90
91 public:
92 SettingPanel();
97 ~SettingPanel() override;
98
103 SettingPanel&
104 operator<<(const ReaderSetting&);
105
110 SettingPanel&
111 operator>>(ReaderSetting&);
112
117 void
118 UpdateInfo();
119 };
120
121 } // namespace YReader;
122
123 #endif
124
YSLib::UI::ColorBox
拾色框。
Definition: ColorPicker.h:46
YReader::ShlTextReader
文本阅读器 Shell 。
Definition: ShlReader.h:227
YReader::SettingPanel::dynWgts
DynamicWidget dynWgts
Definition: ReaderSettingUI.h:59
YReader::ReaderSetting
阅读器设置。
Definition: ReaderSetting.h:42
YReader::SettingPanel::operator<<
SettingPanel & operator<<(const ReaderSetting &)
读取设置。
YReader
Definition: About.h:34
YReader::SettingPanel::boxColor
ColorBox boxColor
Definition: ReaderSettingUI.h:66
YSLib::UI::DynamicWidget
动态部件。
Definition: Loader.h:282
ReaderSetting.h
阅读器设置。
YReader::FetchEncodingString
String FetchEncodingString(MTextList::IndexType)
取编码字符串。
Definition: ReaderSettingUI.cpp:75
YReader::SettingPanel::pColor
Color * pColor
当前设置的颜色指针。
Definition: ReaderSettingUI.h:74
CHRLib::CharSet::Encoding
Encoding
字符流编码标识。
Definition: Encoding.h:59
YReader::SettingPanel::SettingPanel
SettingPanel()
Definition: ReaderSettingUI.cpp:87
YReader::SettingPanel::smooth_scroll_duration
std::chrono::milliseconds smooth_scroll_duration
平滑滚屏间隔。
Definition: ReaderSettingUI.h:89
YReader::SettingPanel::current_encoding
Text::Encoding current_encoding
当前设置的编码。
Definition: ReaderSettingUI.h:79
YReader::SettingPanel::UpdateInfo
void UpdateInfo()
更新示例文本。
Definition: ReaderSettingUI.cpp:271
YReader::SettingPanel
设置面板。
Definition: ReaderSettingUI.h:50
YReader::SettingPanel::lblAreaUp
Label lblAreaUp
标签：文本区域示例。
Definition: ReaderSettingUI.h:65
ColorPicker.h
拾色器。
YReader::SettingPanel::scroll_duration
std::chrono::milliseconds scroll_duration
滚屏间隔。
Definition: ReaderSettingUI.h:84
Color
Pixel Color
Definition: CharRenderer.cpp:59
YReader::SettingPanel::lblAreaDown
Label lblAreaDown
Definition: ReaderSettingUI.h:65
YReader::SettingPanel::~SettingPanel
~SettingPanel() override
虚析构：类定义外默认实现。
YSLib::UI::DialogPanel
对话面板。
Definition: UIContainerEx.h:79
YSLib::UI::MTextList::IndexType
typename ListType::size_type IndexType
索引类型。
Definition: ListControl.h:145
NPL::SXML::ParseOption::String
@ String
YReader::SettingPanel::operator>>
SettingPanel & operator>>(ReaderSetting &)
保存设置。
Definition: ReaderSettingUI.cpp:253