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_CORE_IFWL_COMBOBOX_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
9 | 9 |
10 #include "xfa/fwl/core/ifwl_comboboxproxy.h" | 10 #include "xfa/fwl/core/ifwl_comboboxproxy.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) | 42 #define FWL_STYLEEXT_CMB_ListItemRightAlign (2L << 10) |
43 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) | 43 #define FWL_STYLEEXT_CMB_ListItemAlignMask (3L << 10) |
44 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) | 44 #define FWL_STYLEEXT_CMB_ListItemText (0L << 12) |
45 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) | 45 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) |
46 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) | 46 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) |
47 | 47 |
48 FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown) | 48 FWL_EVENT_DEF(CFWL_EvtCmbPreDropDown, CFWL_EventType::PreDropDown) |
49 | 49 |
50 FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown) | 50 FWL_EVENT_DEF(CFWL_EvtCmbPostDropDown, CFWL_EventType::PostDropDown) |
51 | 51 |
52 FWL_EVENT_DEF(CFWL_EvtCmbCloseUp, CFWL_EventType::CloseUp) | |
53 | |
54 FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, | 52 FWL_EVENT_DEF(CFWL_EvtCmbEditChanged, |
55 CFWL_EventType::EditChanged, | 53 CFWL_EventType::EditChanged, |
56 int32_t nChangeType; | 54 int32_t nChangeType; |
57 CFX_WideString wsInsert; | 55 CFX_WideString wsInsert; |
58 CFX_WideString wsDelete;) | 56 CFX_WideString wsDelete;) |
59 | 57 |
60 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, | 58 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, |
61 CFWL_EventType::SelectChanged, | 59 CFWL_EventType::SelectChanged, |
62 CFX_Int32Array iArraySels; | 60 CFX_Int32Array iArraySels; |
63 bool bLButtonUp;) | 61 bool bLButtonUp;) |
64 | 62 |
65 FWL_EVENT_DEF(CFWL_EvtCmbHoverChanged, | |
66 CFWL_EventType::HoverChanged, | |
67 int32_t m_iCurHover;) | |
68 | |
69 FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, | 63 FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, |
70 CFWL_EventType::DrawItem, | 64 CFWL_EventType::DrawItem, |
71 CFX_Graphics* m_pGraphics; | 65 CFX_Graphics* m_pGraphics; |
72 CFX_Matrix m_matrix; | 66 CFX_Matrix m_matrix; |
73 int32_t m_index; | 67 int32_t m_index; |
74 CFX_RectF m_rtItem;) | 68 CFX_RectF m_rtItem;) |
75 | 69 |
76 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { | 70 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { |
77 public: | 71 public: |
78 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 72 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? | 188 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? |
195 bool m_bLButtonDown; | 189 bool m_bLButtonDown; |
196 bool m_bUpFormHandler; | 190 bool m_bUpFormHandler; |
197 int32_t m_iCurSel; | 191 int32_t m_iCurSel; |
198 int32_t m_iBtnState; | 192 int32_t m_iBtnState; |
199 FX_FLOAT m_fComboFormHandler; | 193 FX_FLOAT m_fComboFormHandler; |
200 FX_FLOAT m_fItemHeight; | 194 FX_FLOAT m_fItemHeight; |
201 }; | 195 }; |
202 | 196 |
203 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 197 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
OLD | NEW |