1#ifndef _KVI_INPUT_EDITOR_H_
2#define _KVI_INPUT_EDITOR_H_
59#define KVI_INPUT_MAX_BUFFER_SIZE 400
60#define KVI_INPUT_XTRAPADDING 1
61#define KVI_INPUT_MARGIN 4
62#define KVI_INPUT_BLINK_TIME 800
63#define KVI_INPUT_DRAG_TIMEOUT 30
64#define KVI_INPUT_DEF_BACK 100
65#define KVI_INPUT_DEF_FORE 101
276 void setText(
const QString szText);
287 QString textBeforeCursor()
const;
294 void insertChar(QChar c);
301 void insertText(
const QString & szTxt);
307 void applyOptions(
bool bRefreshCachedMetrics =
true);
332 void clearUndoStack();
342 void replaceWordBeforeCursor(
const QString & szWord,
const QString & szReplacement,
bool bRepaint =
true);
353 int replaceSegment(
int iStart,
int iLength,
const QString & szString);
361 void getWordBeforeCursor(QString &
szBuffer,
bool * bIsFirstWordInLine);
368 static QChar getSubstituteChar(
unsigned short uControlCode);
373 void ensureCursorVisible();
379 void repaintWithCursorOn();
381 void clearSelection();
388 int charIndexFromXPosition(qreal fXPos);
395 qreal xPositionFromCharIndex(
int iChIdx);
401 void killDragTimer();
407 void handleDragSelection();
433 void moveCursorTo(
int iIdx,
bool bRepaint =
true);
442 void returnPressed(
bool bRepaint =
true);
463 void completion(
bool bShift);
473 void standardNickCompletion(
bool bAddMask, QString & szWord,
bool bFirstWordInLine,
bool bInCommand);
483 void standardNickCompletionInsertCompletedText(
const QString & szReplacedWord, QString szCompletedText,
bool bFirstWordInLine,
bool bInCommand);
490 void internalCursorRight(
bool bShift);
497 void internalCursorLeft(
bool bShift);
516 void addUndo(EditCommand * pCommand);
523 QFontMetrics * getLastFontMetrics(
const QFont & font);
531 void iconPopupActivated(QAction * pAction);
541 void copyToSelection(
bool bDonNotCopyToClipboard =
true);
547 void copyToClipboard();
553 void removeSelected();
577 void pasteClipboardWithConfirmation();
586 void pasteSelectionWithConfirmation();
598 void stopPasteSlow();
628 void toggleMultiLineEditor();
646 void previousCharSelection();
652 void nextCharSelection();
670 void previousWordSelection();
676 void nextWordSelection();
699 void insertUnderline();
705 void insertReverse();
711 void insertPlainText();
741 void pasteInternal();
759 void selectAllInternal();
765 void deletePreviousWord();
771 void deleteNextWord();
819 void scrollToLastReadLine();
849 void homeInternalSelection();
855 void endInternalSelection();
897 void toggleCommandMode();
927 void popupTextIconWindow();
932 void showContextPopup(
const QPoint & pos);
937 void showContextPopupHere();
942 void showSpellCheckerCorrectionsPopup();
947 void spellCheckerPopupCorrectionActionTriggered();
952 void addToHistory(
const QString & szString);
955 void insertIconCode(
const QString & szCode);
956 void completionEscapeUnsafeToken(QString & szToken);
957 void installShortcuts();
958 virtual void drawContents(QPainter *);
960 void timerEvent(QTimerEvent *
e)
override;
961 void focusInEvent(QFocusEvent *
e)
override;
962 void focusOutEvent(QFocusEvent *
e)
override;
963 void keyPressEvent(QKeyEvent *
e)
override;
964 void keyReleaseEvent(QKeyEvent *
e)
override;
965 void mousePressEvent(QMouseEvent *
e)
override;
966 void mouseReleaseEvent(QMouseEvent *
e)
override;
967 void mouseDoubleClickEvent(QMouseEvent *
e)
override;
968 void dragEnterEvent(QDragEnterEvent *
e)
override;
969 void dropEvent(QDropEvent *
e)
override;
970 void inputMethodEvent(QInputMethodEvent *
e)
override;
971 QVariant inputMethodQuery(Qt::InputMethodQuery query)
const override;
972 void paintEvent(QPaintEvent *
e)
override;
973 bool checkWordSpelling(
const QString & szWord);
974 void splitTextIntoSpellCheckerBlocks(
const QString & szText, std::vector<KviInputEditorSpellCheckerBlock> & lBuffer);
976 void fillSpellCheckerCorrectionsPopup();
978 void rebuildTextBlocks();
KviPtrListIterator< T > end(KviPointerList< T > *ptrList)
Definition KviPtrListIterator.h:68
Contains the KviWindow class.
Definition KviCString.h:102
User list view management class.
Definition KviUserListView.h:226
Base class for all windows in KVIrc.
Definition KviWindow.h:75
#define e
Definition detector.cpp:70
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127
char szBuffer[4096]
Definition winamp.cpp:77