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

#include <cfwl_eventtextwillchange.h>

+ Inheritance diagram for CFWL_EventTextWillChange:
+ Collaboration diagram for CFWL_EventTextWillChange:

Public Member Functions

 CFWL_EventTextWillChange (CFWL_Widget *pSrcTarget, const WideString &change_text, const WideString &previous_text, size_t selection_start, size_t selection_end)
 
 ~CFWL_EventTextWillChange () override
 
WideString GetChangeText () const
 
WideString GetPreviousText () const
 
size_t GetSelectionStart () const
 
size_t GetSelectionEnd () const
 
bool GetCancelled () const
 
void SetChangeText (const WideString &change_text)
 
void SetPreviousText (const WideString &previous_text)
 
void SetSelectionStart (size_t selection_start)
 
void SetSelectionEnd (size_t selection_end)
 
void SetCancelled (bool cancelled)
 
- Public Member Functions inherited from CFWL_Event
 CFWL_Event (Type type)
 
 CFWL_Event (Type type, CFWL_Widget *pSrcTarget)
 
 CFWL_Event (Type type, CFWL_Widget *pSrcTarget, CFWL_Widget *pDstTarget)
 
virtual ~CFWL_Event ()
 
Type GetType () const
 
CFWL_WidgetGetSrcTarget () const
 
CFWL_WidgetGetDstTarget () const
 

Protected Attributes

WideString change_text_
 
WideString previous_text_
 
size_t selection_start_
 
size_t selection_end_
 
bool cancelled_ = false
 

Additional Inherited Members

- Public Types inherited from CFWL_Event
enum class  Type {
  CheckStateChanged , Click , Close , EditChanged ,
  Mouse , PostDropDown , PreDropDown , Scroll ,
  SelectChanged , TextWillChange , TextFull , Validate
}
 

Detailed Description

Definition at line 13 of file cfwl_eventtextwillchange.h.

Constructor & Destructor Documentation

◆ CFWL_EventTextWillChange()

CFWL_EventTextWillChange::CFWL_EventTextWillChange ( CFWL_Widget * pSrcTarget,
const WideString & change_text,
const WideString & previous_text,
size_t selection_start,
size_t selection_end )

Definition at line 9 of file cfwl_eventtextwillchange.cpp.

References CFWL_Event::CFWL_Event(), CFWL_EventTextWillChange(), and CFWL_Event::TextWillChange.

Referenced by CFWL_EventTextWillChange().

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

◆ ~CFWL_EventTextWillChange()

CFWL_EventTextWillChange::~CFWL_EventTextWillChange ( )
overridedefault

Member Function Documentation

◆ GetCancelled()

bool CFWL_EventTextWillChange::GetCancelled ( ) const
inline

Definition at line 26 of file cfwl_eventtextwillchange.h.

References cancelled_.

Referenced by CFWL_Edit::OnTextWillChange().

+ Here is the caller graph for this function:

◆ GetChangeText()

WideString CFWL_EventTextWillChange::GetChangeText ( ) const
inline

Definition at line 22 of file cfwl_eventtextwillchange.h.

Referenced by CFWL_Edit::OnTextWillChange(), and CXFA_FFTextEdit::OnTextWillChange().

+ Here is the caller graph for this function:

◆ GetPreviousText()

WideString CFWL_EventTextWillChange::GetPreviousText ( ) const
inline

Definition at line 23 of file cfwl_eventtextwillchange.h.

Referenced by CXFA_FFTextEdit::OnTextWillChange().

+ Here is the caller graph for this function:

◆ GetSelectionEnd()

size_t CFWL_EventTextWillChange::GetSelectionEnd ( ) const
inline

Definition at line 25 of file cfwl_eventtextwillchange.h.

◆ GetSelectionStart()

size_t CFWL_EventTextWillChange::GetSelectionStart ( ) const
inline

Definition at line 24 of file cfwl_eventtextwillchange.h.

◆ SetCancelled()

void CFWL_EventTextWillChange::SetCancelled ( bool cancelled)
inline

Definition at line 38 of file cfwl_eventtextwillchange.h.

References cancelled_.

Referenced by CXFA_FFTextEdit::OnTextWillChange().

+ Here is the caller graph for this function:

◆ SetChangeText()

void CFWL_EventTextWillChange::SetChangeText ( const WideString & change_text)
inline

Definition at line 28 of file cfwl_eventtextwillchange.h.

Referenced by CXFA_FFTextEdit::OnTextWillChange().

+ Here is the caller graph for this function:

◆ SetPreviousText()

void CFWL_EventTextWillChange::SetPreviousText ( const WideString & previous_text)
inline

Definition at line 31 of file cfwl_eventtextwillchange.h.

◆ SetSelectionEnd()

void CFWL_EventTextWillChange::SetSelectionEnd ( size_t selection_end)
inline

Definition at line 37 of file cfwl_eventtextwillchange.h.

◆ SetSelectionStart()

void CFWL_EventTextWillChange::SetSelectionStart ( size_t selection_start)
inline

Definition at line 34 of file cfwl_eventtextwillchange.h.

Member Data Documentation

◆ cancelled_

bool CFWL_EventTextWillChange::cancelled_ = false
protected

Definition at line 45 of file cfwl_eventtextwillchange.h.

Referenced by GetCancelled(), and SetCancelled().

◆ change_text_

WideString CFWL_EventTextWillChange::change_text_
protected

Definition at line 41 of file cfwl_eventtextwillchange.h.

◆ previous_text_

WideString CFWL_EventTextWillChange::previous_text_
protected

Definition at line 42 of file cfwl_eventtextwillchange.h.

◆ selection_end_

size_t CFWL_EventTextWillChange::selection_end_
protected

Definition at line 44 of file cfwl_eventtextwillchange.h.

◆ selection_start_

size_t CFWL_EventTextWillChange::selection_start_
protected

Definition at line 43 of file cfwl_eventtextwillchange.h.


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