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_Edit Class Reference

#include <cfwl_edit.h>

+ Inheritance diagram for CFWL_Edit:
+ Collaboration diagram for CFWL_Edit:

Public Member Functions

 ~CFWL_Edit () override
 
void PreFinalize () override
 
void Trace (cppgc::Visitor *visitor) const override
 
FWL_Type GetClassID () const override
 
CFX_RectF GetAutosizedWidgetRect () override
 
CFX_RectF GetWidgetRect () override
 
void Update () override
 
FWL_WidgetHit HitTest (const CFX_PointF &point) override
 
void SetStates (uint32_t dwStates) 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
 
virtual void SetText (const WideString &wsText)
 
virtual void SetTextSkipNotify (const WideString &wsText)
 
size_t GetTextLength () const
 
WideString GetText () const
 
void ClearText ()
 
void SelectAll ()
 
void ClearSelection ()
 
bool HasSelection () const
 
std::pair< size_t, size_t > GetSelection () const
 
int32_t GetLimit () const
 
void SetLimit (int32_t nLimit)
 
void SetAliasChar (wchar_t wAlias)
 
absl::optional< WideStringCopy ()
 
absl::optional< WideStringCut ()
 
bool Paste (const WideString &wsPaste)
 
bool Undo ()
 
bool Redo ()
 
bool CanUndo ()
 
bool CanRedo ()
 
void NotifyTextFull () override
 
void OnCaretChanged () override
 
void OnTextWillChange (CFDE_TextEditEngine::TextChange *change) override
 
void OnTextChanged () override
 
void OnSelChanged () override
 
bool OnValidate (const WideString &wsText) override
 
void SetScrollOffset (float fScrollOffset) override
 
- Public Member Functions inherited from CFWL_Widget
 ~CFWL_Widget () override
 
void Trace (cppgc::Visitor *visitor) const override
 
virtual bool IsForm () const
 
virtual CFX_RectF GetClientRect ()
 
virtual void ModifyStyleExts (uint32_t dwStyleExtsAdded, uint32_t dwStyleExtsRemoved)
 
virtual void RemoveStates (uint32_t dwStates)
 
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 Member Functions inherited from CFDE_TextEditEngine::Delegate
virtual ~Delegate ()=default
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 
- Public Attributes inherited from CFWL_Widget
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Protected Member Functions

 CFWL_Edit (CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
 
void ShowCaret (CFX_RectF *pRect)
 
void HideCaret (CFX_RectF *pRect)
 
const CFX_RectFGetRTClient () const
 
CFDE_TextEditEngineGetTxtEdtEngine ()
 
- 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)
 

Additional Inherited Members

- Protected Attributes inherited from CFWL_Widget
Properties m_Properties
 
CFX_RectF m_WidgetRect
 

Detailed Description

Definition at line 46 of file cfwl_edit.h.

Constructor & Destructor Documentation

◆ ~CFWL_Edit()

CFWL_Edit::~CFWL_Edit ( )
overridedefault

◆ CFWL_Edit()

CFWL_Edit::CFWL_Edit ( CFWL_App * app,
const Properties & properties,
CFWL_Widget * pOuter )
protected

Definition at line 50 of file cfwl_edit.cpp.

References CFWL_Edit(), and CFWL_Widget::CFWL_Widget().

Referenced by CFWL_Edit().

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

Member Function Documentation

◆ CanRedo()

bool CFWL_Edit::CanRedo ( )

Definition at line 244 of file cfwl_edit.cpp.

◆ CanUndo()

bool CFWL_Edit::CanUndo ( )

Definition at line 240 of file cfwl_edit.cpp.

◆ ClearSelection()

void CFWL_Edit::ClearSelection ( )

Definition at line 184 of file cfwl_edit.cpp.

Referenced by CFWL_ComboEdit::ClearSelected().

+ Here is the caller graph for this function:

◆ ClearText()

void CFWL_Edit::ClearText ( )

