OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FWL_CFWL_MONTHCALENDAR_H_ | 7 #ifndef XFA_FWL_CFWL_MONTHCALENDAR_H_ |
8 #define XFA_FWL_CFWL_MONTHCALENDAR_H_ | 8 #define XFA_FWL_CFWL_MONTHCALENDAR_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "xfa/fgas/localization/fgas_datetime.h" | 12 #include "xfa/fgas/localization/fgas_datetime.h" |
13 #include "xfa/fwl/cfwl_event.h" | 13 #include "xfa/fwl/cfwl_event.h" |
14 #include "xfa/fwl/cfwl_widget.h" | 14 #include "xfa/fwl/cfwl_widget.h" |
15 #include "xfa/fwl/cfwl_widgetproperties.h" | 15 #include "xfa/fwl/cfwl_widgetproperties.h" |
16 | 16 |
17 #define FWL_STYLEEXT_MCD_MultiSelect (1L << 0) | 17 #define FWL_ITEMSTATE_MCD_Nomal 0 |
18 #define FWL_STYLEEXT_MCD_NoToday (1L << 1) | |
19 #define FWL_STYLEEXT_MCD_NoTodayCircle (1L << 2) | |
20 #define FWL_STYLEEXT_MCD_WeekNumbers (1L << 3) | |
21 #define FWL_ITEMSTATE_MCD_Nomal (0L << 0) | |
22 #define FWL_ITEMSTATE_MCD_Flag (1L << 0) | 18 #define FWL_ITEMSTATE_MCD_Flag (1L << 0) |
23 #define FWL_ITEMSTATE_MCD_Selected (1L << 1) | 19 #define FWL_ITEMSTATE_MCD_Selected (1L << 1) |
24 #define FWL_ITEMSTATE_MCD_Focused (1L << 2) | |
25 | 20 |
26 class CFWL_MessageMouse; | 21 class CFWL_MessageMouse; |
27 class CFWL_Widget; | 22 class CFWL_Widget; |
28 | 23 |
29 class CFWL_MonthCalendar : public CFWL_Widget { | 24 class CFWL_MonthCalendar : public CFWL_Widget { |
30 public: | 25 public: |
31 CFWL_MonthCalendar(const CFWL_App* app, | 26 CFWL_MonthCalendar(const CFWL_App* app, |
32 std::unique_ptr<CFWL_WidgetProperties> properties, | 27 std::unique_ptr<CFWL_WidgetProperties> properties, |
33 CFWL_Widget* pOuter); | 28 CFWL_Widget* pOuter); |
34 ~CFWL_MonthCalendar() override; | 29 ~CFWL_MonthCalendar() override; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 const CFX_Matrix* pMatrix); | 106 const CFX_Matrix* pMatrix); |
112 void DrawSeperator(CFX_Graphics* pGraphics, | 107 void DrawSeperator(CFX_Graphics* pGraphics, |
113 IFWL_ThemeProvider* pTheme, | 108 IFWL_ThemeProvider* pTheme, |
114 const CFX_Matrix* pMatrix); | 109 const CFX_Matrix* pMatrix); |
115 void DrawDatesInBK(CFX_Graphics* pGraphics, | 110 void DrawDatesInBK(CFX_Graphics* pGraphics, |
116 IFWL_ThemeProvider* pTheme, | 111 IFWL_ThemeProvider* pTheme, |
117 const CFX_Matrix* pMatrix); | 112 const CFX_Matrix* pMatrix); |
118 void DrawWeek(CFX_Graphics* pGraphics, | 113 void DrawWeek(CFX_Graphics* pGraphics, |
119 IFWL_ThemeProvider* pTheme, | 114 IFWL_ThemeProvider* pTheme, |
120 const CFX_Matrix* pMatrix); | 115 const CFX_Matrix* pMatrix); |
121 void DrawWeekNumber(CFX_Graphics* pGraphics, | |
122 IFWL_ThemeProvider* pTheme, | |
123 const CFX_Matrix* pMatrix); | |
124 void DrawWeekNumberSep(CFX_Graphics* pGraphics, | |
125 IFWL_ThemeProvider* pTheme, | |
126 const CFX_Matrix* pMatrix); | |
127 void DrawToday(CFX_Graphics* pGraphics, | 116 void DrawToday(CFX_Graphics* pGraphics, |
128 IFWL_ThemeProvider* pTheme, | 117 IFWL_ThemeProvider* pTheme, |
129 const CFX_Matrix* pMatrix); | 118 const CFX_Matrix* pMatrix); |
130 void DrawDatesIn(CFX_Graphics* pGraphics, | 119 void DrawDatesIn(CFX_Graphics* pGraphics, |
131 IFWL_ThemeProvider* pTheme, | 120 IFWL_ThemeProvider* pTheme, |
132 const CFX_Matrix* pMatrix); | 121 const CFX_Matrix* pMatrix); |
133 void DrawDatesOut(CFX_Graphics* pGraphics, | 122 void DrawDatesOut(CFX_Graphics* pGraphics, |
134 IFWL_ThemeProvider* pTheme, | 123 IFWL_ThemeProvider* pTheme, |
135 const CFX_Matrix* pMatrix); | 124 const CFX_Matrix* pMatrix); |
136 void DrawDatesInCircle(CFX_Graphics* pGraphics, | 125 void DrawDatesInCircle(CFX_Graphics* pGraphics, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 FX_FLOAT m_fDateCellHei; | 207 FX_FLOAT m_fDateCellHei; |
219 FX_FLOAT m_fTodayWid; | 208 FX_FLOAT m_fTodayWid; |
220 FX_FLOAT m_fTodayHei; | 209 FX_FLOAT m_fTodayHei; |
221 FX_FLOAT m_fTodayFlagWid; | 210 FX_FLOAT m_fTodayFlagWid; |
222 FX_FLOAT m_fMCWid; | 211 FX_FLOAT m_fMCWid; |
223 FX_FLOAT m_fMCHei; | 212 FX_FLOAT m_fMCHei; |
224 bool m_bFlag; | 213 bool m_bFlag; |
225 }; | 214 }; |
226 | 215 |
227 #endif // XFA_FWL_CFWL_MONTHCALENDAR_H_ | 216 #endif // XFA_FWL_CFWL_MONTHCALENDAR_H_ |
OLD | NEW |