Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpwl_edit.h>
Public Member Functions | |
CPWL_Edit (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) | |
~CPWL_Edit () override | |
bool | RepositionChildWnd () override |
CFX_FloatRect | GetClientRect () const override |
void | DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) override |
bool | OnMouseWheel (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point, const CFX_Vector &delta) override |
bool | OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlag) override |
bool | OnChar (uint16_t nChar, Mask< FWL_EVENTFLAG > nFlag) override |
CFX_FloatRect | GetFocusRect () const override |
void | OnSetFocus () override |
void | OnKillFocus () override |
void | OnCreated () override |
void | OnDestroy () override |
bool | OnLButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnLButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnLButtonDblClk (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnRButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnMouseMove (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
void | SetScrollInfo (const PWL_SCROLL_INFO &info) override |
void | SetScrollPosition (float pos) override |
void | ScrollWindowVertically (float pos) override |
void | CreateChildWnd (const CreateParams &cp) override |
void | SetFontSize (float fFontSize) override |
float | GetFontSize () const override |
void | SetCursor () 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 | SetSelection (int32_t nStartChar, int32_t nEndChar) |
std::pair< int32_t, int32_t > | GetSelection () const |
void | ClearSelection () |
CFX_PointF | GetScrollPos () const |
void | SetScrollPos (const CFX_PointF &point) |
void | SetCharSet (FX_Charset nCharSet) |
FX_Charset | GetCharSet () const |
void | SetReadyToInput () |
void | SetAlignFormatVerticalCenter () |
void | SetCharArray (int32_t nCharArray) |
void | SetLimitChar (int32_t nLimitChar) |
bool | CanSelectAll () const |
bool | CanCopy () const |
bool | CanCut () const |
void | CutText () |
void | SetText (const WideString &csText) |
bool | IsTextFull () const |
bool | SetCaret (bool bVisible, const CFX_PointF &ptHead, const CFX_PointF &ptFoot) |
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 | OnRButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) |
virtual void | NotifyLButtonDown (CPWL_Wnd *child, const CFX_PointF &pos) |
virtual void | NotifyLButtonUp (CPWL_Wnd *child, const CFX_PointF &pos) |
virtual void | NotifyMouseMove (CPWL_Wnd *child, const CFX_PointF &pos) |
virtual void | SetFocus () |
virtual void | KillFocus () |
virtual bool | SetVisible (bool bVisible) |
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::PerWindowData * | GetAttachedData () const |
std::unique_ptr< IPWL_FillerNotify::PerWindowData > | CloneAttachedData () 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 | |
Observable & | operator= (const Observable &that)=delete |
~Observable () | |
void | AddObserver (ObserverIface *pObserver) |
void | RemoveObserver (ObserverIface *pObserver) |
void | NotifyObservers () |
Static Public Member Functions | |
static float | GetCharArrayAutoFontSize (const CPDF_Font *pFont, const CFX_FloatRect &rcPlate, int32_t nCharArray) |
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) |
Definition at line 29 of file cpwl_edit.h.
CPWL_Edit::CPWL_Edit | ( | const CreateParams & | cp, |
std::unique_ptr< IPWL_FillerNotify::PerWindowData > | pAttachedData ) |
Definition at line 32 of file cpwl_edit.cpp.
References CPWL_Edit(), CPWL_Wnd::GetCreationParams(), and IPWL_FillerNotify::kVBeam.
Referenced by CPWL_Edit().
|
override |
Definition at line 40 of file cpwl_edit.cpp.
bool CPWL_Edit::CanCopy | ( | ) | const |
Definition at line 96 of file cpwl_edit.cpp.
Referenced by CanCut().
bool CPWL_Edit::CanCut | ( | ) | const |
Definition at line 100 of file cpwl_edit.cpp.
References CanCopy(), and CPWL_Wnd::IsReadOnly().
Referenced by CutText().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 855 of file cpwl_edit.cpp.
bool CPWL_Edit::CanSelectAll | ( | ) | const |
Definition at line 92 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 851 of file cpwl_edit.cpp.
void CPWL_Edit::ClearSelection | ( | ) |
Definition at line 814 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 522 of file cpwl_edit.cpp.
References CPWL_Wnd::IsReadOnly().
void CPWL_Edit::CutText | ( | ) |
Definition at line 104 of file cpwl_edit.cpp.
References CanCut().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 166 of file cpwl_edit.cpp.
References CFX_Path::AppendPoint(), CFX_RenderDevice::DrawPath(), CPWL_Wnd::DrawThisAppearance(), CFX_FillRenderOptions::EvenOddOptions(), CPWL_Wnd::GetBorderColor(), CPWL_Wnd::GetBorderDash(), CPWL_Wnd::GetBorderStyle(), CPWL_Wnd::GetBorderWidth(), GetClientRect(), CPWL_Wnd::HasFlag(), kDash, CFX_Path::Point::kLine, CFX_Path::Point::kMove, kSolid, CFX_FloatRect::left, CFX_GraphStateData::m_DashPhase, CFX_GraphStateData::m_LineWidth, CFX_FloatRect::operator=(), and CFX_FloatRect::right.
|
static |
Definition at line 280 of file cpwl_edit.cpp.
References CPDF_Font::GetFontBBox(), CFX_FloatRect::Height(), FX_RECT::Height(), CPDF_Font::IsStandardFont(), CFX_FloatRect::Width(), and FX_RECT::Width().
Referenced by SetCharArray().
|
inline |
Definition at line 82 of file cpwl_edit.h.
Referenced by OnChar().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 78 of file cpwl_edit.cpp.
References CPWL_Wnd::GetBorderWidth(), CPWL_Wnd::GetInnerBorderWidth(), CPWL_Wnd::GetVScrollBar(), CPWL_Wnd::GetWindowRect(), CPWL_Wnd::IsVisible(), CPWL_ScrollBar::kWidth, and CFX_FloatRect::right.
Referenced by DrawThisAppearance(), RepositionChildWnd(), and SetCharArray().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 325 of file cpwl_edit.cpp.
References CFX_FloatRect::CFX_FloatRect().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 549 of file cpwl_edit.cpp.
Referenced by OnMouseWheel().
CFX_PointF CPWL_Edit::GetScrollPos | ( | ) | const |
Definition at line 823 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 491 of file cpwl_edit.cpp.
std::pair< int32_t, int32_t > CPWL_Edit::GetSelection | ( | ) | const |
Definition at line 810 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::GetActionData(), OnChar(), and OnKeyDown().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 802 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::GetActionData(), and CFFL_TextField::GetActionData().
bool CPWL_Edit::IsTextFull | ( | ) | const |
Definition at line 276 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::GetActionData(), and CFFL_TextField::GetActionData().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 406 of file cpwl_edit.cpp.
References IPVT_FontMap::CharSetFromUnicode(), IPWL_FillerNotify::BeforeKeystrokeResult::exit, CPWL_Wnd::GetAttachedData(), GetCharSet(), CPWL_Wnd::GetFillerNotify(), CPWL_Wnd::GetFontMap(), GetSelection(), CPWL_Wnd::IsCTRLKeyDown(), pdfium::ascii::kBackspace, kDefault, pdfium::ascii::kReturn, fxcrt::WideString::operator+=(), IPWL_FillerNotify::BeforeKeystrokeResult::rc, and SetCharSet().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 110 of file cpwl_edit.cpp.
References CPWL_Wnd::GetCreationParams(), CPWL_Wnd::GetVScrollBar(), CPWL_Wnd::GetWindowRect(), CPWL_Wnd::RemoveFlag(), SetFontSize(), and CPWL_Wnd::SetTransparency().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 474 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 334 of file cpwl_edit.cpp.
References IPWL_FillerNotify::BeforeKeystrokeResult::exit, FWL_VKEY_Delete, CPWL_Wnd::GetAttachedData(), CPWL_Wnd::GetFillerNotify(), GetSelection(), and IPWL_FillerNotify::BeforeKeystrokeResult::rc.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 237 of file cpwl_edit.cpp.
References CPWL_Wnd::GetVScrollBar(), CPWL_Wnd::IsVisible(), kANSI, CPWL_Wnd::Move(), SetCaret(), SetCharSet(), and CPWL_Wnd::SetVisible().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 723 of file cpwl_edit.cpp.
References CPWL_Wnd::OnLButtonDblClk().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 694 of file cpwl_edit.cpp.
References CPWL_Wnd::ClientHitTest(), CPWL_Wnd::HasFlag(), CPWL_Wnd::InvalidateRect(), CPWL_Wnd::OnLButtonDown(), and CPWL_Wnd::SetCapture().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 709 of file cpwl_edit.cpp.
References CPWL_Wnd::ClientHitTest(), CPWL_Wnd::IsFocused(), CPWL_Wnd::OnLButtonUp(), CPWL_Wnd::ReleaseCapture(), and CPWL_Wnd::SetFocus().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 745 of file cpwl_edit.cpp.
References CPWL_Wnd::OnMouseMove().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 459 of file cpwl_edit.cpp.
References GetFontSize(), CPWL_Wnd::HasFlag(), and SetScrollPos().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 732 of file cpwl_edit.cpp.
References CPWL_Wnd::ClientHitTest(), CPWL_Wnd::HasFlag(), CPWL_Wnd::OnRButtonUp(), and CPWL_Wnd::SetFocus().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 220 of file cpwl_edit.cpp.
References CPWL_Wnd::GetProvider(), CPWL_Wnd::IsReadOnly(), and CPWL_Wnd::ProviderIface::OnSetFocusForEdit().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 863 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 495 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 499 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::SetActionData(), and CFFL_TextField::SetActionData().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 49 of file cpwl_edit.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, GetClientRect(), CPWL_Wnd::GetVScrollBar(), CFX_FloatRect::Inflate(), CFX_FloatRect::IsEmpty(), CPWL_ScrollBar::kWidth, CPWL_Wnd::Move(), CFX_FloatRect::Normalize(), CFX_FloatRect::right, and CFX_FloatRect::top.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 518 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 503 of file cpwl_edit.cpp.
void CPWL_Edit::SetAlignFormatVerticalCenter | ( | ) |
Definition at line 87 of file cpwl_edit.cpp.
bool CPWL_Edit::SetCaret | ( | bool | bVisible, |
const CFX_PointF & | ptHead, | ||
const CFX_PointF & | ptFoot ) |
Definition at line 784 of file cpwl_edit.cpp.
Referenced by OnKillFocus().
void CPWL_Edit::SetCharArray | ( | int32_t | nCharArray | ) |
Definition at line 295 of file cpwl_edit.cpp.
References GetCharArrayAutoFontSize(), GetClientRect(), CPWL_Wnd::GetFontMap(), IPVT_FontMap::GetPDFFont(), and CPWL_Wnd::HasFlag().
|
inline |
Definition at line 81 of file cpwl_edit.h.
Referenced by OnChar(), OnKillFocus(), CFFL_ComboBox::OnSetFocusForEdit(), and CFFL_TextField::OnSetFocusForEdit().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 483 of file cpwl_edit.cpp.
References CPWL_Wnd::GetFillerNotify(), CPWL_Wnd::IsValid(), IPWL_FillerNotify::kHBeam, and IPWL_FillerNotify::kVBeam.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 544 of file cpwl_edit.cpp.
Referenced by OnCreated().
void CPWL_Edit::SetLimitChar | ( | int32_t | nLimitChar | ) |
Definition at line 320 of file cpwl_edit.cpp.
void CPWL_Edit::SetReadyToInput | ( | ) |
Definition at line 867 of file cpwl_edit.cpp.
References CPWL_Wnd::ReleaseCapture().
Referenced by CFFL_ComboBox::OnSetFocusForEdit(), and CFFL_TextField::OnSetFocusForEdit().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 508 of file cpwl_edit.cpp.
References CPWL_Wnd::GetVScrollBar(), and CPWL_Wnd::SetScrollInfo().
void CPWL_Edit::SetScrollPos | ( | const CFX_PointF & | point | ) |
Definition at line 819 of file cpwl_edit.cpp.
Referenced by OnMouseWheel().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 513 of file cpwl_edit.cpp.
References CPWL_Wnd::GetVScrollBar(), and CPWL_Wnd::SetScrollPosition().
void CPWL_Edit::SetSelection | ( | int32_t | nStartChar, |
int32_t | nEndChar ) |
Definition at line 806 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::SetActionData(), and CFFL_TextField::SetActionData().
void CPWL_Edit::SetText | ( | const WideString & | csText | ) |
Definition at line 44 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 859 of file cpwl_edit.cpp.