Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
KMultiEdit Class Reference

The KMultiEdit class is used to replace DDX_Control edit data exchange, for multi line edit. More...

#include <kmultiedit.h>

Public Member Functions

bool CanUndo () const
 Call this function to determine if the last edit operation can be undone.
 
void Clear ()
 Call this function to delete (clear) the current selection (if any) in the edit control.
 
void Copy ()
 Call this function to copy the current selection.
 
void Cut ()
 Call this function to delete (cut) the current selection.
 
void GetWindowText (KString &str) const
 Get the text of the line edit.
 
 operator KString () const
 
void Paste ()
 Call this function to insert the data from the Clipboard into the KEdit at the insertion point.
 
void SetReadOnly (bool bReadOnly=true)
 Calls this function to set the read-only state of an edit control.
 
void setWidget (QTextEdit *lineEdit)
 
void SetWindowText (const KString &str)
 Change the text of the line edit.
 
QTextEdit * widget () const
 

Detailed Description

The KMultiEdit class is used to replace DDX_Control edit data exchange, for multi line edit.

This class is the equivalent of CEdit in MFC. It is a proxy for the widget, and can be used to set and get the value. It supports multi line edit (QTextEdit)

See also
https://learn.microsoft.com/en-us/cpp/mfc/reference/cedit-class

Member Function Documentation

◆ CanUndo()

bool KMultiEdit::CanUndo ( ) const

Call this function to determine if the last edit operation can be undone.

◆ Clear()

void KMultiEdit::Clear ( )

Call this function to delete (clear) the current selection (if any) in the edit control.

◆ Copy()

void KMultiEdit::Copy ( )

Call this function to copy the current selection.

◆ Cut()

void KMultiEdit::Cut ( )

Call this function to delete (cut) the current selection.

◆ GetWindowText()

void KMultiEdit::GetWindowText ( KString & str) const

Get the text of the line edit.

◆ operator KString()

KMultiEdit::operator KString ( ) const

Returns the string of the line edit.

◆ Paste()

void KMultiEdit::Paste ( )

Call this function to insert the data from the Clipboard into the KEdit at the insertion point.

◆ SetReadOnly()

void KMultiEdit::SetReadOnly ( bool bReadOnly = true)

Calls this function to set the read-only state of an edit control.

◆ setWidget()

void KMultiEdit::setWidget ( QTextEdit * lineEdit)

Sets the widget the class is proxying.

◆ SetWindowText()

void KMultiEdit::SetWindowText ( const KString & str)

Change the text of the line edit.

◆ widget()

QTextEdit * KMultiEdit::widget ( ) const

Returns the underlying widget the class is proxying.


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