Definition at line 168 of file cfwl_edit.cpp.

◆ Copy()

absl::optional< WideString > CFWL_Edit::Copy ( )

Definition at line 207 of file cfwl_edit.cpp.

◆ Cut()

absl::optional< WideString > CFWL_Edit::Cut ( )

Definition at line 214 of file cfwl_edit.cpp.

◆ DrawWidget()

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

Implements CFWL_Widget.

Definition at line 135 of file cfwl_edit.cpp.

References CFWL_Widget::DrawBorder(), CFWL_Widget::HasBorder(), CFX_RectF::IsEmpty(), and CFWL_ThemePart::kBorder.

Referenced by CFWL_Barcode::DrawWidget(), and OnDrawWidget().

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

◆ GetAutosizedWidgetRect()

CFX_RectF CFWL_Edit::GetAutosizedWidgetRect ( )
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 89 of file cfwl_edit.cpp.

References CFWL_Widget::InflateWidgetRect(), and CFX_RectF::operator=().

+ Here is the call graph for this function:

◆ GetClassID()

FWL_Type CFWL_Edit::GetClassID ( ) const
overridevirtual

Implements CFWL_Widget.

Definition at line 73 of file cfwl_edit.cpp.

References Edit.

◆ GetLimit()

int32_t CFWL_Edit::GetLimit ( ) const

Definition at line 188 of file cfwl_edit.cpp.

Referenced by CXFA_FFTextEdit::UpdateFWLData().

+ Here is the caller graph for this function:

◆ GetRTClient()

const CFX_RectF & CFWL_Edit::GetRTClient ( ) const
inlineprotected

Definition at line 105 of file cfwl_edit.h.

Referenced by CFWL_ComboEdit::ClearSelected(), and CFWL_Barcode::DrawWidget().

+ Here is the caller graph for this function:

◆ GetSelection()

std::pair< size_t, size_t > CFWL_Edit::GetSelection ( ) const

Definition at line 180 of file cfwl_edit.cpp.

◆ GetText()

WideString CFWL_Edit::GetText ( ) const

Definition at line 164 of file cfwl_edit.cpp.

Referenced by CXFA_FFTextEdit::UpdateFWLData().

+ Here is the caller graph for this function:

◆ GetTextLength()

size_t CFWL_Edit::GetTextLength ( ) const

Definition at line 160 of file cfwl_edit.cpp.

◆ GetTxtEdtEngine()

CFDE_TextEditEngine * CFWL_Edit::GetTxtEdtEngine ( )
inlineprotected

Definition at line 106 of file cfwl_edit.h.

◆ GetWidgetRect()

CFX_RectF CFWL_Edit::GetWidgetRect ( )
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 77 of file cfwl_edit.cpp.

References CFWL_Widget::GetThemeProvider(), CFWL_Widget::Properties::m_dwStyleExts, CFWL_Widget::m_Properties, CFWL_Widget::m_WidgetRect, and CFX_RectF::width.

+ Here is the call graph for this function:

◆ HasSelection()

bool CFWL_Edit::HasSelection ( ) const

Definition at line 176 of file cfwl_edit.cpp.

◆ HideCaret()

void CFWL_Edit::HideCaret ( CFX_RectF * pRect)
protected

Definition at line 727 of file cfwl_edit.cpp.

References CFWL_Widget::AdapterIface::DisplayCaret(), CFWL_Widget::GetAdapterIface(), CFWL_Widget::GetOuter(), and CFWL_Widget::RepaintRect().

Referenced by PreFinalize(), and SetStates().

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

◆ HitTest()

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

Reimplemented from CFWL_Widget.

Definition at line 123 of file cfwl_edit.cpp.

References CFX_RectF::Contains(), Edit, CFWL_Widget::Properties::m_dwStyleExts, CFWL_Widget::m_Properties, Unknown, and VScrollBar.

+ Here is the call graph for this function:

◆ NotifyTextFull()

