KVIrc 5.2.0
Developer APIs
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | Private Slots | Private Member Functions | Static Private Member Functions | Friends | List of all members
KviInputEditor Class Reference

Input editor class. More...

#include <KviInputEditor.h>

+ Inheritance diagram for KviInputEditor:

Classes

class  EditCommand
 Holds the command used in the {un,re}do operations. More...
 

Public Slots

void clear ()
 Clears the input line.
 
void copyToClipboard ()
 Copies the text to the system clipboard.
 
void copyToSelection (bool bDonNotCopyToClipboard=true)
 Copies the text to the system clipboard.
 
void cut ()
 Cuts the selection from the input line.
 
void iconPopupActivated (QAction *pAction)
 Opens the icon popup with icon description.
 
void pasteClipboardWithConfirmation ()
 Pastes the text to the system clipboard.
 
void pasteFile ()
 Pastes a file to the buffer.
 
void pasteSelectionWithConfirmation ()
 Pastes the text to the system clipboard.
 
void pasteSlow ()
 Starts a slow paste in the buffer.
 
void redo ()
 Redo the last undo-ed action.
 
void removeSelected ()
 Removes the selected text.
 
void selectAll ()
 Selects all text in the input line.
 
void stopPasteSlow ()
 Stops a slow paste in the buffer.
 
void undo ()
 Undo the last action.
 

Signals

void enterPressed ()
 Called when the user press enter/return.
 
void escapePressed ()
 Called when the user press escape.
 

Public Member Functions

void applyOptions (bool bRefreshCachedMetrics=true)
 Applies the options and update.
 
void clearUndoStack ()
 Clears the undo stack.
 
int heightHint () const
 Returns the height of the editor.
 
void insertChar (QChar c)
 Inserts a character at the current position.
 
void insertText (const QString &szTxt)
 Inserts the text at the current position.
 
bool isReadOnly () const
 Returns true if the input line is in read only state.
 
 KviInputEditor (QWidget *pPar, KviWindow *pWnd, KviUserListView *pView=nullptr)
 Constructs the input editor object.
 
 KviInputEditor (QWidget *pPar, QWidget *pInputParent, KviWindow *pWnd, KviUserListView *pView=nullptr)
 
void setMaxBufferSize (int iSize)
 Sets the maximum buffer size.
 
void setReadOnly (bool bReadOnly)
 Sets the read only state for the input line.
 
void setText (const QString szText)
 Sets the text in the input line.
 
QString text () const
 Returns the text in the buffer.
 
QString textBeforeCursor () const
 Returns the text before the cursor.
 
 ~KviInputEditor ()
 Destroys the Input editor object.
 

Protected Member Functions

bool checkWordSpelling (const QString &szWord)
 
void completionEscapeUnsafeToken (QString &szToken)
 
void dragEnterEvent (QDragEnterEvent *e) override
 
virtual void drawContents (QPainter *)
 
void dropEvent (QDropEvent *e) override
 
void fillSpellCheckerCorrectionsPopup ()
 
KviInputEditorSpellCheckerBlockfindSpellCheckerBlockAtCursor (std::vector< KviInputEditorSpellCheckerBlock > &lBlocks)
 
void focusInEvent (QFocusEvent *e) override
 
void focusOutEvent (QFocusEvent *e) override
 
void inputMethodEvent (QInputMethodEvent *e) override
 
QVariant inputMethodQuery (Qt::InputMethodQuery query) const override
 
void insertIconCode (const QString &szCode)
 
void installShortcuts ()
 
void keyPressEvent (QKeyEvent *e) override
 
void keyReleaseEvent (QKeyEvent *e) override
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 
void paintEvent (QPaintEvent *e) override
 
void rebuildTextBlocks ()
 
void splitTextIntoSpellCheckerBlocks (const QString &szText, std::vector< KviInputEditorSpellCheckerBlock > &lBuffer)
 
void timerEvent (QTimerEvent *e) override
 

Protected Attributes

bool m_bCursorOn
 
bool m_bIMComposing
 
bool m_bLastCompletionFinished
 
bool m_bReadOnly
 
bool m_bSpSlowFlag
 
bool m_bUpdatesEnabled
 
std::vector< QString > m_History
 
int m_iCurHistoryIdx
 
int m_iCursorPosition
 
int m_iCursorTimer
 
int m_iCursorWidth
 
int m_iDragTimer
 
int m_iIMLength
 
int m_iIMSelectionBegin
 
int m_iIMSelectionLength
 
int m_iIMStart
 
int m_iLastCompletionCursorPosition
 
int m_iMaxBufferSize
 
int m_iSelectionAnchorChar
 
int m_iSelectionBegin
 
int m_iSelectionEnd
 
int m_iSpellCheckPosition
 
KviInputEditorPrivatem_p
 
QMenu * m_pIconMenu
 
QWidget * m_pInputParent
 
KviWindowm_pKviWindow
 
KviUserListViewm_pUserListView
 
std::vector< EditCommand * > m_RedoStack
 The redo stack.
 
QMenu m_SpellCheckerPopup
 
KviCString m_szAltKeyCode
 
QString m_szIMText
 
QString m_szLastCompletedNick
 
QString m_szLastCompletionBuffer
 
KviCString m_szSaveTextBuffer
 
QString m_szTextBuffer
 
std::vector< EditCommand * > m_UndoStack
 The undo stack.
 

Static Protected Attributes

static int g_iCachedHeight = 0
 
static int g_iInputFontCharWidth [256]
 
static int g_iInputInstances = 0
 
static QFontMetrics * g_pLastFontMetrics = nullptr
 

Properties

int TransparencyCapable
 

Private Slots

void addToHistory (const QString &szString)
 
void backspaceHit ()
 Run when backspace key is pressed.
 
void copyInternal ()
 Copies to clipboard.
 
void cutInternal ()
 Cuts to clipboard.
 
void deleteHit ()
 Run when delete key is pressed.
 
void deleteNextWord ()
 Deletes next word.
 
void deletePreviousWord ()
 Deletes previous word.
 
void dummy ()
 Does nothing but grabs some keys combinations.
 
void endInternal ()
 Moves the cursor at the end.
 
void endInternalSelection ()
 Selects until the end.
 
void escapeHit ()
 Run when escape key is pressed.
 
