Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPWL_ListCtrl Class Reference

#include <cpwl_list_ctrl.h>

+ Collaboration diagram for CPWL_ListCtrl:

Classes

class  NotifyIface
 

Public Member Functions

 CPWL_ListCtrl ()
 
 ~CPWL_ListCtrl ()
 
void SetNotify (NotifyIface *pNotify)
 
void OnMouseDown (const CFX_PointF &point, bool bShift, bool bCtrl)
 
void OnMouseMove (const CFX_PointF &point, bool bShift, bool bCtrl)
 
void OnVK_UP (bool bShift, bool bCtrl)
 
void OnVK_DOWN (bool bShift, bool bCtrl)
 
void OnVK_LEFT (bool bShift, bool bCtrl)
 
void OnVK_RIGHT (bool bShift, bool bCtrl)
 
void OnVK_HOME (bool bShift, bool bCtrl)
 
void OnVK_END (bool bShift, bool bCtrl)
 
bool OnChar (uint16_t nChar, bool bShift, bool bCtrl)
 
void SetScrollPos (const CFX_PointF &point)
 
void ScrollToListItem (int32_t nItemIndex)
 
CFX_FloatRect GetItemRect (int32_t nIndex) const
 
int32_t GetCaret () const
 
int32_t GetSelect () const
 
int32_t GetTopItem () const
 
CFX_FloatRect GetContentRect () const
 
int32_t GetItemIndex (const CFX_PointF &point) const
 
void AddString (const WideString &str)
 
void SetTopItem (int32_t nIndex)
 
void Select (int32_t nItemIndex)
 
void Deselect (int32_t nItemIndex)
 
void SetCaret (int32_t nItemIndex)
 
WideString GetText () const
 
void SetFontMap (IPVT_FontMap *pFontMap)
 
void SetFontSize (float fFontSize)
 
CFX_FloatRect GetPlateRect () const
 
void SetPlateRect (const CFX_FloatRect &rect)
 
float GetFontSize () const
 
CPWL_EditImplGetItemEdit (int32_t nIndex) const
 
int32_t GetCount () const
 
bool IsItemSelected (int32_t nIndex) const
 
float GetFirstHeight () const
 
void SetMultipleSel (bool bMultiple)
 
bool IsMultipleSel () const
 
int32_t FindNext (int32_t nIndex, wchar_t nChar) const
 
int32_t GetFirstSelected () const
 

Detailed Description

Definition at line 21 of file cpwl_list_ctrl.h.

Constructor & Destructor Documentation

◆ CPWL_ListCtrl()

CPWL_ListCtrl::CPWL_ListCtrl ( )
default

◆ ~CPWL_ListCtrl()

CPWL_ListCtrl::~CPWL_ListCtrl ( )

Definition at line 105 of file cpwl_list_ctrl.cpp.

Member Function Documentation

◆ AddString()

void CPWL_ListCtrl::AddString ( const WideString & str)

Definition at line 307 of file cpwl_list_ctrl.cpp.

References GetCount().

+ Here is the call graph for this function:

◆ Deselect()

void CPWL_ListCtrl::Deselect ( int32_t nItemIndex)

Definition at line 407 of file cpwl_list_ctrl.cpp.

References IsItemSelected(), and IsMultipleSel().

+ Here is the call graph for this function:

◆ FindNext()

int32_t CPWL_ListCtrl::FindNext ( int32_t nIndex,
wchar_t nChar ) const

Definition at line 598 of file cpwl_list_ctrl.cpp.

References FXSYS_towupper(), and GetCount().

Referenced by OnChar().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCaret()

int32_t CPWL_ListCtrl::GetCaret ( ) const
inline

Definition at line 56 of file cpwl_list_ctrl.h.

Referenced by OnVK_DOWN(), and OnVK_UP().

+ Here is the caller graph for this function:

◆ GetContentRect()

CFX_FloatRect CPWL_ListCtrl::GetContentRect ( ) const

Definition at line 494 of file cpwl_list_ctrl.cpp.

