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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ |
9 | 9 |
10 #include "../../../core/include/fxcrt/fx_string.h" | 10 #include "../../../core/include/fxcrt/fx_string.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point & point, FX_DWORD nFlag); | 80 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point & point, FX_DWORD nFlag); |
81 virtual FX_BOOL OnLButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); | 81 virtual FX_BOOL OnLButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); |
82 virtual FX_BOOL OnMouseMove(cons
t CPDF_Point & point, FX_DWORD nFlag); | 82 virtual FX_BOOL OnMouseMove(cons
t CPDF_Point & point, FX_DWORD nFlag); |
83 virtual FX_BOOL OnKeyDown(FX_WOR
D nChar, FX_DWORD nFlag); | 83 virtual FX_BOOL OnKeyDown(FX_WOR
D nChar, FX_DWORD nFlag); |
84 | 84 |
85 private: | 85 private: |
86 CPWL_IconList_Item* GetListItem(int3
2_t nItemIndex) const; | 86 CPWL_IconList_Item* GetListItem(int3
2_t nItemIndex) const; |
87 void SelectIt
em(int32_t nItemIndex, FX_BOOL bSelect); | 87 void SelectIt
em(int32_t nItemIndex, FX_BOOL bSelect); |
88 int32_t FindItemIndex(co
nst CPDF_Point& point); | 88 int32_t FindItemIndex(co
nst CPDF_Point& point); |
89 | 89 |
90 » FX_BOOL»» » » » » » » m_nSelec
tIndex; | 90 » int32_t»» » » » » » » m_nSelec
tIndex; |
91 IPWL_IconList_Notify* m_pNotify; | 91 IPWL_IconList_Notify* m_pNotify; |
92 FX_BOOL m_bEnabl
eNotify; | 92 FX_BOOL m_bEnabl
eNotify; |
93 FX_BOOL m_bMouse
Down; | 93 FX_BOOL m_bMouse
Down; |
94 int32_t m_nListCount; | 94 int32_t m_nListCount; |
95 }; | 95 }; |
96 | 96 |
97 class PWL_CLASS CPWL_IconList : public CPWL_Wnd | 97 class PWL_CLASS CPWL_IconList : public CPWL_Wnd |
98 { | 98 { |
99 public: | 99 public: |
100 CPWL_IconList(int32_t nListCount); | 100 CPWL_IconList(int32_t nListCount); |
(...skipping 18 matching lines...) Expand all Loading... |
119 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); | 119 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); |
120 | 120 |
121 virtual void OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); | 121 virtual void OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); |
122 | 122 |
123 private: | 123 private: |
124 CPWL_IconList_Content* m_pListContent; | 124 CPWL_IconList_Content* m_pListContent; |
125 int32_t m_nListCount; | 125 int32_t m_nListCount; |
126 }; | 126 }; |
127 | 127 |
128 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ | 128 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ |
OLD | NEW |