void historyNext ()
 Moves forward in the command history and in the history popup.
 
void historyPrev ()
 Moves backward in the command history and in the history popup.
 
void homeInternal ()
 Moves the cursor at the beginning.
 
void homeInternalSelection ()
 Selects until the beginning.
 
void insertBold ()
 Inserts bold control character.
 
void insertColor ()
 Inserts color control character.
 
void insertIcon ()
 Inserts icon control character.
 
void insertItalic ()
 Inserts italic control character.
 
void insertPlainText ()
 Inserts non-crypt (plain text) control character.
 
void insertReset ()
 Inserts reset control character.
 
void insertReverse ()
 Inserts reverse control character.
 
void insertUnderline ()
 Inserts underline control character.
 
void nextChar ()
 Moves to the next character.
 
void nextCharSelection ()
 Selects up to the next character.
 
void nextLine ()
 Scrolls the output window down one line.
 
void nextPage ()
 Scrolls the output window down one page.
 
void nextWord ()
 Moves to the end of the next word.
 
void nextWordSelection ()
 Selects up to the end of the next word.
 
void openHistory ()
 Opens the history popup.
 
void pasteInternal ()
 Pastes clipboard contents.
 
void popupTextIconWindow ()
 
void previousChar ()
 Moves to the previous character.
 
void previousCharSelection ()
 Selects up to the previous character.
 
void previousLine ()
 Scrolls the output window up one line.
 
void previousPage ()
 Scrolls the output window up one page.
 
void previousWord ()
 Moves to the beginning of the previous word.
 
void previousWordSelection ()
 Selects up to the beginning of the previous word.
 
void redoInternal ()
 Redoes last action.
 
void returnHit ()
 Run when return/enter key is pressed.
 
void scrollBottom ()
 Scrolls the output window to the bottom.
 
void scrollToLastReadLine ()
 Scrolls the ircview to the last read line.
 
void scrollTop ()
 Scrolls the output window to the top.
 
void search ()
 Opens the search window.
 
void selectAllInternal ()
 Selects all.
 
void sendKvs ()
 Sends the message assuming it's kvs code.
 
void sendPlain ()
 Sends plain text, ignoring initial token starting with / (a command)
 
void showContextPopup (const QPoint &pos)
 
void showContextPopupHere ()
 
void showSpellCheckerCorrectionsPopup ()
 
void spellCheckerPopupCorrectionActionTriggered ()
 
void toggleCommandMode ()
 Toggles the commandline's KVS/User-friendly mode.
 
void toggleMultiLineEditor ()
 Toggles the multiline editor.
 
void undoInternal ()
 Undoes last action.
 
void zoomDefault ()
 Restore the ircview font (and its size)
 
void zoomIn ()
 Increase the ircview font size.
 
void zoomOut ()
 Decrease the ircview font size.
 

Private Member Functions

void addUndo (EditCommand *pCommand)
 Inserts one action in the undo stack.
 
int charIndexFromXPosition (qreal fXPos)
 Returns the current character from a given position.
 
void clearSelection ()
 
void completion (bool bShift)
 Autocompletion function.
 
void end ()
 Moves the cursor to the end of the input line.
 
void ensureCursorVisible ()
 Makes sure that the cursor is visible.
 
void finishInput ()
 Adds the text to the history.
 
QFontMetrics * getLastFontMetrics (const QFont &font)
 Returns the current input editor font metrics (globally shared)
 
void getWordBeforeCursor (QString &szBuffer, bool *bIsFirstWordInLine)
 Gets the word before the cursor and puts it to the buffer.
 
void handleDragSelection ()
 Handles the drag selection.
 
bool hasSelection ()
 Returns true if the input line has focus.
 
void home ()
 Moves the cursor to the start of the input line.
 
void internalCursorLeft (bool bShift)
 Moves the cursor one character to the left.
 
void internalCursorRight (bool bShift)
 Moves the cursor one character to the right.
 
bool isRedoAvailable () const
 Returns true is there are some action in the redo stack.
 
bool isUndoAvailable () const
 Returns true is there are some action in the undo stack.
 
void killDragTimer ()
 Kills the drag timer.
 
void moveCursorTo (int iIdx, bool bRepaint=true)
 Moves the cursor to the specified position.
 
void repaintWithCursorOn ()
 Repaints the input line with the visible cursor.
 
int replaceSegment (int iStart, int iLength, const QString &szString)
 Replace characters in the buffer.
 
void replaceWordBeforeCursor (const QString &szWord, const QString &szReplacement, bool bRepaint=true)
 Replaces the word before the cursor.
 
void returnPressed (bool bRepaint=true)
 Submits input.
 
void standardNickCompletion (bool bAddMask, QString &szWord, bool bFirstWordInLine, bool bInCommand)
 Completes the nickname specified by szWord (inserts the completed text to the input line)
 
void standardNickCompletionInsertCompletedText (const QString &szReplacedWord, QString szCompletedText, bool bFirstWordInLine, bool bInCommand)
 Internal helper for standardNickCompletion()
 
qreal xPositionFromCharIndex (int iChIdx)
 Returns the current position from a given character.
 

Static Private Member Functions

static QChar getSubstituteChar (unsigned short uControlCode)
 Gets the substitute character for control codes.
 

Friends

class KviTextIconWindow
 
class KviTopicWidget
 

Detailed Description

Input editor class.

Constructor & Destructor Documentation

◆ KviInputEditor() [1/2]

KviInputEditor::KviInputEditor ( QWidget *  pPar,
KviWindow pWnd,
KviUserListView pView = nullptr 
)

Constructs the input editor object.

Parameters
pParThe parent widget
pWndThe KviWindow object
pViewThe userlist
Returns
KviInputEditor

◆ KviInputEditor() [2/2]

KviInputEditor::KviInputEditor ( QWidget *  pPar,
QWidget *  pInputParent,
KviWindow pWnd,
KviUserListView pView = nullptr 
)

◆ ~KviInputEditor()

KviInputEditor::~KviInputEditor ( )

Member Function Documentation

◆ addToHistory

void KviInputEditor::addToHistory ( const QString &  szString)
privateslot

Adds line to input history

References KVI_INPUT_MAX_LOCAL_HISTORY_ENTRIES, and m_History.

