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

#include <cfwl_combobox.h>

+ Inheritance diagram for CFWL_ComboBox:
+ Collaboration diagram for CFWL_ComboBox:

Public Member Functions

 ~CFWL_ComboBox () override
 
void Trace (cppgc::Visitor *visitor) const override
 
FWL_Type GetClassID () const override
 
void ModifyStyleExts (uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved) override
 
void SetStates (uint32_t dwStates) override
 
void RemoveStates (uint32_t dwStates) override
 
void Update () override
 
FWL_WidgetHit HitTest (const CFX_PointF &point) override
 
void DrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
 
void OnProcessMessage (CFWL_Message *pMessage) override
 
void OnProcessEvent (CFWL_Event *pEvent) override
 
void OnDrawWidget (CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
 
WideString GetTextByIndex (int32_t iIndex) const
 
int32_t GetCurSel () const
 
void SetCurSel (int32_t iSel)
 
void AddString (const WideString &wsText)
 
void RemoveAt (int32_t iIndex)
 
void RemoveAll ()
 
void SetEditText (const WideString &wsText)
 
WideString GetEditText () const
 
bool EditCanUndo () const
 
bool EditCanRedo () const
 
bool EditUndo ()
 
bool EditRedo ()
 
bool EditCanCopy () const
 
bool EditCanCut () const
 
bool EditCanSelectAll () const
 
absl::optional< WideStringEditCopy () const
 
absl::optional< WideStringEditCut ()
 
bool EditPaste (const WideString &wsPaste)
 
void EditSelectAll ()
 
void EditDelete ()
 
void EditDeSelect ()
 
CFX_RectF GetBBox () const
 
void EditModifyStyleExts (uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
 
void ShowDropDownList ()
 
void HideDropDownList ()
 
CFWL_ComboEditGetComboEdit () const
 
void ProcessSelChanged (bool bLButtonUp)
 
int32_t GetCurrentSelection () const
 
- Public Member Functions inherited from CFWL_Widget
 ~CFWL_Widget () override
 
virtual void PreFinalize ()
 
void Trace (cppgc::Visitor *visitor) const override
 
virtual bool IsForm () const
 
virtual CFX_RectF GetAutosizedWidgetRect ()
 
virtual CFX_RectF GetWidgetRect ()
 
virtual CFX_RectF GetClientRect ()
 
void OnProcessMessage (CFWL_Message *pMessage) override
 
void OnProcessEvent (CFWL_Event *pEvent) override
 
void InflateWidgetRect (CFX_RectF &rect)
 
void SetWidgetRect (const CFX_RectF &rect)
 
bool IsVisible () const
 
bool IsOverLapper () const
 
bool IsPopup () const
 
bool IsChild () const
 
CFWL_WidgetMgrGetWidgetMgr () const
 
CFWL_WidgetGetOuter () const
 
CFWL_WidgetGetOutmost () const
 
void ModifyStyles (uint32_t dwStylesAdded, uint32_t dwStylesRemoved)
 
uint32_t GetStyleExts () const
 
uint32_t GetStates () const
 
CFX_PointF TransformTo (CFWL_Widget *pWidget, const CFX_PointF &point)
 
CFX_Matrix GetMatrix () const
 
IFWL_ThemeProviderGetThemeProvider () const
 
void SetDelegate (IFWL_WidgetDelegate *delegate)
 
IFWL_WidgetDelegateGetDelegate ()
 
const IFWL_WidgetDelegateGetDelegate () const
 
CFWL_AppGetFWLApp () const
 
uint64_t GetEventKey () const
 
void SetEventKey (uint64_t key)
 
AdapterIfaceGetAdapterIface () const
 
void SetAdapterIface (AdapterIface *pItem)
 
void RepaintRect (const CFX_RectF &pRect)
 
- Public Member Functions inherited from IFWL_WidgetDelegate
virtual ~IFWL_WidgetDelegate ()=default
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CFWL_Widget
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Additional Inherited Members

- Protected Member Functions inherited from CFWL_Widget
 CFWL_Widget (CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
 
bool IsEnabled () const
 
bool IsLocked () const
 
bool HasBorder () const
 
CFX_RectF GetEdgeRect () const
 
float GetCXBorderSize () const
 
float GetCYBorderSize () const
 
CFX_RectF GetRelativeRect () const
 
CFX_SizeF CalcTextSize (const WideString &wsText, bool bMultiLine)
 
void CalcTextRect (const WideString &wsText, const FDE_TextStyle &dwTTOStyles, FDE_TextAlignment iTTOAlign, CFX_RectF *pRect)
 
void SetGrab (bool bSet)
 
void UnregisterEventTarget ()
 
void DispatchEvent (CFWL_Event *pEvent)
 
void DrawBorder (CFGAS_GEGraphics *pGraphics, CFWL_ThemePart::Part iPartBorder, const CFX_Matrix &pMatrix)
 
- Protected Attributes inherited from CFWL_Widget
Properties m_Properties
 
CFX_RectF m_WidgetRect
 

Detailed Description

Definition at line 32 of file cfwl_combobox.h.

Constructor & Destructor Documentation

◆ ~CFWL_ComboBox()

CFWL_ComboBox::~CFWL_ComboBox ( )
overridedefault

Member Function Documentation

◆ AddString()

void CFWL_ComboBox::AddString ( const WideString & wsText)

Definition at line 54 of file cfwl_combobox.cpp.

◆ DrawWidget()

void CFWL_ComboBox::DrawWidget ( CFGAS_GEGraphics * pGraphics,
const CFX_Matrix & matrix )
overridevirtual

Implements CFWL_Widget.

Definition at line 104 of file cfwl_combobox.cpp.

References CFX_Matrix::CFX_Matrix(), CFGAS_GEGraphics::StateRestorer::StateRestorer(), CFX_Matrix::Concat(), CFGAS_GEGraphics::ConcatMatrix(), CFWL_Widget::GetThemeProvider(), CFX_RectF::IsEmpty(), CFWL_ThemePart::kDropDownButton, CFX_RectF::left, CFWL_ThemePart::m_PartRect, CFX_RectF::operator=(), and CFX_RectF::top.

Referenced by OnDrawWidget().

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

◆ EditCanCopy()

bool CFWL_ComboBox::EditCanCopy ( ) const
inline

Definition at line 68 of file cfwl_combobox.h.

Referenced by EditCanCut().

+ Here is the caller graph for this function:

◆ EditCanCut()

bool CFWL_ComboBox::EditCanCut ( ) const
inline

Definition at line 69 of file cfwl_combobox.h.

References EditCanCopy().

+ Here is the call graph for this function:

◆ EditCanRedo()

bool CFWL_ComboBox::EditCanRedo ( ) const
inline

Definition at line 65 of file cfwl_combobox.h.

◆ EditCanSelectAll()

bool CFWL_ComboBox::EditCanSelectAll ( ) const
inline

Definition at line 74 of file cfwl_combobox.h.

◆ EditCanUndo()

bool CFWL_ComboBox::EditCanUndo ( ) const
inline

Definition at line 64 of file cfwl_combobox.h.

◆ EditCopy()

absl::optional< WideString > CFWL_ComboBox::EditCopy ( ) const
inline

Definition at line 75 of file cfwl_combobox.h.

◆ EditCut()

absl::optional< WideString > CFWL_ComboBox::EditCut ( )
inline

Definition at line 76 of file cfwl_combobox.h.

◆ EditDelete()

void CFWL_ComboBox::EditDelete ( )
inline

Definition at line 79 of file cfwl_combobox.h.

◆ EditDeSelect()

void CFWL_ComboBox::EditDeSelect ( )
inline

Definition at line 80 of file cfwl_combobox.h.

◆ EditModifyStyleExts()

void CFWL_ComboBox::EditModifyStyleExts ( uint32_t dwStyleExtsAdded,
uint32_t dwStyleExtsRemoved )

Definition at line 194 of file cfwl_combobox.cpp.

◆ EditPaste()

bool CFWL_ComboBox::EditPaste ( const WideString & wsPaste)
inline

Definition at line 77 of file cfwl_combobox.h.

◆ EditRedo()

bool CFWL_ComboBox::EditRedo ( )
inline

Definition at line 67 of file cfwl_combobox.h.

◆ EditSelectAll()

void CFWL_ComboBox::EditSelectAll ( )
inline

Definition at line 78 of file cfwl_combobox.h.

◆ EditUndo()

bool CFWL_ComboBox::EditUndo ( )
inline

Definition at line 66 of file cfwl_combobox.h.

◆ GetBBox()

CFX_RectF CFWL_ComboBox::GetBBox ( ) const

Definition at line 183 of file cfwl_combobox.cpp.

References CFX_RectF::left, CFWL_Widget::m_WidgetRect, CFX_RectF::Offset(), CFX_RectF::top, and CFX_RectF::Union().

+ Here is the call graph for this function:

◆ GetClassID()

FWL_Type CFWL_ComboBox::GetClassID ( ) const
overridevirtual

Implements CFWL_Widget.

Definition at line 50 of file cfwl_combobox.cpp.

References ComboBox.

◆ GetComboEdit()

CFWL_ComboEdit * CFWL_ComboBox::GetComboEdit ( ) const
inline

Definition at line 88 of file cfwl_combobox.h.

◆ GetCurrentSelection()

int32_t CFWL_ComboBox::GetCurrentSelection ( ) const
inline

Definition at line 91 of file cfwl_combobox.h.

◆ GetCurSel()

int32_t CFWL_ComboBox::GetCurSel ( ) const
inline

Definition at line 54 of file cfwl_combobox.h.

◆ GetEditText()

WideString CFWL_ComboBox::GetEditText ( ) const

Definition at line 173 of file cfwl_combobox.cpp.

References fxcrt::WideString::WideString(), and CFWL_ListBox::Item::GetText().

+ Here is the call graph for this function:

◆ GetTextByIndex()

WideString CFWL_ComboBox::GetTextByIndex ( int32_t iIndex) const

Definition at line 129 of file cfwl_combobox.cpp.

References fxcrt::WideString::WideString(), and CFWL_ListBox::Item::GetText().

+ Here is the call graph for this function:

◆ HideDropDownList()

void CFWL_ComboBox::HideDropDownList ( )

Definition at line 235 of file cfwl_combobox.cpp.

◆ HitTest()

FWL_WidgetHit CFWL_ComboBox::HitTest ( const CFX_PointF & point)
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 89 of file cfwl_combobox.cpp.

References CFX_RectF::CFX_RectF(), Client, CFX_RectF::Contains(), Edit, CFX_RectF::height, CFWL_Widget::m_WidgetRect, Unknown, and CFX_RectF::width.

+ Here is the call graph for this function:

◆ ModifyStyleExts()

void CFWL_ComboBox::ModifyStyleExts ( uint32_t dwStyleExtsAdded,
uint32_t dwStyleExtsRemoved )
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 66 of file cfwl_combobox.cpp.

References CFWL_Widget::Properties::m_dwStyleExts, CFWL_Widget::m_Properties, and CFWL_Widget::ModifyStyleExts().

+ Here is the call graph for this function:

◆ OnDrawWidget()

void CFWL_ComboBox::OnDrawWidget ( CFGAS_GEGraphics * pGraphics,
const CFX_Matrix & matrix )
overridevirtual

Implements IFWL_WidgetDelegate.

Definition at line 442 of file cfwl_combobox.cpp.

References DrawWidget().

+ Here is the call graph for this function:

◆ OnProcessEvent()

void CFWL_ComboBox::OnProcessEvent ( CFWL_Event * pEvent)
overridevirtual

Implements IFWL_WidgetDelegate.

Definition at line 429 of file cfwl_combobox.cpp.

References CFWL_Widget::DispatchEvent(), CFWL_Event::EditChanged, CFWL_EventScroll::GetPos(), CFWL_EventScroll::GetScrollCode(), CFWL_Event::GetType(), CFWL_Event::Scroll, and CFWL_Event::TextWillChange.

+ Here is the call graph for this function:

◆ OnProcessMessage()

◆ ProcessSelChanged()

void CFWL_ComboBox::ProcessSelChanged ( bool bLButtonUp)

Definition at line 357 of file cfwl_combobox.cpp.

References CFWL_Widget::DispatchEvent(), and CFWL_Widget::RepaintRect().

+ Here is the call graph for this function:

◆ RemoveAll()

void CFWL_ComboBox::RemoveAll ( )

Definition at line 62 of file cfwl_combobox.cpp.

◆ RemoveAt()

void CFWL_ComboBox::RemoveAt ( int32_t iIndex)

Definition at line 58 of file cfwl_combobox.cpp.

◆ RemoveStates()

void CFWL_ComboBox::RemoveStates ( uint32_t dwStates)
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 157 of file cfwl_combobox.cpp.

References CFWL_Widget::RemoveStates().

+ Here is the call graph for this function:

◆ SetCurSel()

void CFWL_ComboBox::SetCurSel ( int32_t iSel)

Definition at line 134 of file cfwl_combobox.cpp.

Referenced by CXFA_FFComboBox::LoadWidget().

+ Here is the caller graph for this function:

◆ SetEditText()

void CFWL_ComboBox::SetEditText ( const WideString & wsText)

Definition at line 165 of file cfwl_combobox.cpp.

◆ SetStates()

void CFWL_ComboBox::SetStates ( uint32_t dwStates)
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 149 of file cfwl_combobox.cpp.

References CFWL_Widget::SetStates().

+ Here is the call graph for this function:

◆ ShowDropDownList()

void CFWL_ComboBox::ShowDropDownList ( )

◆ Trace()

void CFWL_ComboBox::Trace ( cppgc::Visitor * visitor) const
override

Definition at line 44 of file cfwl_combobox.cpp.

◆ Update()

void CFWL_ComboBox::Update ( )
overridevirtual

Implements CFWL_Widget.

Definition at line 80 of file cfwl_combobox.cpp.

References CFWL_Widget::IsLocked().

+ Here is the call graph for this function:

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CFWL_ComboBox::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 34 of file cfwl_combobox.h.


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