![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpwl_list_box.h>
Public Member Functions | |
| CPWL_ListBox (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) | |
| ~CPWL_ListBox () override | |
| void | OnCreated () override |
| void | OnDestroy () override |
| void | DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) override |
| bool | OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlag) override |
| bool | OnChar (uint16_t nChar, Mask< FWL_EVENTFLAG > nFlag) override |
| bool | OnLButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
| bool | OnLButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
| bool | OnMouseMove (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
| bool | OnMouseWheel (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point, const CFX_Vector &delta) override |
| WideString | GetText () override |
| void | SetScrollInfo (const PWL_SCROLL_INFO &info) override |
| void | SetScrollPosition (float pos) override |
| void | ScrollWindowVertically (float pos) override |
| bool | RepositionChildWnd () override |
| CFX_FloatRect | GetFocusRect () const override |
| void | SetFontSize (float fFontSize) override |
| float | GetFontSize () const override |
| void | OnSetScrollInfoY (float fPlateMin, float fPlateMax, float fContentMin, float fContentMax, float fSmallStep, float fBigStep) override |
| void | OnSetScrollPosY (float fy) override |
| bool | OnInvalidateRect (const CFX_FloatRect &pRect) override |
| bool | OnNotifySelectionChanged (bool bKeyDown, Mask< FWL_EVENTFLAG > nFlag) |
| void | AddString (const WideString &str) |
| void | SetTopVisibleIndex (int32_t nItemIndex) |
| void | ScrollToListItem (int32_t nItemIndex) |
| void | Select (int32_t nItemIndex) |
| void | Deselect (int32_t nItemIndex) |
| void | SetCaret (int32_t nItemIndex) |
| void | SetHoverSel (bool bHoverSel) |
| int32_t | GetCount () const |
| bool | IsMultipleSel () const |
| int32_t | GetCaretIndex () const |
| int32_t | GetCurSel () const |
| bool | IsItemSelected (int32_t nItemIndex) const |
| int32_t | GetTopVisibleIndex () const |
| CFX_FloatRect | GetContentRect () const |
| float | GetFirstHeight () const |
| CFX_FloatRect | GetListRect () const |
| Public Member Functions inherited from CPWL_Wnd | |
| CPWL_Wnd (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) | |
| virtual | ~CPWL_Wnd () |
| virtual bool | InvalidateRect (const CFX_FloatRect *pRect) |
| virtual bool | OnLButtonDblClk (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) |
| virtual bool | OnRButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) |
| virtual bool | OnRButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) |
| virtual void | NotifyLButtonDown (CPWL_Wnd *child, const CFX_PointF &pos) |
| virtual void | NotifyLButtonUp (CPWL_Wnd *child, const CFX_PointF &pos) |
| virtual void | NotifyMouseMove (CPWL_Wnd *child, const CFX_PointF &pos) |
| virtual void | SetFocus () |
| virtual void | KillFocus () |
| virtual void | SetCursor () |
| virtual bool | SetVisible (bool bVisible) |
| virtual WideString | GetSelectedText () |
| virtual void | ReplaceAndKeepSelection (const WideString &text) |
| virtual void | ReplaceSelection (const WideString &text) |
| virtual bool | SelectAllText () |
| virtual bool | CanUndo () |
| virtual bool | CanRedo () |
| virtual bool | Undo () |
| virtual bool | Redo () |
| virtual CFX_FloatRect | GetClientRect () const |
| virtual void | OnSetFocus () |
| virtual void | OnKillFocus () |
| void | AddChild (std::unique_ptr< CPWL_Wnd > pWnd) |
| void | RemoveChild (CPWL_Wnd *pWnd) |
| void | Realize () |
| void | Destroy () |
| bool | Move (const CFX_FloatRect &rcNew, bool bReset, bool bRefresh) |
| void | InvalidateProvider (ProviderIface *provider) |
| void | DrawAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) |
| int32_t | GetBorderWidth () const |
| CFX_FloatRect | GetWindowRect () const |
| bool | IsVisible () const |
| bool | HasFlag (uint32_t dwFlags) const |
| void | RemoveFlag (uint32_t dwFlags) |
| void | SetClipRect (const CFX_FloatRect &rect) |
| IPWL_FillerNotify::PerWindowData * | GetAttachedData () const |
| std::unique_ptr< IPWL_FillerNotify::PerWindowData > | CloneAttachedData () const |
| std::vector< UnownedPtr< CPWL_Wnd > > | GetAncestors () |
| bool | WndHitTest (const CFX_PointF &point) const |
| bool | ClientHitTest (const CFX_PointF &point) const |
| bool | IsCaptureMouse () const |
| bool | IsFocused () const |
| bool | IsReadOnly () const |
| void | SetTransparency (int32_t nTransparency) |
| CFX_Matrix | GetWindowMatrix () const |
| Public Member Functions inherited from fxcrt::Observable | |
| Observable () | |
| Observable (const Observable &that)=delete | |
| Observable & | operator= (const Observable &that)=delete |
| ~Observable () | |
| void | AddObserver (ObserverIface *pObserver) |
| void | RemoveObserver (ObserverIface *pObserver) |
| void | NotifyObservers () |
| Public Member Functions inherited from CPWL_ListCtrl::NotifyIface | |
| virtual | ~NotifyIface () |
Protected Attributes | |
| bool | m_bMouseDown = false |
| bool | m_bHoverSel = false |
| std::unique_ptr< CPWL_ListCtrl > | m_pListCtrl |
Definition at line 18 of file cpwl_list_box.h.
| CPWL_ListBox::CPWL_ListBox | ( | const CreateParams & | cp, |
| std::unique_ptr< IPWL_FillerNotify::PerWindowData > | pAttachedData ) |
Definition at line 20 of file cpwl_list_box.cpp.
References CPWL_ListBox().
Referenced by CPWL_ListBox().
|
overridedefault |
| void CPWL_ListBox::AddString | ( | const WideString & | str | ) |
Definition at line 233 of file cpwl_list_box.cpp.
| void CPWL_ListBox::Deselect | ( | int32_t | nItemIndex | ) |
Definition at line 293 of file cpwl_list_box.cpp.
Referenced by CFFL_ListBox::SetIndexSelected().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 45 of file cpwl_list_box.cpp.
References ArgbEncode(), CFX_FloatRect::bottom, CFX_RenderDevice::DrawFillRect(), CPWL_Wnd::DrawThisAppearance(), CPWL_Wnd::GetAttachedData(), CPWL_Wnd::GetClientRect(), CPWL_EditImpl::GetContentRect(), CPWL_Wnd::GetFillerNotify(), GetListRect(), CFX_FloatRect::Intersect(), IPWL_FillerNotify::IsSelectionImplemented(), IPWL_FillerNotify::OutputSelectedRect(), CFX_FloatRect::top, and CFX_FloatRect::Width().
| int32_t CPWL_ListBox::GetCaretIndex | ( | ) | const |
Definition at line 313 of file cpwl_list_box.cpp.
| CFX_FloatRect CPWL_ListBox::GetContentRect | ( | ) | const |
Definition at line 334 of file cpwl_list_box.cpp.
| int32_t CPWL_ListBox::GetCount | ( | ) | const |
Definition at line 330 of file cpwl_list_box.cpp.
Referenced by testing.tools.safetynet_conclusions.ComparisonSummary::GetOutputDict(), CFFL_ListBox::IsDataChanged(), and CFFL_ListBox::SavePWLWindowState().
| int32_t CPWL_ListBox::GetCurSel | ( | ) | const |
Definition at line 317 of file cpwl_list_box.cpp.
Referenced by CFFL_ListBox::GetActionData().
| float CPWL_ListBox::GetFirstHeight | ( | ) | const |
Definition at line 338 of file cpwl_list_box.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 223 of file cpwl_list_box.cpp.
References CPWL_Wnd::GetClientRect(), CPWL_Wnd::GetFocusRect(), and CFX_FloatRect::Intersect().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 245 of file cpwl_list_box.cpp.
| CFX_FloatRect CPWL_ListBox::GetListRect | ( | ) | const |
Definition at line 342 of file cpwl_list_box.cpp.
References CPWL_Wnd::GetBorderWidth(), CPWL_Wnd::GetInnerBorderWidth(), and CPWL_Wnd::GetWindowRect().
Referenced by DrawThisAppearance().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 237 of file cpwl_list_box.cpp.
| int32_t CPWL_ListBox::GetTopVisibleIndex | ( | ) | const |
Definition at line 325 of file cpwl_list_box.cpp.
Referenced by CFFL_ListBox::SaveData().
| bool CPWL_ListBox::IsItemSelected | ( | int32_t | nItemIndex | ) | const |
Definition at line 321 of file cpwl_list_box.cpp.
Referenced by CFFL_ListBox::IsDataChanged(), and CFFL_ListBox::IsIndexSelected().
| bool CPWL_ListBox::IsMultipleSel | ( | ) | const |
Definition at line 309 of file cpwl_list_box.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 128 of file cpwl_list_box.cpp.
References CPWL_Wnd::OnChar(), and OnNotifySelectionChanged().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 28 of file cpwl_list_box.cpp.
References CPWL_Wnd::HasFlag(), m_bHoverSel, and SetHoverSel().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 39 of file cpwl_list_box.cpp.
|
nodiscardoverridevirtual |
Implements CPWL_ListCtrl::NotifyIface.
Definition at line 285 of file cpwl_list_box.cpp.
References CPWL_Wnd::InvalidateRect().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 87 of file cpwl_list_box.cpp.
References FWL_VKEY_Down, FWL_VKEY_End, FWL_VKEY_Home, FWL_VKEY_Left, FWL_VKEY_Right, FWL_VKEY_Up, CPWL_Wnd::OnKeyDown(), and OnNotifySelectionChanged().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 138 of file cpwl_list_box.cpp.
References CPWL_Wnd::ClientHitTest(), m_bMouseDown, CPWL_Wnd::OnLButtonDown(), CPWL_Wnd::SetCapture(), and CPWL_Wnd::SetFocus().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 154 of file cpwl_list_box.cpp.
References m_bMouseDown, CPWL_Wnd::OnLButtonUp(), OnNotifySelectionChanged(), and CPWL_Wnd::ReleaseCapture().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 170 of file cpwl_list_box.cpp.
References CPWL_Wnd::OnMouseMove().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 347 of file cpwl_list_box.cpp.
References OnNotifySelectionChanged().
| bool CPWL_ListBox::OnNotifySelectionChanged | ( | bool | bKeyDown, |
| Mask< FWL_EVENTFLAG > | nFlag ) |
Definition at line 206 of file cpwl_list_box.cpp.
References IPWL_FillerNotify::BeforeKeystrokeResult::exit.
Referenced by OnChar(), CPWL_CBListBox::OnCharNotify(), OnKeyDown(), CPWL_CBListBox::OnLButtonUp(), OnLButtonUp(), OnMouseWheel(), and CPWL_CBListBox::OnMovementKeyDown().
|
overridevirtual |
Implements CPWL_ListCtrl::NotifyIface.
Definition at line 249 of file cpwl_list_box.cpp.
References PWL_SCROLL_INFO::fBigStep, PWL_SCROLL_INFO::fContentMax, PWL_SCROLL_INFO::fContentMin, PWL_SCROLL_INFO::fPlateWidth, PWL_SCROLL_INFO::fSmallStep, CPWL_Wnd::GetVScrollBar(), CPWL_Wnd::IsVisible(), RepositionChildWnd(), SetScrollInfo(), and CPWL_Wnd::SetVisible().
|
overridevirtual |
Implements CPWL_ListCtrl::NotifyIface.
Definition at line 281 of file cpwl_list_box.cpp.
References SetScrollPosition().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 197 of file cpwl_list_box.cpp.
References CPWL_Wnd::RepositionChildWnd().
Referenced by OnSetScrollInfoY().
| void CPWL_ListBox::ScrollToListItem | ( | int32_t | nItemIndex | ) |
Definition at line 305 of file cpwl_list_box.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 193 of file cpwl_list_box.cpp.
| void CPWL_ListBox::Select | ( | int32_t | nItemIndex | ) |
Definition at line 289 of file cpwl_list_box.cpp.
Referenced by CFFL_ListBox::SetIndexSelected().
| void CPWL_ListBox::SetCaret | ( | int32_t | nItemIndex | ) |
Definition at line 297 of file cpwl_list_box.cpp.
Referenced by CFFL_ListBox::SetIndexSelected().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 241 of file cpwl_list_box.cpp.
| void CPWL_ListBox::SetHoverSel | ( | bool | bHoverSel | ) |
Definition at line 166 of file cpwl_list_box.cpp.
References m_bHoverSel.
Referenced by OnCreated().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 183 of file cpwl_list_box.cpp.
References CPWL_Wnd::GetVScrollBar(), and CPWL_Wnd::SetScrollInfo().
Referenced by OnSetScrollInfoY().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 188 of file cpwl_list_box.cpp.
References CPWL_Wnd::GetVScrollBar(), and CPWL_Wnd::SetScrollPosition().
Referenced by OnSetScrollPosY().
| void CPWL_ListBox::SetTopVisibleIndex | ( | int32_t | nItemIndex | ) |
Definition at line 301 of file cpwl_list_box.cpp.
|
protected |
Definition at line 80 of file cpwl_list_box.h.
Referenced by OnCreated(), and SetHoverSel().
|
protected |
Definition at line 79 of file cpwl_list_box.h.
Referenced by OnLButtonDown(), CPWL_CBListBox::OnLButtonUp(), and OnLButtonUp().
|
protected |
Definition at line 81 of file cpwl_list_box.h.