Referenced by finishInput(), sendKvs(), and sendPlain().

◆ addUndo()

void KviInputEditor::addUndo ( EditCommand pCommand)
private

Inserts one action in the undo stack.

Parameters
pCommandThe command representing the action
Returns
void

References KVI_INPUT_MAX_UNDO_SIZE, and m_UndoStack.

Referenced by backspaceHit(), clear(), cut(), insertChar(), insertText(), removeSelected(), replaceSegment(), and setText().

◆ applyOptions()

void KviInputEditor::applyOptions ( bool  bRefreshCachedMetrics = true)

◆ backspaceHit

void KviInputEditor::backspaceHit ( )
privateslot

◆ charIndexFromXPosition()

int KviInputEditor::charIndexFromXPosition ( qreal  fXPos)
private

◆ checkWordSpelling()

bool KviInputEditor::checkWordSpelling ( const QString &  szWord)
protected

◆ clear

void KviInputEditor::clear ( )
slot

◆ clearSelection()

void KviInputEditor::clearSelection ( )
private

◆ clearUndoStack()

void KviInputEditor::clearUndoStack ( )

Clears the undo stack.

References m_RedoStack, and m_UndoStack.

Referenced by KviInput::inputEditorEnterPressed().

◆ completion()

void KviInputEditor::completion ( bool  bShift)
private

◆ completionEscapeUnsafeToken()

void KviInputEditor::completionEscapeUnsafeToken ( QString &  szToken)
protected

◆ copyInternal

void KviInputEditor::copyInternal ( )
privateslot

Copies to clipboard.

Returns
void

References copyToClipboard().

Referenced by installShortcuts().

◆ copyToClipboard

void KviInputEditor::copyToClipboard ( )
slot

Copies the text to the system clipboard.

Returns
void

References hasSelection(), m_iSelectionBegin, m_iSelectionEnd, m_szTextBuffer, and repaintWithCursorOn().

Referenced by copyInternal(), and showContextPopup().

◆ copyToSelection

void KviInputEditor::copyToSelection ( bool  bDonNotCopyToClipboard = true)
slot

Copies the text to the system clipboard.

If the system supports the mouse clipboard, the text will be copied there

Parameters
bDonNotCopyToClipboardWhether to copy the text to the system clipboard
Returns
void

References hasSelection(), m_iSelectionBegin, m_iSelectionEnd, m_szTextBuffer, and repaintWithCursorOn().

Referenced by mouseReleaseEvent().

◆ cut

void KviInputEditor::cut ( )
slot

◆ cutInternal

void KviInputEditor::cutInternal ( )
privateslot

Cuts to clipboard.

Returns
void

References cut(), and m_bReadOnly.

Referenced by installShortcuts().

◆ deleteHit

void KviInputEditor::deleteHit ( )
privateslot

◆ deleteNextWord

void KviInputEditor::deleteNextWord ( )
privateslot

◆ deletePreviousWord

void KviInputEditor::deletePreviousWord ( )
privateslot

◆ dragEnterEvent()

void KviInputEditor::dragEnterEvent ( QDragEnterEvent *  e)
overrideprotected

References e.

◆ drawContents()

void KviInputEditor::drawContents ( QPainter *  p)
protectedvirtual

◆ dropEvent()

void KviInputEditor::dropEvent ( QDropEvent *  e)
overrideprotected

◆ dummy

void KviInputEditor::dummy ( )
privateslot

Does nothing but grabs some keys combinations.

Warning
This is an hack. The keys combinations grabbed by this function write a non-printable chars which cause some troubles, eg duplication of chars opening/closing more times the multiline
Returns
void

Referenced by installShortcuts().

◆ end()

void KviInputEditor::end ( )
private

Moves the cursor to the end of the input line.

Returns
void

