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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 CFWL_EventType::EditChanged, | 49 CFWL_EventType::EditChanged, |
50 int32_t nChangeType; | 50 int32_t nChangeType; |
51 CFX_WideString wsInsert; | 51 CFX_WideString wsInsert; |
52 CFX_WideString wsDelete;) | 52 CFX_WideString wsDelete;) |
53 | 53 |
54 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, | 54 FWL_EVENT_DEF(CFWL_EvtCmbSelChanged, |
55 CFWL_EventType::SelectChanged, | 55 CFWL_EventType::SelectChanged, |
56 CFX_Int32Array iArraySels; | 56 CFX_Int32Array iArraySels; |
57 bool bLButtonUp;) | 57 bool bLButtonUp;) |
58 | 58 |
59 FWL_EVENT_DEF(CFWL_EvtCmbDrawItem, | |
60 CFWL_EventType::DrawItem, | |
61 CFX_Graphics* m_pGraphics; | |
62 CFX_Matrix m_matrix; | |
63 int32_t m_index; | |
64 CFX_RectF m_rtItem;) | |
65 | |
66 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { | 59 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { |
67 public: | 60 public: |
68 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 61 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
69 }; | 62 }; |
70 | 63 |
71 class IFWL_ComboBox : public IFWL_Widget { | 64 class IFWL_ComboBox : public IFWL_Widget { |
72 public: | 65 public: |
73 explicit IFWL_ComboBox(const IFWL_App* app, | 66 explicit IFWL_ComboBox(const IFWL_App* app, |
74 std::unique_ptr<CFWL_WidgetProperties> properties); | 67 std::unique_ptr<CFWL_WidgetProperties> properties); |
75 ~IFWL_ComboBox() override; | 68 ~IFWL_ComboBox() override; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? | 177 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? |
185 bool m_bLButtonDown; | 178 bool m_bLButtonDown; |
186 bool m_bUpFormHandler; | 179 bool m_bUpFormHandler; |
187 int32_t m_iCurSel; | 180 int32_t m_iCurSel; |
188 int32_t m_iBtnState; | 181 int32_t m_iBtnState; |
189 FX_FLOAT m_fComboFormHandler; | 182 FX_FLOAT m_fComboFormHandler; |
190 FX_FLOAT m_fItemHeight; | 183 FX_FLOAT m_fItemHeight; |
191 }; | 184 }; |
192 | 185 |
193 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 186 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
OLD | NEW |