YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ReaderSettingUI.h
浏览该文件的文档.
1 /*
2  Copyright by FrankHB 2013.
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 YSL_BEGIN_NAMESPACE(YReader)
35 
36 
40 String
41 FetchEncodingString(MTextList::IndexType);
42 
43 
48 class SettingPanel : public DialogPanel
49 {
54  friend class ShlTextReader;
55 
56 protected:
77  DropDownList ddlFont;
82  DropDownList ddlEncoding;
87  CheckButton cbSmoothScroll;
92  DropDownList ddlScrollTiming;
94 
95 private:
111  std::chrono::milliseconds scroll_duration;
116  std::chrono::milliseconds smooth_scroll_duration;
117 
118 public:
119  SettingPanel();
120 
125  SettingPanel&
126  operator<<(const ReaderSetting&);
127 
132  SettingPanel&
134 
139  void
140  UpdateInfo();
141 };
142 
143 YSL_END_NAMESPACE(YReader)
144 
145 #endif
146