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_edit.h>
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< WideString > | Copy () |
absl::optional< WideString > | Cut () |
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_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 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_RectF & | GetRTClient () const |
CFDE_TextEditEngine * | GetTxtEdtEngine () |
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 |
Definition at line 46 of file cfwl_edit.h.
|
overridedefault |
|
protected |
Definition at line 50 of file cfwl_edit.cpp.
References CFWL_Edit(), and CFWL_Widget::CFWL_Widget().
Referenced by CFWL_Edit().
bool CFWL_Edit::CanRedo | ( | ) |
Definition at line 244 of file cfwl_edit.cpp.
bool CFWL_Edit::CanUndo | ( | ) |
Definition at line 240 of file cfwl_edit.cpp.
void CFWL_Edit::ClearSelection | ( | ) |
Definition at line 184 of file cfwl_edit.cpp.
Referenced by CFWL_ComboEdit::ClearSelected().
void CFWL_Edit::ClearText | ( | ) |
Definition at line 168 of file cfwl_edit.cpp.
absl::optional< WideString > CFWL_Edit::Copy | ( | ) |
Definition at line 207 of file cfwl_edit.cpp.
absl::optional< WideString > CFWL_Edit::Cut | ( | ) |
Definition at line 214 of file cfwl_edit.cpp.
|
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().
|
overridevirtual |
Reimplemented from CFWL_Widget.
Definition at line 89 of file cfwl_edit.cpp.
References CFWL_Widget::InflateWidgetRect(), and CFX_RectF::operator=().
|
overridevirtual |
int32_t CFWL_Edit::GetLimit | ( | ) | const |
Definition at line 188 of file cfwl_edit.cpp.
Referenced by CXFA_FFTextEdit::UpdateFWLData().
|
inlineprotected |
Definition at line 105 of file cfwl_edit.h.
Referenced by CFWL_ComboEdit::ClearSelected(), and CFWL_Barcode::DrawWidget().
std::pair< size_t, size_t > CFWL_Edit::GetSelection | ( | ) | const |
Definition at line 180 of file cfwl_edit.cpp.
WideString CFWL_Edit::GetText | ( | ) | const |
Definition at line 164 of file cfwl_edit.cpp.
Referenced by CXFA_FFTextEdit::UpdateFWLData().
size_t CFWL_Edit::GetTextLength | ( | ) | const |
Definition at line 160 of file cfwl_edit.cpp.
|
inlineprotected |
Definition at line 106 of file cfwl_edit.h.
|
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.
bool CFWL_Edit::HasSelection | ( | ) | const |
Definition at line 176 of file cfwl_edit.cpp.
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().
|
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.
|
overridevirtual |
Implements CFDE_TextEditEngine::Delegate.
Definition at line 248 of file cfwl_edit.cpp.
References CFWL_Widget::DispatchEvent(), and CFWL_Event::TextFull.
|
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().
|
overridevirtual |
Implements IFWL_WidgetDelegate.
Definition at line 844 of file cfwl_edit.cpp.
References DrawWidget().
|
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().
|
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().
|
overridevirtual |
Implements CFDE_TextEditEngine::Delegate.
Definition at line 297 of file cfwl_edit.cpp.
References CFWL_Widget::GetClientRect(), and CFWL_Widget::RepaintRect().
|
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().
|
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().
|
overridevirtual |
Implements CFDE_TextEditEngine::Delegate.
Definition at line 301 of file cfwl_edit.cpp.
References CFWL_Widget::DispatchEvent(), and CFWL_EventValidate::GetValidate().
bool CFWL_Edit::Paste | ( | const WideString & | wsPaste | ) |
Definition at line 223 of file cfwl_edit.cpp.
|
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().
bool CFWL_Edit::Redo | ( | ) |
Definition at line 236 of file cfwl_edit.cpp.
void CFWL_Edit::SelectAll | ( | ) |
Definition at line 172 of file cfwl_edit.cpp.
Referenced by CFWL_ComboEdit::SetSelected().
void CFWL_Edit::SetAliasChar | ( | wchar_t | wAlias | ) |
Definition at line 203 of file cfwl_edit.cpp.
Referenced by CXFA_FFPasswordEdit::UpdateWidgetProperty().
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().
|
overridevirtual |
Implements CFDE_TextEditEngine::Delegate.
Definition at line 307 of file cfwl_edit.cpp.
Referenced by CXFA_FFField::SetEditScrollOffset().
|
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().
|
virtual |
Reimplemented in CFWL_Barcode.
Definition at line 148 of file cfwl_edit.cpp.
Referenced by CFWL_Barcode::SetText().
|
virtual |
Reimplemented in CFWL_Barcode.
Definition at line 154 of file cfwl_edit.cpp.
Referenced by CFWL_Barcode::SetTextSkipNotify(), and CXFA_FFTextEdit::UpdateFWLData().
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().
|
override |
Definition at line 67 of file cfwl_edit.cpp.
bool CFWL_Edit::Undo | ( | ) |
Definition at line 232 of file cfwl_edit.cpp.
|
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().
CFWL_Edit::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED |
Definition at line 48 of file cfwl_edit.h.