◆ GetCount()

int32_t CPWL_ListCtrl::GetCount ( ) const

Definition at line 570 of file cpwl_list_ctrl.cpp.

Referenced by AddString(), FindNext(), GetItemIndex(), testing.tools.safetynet_conclusions.ComparisonSummary::GetOutputDict(), OnVK_END(), and OnVK_RIGHT().

+ Here is the caller graph for this function:

◆ GetFirstHeight()

float CPWL_ListCtrl::GetFirstHeight ( ) const

Definition at line 574 of file cpwl_list_ctrl.cpp.

◆ GetFirstSelected()

int32_t CPWL_ListCtrl::GetFirstSelected ( ) const

Definition at line 580 of file cpwl_list_ctrl.cpp.

◆ GetFontSize()

float CPWL_ListCtrl::GetFontSize ( ) const
inline

Definition at line 74 of file cpwl_list_ctrl.h.

◆ GetItemEdit()

CPWL_EditImpl * CPWL_ListCtrl::GetItemEdit ( int32_t nIndex) const

Definition at line 564 of file cpwl_list_ctrl.cpp.

◆ GetItemIndex()

int32_t CPWL_ListCtrl::GetItemIndex ( const CFX_PointF & point) const

Definition at line 528 of file cpwl_list_ctrl.cpp.

References GetCount().

Referenced by OnMouseDown(), and OnMouseMove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetItemRect()

CFX_FloatRect CPWL_ListCtrl::GetItemRect ( int32_t nIndex) const

Definition at line 293 of file cpwl_list_ctrl.cpp.

Referenced by ScrollToListItem().

+ Here is the caller graph for this function:

◆ GetPlateRect()

CFX_FloatRect CPWL_ListCtrl::GetPlateRect ( ) const
inline

Definition at line 71 of file cpwl_list_ctrl.h.

◆ GetSelect()

int32_t CPWL_ListCtrl::GetSelect ( ) const
inline

Definition at line 57 of file cpwl_list_ctrl.h.

Referenced by OnVK_DOWN(), and OnVK_UP().

+ Here is the caller graph for this function:

◆ GetText()

WideString CPWL_ListCtrl::GetText ( ) const

Definition at line 550 of file cpwl_list_ctrl.cpp.

References IsMultipleSel().

+ Here is the call graph for this function:

◆ GetTopItem()

int32_t CPWL_ListCtrl::GetTopItem ( ) const

Definition at line 520 of file cpwl_list_ctrl.cpp.

◆ IsItemSelected()

bool CPWL_ListCtrl::IsItemSelected ( int32_t nIndex) const

Definition at line 615 of file cpwl_list_ctrl.cpp.

Referenced by Deselect(), and OnMouseDown().

+ Here is the caller graph for this function:

◆ IsMultipleSel()

bool CPWL_ListCtrl::IsMultipleSel ( ) const
inline

Definition at line 80 of file cpwl_list_ctrl.h.

Referenced by Deselect(), GetText(), OnMouseDown(), OnMouseMove(), OnVK_DOWN(), OnVK_UP(), Select(), and SetCaret().

+ Here is the caller graph for this function:

◆ OnChar()

bool CPWL_ListCtrl::OnChar ( uint16_t nChar,
bool bShift,
bool bCtrl )

Definition at line 274 of file cpwl_list_ctrl.cpp.

References FindNext().

+ Here is the call graph for this function:

◆ OnMouseDown()

void CPWL_ListCtrl::OnMouseDown ( const CFX_PointF & point,
bool bShift,
bool bCtrl )

Definition at line 158 of file cpwl_list_ctrl.cpp.

References GetItemIndex(), IsItemSelected(), IsMultipleSel(), ScrollToListItem(), and SetCaret().

+ Here is the call graph for this function:

◆ OnMouseMove()

void CPWL_ListCtrl::OnMouseMove ( const CFX_PointF & point,
bool bShift,
bool bCtrl )

Definition at line 197 of file cpwl_list_ctrl.cpp.

