Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfwl_combobox.h>
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< WideString > | EditCopy () const |
absl::optional< WideString > | EditCut () |
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_ComboEdit * | GetComboEdit () 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_WidgetMgr * | GetWidgetMgr () const |
CFWL_Widget * | GetOuter () const |
CFWL_Widget * | GetOutmost () 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_ThemeProvider * | GetThemeProvider () const |
void | SetDelegate (IFWL_WidgetDelegate *delegate) |
IFWL_WidgetDelegate * | GetDelegate () |
const IFWL_WidgetDelegate * | GetDelegate () const |
CFWL_App * | GetFWLApp () const |
uint64_t | GetEventKey () const |
void | SetEventKey (uint64_t key) |
AdapterIface * | GetAdapterIface () 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 |
Definition at line 32 of file cfwl_combobox.h.
|
overridedefault |
void CFWL_ComboBox::AddString | ( | const WideString & | wsText | ) |
Definition at line 54 of file cfwl_combobox.cpp.
|
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().
|
inline |
Definition at line 68 of file cfwl_combobox.h.
Referenced by EditCanCut().
|
inline |
Definition at line 69 of file cfwl_combobox.h.
References EditCanCopy().
|
inline |
Definition at line 65 of file cfwl_combobox.h.
|
inline |
Definition at line 74 of file cfwl_combobox.h.
|
inline |
Definition at line 64 of file cfwl_combobox.h.
|
inline |
Definition at line 75 of file cfwl_combobox.h.
|
inline |
Definition at line 76 of file cfwl_combobox.h.
|
inline |
Definition at line 79 of file cfwl_combobox.h.
|
inline |
Definition at line 80 of file cfwl_combobox.h.
void CFWL_ComboBox::EditModifyStyleExts | ( | uint32_t | dwStyleExtsAdded, |
uint32_t | dwStyleExtsRemoved ) |
Definition at line 194 of file cfwl_combobox.cpp.
|
inline |
Definition at line 77 of file cfwl_combobox.h.
|
inline |
Definition at line 67 of file cfwl_combobox.h.
|
inline |
Definition at line 78 of file cfwl_combobox.h.
|
inline |
Definition at line 66 of file cfwl_combobox.h.
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().
|
overridevirtual |
|
inline |
Definition at line 88 of file cfwl_combobox.h.
|
inline |
Definition at line 91 of file cfwl_combobox.h.
|
inline |
Definition at line 54 of file cfwl_combobox.h.
WideString CFWL_ComboBox::GetEditText | ( | ) | const |
Definition at line 173 of file cfwl_combobox.cpp.
References fxcrt::WideString::WideString(), and CFWL_ListBox::Item::GetText().
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().
void CFWL_ComboBox::HideDropDownList | ( | ) |
Definition at line 235 of file cfwl_combobox.cpp.
|
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.
|
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().
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 442 of file cfwl_combobox.cpp.
References DrawWidget().
|
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.
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 376 of file cfwl_combobox.cpp.
References CFWL_Message::GetDstTarget(), CFWL_Message::GetType(), CFWL_Message::kKey, CFWL_MessageKey::kKeyDown, CFWL_Message::kKillFocus, CFWL_MessageMouse::kLeftButtonDown, CFWL_MessageMouse::kLeftButtonUp, CFWL_Message::kMouse, CFWL_Message::kSetFocus, CFWL_MessageKey::m_dwCmd, CFWL_MessageMouse::m_dwCmd, CFWL_MessageKey::m_dwKeyCodeOrChar, CFWL_Widget::OnProcessMessage(), XFA_FWL_VKEY_Down, XFA_FWL_VKEY_Escape, XFA_FWL_VKEY_Return, and XFA_FWL_VKEY_Up.
void CFWL_ComboBox::ProcessSelChanged | ( | bool | bLButtonUp | ) |
Definition at line 357 of file cfwl_combobox.cpp.
References CFWL_Widget::DispatchEvent(), and CFWL_Widget::RepaintRect().
void CFWL_ComboBox::RemoveAll | ( | ) |
Definition at line 62 of file cfwl_combobox.cpp.
void CFWL_ComboBox::RemoveAt | ( | int32_t | iIndex | ) |
Definition at line 58 of file cfwl_combobox.cpp.
|
overridevirtual |
Reimplemented from CFWL_Widget.
Definition at line 157 of file cfwl_combobox.cpp.
References CFWL_Widget::RemoveStates().
void CFWL_ComboBox::SetCurSel | ( | int32_t | iSel | ) |
Definition at line 134 of file cfwl_combobox.cpp.
Referenced by CXFA_FFComboBox::LoadWidget().
void CFWL_ComboBox::SetEditText | ( | const WideString & | wsText | ) |
Definition at line 165 of file cfwl_combobox.cpp.
|
overridevirtual |
Reimplemented from CFWL_Widget.
Definition at line 149 of file cfwl_combobox.cpp.
References CFWL_Widget::SetStates().
void CFWL_ComboBox::ShowDropDownList | ( | ) |
Definition at line 200 of file cfwl_combobox.cpp.
References CFX_RectF::CFX_RectF(), CFWL_ListBox::CalcItemHeight(), CFWL_ComboList::ChangeSelected(), CFWL_ListBox::CountItems(), CFWL_Widget::DispatchEvent(), CFWL_Widget::GetCXBorderSize(), CFWL_Event::GetSrcTarget(), CFX_RectF::left, CFWL_Widget::m_WidgetRect, CFWL_Event::PostDropDown, CFWL_Event::PreDropDown, and CFX_RectF::width.
|
override |
Definition at line 44 of file cfwl_combobox.cpp.
|
overridevirtual |
Implements CFWL_Widget.
Definition at line 80 of file cfwl_combobox.cpp.
References CFWL_Widget::IsLocked().
CFWL_ComboBox::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED |
Definition at line 34 of file cfwl_combobox.h.