void CFWL_Edit::NotifyTextFull ( )
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 248 of file cfwl_edit.cpp.

References CFWL_Widget::DispatchEvent(), and CFWL_Event::TextFull.

+ Here is the call graph for this function:

◆ OnCaretChanged()

void CFWL_Edit::OnCaretChanged ( )
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 253 of file cfwl_edit.cpp.

References CFWL_Widget::GetWidgetRect(), CFX_RectF::IsEmpty(), CFWL_Widget::Properties::m_dwStates, CFWL_Widget::Properties::m_dwStyleExts, CFWL_Widget::m_Properties, CFWL_Widget::RepaintRect(), and CFX_RectF::Union().

+ Here is the call graph for this function:

◆ OnDrawWidget()

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

Implements IFWL_WidgetDelegate.

Definition at line 844 of file cfwl_edit.cpp.

References DrawWidget().

+ Here is the call graph for this function:

◆ OnProcessEvent()

void CFWL_Edit::OnProcessEvent ( CFWL_Event * pEvent)
overridevirtual

Implements IFWL_WidgetDelegate.

Definition at line 832 of file cfwl_edit.cpp.

References CFWL_EventScroll::GetPos(), CFWL_EventScroll::GetScrollCode(), CFWL_Event::GetSrcTarget(), CFWL_Event::GetType(), and CFWL_Event::Scroll.

Referenced by CFWL_Barcode::OnProcessEvent().

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

◆ OnProcessMessage()

void CFWL_Edit::OnProcessMessage ( CFWL_Message * pMessage)
overridevirtual

Implements IFWL_WidgetDelegate.

Definition at line 785 of file cfwl_edit.cpp.

References CFWL_Message::GetDstTarget(), CFWL_Message::GetType(), CFWL_MessageKey::kChar, CFWL_Message::kKey, CFWL_MessageKey::kKeyDown, CFWL_Message::kKillFocus, CFWL_MessageMouse::kLeftButtonDblClk, CFWL_MessageMouse::kLeftButtonDown, CFWL_MessageMouse::kLeftButtonUp, CFWL_Message::kMouse, CFWL_MessageMouse::kMove, CFWL_MessageMouse::kRightButtonDown, CFWL_Message::kSetFocus, CFWL_MessageKey::m_dwCmd, CFWL_MessageMouse::m_dwCmd, and CFWL_Widget::OnProcessMessage().

Referenced by CFWL_ComboEdit::OnProcessMessage(), and CFWL_DateTimeEdit::OnProcessMessage().

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

◆ OnSelChanged()

void CFWL_Edit::OnSelChanged ( )
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 297 of file cfwl_edit.cpp.

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

+ Here is the call graph for this function:

◆ OnTextChanged()

void CFWL_Edit::OnTextChanged ( )
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 289 of file cfwl_edit.cpp.

References CFWL_Widget::GetClientRect(), CFWL_Widget::Properties::m_dwStyleExts, CFWL_Widget::m_Properties, and CFWL_Widget::RepaintRect().

+ Here is the call graph for this function:

◆ OnTextWillChange()

void CFWL_Edit::OnTextWillChange ( CFDE_TextEditEngine::TextChange * change)
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 277 of file cfwl_edit.cpp.

References CFDE_TextEditEngine::TextChange::cancelled, CFWL_Widget::DispatchEvent(), CFWL_EventTextWillChange::GetCancelled(), and CFWL_EventTextWillChange::GetChangeText().

+ Here is the call graph for this function:

◆ OnValidate()

bool CFWL_Edit::OnValidate ( const WideString & wsText)
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 301 of file cfwl_edit.cpp.

References CFWL_Widget::DispatchEvent(), and CFWL_EventValidate::GetValidate().

+ Here is the call graph for this function:

◆ Paste()

bool CFWL_Edit::Paste ( const WideString & wsPaste)

Definition at line 223 of file cfwl_edit.cpp.

◆ PreFinalize()

void CFWL_Edit::PreFinalize ( )
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 60 of file cfwl_edit.cpp.