References GetItemIndex(), IsMultipleSel(), ScrollToListItem(), and SetCaret().

+ Here is the call graph for this function:

◆ OnVK_DOWN()

void CPWL_ListCtrl::OnVK_DOWN ( bool bShift,
bool bCtrl )

Definition at line 254 of file cpwl_list_ctrl.cpp.

References GetCaret(), GetSelect(), and IsMultipleSel().

+ Here is the call graph for this function:

◆ OnVK_END()

void CPWL_ListCtrl::OnVK_END ( bool bShift,
bool bCtrl )

Definition at line 270 of file cpwl_list_ctrl.cpp.

References GetCount().

+ Here is the call graph for this function:

◆ OnVK_HOME()

void CPWL_ListCtrl::OnVK_HOME ( bool bShift,
bool bCtrl )

Definition at line 266 of file cpwl_list_ctrl.cpp.

◆ OnVK_LEFT()

void CPWL_ListCtrl::OnVK_LEFT ( bool bShift,
bool bCtrl )

Definition at line 258 of file cpwl_list_ctrl.cpp.

◆ OnVK_RIGHT()

void CPWL_ListCtrl::OnVK_RIGHT ( bool bShift,
bool bCtrl )

Definition at line 262 of file cpwl_list_ctrl.cpp.

References GetCount().

+ Here is the call graph for this function:

◆ OnVK_UP()

void CPWL_ListCtrl::OnVK_UP ( bool bShift,
bool bCtrl )

Definition at line 250 of file cpwl_list_ctrl.cpp.

References GetCaret(), GetSelect(), and IsMultipleSel().

+ Here is the call graph for this function:

◆ ScrollToListItem()

void CPWL_ListCtrl::ScrollToListItem ( int32_t nItemIndex)

Definition at line 424 of file cpwl_list_ctrl.cpp.

References CFX_FloatRect::bottom, GetItemRect(), CFX_FloatRect::Height(), and CFX_FloatRect::top.

Referenced by OnMouseDown(), and OnMouseMove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Select()

void CPWL_ListCtrl::Select ( int32_t nItemIndex)

Definition at line 395 of file cpwl_list_ctrl.cpp.

References IsMultipleSel().

+ Here is the call graph for this function:

◆ SetCaret()

void CPWL_ListCtrl::SetCaret ( int32_t nItemIndex)

Definition at line 343 of file cpwl_list_ctrl.cpp.

References IsMultipleSel().

Referenced by OnMouseDown(), and OnMouseMove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetFontMap()

void CPWL_ListCtrl::SetFontMap ( IPVT_FontMap * pFontMap)
inline

Definition at line 69 of file cpwl_list_ctrl.h.

◆ SetFontSize()

void CPWL_ListCtrl::SetFontSize ( float fFontSize)
inline

Definition at line 70 of file cpwl_list_ctrl.h.

◆ SetMultipleSel()

void CPWL_ListCtrl::SetMultipleSel ( bool bMultiple)
inline

Definition at line 79 of file cpwl_list_ctrl.h.

◆ SetNotify()

void CPWL_ListCtrl::SetNotify ( NotifyIface * pNotify)
inline

Definition at line 42 of file cpwl_list_ctrl.h.

◆ SetPlateRect()

void CPWL_ListCtrl::SetPlateRect ( const CFX_FloatRect & rect)

Definition at line 285 of file cpwl_list_ctrl.cpp.

References CFX_FloatRect::left, CFX_FloatRect::operator=(), SetScrollPos(), and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ SetScrollPos()

void CPWL_ListCtrl::SetScrollPos ( const CFX_PointF & point)

Definition at line 458 of file cpwl_list_ctrl.cpp.

Referenced by SetPlateRect().

+ Here is the caller graph for this function:

◆ SetTopItem()

void CPWL_ListCtrl::SetTopItem ( int32_t nIndex)

Definition at line 513 of file cpwl_list_ctrl.cpp.

References CFX_FloatRect::top.


The documentation for this class was generated from the following files: