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_ComboBox Class Referencefinal

#include <cpwl_combo_box.h>

+ Inheritance diagram for CPWL_ComboBox:
+ Collaboration diagram for CPWL_ComboBox:

Public Member Functions

 CPWL_ComboBox (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData)
 
 ~CPWL_ComboBox () override
 
CPWL_EditGetEdit () const
 
void OnDestroy () override
 
bool OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlag) override
 
bool OnChar (uint16_t nChar, Mask< FWL_EVENTFLAG > nFlag) override
 
void NotifyLButtonDown (CPWL_Wnd *child, const CFX_PointF &pos) override
 
void NotifyLButtonUp (CPWL_Wnd *child, const CFX_PointF &pos) override
 
void CreateChildWnd (const CreateParams &cp) override
 
bool RepositionChildWnd () override
 
CFX_FloatRect GetFocusRect () const override
 
void SetFocus () override
 
void KillFocus () override
 
WideString GetText () override
 
WideString GetSelectedText () override
 
void ReplaceAndKeepSelection (const WideString &text) override
 
void ReplaceSelection (const WideString &text) override
 
bool SelectAllText () override
 
bool CanUndo () override
 
bool CanRedo () override
 
bool Undo () override
 
bool Redo () override
 
void SetText (const WideString &text)
 
void AddString (const WideString &str)
 
int32_t GetSelect () const
 
void SetSelect (int32_t nItemIndex)
 
void SetEditSelection (int32_t nStartChar, int32_t nEndChar)
 
void ClearSelection ()
 
void SelectAll ()
 
bool IsPopup () const
 
void SetSelectText ()
 
- 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 OnLButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnLButtonUp (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 bool OnMouseMove (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point)
 
virtual bool OnMouseWheel (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point, const CFX_Vector &delta)
 
virtual void SetScrollInfo (const PWL_SCROLL_INFO &info)
 
virtual void SetScrollPosition (float pos)
 
virtual void ScrollWindowVertically (float pos)
 
virtual void NotifyMouseMove (CPWL_Wnd *child, const CFX_PointF &pos)
 
virtual void SetCursor ()
 
virtual bool SetVisible (bool bVisible)
 
virtual void SetFontSize (float fFontSize)
 
virtual float GetFontSize () const
 
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::PerWindowDataGetAttachedData () const
 
std::unique_ptr< IPWL_FillerNotify::PerWindowDataCloneAttachedData () 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
 
Observableoperator= (const Observable &that)=delete
 
 ~Observable ()
 
void AddObserver (ObserverIface *pObserver)
 
void RemoveObserver (ObserverIface *pObserver)
 
void NotifyObservers ()
 

Additional Inherited Members

- Static Public Member Functions inherited from CPWL_Wnd
static bool IsSHIFTKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsCTRLKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsALTKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsMETAKeyDown (Mask< FWL_EVENTFLAG > nFlag)
 
static bool IsPlatformShortcutKey (Mask< FWL_EVENTFLAG > nFlag)
 
- Static Public Attributes inherited from CPWL_Wnd
static const CFX_Color kDefaultBlackColor
 
static const CFX_Color kDefaultWhiteColor
 
- Protected Member Functions inherited from CPWL_Wnd
virtual void DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device)
 
virtual void OnCreated ()
 
bool IsValid () const
 
CreateParamsGetCreationParams ()
 
ProviderIfaceGetProvider () const
 
CFX_Timer::HandlerIfaceGetTimerHandler () const
 
IPWL_FillerNotifyGetFillerNotify () const
 
CPWL_WndGetParentWindow () const
 
CPWL_ScrollBarGetVScrollBar () const
 
bool InvalidateRectMove (const CFX_FloatRect &rcOld, const CFX_FloatRect &rcNew)
 
void SetCapture ()
 
void ReleaseCapture ()
 
bool IsWndCaptureMouse (const CPWL_Wnd *pWnd) const
 
bool IsWndCaptureKeyboard (const CPWL_Wnd *pWnd) const
 
CFX_Color GetBackgroundColor () const
 
CFX_Color GetBorderColor () const
 
CFX_Color GetTextColor () const
 
CFX_Color GetBorderLeftTopColor (BorderStyle nBorderStyle) const
 
CFX_Color GetBorderRightBottomColor (BorderStyle nBorderStyle) const
 
BorderStyle GetBorderStyle () const
 
const CPWL_DashGetBorderDash () const
 
int32_t GetTransparency ()
 
int32_t GetInnerBorderWidth () const
 
CFX_PointF GetCenterPoint () const
 
const CFX_FloatRectGetClipRect () const
 
IPVT_FontMapGetFontMap () const
 
- Protected Member Functions inherited from fxcrt::Observable
size_t ActiveObserversForTesting () const
 

Detailed Description

Definition at line 21 of file cpwl_combo_box.h.

Constructor & Destructor Documentation

◆ CPWL_ComboBox()

CPWL_ComboBox::CPWL_ComboBox ( const CreateParams & cp,
std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData )

Definition at line 26 of file cpwl_combo_box.cpp.

References CPWL_Wnd::GetCreationParams().

+ Here is the call graph for this function:

◆ ~CPWL_ComboBox()

CPWL_ComboBox::~CPWL_ComboBox ( )
overridedefault

Member Function Documentation

◆ AddString()

void CPWL_ComboBox::AddString ( const WideString & str)

Definition at line 104 of file cpwl_combo_box.cpp.

◆ CanRedo()

bool CPWL_ComboBox::CanRedo ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 83 of file cpwl_combo_box.cpp.

◆ CanUndo()

bool CPWL_ComboBox::CanUndo ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 79 of file cpwl_combo_box.cpp.

◆ ClearSelection()

void CPWL_ComboBox::ClearSelection ( )

Definition at line 126 of file cpwl_combo_box.cpp.

◆ CreateChildWnd()

void CPWL_ComboBox::CreateChildWnd ( const CreateParams & cp)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 131 of file cpwl_combo_box.cpp.

◆ GetEdit()

CPWL_Edit * CPWL_ComboBox::GetEdit ( ) const
inline

Definition at line 28 of file cpwl_combo_box.h.

Referenced by CFFL_ComboBox::GetActionData(), CFFL_ComboBox::RecreatePWLWindowFromSavedState(), CFFL_ComboBox::SavePWLWindowState(), and CFFL_ComboBox::SetActionData().

+ Here is the caller graph for this function:

◆ GetFocusRect()

CFX_FloatRect CPWL_ComboBox::GetFocusRect ( ) const
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 297 of file cpwl_combo_box.cpp.

References CFX_FloatRect::CFX_FloatRect().

+ Here is the call graph for this function:

◆ GetSelect()

int32_t CPWL_ComboBox::GetSelect ( ) const

Definition at line 109 of file cpwl_combo_box.cpp.

Referenced by CFFL_ComboBox::IsDataChanged(), CFFL_ComboBox::IsIndexSelected(), and CFFL_ComboBox::SaveData().

+ Here is the caller graph for this function:

◆ GetSelectedText()

WideString CPWL_ComboBox::GetSelectedText ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 58 of file cpwl_combo_box.cpp.

References fxcrt::WideString::WideString().

+ Here is the call graph for this function:

◆ GetText()

WideString CPWL_ComboBox::GetText ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 95 of file cpwl_combo_box.cpp.

Referenced by CFFL_ComboBox::SaveData().

+ Here is the caller graph for this function:

◆ IsPopup()

bool CPWL_ComboBox::IsPopup ( ) const

Definition at line 480 of file cpwl_combo_box.cpp.

Referenced by OnChar().

+ Here is the caller graph for this function:

◆ KillFocus()

void CPWL_ComboBox::KillFocus ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 51 of file cpwl_combo_box.cpp.

References CPWL_Wnd::KillFocus().

+ Here is the call graph for this function:

◆ NotifyLButtonDown()

void CPWL_ComboBox::NotifyLButtonDown ( CPWL_Wnd * child,
const CFX_PointF & pos )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 460 of file cpwl_combo_box.cpp.

◆ NotifyLButtonUp()

void CPWL_ComboBox::NotifyLButtonUp ( CPWL_Wnd * child,
const CFX_PointF & pos )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 468 of file cpwl_combo_box.cpp.

References SelectAllText(), and SetSelectText().

+ Here is the call graph for this function:

◆ OnChar()

bool CPWL_ComboBox::OnChar ( uint16_t nChar,
Mask< FWL_EVENTFLAG > nFlag )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 409 of file cpwl_combo_box.cpp.

References CPWL_Wnd::GetAttachedData(), CPWL_Wnd::GetFillerNotify(), CPWL_Wnd::HasFlag(), IsPopup(), pdfium::ascii::kReturn, pdfium::ascii::kSpace, and SetSelectText().

+ Here is the call graph for this function:

◆ OnDestroy()

void CPWL_ComboBox::OnDestroy ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 35 of file cpwl_combo_box.cpp.

References CPWL_Wnd::OnDestroy().

+ Here is the call graph for this function:

◆ OnKeyDown()

bool CPWL_ComboBox::OnKeyDown ( FWL_VKEYCODE nKeyCode,
Mask< FWL_EVENTFLAG > nFlag )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 352 of file cpwl_combo_box.cpp.

References FWL_VKEY_Down, FWL_VKEY_Up, CPWL_Wnd::GetAttachedData(), CPWL_Wnd::GetFillerNotify(), and SetSelectText().

+ Here is the call graph for this function:

◆ Redo()

bool CPWL_ComboBox::Redo ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 91 of file cpwl_combo_box.cpp.

◆ ReplaceAndKeepSelection()

void CPWL_ComboBox::ReplaceAndKeepSelection ( const WideString & text)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 65 of file cpwl_combo_box.cpp.

◆ ReplaceSelection()

void CPWL_ComboBox::ReplaceSelection ( const WideString & text)
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 70 of file cpwl_combo_box.cpp.

◆ RepositionChildWnd()

bool CPWL_ComboBox::RepositionChildWnd ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 205 of file cpwl_combo_box.cpp.

References CFX_FloatRect::bottom, CPWL_Wnd::GetBorderWidth(), CPWL_Wnd::GetClientRect(), CPWL_Wnd::GetWindowRect(), CFX_FloatRect::Height(), CFX_FloatRect::left, CFX_FloatRect::right, and CFX_FloatRect::top.

+ Here is the call graph for this function:

◆ SelectAll()

void CPWL_ComboBox::SelectAll ( )

Definition at line 292 of file cpwl_combo_box.cpp.

◆ SelectAllText()

bool CPWL_ComboBox::SelectAllText ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 75 of file cpwl_combo_box.cpp.

Referenced by NotifyLButtonUp().

+ Here is the caller graph for this function:

◆ SetEditSelection()

void CPWL_ComboBox::SetEditSelection ( int32_t nStartChar,
int32_t nEndChar )

Definition at line 121 of file cpwl_combo_box.cpp.

◆ SetFocus()

void CPWL_ComboBox::SetFocus ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 46 of file cpwl_combo_box.cpp.

◆ SetSelect()

void CPWL_ComboBox::SetSelect ( int32_t nItemIndex)

Definition at line 113 of file cpwl_combo_box.cpp.

Referenced by CFFL_ComboBox::SetIndexSelected().

+ Here is the caller graph for this function:

◆ SetSelectText()

void CPWL_ComboBox::SetSelectText ( )

Definition at line 484 of file cpwl_combo_box.cpp.

Referenced by NotifyLButtonUp(), OnChar(), and OnKeyDown().

+ Here is the caller graph for this function:

◆ SetText()

void CPWL_ComboBox::SetText ( const WideString & text)

Definition at line 99 of file cpwl_combo_box.cpp.

◆ Undo()

bool CPWL_ComboBox::Undo ( )
overridevirtual

Reimplemented from CPWL_Wnd.

Definition at line 87 of file cpwl_combo_box.cpp.


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