References HideCaret(), CFWL_Widget::Properties::m_dwStates, CFWL_Widget::m_Properties, and CFWL_Widget::PreFinalize().

+ Here is the call graph for this function:

◆ Redo()

bool CFWL_Edit::Redo ( )

Definition at line 236 of file cfwl_edit.cpp.

◆ SelectAll()

void CFWL_Edit::SelectAll ( )

Definition at line 172 of file cfwl_edit.cpp.

Referenced by CFWL_ComboEdit::SetSelected().

+ Here is the caller graph for this function:

◆ SetAliasChar()

void CFWL_Edit::SetAliasChar ( wchar_t wAlias)

Definition at line 203 of file cfwl_edit.cpp.

Referenced by CXFA_FFPasswordEdit::UpdateWidgetProperty().

+ Here is the caller graph for this function:

◆ SetLimit()

void CFWL_Edit::SetLimit ( int32_t nLimit)

Definition at line 192 of file cfwl_edit.cpp.

Referenced by CFWL_Barcode::SetDataLength(), CXFA_FFTextEdit::UpdateFWLData(), and CXFA_FFTextEdit::UpdateWidgetProperty().

+ Here is the caller graph for this function:

◆ SetScrollOffset()

void CFWL_Edit::SetScrollOffset ( float fScrollOffset)
overridevirtual

Implements CFDE_TextEditEngine::Delegate.

Definition at line 307 of file cfwl_edit.cpp.

Referenced by CXFA_FFField::SetEditScrollOffset().

+ Here is the caller graph for this function:

◆ SetStates()

void CFWL_Edit::SetStates ( uint32_t dwStates)
overridevirtual

Reimplemented from CFWL_Widget.

Definition at line 101 of file cfwl_edit.cpp.

References HideCaret(), CFWL_Widget::Properties::m_dwStates, CFWL_Widget::m_Properties, and CFWL_Widget::SetStates().

+ Here is the call graph for this function:

◆ SetText()

void CFWL_Edit::SetText ( const WideString & wsText)
virtual

Reimplemented in CFWL_Barcode.

Definition at line 148 of file cfwl_edit.cpp.

Referenced by CFWL_Barcode::SetText().

+ Here is the caller graph for this function:

◆ SetTextSkipNotify()

void CFWL_Edit::SetTextSkipNotify ( const WideString & wsText)
virtual

Reimplemented in CFWL_Barcode.

Definition at line 154 of file cfwl_edit.cpp.

Referenced by CFWL_Barcode::SetTextSkipNotify(), and CXFA_FFTextEdit::UpdateFWLData().

+ Here is the caller graph for this function:

◆ ShowCaret()

void CFWL_Edit::ShowCaret ( CFX_RectF * pRect)
protected

Definition at line 702 of file cfwl_edit.cpp.

References CFWL_Widget::AdapterIface::DisplayCaret(), CFWL_Widget::GetAdapterIface(), CFWL_Widget::GetOuter(), CFWL_Widget::AdapterIface::GetRotateMatrix(), CFWL_Widget::GetWidgetRect(), CFX_RectF::left, CFWL_Widget::m_WidgetRect, CFX_RectF::Offset(), CFWL_Widget::RepaintRect(), CFX_RectF::top, and CFX_Matrix::TransformRect().

+ Here is the call graph for this function:

◆ Trace()

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

Definition at line 67 of file cfwl_edit.cpp.

◆ Undo()

bool CFWL_Edit::Undo ( )

Definition at line 232 of file cfwl_edit.cpp.

◆ Update()

void CFWL_Edit::Update ( )
overridevirtual

Implements CFWL_Widget.

Definition at line 109 of file cfwl_edit.cpp.

References CFX_RectF::IsEmpty(), and CFWL_Widget::IsLocked().

Referenced by CFWL_Barcode::Update().

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

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CFWL_Edit::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 48 of file cfwl_edit.h.


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