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_ctrl.h>
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_EditImpl * | GetItemEdit (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 |
Definition at line 21 of file cpwl_list_ctrl.h.
|
default |
CPWL_ListCtrl::~CPWL_ListCtrl | ( | ) |
Definition at line 105 of file cpwl_list_ctrl.cpp.
void CPWL_ListCtrl::AddString | ( | const WideString & | str | ) |
Definition at line 307 of file cpwl_list_ctrl.cpp.
References GetCount().
void CPWL_ListCtrl::Deselect | ( | int32_t | nItemIndex | ) |
Definition at line 407 of file cpwl_list_ctrl.cpp.
References IsItemSelected(), and IsMultipleSel().
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().
|
inline |
Definition at line 56 of file cpwl_list_ctrl.h.
Referenced by OnVK_DOWN(), and OnVK_UP().
CFX_FloatRect CPWL_ListCtrl::GetContentRect | ( | ) | const |
Definition at line 494 of file cpwl_list_ctrl.cpp.
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().
float CPWL_ListCtrl::GetFirstHeight | ( | ) | const |
Definition at line 574 of file cpwl_list_ctrl.cpp.
int32_t CPWL_ListCtrl::GetFirstSelected | ( | ) | const |
Definition at line 580 of file cpwl_list_ctrl.cpp.
|
inline |
Definition at line 74 of file cpwl_list_ctrl.h.
CPWL_EditImpl * CPWL_ListCtrl::GetItemEdit | ( | int32_t | nIndex | ) | const |
Definition at line 564 of file cpwl_list_ctrl.cpp.
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().
CFX_FloatRect CPWL_ListCtrl::GetItemRect | ( | int32_t | nIndex | ) | const |
Definition at line 293 of file cpwl_list_ctrl.cpp.
Referenced by ScrollToListItem().
|
inline |
Definition at line 71 of file cpwl_list_ctrl.h.
|
inline |
Definition at line 57 of file cpwl_list_ctrl.h.
Referenced by OnVK_DOWN(), and OnVK_UP().
WideString CPWL_ListCtrl::GetText | ( | ) | const |
Definition at line 550 of file cpwl_list_ctrl.cpp.
References IsMultipleSel().
int32_t CPWL_ListCtrl::GetTopItem | ( | ) | const |
Definition at line 520 of file cpwl_list_ctrl.cpp.
bool CPWL_ListCtrl::IsItemSelected | ( | int32_t | nIndex | ) | const |
Definition at line 615 of file cpwl_list_ctrl.cpp.
Referenced by Deselect(), and OnMouseDown().
|
inline |
Definition at line 80 of file cpwl_list_ctrl.h.
Referenced by Deselect(), GetText(), OnMouseDown(), OnMouseMove(), OnVK_DOWN(), OnVK_UP(), Select(), and SetCaret().
bool CPWL_ListCtrl::OnChar | ( | uint16_t | nChar, |
bool | bShift, | ||
bool | bCtrl ) |
Definition at line 274 of file cpwl_list_ctrl.cpp.
References FindNext().
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().
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().
void CPWL_ListCtrl::OnVK_DOWN | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 254 of file cpwl_list_ctrl.cpp.
References GetCaret(), GetSelect(), and IsMultipleSel().
void CPWL_ListCtrl::OnVK_END | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 270 of file cpwl_list_ctrl.cpp.
References GetCount().
void CPWL_ListCtrl::OnVK_HOME | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 266 of file cpwl_list_ctrl.cpp.
void CPWL_ListCtrl::OnVK_LEFT | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 258 of file cpwl_list_ctrl.cpp.
void CPWL_ListCtrl::OnVK_RIGHT | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 262 of file cpwl_list_ctrl.cpp.
References GetCount().
void CPWL_ListCtrl::OnVK_UP | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 250 of file cpwl_list_ctrl.cpp.
References GetCaret(), GetSelect(), and IsMultipleSel().
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().
void CPWL_ListCtrl::Select | ( | int32_t | nItemIndex | ) |
Definition at line 395 of file cpwl_list_ctrl.cpp.
References IsMultipleSel().
void CPWL_ListCtrl::SetCaret | ( | int32_t | nItemIndex | ) |
Definition at line 343 of file cpwl_list_ctrl.cpp.
References IsMultipleSel().
Referenced by OnMouseDown(), and OnMouseMove().
|
inline |
Definition at line 69 of file cpwl_list_ctrl.h.
|
inline |
Definition at line 70 of file cpwl_list_ctrl.h.
|
inline |
Definition at line 79 of file cpwl_list_ctrl.h.
|
inline |
Definition at line 42 of file cpwl_list_ctrl.h.
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.
void CPWL_ListCtrl::SetScrollPos | ( | const CFX_PointF & | point | ) |
Definition at line 458 of file cpwl_list_ctrl.cpp.
Referenced by SetPlateRect().
void CPWL_ListCtrl::SetTopItem | ( | int32_t | nIndex | ) |
Definition at line 513 of file cpwl_list_ctrl.cpp.
References CFX_FloatRect::top.