References ensureCursorVisible(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by endInternal(), endInternalSelection(), historyNext(), historyPrev(), selectAll(), and setText().

◆ endInternal

void KviInputEditor::endInternal ( )
privateslot

Moves the cursor at the end.

Returns
void

References clearSelection(), and end().

Referenced by installShortcuts().

◆ endInternalSelection

void KviInputEditor::endInternalSelection ( )
privateslot

◆ ensureCursorVisible()

void KviInputEditor::ensureCursorVisible ( )
private

◆ enterPressed

void KviInputEditor::enterPressed ( )
signal

Called when the user press enter/return.

Returns
void

Referenced by returnPressed().

◆ escapeHit

void KviInputEditor::escapeHit ( )
privateslot

Run when escape key is pressed.

Returns
void

References escapePressed(), finishInput(), and setText().

Referenced by installShortcuts().

◆ escapePressed

void KviInputEditor::escapePressed ( )
signal

Called when the user press escape.

Returns
void

Referenced by escapeHit().

◆ fillSpellCheckerCorrectionsPopup()

void KviInputEditor::fillSpellCheckerCorrectionsPopup ( )
protected

◆ findSpellCheckerBlockAtCursor()

KviInputEditorSpellCheckerBlock * KviInputEditor::findSpellCheckerBlockAtCursor ( std::vector< KviInputEditorSpellCheckerBlock > &  lBlocks)
protected

◆ finishInput()

void KviInputEditor::finishInput ( )
private

Adds the text to the history.

Called when the user is done editing the current input line (either by submitting or clearing it). Adds the content (if any) to the history, and hides helper windows.

Returns
void

References KviInputHistory::add(), addToHistory(), g_pColorWindow, KviInputHistory::instance(), m_iCurHistoryIdx, m_pInputParent, and m_szTextBuffer.

Referenced by escapeHit(), and returnPressed().

◆ focusInEvent()

void KviInputEditor::focusInEvent ( QFocusEvent *  e)
overrideprotected

◆ focusOutEvent()

void KviInputEditor::focusOutEvent ( QFocusEvent *  e)
overrideprotected

References e, m_bCursorOn, and m_iCursorTimer.

◆ getLastFontMetrics()

QFontMetrics * KviInputEditor::getLastFontMetrics ( const QFont &  font)
private

Returns the current input editor font metrics (globally shared)

Parameters
fontThe current input editor font
Returns
QFontMetrics *

References KviInputEditorPrivate::fFontElisionWidth, g_iCachedHeight, g_pLastFontMetrics, h, KVI_INPUT_MARGIN, KVI_INPUT_XTRAPADDING, m_p, KviInputEditorPrivate::szFontElision, and w.

Referenced by applyOptions(), charIndexFromXPosition(), drawContents(), rebuildTextBlocks(), and xPositionFromCharIndex().

◆ getSubstituteChar()

QChar KviInputEditor::getSubstituteChar ( unsigned short  uControlCode)
staticprivate

Gets the substitute character for control codes.

Parameters
uControlCodeThe control code inserted
Returns
QChar

References KviControlCodes::Bold, KviControlCodes::CryptEscape, KviControlCodes::Icon, KviControlCodes::Italic, KviControlCodes::Reset, KviControlCodes::Reverse, and KviControlCodes::Underline.

Referenced by rebuildTextBlocks().

◆ getWordBeforeCursor()

void KviInputEditor::getWordBeforeCursor ( QString &  szBuffer,
bool *  bIsFirstWordInLine 
)
private

Gets the word before the cursor and puts it to the buffer.

Parameters
szBufferThe buffer where to put the word got
bIsFirstWordInLineReturns true if the word is the first
Returns
void

References KviCString::left(), m_iCursorPosition, m_szTextBuffer, and szBuffer.

Referenced by completion(), and standardNickCompletion().

◆ handleDragSelection()

void KviInputEditor::handleDragSelection ( )
private

◆ hasSelection()

bool KviInputEditor::hasSelection ( )
private

◆ heightHint()

int KviInputEditor::heightHint ( ) const

Returns the height of the editor.

Returns
int

References g_iCachedHeight.

Referenced by KviInput::heightHint(), and showContextPopupHere().

◆ historyNext

void KviInputEditor::historyNext ( )
privateslot

◆ historyPrev

void KviInputEditor::historyPrev ( )
privateslot

◆ home()

void KviInputEditor::home ( )
private

Moves the cursor to the start of the input line.

Returns
void

References ensureCursorVisible(), m_iCursorPosition, and repaintWithCursorOn().

Referenced by clear(), historyNext(), historyPrev(), homeInternal(), homeInternalSelection(), and KviTopicWidget::switchMode().

◆ homeInternal

void KviInputEditor::homeInternal ( )
privateslot

Moves the cursor at the beginning.

Returns
void

References clearSelection(), home(), and m_iCursorPosition.

Referenced by installShortcuts().

◆ homeInternalSelection

void KviInputEditor::homeInternalSelection ( )
privateslot

Selects until the beginning.

Returns
void

References KviInputEditorPrivate::bTextBlocksDirty, home(), m_iCursorPosition, m_iSelectionBegin, m_iSelectionEnd, and m_p.

Referenced by installShortcuts().

◆ iconPopupActivated

void KviInputEditor::iconPopupActivated ( QAction *  pAction)
slot

Opens the icon popup with icon description.

Parameters
iIdThe id of the icon
Returns
void

References KviControlCodes::Icon, insertText(), and m_bReadOnly.

Referenced by KviInputEditor().

◆ inputMethodEvent()

void KviInputEditor::inputMethodEvent ( QInputMethodEvent *  e)
overrideprotected

◆ inputMethodQuery()

QVariant KviInputEditor::inputMethodQuery ( Qt::InputMethodQuery  query) const
overrideprotected

◆ insertBold

void KviInputEditor::insertBold ( )
privateslot

Inserts bold control character.

Returns
void

References KviControlCodes::Bold, insertChar(), and m_bReadOnly.

Referenced by installShortcuts().

◆ insertChar()

void KviInputEditor::insertChar ( QChar  c)

◆ insertColor

void KviInputEditor::insertColor ( )
privateslot

Inserts color control character.

Returns
void

References g_pColorWindow, insertChar(), m_bReadOnly, m_iCursorPosition, KviColorWindow::popup(), and xPositionFromCharIndex().

Referenced by installShortcuts().

◆ insertIcon

void KviInputEditor::insertIcon ( )
privateslot

Inserts icon control character.

Returns
void

References KviControlCodes::Icon, insertChar(), m_bReadOnly, and popupTextIconWindow().

Referenced by installShortcuts().

◆ insertIconCode()

void KviInputEditor::insertIconCode ( const QString &  szCode)
protected

◆ insertItalic

void KviInputEditor::insertItalic ( )
privateslot

Inserts italic control character.

Returns
void

References insertChar(), KviControlCodes::Italic, and m_bReadOnly.

Referenced by installShortcuts().

◆ insertPlainText

void KviInputEditor::insertPlainText ( )
privateslot

Inserts non-crypt (plain text) control character.

Returns
void

References KviControlCodes::CryptEscape, insertChar(), and m_bReadOnly.

Referenced by installShortcuts().

◆ insertReset

void KviInputEditor::insertReset ( )
privateslot

Inserts reset control character.

Returns
void

References insertChar(), m_bReadOnly, and KviControlCodes::Reset.

Referenced by installShortcuts().

◆ insertReverse

void KviInputEditor::insertReverse ( )
privateslot

Inserts reverse control character.

Returns
void

References insertChar(), m_bReadOnly, and KviControlCodes::Reverse.

Referenced by installShortcuts().

◆ insertText()

void KviInputEditor::insertText ( const QString &  szTxt)

◆ insertUnderline

void KviInputEditor::insertUnderline ( )
privateslot

Inserts underline control character.

Returns
void

References insertChar(), m_bReadOnly, and KviControlCodes::Underline.

Referenced by installShortcuts().

◆ installShortcuts()

void KviInputEditor::installShortcuts ( )
protected

References copyInternal(), KviShortcut::create(), cutInternal(), deleteNextWord(), deletePreviousWord(), dummy(), endInternal(), endInternalSelection(), escapeHit(), historyNext(), historyPrev(), homeInternal(), homeInternalSelection(), insertBold(), insertColor(), insertIcon(), insertItalic(), insertPlainText(), insertReset(), insertReverse(), insertUnderline(), KVI_SHORTCUTS_INPUT_BOLD, KVI_SHORTCUTS_INPUT_COLOR, KVI_SHORTCUTS_INPUT_COMMANDLINE, KVI_SHORTCUTS_INPUT_COPY, KVI_SHORTCUTS_INPUT_CORRECT_SPELLING, KVI_SHORTCUTS_INPUT_CUT, KVI_SHORTCUTS_INPUT_DELETE_NEXT_WORD, KVI_SHORTCUTS_INPUT_DELETE_PREV_WORD, KVI_SHORTCUTS_INPUT_DUMMY, KVI_SHORTCUTS_INPUT_END, KVI_SHORTCUTS_INPUT_END_SELECT, KVI_SHORTCUTS_INPUT_ESCAPE, KVI_SHORTCUTS_INPUT_HISTORY, KVI_SHORTCUTS_INPUT_HISTORY_NEXT, KVI_SHORTCUTS_INPUT_HISTORY_PREV, KVI_SHORTCUTS_INPUT_HOME, KVI_SHORTCUTS_INPUT_HOME_SELECT, KVI_SHORTCUTS_INPUT_ICON, KVI_SHORTCUTS_INPUT_ITALIC, KVI_SHORTCUTS_INPUT_MENU, KVI_SHORTCUTS_INPUT_NEXT_CHAR, KVI_SHORTCUTS_INPUT_NEXT_CHAR_SELECT, KVI_SHORTCUTS_INPUT_NEXT_WORD, KVI_SHORTCUTS_INPUT_NEXT_WORD_SELECT, KVI_SHORTCUTS_INPUT_PASTE, KVI_SHORTCUTS_INPUT_PLAINTEXT, KVI_SHORTCUTS_INPUT_PREV_CHAR, KVI_SHORTCUTS_INPUT_PREV_CHAR_SELECT, KVI_SHORTCUTS_INPUT_PREV_WORD, KVI_SHORTCUTS_INPUT_PREV_WORD_SELECT, KVI_SHORTCUTS_INPUT_REDO, KVI_SHORTCUTS_INPUT_RESET, KVI_SHORTCUTS_INPUT_REVERSE, KVI_SHORTCUTS_INPUT_SELECT_ALL, KVI_SHORTCUTS_INPUT_SEND_PLAIN, KVI_SHORTCUTS_INPUT_SEND_PLAIN_2, KVI_SHORTCUTS_INPUT_UNDERLINE, KVI_SHORTCUTS_INPUT_UNDO, KVI_SHORTCUTS_WIN_END, KVI_SHORTCUTS_WIN_HOME, KVI_SHORTCUTS_WIN_NEXT_LINE, KVI_SHORTCUTS_WIN_NEXT_PAGE, KVI_SHORTCUTS_WIN_PREV_LINE, KVI_SHORTCUTS_WIN_PREV_PAGE, KVI_SHORTCUTS_WIN_SCROLL_TO_LAST_READ_LINE, KVI_SHORTCUTS_WIN_SEARCH, KVI_SHORTCUTS_WIN_ZOOM_DEFAULT, KVI_SHORTCUTS_WIN_ZOOM_IN, KVI_SHORTCUTS_WIN_ZOOM_OUT, nextChar(), nextCharSelection(), nextLine(), nextPage(), nextWord(), nextWordSelection(), openHistory(), pasteInternal(), previousChar(), previousCharSelection(), previousLine(), previousPage(), previousWord(), previousWordSelection(), redoInternal(), scrollBottom(), scrollToLastReadLine(), scrollTop(), search(), selectAllInternal(), sendPlain(), showContextPopupHere(), showSpellCheckerCorrectionsPopup(), toggleCommandMode(), undoInternal(), zoomDefault(), zoomIn(), and zoomOut().

Referenced by KviInputEditor().

◆ internalCursorLeft()

void KviInputEditor::internalCursorLeft ( bool  bShift)
private

Moves the cursor one character to the left.

Parameters
bShiftWhether to shift the selection
Returns
void

References KviInputEditorPrivate::bTextBlocksDirty, clearSelection(), ensureCursorVisible(), INPUT_ISLOWSURROGATE, m_iCursorPosition, m_iSelectionBegin, m_iSelectionEnd, m_p, and m_szTextBuffer.

Referenced by previousChar(), previousCharSelection(), previousWord(), and previousWordSelection().

◆ internalCursorRight()

void KviInputEditor::internalCursorRight ( bool  bShift)
private

Moves the cursor one character to the right.

Parameters
bShiftWhether to shift the selection
Returns
void

References KviInputEditorPrivate::bTextBlocksDirty, clearSelection(), ensureCursorVisible(), INPUT_ISHIGHSURROGATE, m_iCursorPosition, m_iSelectionBegin, m_iSelectionEnd, m_p, and m_szTextBuffer.

Referenced by nextChar(), nextCharSelection(), nextWord(), and nextWordSelection().

◆ isReadOnly()

bool KviInputEditor::isReadOnly ( ) const
inline

Returns true if the input line is in read only state.

Returns
bool

Referenced by KviTopicWidget::acceptClicked().

◆ isRedoAvailable()

bool KviInputEditor::isRedoAvailable ( ) const
inlineprivate

Returns true is there are some action in the redo stack.

Returns
bool

Referenced by redo(), and showContextPopup().

◆ isUndoAvailable()

bool KviInputEditor::isUndoAvailable ( ) const
inlineprivate

Returns true is there are some action in the undo stack.

Returns
bool

Referenced by showContextPopup(), and undo().

◆ keyPressEvent()

void KviInputEditor::keyPressEvent ( QKeyEvent *  e)
overrideprotected

◆ keyReleaseEvent()

void KviInputEditor::keyReleaseEvent ( QKeyEvent *  e)
overrideprotected

◆ killDragTimer()

void KviInputEditor::killDragTimer ( )
private

Kills the drag timer.

Returns
void

References m_iDragTimer.

Referenced by mouseDoubleClickEvent(), mousePressEvent(), mouseReleaseEvent(), and ~KviInputEditor().

◆ mouseDoubleClickEvent()

void KviInputEditor::mouseDoubleClickEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void KviInputEditor::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void KviInputEditor::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ moveCursorTo()

void KviInputEditor::moveCursorTo ( int  iIdx,
bool  bRepaint = true 
)
private

Moves the cursor to the specified position.

Parameters
iIdxThe index of the character to move the cursor to
bRepaintWhether to repaint the input line
Returns
void

References ensureCursorVisible(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by cut(), inputMethodEvent(), insertText(), mouseDoubleClickEvent(), redo(), removeSelected(), replaceWordBeforeCursor(), and undo().

◆ nextChar

void KviInputEditor::nextChar ( )
privateslot

Moves to the next character.

Returns
void

References internalCursorRight(), and repaintWithCursorOn().

Referenced by installShortcuts().

◆ nextCharSelection

void KviInputEditor::nextCharSelection ( )
privateslot

Selects up to the next character.

Returns
void

References internalCursorRight(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by installShortcuts().

◆ nextLine

void KviInputEditor::nextLine ( )
privateslot

Scrolls the output window down one line.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::nextLine().

Referenced by installShortcuts().

◆ nextPage

void KviInputEditor::nextPage ( )
privateslot

Scrolls the output window down one page.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::nextPage().

Referenced by installShortcuts().

◆ nextWord

void KviInputEditor::nextWord ( )
privateslot

Moves to the end of the next word.

Returns
void

References internalCursorRight(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by installShortcuts().

◆ nextWordSelection

void KviInputEditor::nextWordSelection ( )
privateslot

Selects up to the end of the next word.

Returns
void

References internalCursorRight(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by installShortcuts().

◆ openHistory

void KviInputEditor::openHistory ( )
privateslot

Opens the history popup.

Returns
void

References KVI_OPTION_BOOL, KviOption_boolEnableInputHistory, and m_pInputParent.

Referenced by installShortcuts().

◆ paintEvent()

void KviInputEditor::paintEvent ( QPaintEvent *  e)
overrideprotected

◆ pasteClipboardWithConfirmation

void KviInputEditor::pasteClipboardWithConfirmation ( )
slot

Pastes the text to the system clipboard.

Returns
void

References KviWindow::id(), insertText(), KviEvent_OnInputBarPaste, KVS_TRIGGER_EVENT_2_HALTED, m_pInputParent, and m_pKviWindow.

Referenced by pasteInternal(), and showContextPopup().

◆ pasteFile

void KviInputEditor::pasteFile ( )
slot

Pastes a file to the buffer.

Returns
void

References KviQString::escapeKvs(), KviQString::EscapeSpace, g_pActiveWindow, m_bSpSlowFlag, and KviKvsScript::run().

Referenced by showContextPopup().

◆ pasteInternal

void KviInputEditor::pasteInternal ( )
privateslot

Pastes clipboard contents.

Returns
void

References m_bReadOnly, and pasteClipboardWithConfirmation().

Referenced by installShortcuts().

◆ pasteSelectionWithConfirmation

void KviInputEditor::pasteSelectionWithConfirmation ( )
slot

Pastes the text to the system clipboard.

If the system supports the mouse clipboard, the text will be copied there

Returns
void

References KviWindow::id(), insertText(), KviEvent_OnInputBarPaste, KVS_TRIGGER_EVENT_2_HALTED, m_pInputParent, and m_pKviWindow.

Referenced by mousePressEvent().

◆ pasteSlow

void KviInputEditor::pasteSlow ( )
slot

Starts a slow paste in the buffer.

Returns
void

References g_pActiveWindow, m_bSpSlowFlag, and KviKvsScript::run().

Referenced by showContextPopup().

◆ popupTextIconWindow

void KviInputEditor::popupTextIconWindow ( )
privateslot

◆ previousChar

void KviInputEditor::previousChar ( )
privateslot

Moves to the previous character.

Returns
void

References internalCursorLeft(), and repaintWithCursorOn().

Referenced by installShortcuts().

◆ previousCharSelection

void KviInputEditor::previousCharSelection ( )
privateslot

Selects up to the previous character.

Returns
void

References internalCursorLeft(), m_iCursorPosition, and repaintWithCursorOn().

Referenced by installShortcuts().

◆ previousLine

void KviInputEditor::previousLine ( )
privateslot

Scrolls the output window up one line.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::prevLine().

Referenced by installShortcuts().

◆ previousPage

void KviInputEditor::previousPage ( )
privateslot

Scrolls the output window up one page.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::prevPage().

Referenced by installShortcuts().

◆ previousWord

void KviInputEditor::previousWord ( )
privateslot

Moves to the beginning of the previous word.

Returns
void

References internalCursorLeft(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by installShortcuts().

◆ previousWordSelection

void KviInputEditor::previousWordSelection ( )
privateslot

Selects up to the beginning of the previous word.

Returns
void

References internalCursorLeft(), m_iCursorPosition, m_szTextBuffer, and repaintWithCursorOn().

Referenced by installShortcuts().

◆ rebuildTextBlocks()

void KviInputEditor::rebuildTextBlocks ( )
protected

◆ redo

void KviInputEditor::redo ( )
slot

◆ redoInternal

void KviInputEditor::redoInternal ( )
privateslot

Redoes last action.

Returns
void

References m_bReadOnly, and redo().

Referenced by installShortcuts().

◆ removeSelected

void KviInputEditor::removeSelected ( )
slot

◆ repaintWithCursorOn()

void KviInputEditor::repaintWithCursorOn ( )
private

◆ replaceSegment()

int KviInputEditor::replaceSegment ( int  iStart,
int  iLength,
const QString &  szString 
)
private

Replace characters in the buffer.

Returns the length of the text inserted (different from text.length() only if the buffer was truncated.

Parameters
iStartThe starting character
iLengthThe length of the string to replace
szStringThe string to replace with
Returns
int

References addUndo(), KviInputEditorPrivate::bTextBlocksDirty, KviInputEditor::EditCommand::InsertText, m_iMaxBufferSize, m_p, m_szTextBuffer, and repaintWithCursorOn().

Referenced by inputMethodEvent().

◆ replaceWordBeforeCursor()

void KviInputEditor::replaceWordBeforeCursor ( const QString &  szWord,
const QString &  szReplacement,
bool  bRepaint = true 
)
private

Replaces the word before the cursor.

Parameters
szWordThe word to replace
szReplacementThe new word to use
bRepaintWhether to repain the input line
Returns
void

References KviInputEditorPrivate::bTextBlocksDirty, clearSelection(), m_iCursorPosition, m_iMaxBufferSize, m_p, m_szTextBuffer, moveCursorTo(), and repaintWithCursorOn().

Referenced by completion(), and standardNickCompletionInsertCompletedText().

◆ returnHit

void KviInputEditor::returnHit ( )
privateslot

Run when return/enter key is pressed.

Returns
void

References returnPressed().

Referenced by keyPressEvent().

◆ returnPressed()

void KviInputEditor::returnPressed ( bool  bRepaint = true)
private

Submits input.

Triggered when the user press return

Parameters
bRepaintWhether to repain the input line
Returns
void

References enterPressed(), and finishInput().

Referenced by insertText(), and returnHit().

◆ scrollBottom

void KviInputEditor::scrollBottom ( )
privateslot

Scrolls the output window to the bottom.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::scrollBottom().

Referenced by installShortcuts().

◆ scrollToLastReadLine

void KviInputEditor::scrollToLastReadLine ( )
privateslot

Scrolls the ircview to the last read line.

Returns
void

References KviIrcView::hasLineMark(), KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::scrollToMarker().

Referenced by installShortcuts().

◆ scrollTop

void KviInputEditor::scrollTop ( )
privateslot

Scrolls the output window to the top.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::scrollTop().

Referenced by installShortcuts().

◆ search

void KviInputEditor::search ( )
privateslot

Opens the search window.

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::toggleToolWidget().

Referenced by installShortcuts().

◆ selectAll

void KviInputEditor::selectAll ( )
slot

Selects all text in the input line.

Returns
void

References KviInputEditorPrivate::bTextBlocksDirty, end(), m_iSelectionBegin, m_iSelectionEnd, m_p, and m_szTextBuffer.

Referenced by showContextPopup().

◆ selectAllInternal

void KviInputEditor::selectAllInternal ( )
privateslot

◆ sendKvs

void KviInputEditor::sendKvs ( )
privateslot

◆ sendPlain

void KviInputEditor::sendPlain ( )
privateslot

◆ setMaxBufferSize()

void KviInputEditor::setMaxBufferSize ( int  iSize)
inline

Sets the maximum buffer size.

Parameters
iSizeThe size of the buffer to set
Returns
void

Referenced by KviTopicWidget::switchMode().

◆ setReadOnly()

void KviInputEditor::setReadOnly ( bool  bReadOnly)
inline

Sets the read only state for the input line.

Parameters
bReadOnlyWhether to set the read only state
Returns
void

Referenced by KviTopicWidget::KviTopicWidget(), and KviTopicWidget::switchMode().

◆ setText()

void KviInputEditor::setText ( const QString  szText)

◆ showContextPopup

void KviInputEditor::showContextPopup ( const QPoint &  pos)
privateslot

◆ showContextPopupHere

void KviInputEditor::showContextPopupHere ( )
privateslot

Shows the context popup menu at the current cursor position

References heightHint(), KVI_INPUT_MARGIN, KVI_INPUT_XTRAPADDING, m_iCursorPosition, showContextPopup(), and xPositionFromCharIndex().

Referenced by installShortcuts().

◆ showSpellCheckerCorrectionsPopup

void KviInputEditor::showSpellCheckerCorrectionsPopup ( )
privateslot

◆ spellCheckerPopupCorrectionActionTriggered

void KviInputEditor::spellCheckerPopupCorrectionActionTriggered ( )
privateslot

◆ splitTextIntoSpellCheckerBlocks()

void KviInputEditor::splitTextIntoSpellCheckerBlocks ( const QString &  szText,
std::vector< KviInputEditorSpellCheckerBlock > &  lBuffer 
)
protected

◆ standardNickCompletion()

void KviInputEditor::standardNickCompletion ( bool  bAddMask,
QString &  szWord,
bool  bFirstWordInLine,
bool  bInCommand 
)
private

Completes the nickname specified by szWord (inserts the completed text to the input line)

Parameters
bAddMaskWhether to complete with the mask of the nickname
szWordThe nickname to complete
bFirstWordInLineWhether the word to complete is the first word in the text line (so the suffix from option panel is added)
bInCommandWhether the completion happens inside a kvs command (and thus the completed word should be kvs-escaped)
Returns
void

References KviInputEditorPrivate::bTextBlocksDirty, clearSelection(), KviUserListView::completeNickStandard(), getWordBeforeCursor(), m_bLastCompletionFinished, m_iCursorPosition, m_iLastCompletionCursorPosition, m_p, m_pUserListView, m_szLastCompletedNick, m_szLastCompletionBuffer, m_szTextBuffer, standardNickCompletionInsertCompletedText(), and szBuffer.

Referenced by completion().

◆ standardNickCompletionInsertCompletedText()

void KviInputEditor::standardNickCompletionInsertCompletedText ( const QString &  szReplacedWord,
QString  szCompletedText,
bool  bFirstWordInLine,
bool  bInCommand 
)
private

Internal helper for standardNickCompletion()

Parameters
szReplacedWordThe word replaced before the cursor
szCompletedTextThe text to be completed
bFirstWordInLineWhether the word to complete is the first word in the text line (so the suffix from option panel is added)
bInCommandWhether the completion happens inside a kvs command (and thus the completed word should be kvs-escaped)
Returns
void

References completionEscapeUnsafeToken(), KVI_OPTION_BOOL, KVI_OPTION_STRING, KviOption_boolUseNickCompletionPostfixForFirstWordOnly, KviOption_stringNickCompletionPostfix, and replaceWordBeforeCursor().

Referenced by standardNickCompletion().

◆ stopPasteSlow

void KviInputEditor::stopPasteSlow ( )
slot

Stops a slow paste in the buffer.

Returns
void

References g_pActiveWindow, m_bSpSlowFlag, and KviKvsScript::run().

Referenced by showContextPopup().

◆ text()

QString KviInputEditor::text ( ) const
inline

◆ textBeforeCursor()

QString KviInputEditor::textBeforeCursor ( ) const

Returns the text before the cursor.

References KviCString::left(), m_iCursorPosition, and m_szTextBuffer.

Referenced by KviTextIconWindow::autoSelectBestMatchBasedOnOwnerText().

◆ timerEvent()

void KviInputEditor::timerEvent ( QTimerEvent *  e)
overrideprotected

◆ toggleCommandMode

void KviInputEditor::toggleCommandMode ( )
privateslot

Toggles the commandline's KVS/User-friendly mode.

Returns
void

References m_pInputParent.

Referenced by installShortcuts().

◆ toggleMultiLineEditor

void KviInputEditor::toggleMultiLineEditor ( )
privateslot

Toggles the multiline editor.

Returns
void

References clear(), m_pInputParent, and m_szTextBuffer.

◆ undo

void KviInputEditor::undo ( )
slot

◆ undoInternal

void KviInputEditor::undoInternal ( )
privateslot

Undoes last action.

Returns
void

References m_bReadOnly, and undo().

Referenced by installShortcuts().

◆ xPositionFromCharIndex()

qreal KviInputEditor::xPositionFromCharIndex ( int  iChIdx)
private

◆ zoomDefault

void KviInputEditor::zoomDefault ( )
privateslot

Restore the ircview font (and its size)

Returns
void

References KviWindow::lastClickedView(), m_pKviWindow, and KviIrcView::resetDefaultFont().

Referenced by installShortcuts().

◆ zoomIn

void KviInputEditor::zoomIn ( )
privateslot

Increase the ircview font size.

Returns
void

References KviIrcView::increaseFontSize(), KviWindow::lastClickedView(), and m_pKviWindow.

Referenced by installShortcuts().

◆ zoomOut

void KviInputEditor::zoomOut ( )
privateslot

Decrease the ircview font size.

Returns
void

References KviIrcView::decreaseFontSize(), KviWindow::lastClickedView(), and m_pKviWindow.

Referenced by installShortcuts().

Friends And Related Symbol Documentation

◆ KviTextIconWindow

friend class KviTextIconWindow
friend

Referenced by popupTextIconWindow().

◆ KviTopicWidget

friend class KviTopicWidget
friend

Member Data Documentation

◆ g_iCachedHeight

int KviInputEditor::g_iCachedHeight = 0
staticprotected

Referenced by getLastFontMetrics(), and heightHint().

◆ g_iInputFontCharWidth

int KviInputEditor::g_iInputFontCharWidth[256]
staticprotected

◆ g_iInputInstances

int KviInputEditor::g_iInputInstances = 0
staticprotected

Referenced by KviInputEditor(), and ~KviInputEditor().

◆ g_pLastFontMetrics

QFontMetrics * KviInputEditor::g_pLastFontMetrics = nullptr
staticprotected

◆ m_bCursorOn

bool KviInputEditor::m_bCursorOn
protected

◆ m_bIMComposing

bool KviInputEditor::m_bIMComposing
protected

◆ m_bLastCompletionFinished

bool KviInputEditor::m_bLastCompletionFinished
protected

◆ m_bReadOnly

bool KviInputEditor::m_bReadOnly
protected

◆ m_bSpSlowFlag

bool KviInputEditor::m_bSpSlowFlag
protected

◆ m_bUpdatesEnabled

bool KviInputEditor::m_bUpdatesEnabled
protected

◆ m_History

std::vector<QString> KviInputEditor::m_History
protected

◆ m_iCurHistoryIdx

int KviInputEditor::m_iCurHistoryIdx
protected

◆ m_iCursorPosition

int KviInputEditor::m_iCursorPosition
protected

◆ m_iCursorTimer

int KviInputEditor::m_iCursorTimer
protected

◆ m_iCursorWidth

int KviInputEditor::m_iCursorWidth
protected

Referenced by applyOptions(), and drawContents().

◆ m_iDragTimer

int KviInputEditor::m_iDragTimer
protected

◆ m_iIMLength

int KviInputEditor::m_iIMLength
protected

◆ m_iIMSelectionBegin

int KviInputEditor::m_iIMSelectionBegin
protected

◆ m_iIMSelectionLength

int KviInputEditor::m_iIMSelectionLength
protected

◆ m_iIMStart

int KviInputEditor::m_iIMStart
protected

◆ m_iLastCompletionCursorPosition

int KviInputEditor::m_iLastCompletionCursorPosition
protected

Referenced by standardNickCompletion().

◆ m_iMaxBufferSize

int KviInputEditor::m_iMaxBufferSize
protected

◆ m_iSelectionAnchorChar

int KviInputEditor::m_iSelectionAnchorChar
protected

◆ m_iSelectionBegin

int KviInputEditor::m_iSelectionBegin
protected

◆ m_iSelectionEnd

int KviInputEditor::m_iSelectionEnd
protected

◆ m_iSpellCheckPosition

int KviInputEditor::m_iSpellCheckPosition
protected

◆ m_p

KviInputEditorPrivate* KviInputEditor::m_p
protected

◆ m_pIconMenu

QMenu* KviInputEditor::m_pIconMenu
protected

Referenced by KviInputEditor(), and ~KviInputEditor().

◆ m_pInputParent

QWidget* KviInputEditor::m_pInputParent
protected

◆ m_pKviWindow

KviWindow* KviInputEditor::m_pKviWindow
protected

◆ m_pUserListView

KviUserListView* KviInputEditor::m_pUserListView
protected

◆ m_RedoStack

KviInputEditor::m_RedoStack
protected

The redo stack.

Contains owned pointers and has autodelete set to true. The most recently undone command is at the end. Null when no redo is available.

Referenced by clearUndoStack(), redo(), and undo().

◆ m_SpellCheckerPopup

QMenu KviInputEditor::m_SpellCheckerPopup
protected

◆ m_szAltKeyCode

KviCString KviInputEditor::m_szAltKeyCode
protected

Referenced by keyPressEvent(), and keyReleaseEvent().

◆ m_szIMText

QString KviInputEditor::m_szIMText
protected

◆ m_szLastCompletedNick

QString KviInputEditor::m_szLastCompletedNick
protected

◆ m_szLastCompletionBuffer

QString KviInputEditor::m_szLastCompletionBuffer
protected

Referenced by standardNickCompletion().

◆ m_szSaveTextBuffer

KviCString KviInputEditor::m_szSaveTextBuffer
protected

Referenced by historyNext(), and historyPrev().

◆ m_szTextBuffer

QString KviInputEditor::m_szTextBuffer
protected

◆ m_UndoStack

KviInputEditor::m_UndoStack
protected

The undo stack.

Contains owned pointers and has autodelete set to true. The most recent command is at the end. Null when no undo is available.

Referenced by addUndo(), clearUndoStack(), redo(), and undo().

Property Documentation

◆ TransparencyCapable

int KviInputEditor::TransparencyCapable
read

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