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/core/ifwl_monthcalendar.h" | 7 #include "xfa/fwl/core/ifwl_monthcalendar.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 m_iRBtnPartStates |= CFWL_PartState_Pressed; | 978 m_iRBtnPartStates |= CFWL_PartState_Pressed; |
979 NextMonth(); | 979 NextMonth(); |
980 Repaint(&m_rtClient); | 980 Repaint(&m_rtClient); |
981 } else if (m_rtToday.Contains(pMsg->m_fx, pMsg->m_fy)) { | 981 } else if (m_rtToday.Contains(pMsg->m_fx, pMsg->m_fy)) { |
982 if ((m_pProperties->m_dwStyleExes & FWL_STYLEEXT_MCD_NoToday) == 0) { | 982 if ((m_pProperties->m_dwStyleExes & FWL_STYLEEXT_MCD_NoToday) == 0) { |
983 JumpToToday(); | 983 JumpToToday(); |
984 Repaint(&m_rtClient); | 984 Repaint(&m_rtClient); |
985 } | 985 } |
986 } else { | 986 } else { |
987 IFWL_DateTimePicker* pIPicker = static_cast<IFWL_DateTimePicker*>(m_pOuter); | 987 IFWL_DateTimePicker* pIPicker = static_cast<IFWL_DateTimePicker*>(m_pOuter); |
988 if (pIPicker->IsMonthCalendarShowed()) | 988 if (pIPicker->IsMonthCalendarVisible()) |
989 m_bFlag = 1; | 989 m_bFlag = 1; |
990 } | 990 } |
991 } | 991 } |
992 | 992 |
993 void IFWL_MonthCalendar::OnLButtonUp(CFWL_MsgMouse* pMsg) { | 993 void IFWL_MonthCalendar::OnLButtonUp(CFWL_MsgMouse* pMsg) { |
994 if (m_pWidgetMgr->IsFormDisabled()) | 994 if (m_pWidgetMgr->IsFormDisabled()) |
995 return DisForm_OnLButtonUp(pMsg); | 995 return DisForm_OnLButtonUp(pMsg); |
996 | 996 |
997 if (m_rtLBtn.Contains(pMsg->m_fx, pMsg->m_fy)) { | 997 if (m_rtLBtn.Contains(pMsg->m_fx, pMsg->m_fy)) { |
998 m_iLBtnPartStates = 0; | 998 m_iLBtnPartStates = 0; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 uint32_t dwSt, | 1120 uint32_t dwSt, |
1121 CFX_RectF rc, | 1121 CFX_RectF rc, |
1122 CFX_WideString& wsday) | 1122 CFX_WideString& wsday) |
1123 : iDay(day), | 1123 : iDay(day), |
1124 iDayOfWeek(dayofweek), | 1124 iDayOfWeek(dayofweek), |
1125 dwStates(dwSt), | 1125 dwStates(dwSt), |
1126 rect(rc), | 1126 rect(rc), |
1127 wsDay(wsday) {} | 1127 wsDay(wsday) {} |
1128 | 1128 |
1129 IFWL_MonthCalendar::DATEINFO::~DATEINFO() {} | 1129 IFWL_MonthCalendar::DATEINFO::~DATEINFO() {} |
OLD | NEW |