| 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_DATETIMEPICKER_H_ | 7 #ifndef XFA_FWL_CFWL_DATETIMEPICKER_H_ |
| 8 #define XFA_FWL_CFWL_DATETIMEPICKER_H_ | 8 #define XFA_FWL_CFWL_DATETIMEPICKER_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "xfa/fwl/cfwl_datetimeedit.h" | 12 #include "xfa/fwl/cfwl_datetimeedit.h" |
| 13 #include "xfa/fwl/cfwl_event.h" | 13 #include "xfa/fwl/cfwl_event.h" |
| 14 #include "xfa/fwl/cfwl_monthcalendar.h" | 14 #include "xfa/fwl/cfwl_monthcalendar.h" |
| 15 #include "xfa/fwl/cfwl_widget.h" | 15 #include "xfa/fwl/cfwl_widget.h" |
| 16 #include "xfa/fwl/cfwl_widgetproperties.h" | 16 #include "xfa/fwl/cfwl_widgetproperties.h" |
| 17 | 17 |
| 18 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0) | 18 #define FWL_STYLEEXT_DTP_LongDateFormat 0 |
| 19 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1) | |
| 20 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) | 19 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) |
| 21 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1) | 20 #define FWL_STYLEEXT_DTP_EditHNear 0 |
| 22 #define FWL_STYLEEXT_DTP_Spin (1L << 3) | |
| 23 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4) | |
| 24 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) | 21 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) |
| 25 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) | 22 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) |
| 26 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) | 23 #define FWL_STYLEEXT_DTP_EditVNear 0 |
| 27 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) | 24 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) |
| 28 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) | 25 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) |
| 29 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) | 26 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) |
| 30 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8) | |
| 31 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) | 27 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) |
| 32 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) | 28 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) |
| 33 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) | |
| 34 | 29 |
| 35 class CFWL_DateTimeEdit; | 30 class CFWL_DateTimeEdit; |
| 36 class CFWL_FormProxy; | 31 class CFWL_FormProxy; |
| 37 | 32 |
| 38 class CFWL_DateTimePicker : public CFWL_Widget { | 33 class CFWL_DateTimePicker : public CFWL_Widget { |
| 39 public: | 34 public: |
| 40 explicit CFWL_DateTimePicker(const CFWL_App* pApp); | 35 explicit CFWL_DateTimePicker(const CFWL_App* pApp); |
| 41 ~CFWL_DateTimePicker() override; | 36 ~CFWL_DateTimePicker() override; |
| 42 | 37 |
| 43 // CFWL_Widget | 38 // CFWL_Widget |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 int32_t m_iMonth; | 98 int32_t m_iMonth; |
| 104 int32_t m_iDay; | 99 int32_t m_iDay; |
| 105 bool m_bLBtnDown; | 100 bool m_bLBtnDown; |
| 106 std::unique_ptr<CFWL_DateTimeEdit> m_pEdit; | 101 std::unique_ptr<CFWL_DateTimeEdit> m_pEdit; |
| 107 std::unique_ptr<CFWL_MonthCalendar> m_pMonthCal; | 102 std::unique_ptr<CFWL_MonthCalendar> m_pMonthCal; |
| 108 std::unique_ptr<CFWL_FormProxy> m_pForm; | 103 std::unique_ptr<CFWL_FormProxy> m_pForm; |
| 109 FX_FLOAT m_fBtn; | 104 FX_FLOAT m_fBtn; |
| 110 }; | 105 }; |
| 111 | 106 |
| 112 #endif // XFA_FWL_CFWL_DATETIMEPICKER_H_ | 107 #endif // XFA_FWL_CFWL_DATETIMEPICKER_H_ |
| OLD | NEW |