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 #include "xfa/fwl/basewidget/fwl_monthcalendarimp.h" | 7 #include "xfa/fwl/basewidget/fwl_monthcalendarimp.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "xfa/fde/tto/fde_textout.h" | 11 #include "xfa/fde/tto/fde_textout.h" |
12 #include "xfa/fwl/basewidget/ifwl_monthcalendar.h" | 12 #include "xfa/fwl/basewidget/ifwl_monthcalendar.h" |
13 #include "xfa/fwl/core/cfwl_message.h" | 13 #include "xfa/fwl/core/cfwl_message.h" |
14 #include "xfa/fwl/core/cfwl_themebackground.h" | 14 #include "xfa/fwl/core/cfwl_themebackground.h" |
15 #include "xfa/fwl/core/cfwl_themetext.h" | 15 #include "xfa/fwl/core/cfwl_themetext.h" |
16 #include "xfa/fwl/core/fwl_noteimp.h" | 16 #include "xfa/fwl/core/fwl_noteimp.h" |
17 #include "xfa/fwl/core/fwl_targetimp.h" | |
18 #include "xfa/fwl/core/fwl_widgetimp.h" | 17 #include "xfa/fwl/core/fwl_widgetimp.h" |
19 #include "xfa/fwl/core/ifwl_themeprovider.h" | 18 #include "xfa/fwl/core/ifwl_themeprovider.h" |
20 | 19 |
21 #define MONTHCAL_HSEP_HEIGHT 1 | 20 #define MONTHCAL_HSEP_HEIGHT 1 |
22 #define MONTHCAL_VSEP_WIDTH 1 | 21 #define MONTHCAL_VSEP_WIDTH 1 |
23 #define MONTHCAL_HMARGIN 3 | 22 #define MONTHCAL_HMARGIN 3 |
24 #define MONTHCAL_VMARGIN 2 | 23 #define MONTHCAL_VMARGIN 2 |
25 #define MONTHCAL_ROWS 9 | 24 #define MONTHCAL_ROWS 9 |
26 #define MONTHCAL_COLUMNS 7 | 25 #define MONTHCAL_COLUMNS 7 |
27 #define MONTHCAL_HEADER_BTN_VMARGIN 7 | 26 #define MONTHCAL_HEADER_BTN_VMARGIN 7 |
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 if (m_pOwner->m_iHovered > 0) { | 1189 if (m_pOwner->m_iHovered > 0) { |
1191 CFX_RectF rtInvalidate; | 1190 CFX_RectF rtInvalidate; |
1192 rtInvalidate.Set(0, 0, 0, 0); | 1191 rtInvalidate.Set(0, 0, 0, 0); |
1193 m_pOwner->GetDayRect(m_pOwner->m_iHovered, rtInvalidate); | 1192 m_pOwner->GetDayRect(m_pOwner->m_iHovered, rtInvalidate); |
1194 m_pOwner->m_iHovered = -1; | 1193 m_pOwner->m_iHovered = -1; |
1195 if (!rtInvalidate.IsEmpty()) { | 1194 if (!rtInvalidate.IsEmpty()) { |
1196 m_pOwner->Repaint(&rtInvalidate); | 1195 m_pOwner->Repaint(&rtInvalidate); |
1197 } | 1196 } |
1198 } | 1197 } |
1199 } | 1198 } |
OLD | NEW |