Qt 4.8
|
#include <qtextcontrol_p_p.h>
Public Functions | |
void | _q_copyLink () |
void | _q_deleteSelected () |
void | _q_documentLayoutChanged () |
void | _q_emitCursorPosChanged (const QTextCursor &someCursor) |
void | _q_setCursorAfterUndoRedo (int undoPosition, int charsAdded, int charsRemoved) |
void | _q_updateBlock (const QTextBlock &) |
void | _q_updateCurrentCharFormatAndSelection () |
void | activateLinkUnderCursor (QString href=QString()) |
QString | anchorForCursor (const QTextCursor &anchor) const |
void | append (const QString &text, Qt::TextFormat format=Qt::AutoText) |
void | contextMenuEvent (const QPoint &screenPos, const QPointF &docPos, QWidget *contextWidget) |
void | createAutoBulletList () |
bool | cursorMoveKeyEvent (QKeyEvent *e) |
QRectF | cursorRectPlusUnicodeDirectionMarkers (const QTextCursor &cursor) const |
bool | dragEnterEvent (QEvent *e, const QMimeData *mimeData) |
void | dragLeaveEvent () |
bool | dragMoveEvent (QEvent *e, const QMimeData *mimeData, const QPointF &pos) |
bool | dropEvent (const QMimeData *mimeData, const QPointF &pos, Qt::DropAction dropAction, QWidget *source) |
void | extendBlockwiseSelection (int suggestedNewPosition) |
void | extendWordwiseSelection (int suggestedNewPosition, qreal mouseXPosition) |
void | focusEvent (QFocusEvent *e) |
void | gotoNextTableCell () |
void | gotoPreviousTableCell () |
void | indent () |
void | init (Qt::TextFormat format=Qt::RichText, const QString &text=QString(), QTextDocument *document=0) |
QInputContext * | inputContext () |
void | inputMethodEvent (QInputMethodEvent *) |
void | keyPressEvent (QKeyEvent *e) |
void | mouseDoubleClickEvent (QEvent *e, Qt::MouseButton button, const QPointF &pos, Qt::KeyboardModifiers modifiers, Qt::MouseButtons buttons, const QPoint &globalPos) |
void | mouseMoveEvent (QEvent *e, Qt::MouseButton button, const QPointF &pos, Qt::KeyboardModifiers modifiers, Qt::MouseButtons buttons, const QPoint &globalPos) |
void | mousePressEvent (QEvent *e, Qt::MouseButton button, const QPointF &pos, Qt::KeyboardModifiers modifiers, Qt::MouseButtons buttons, const QPoint &globalPos) |
void | mouseReleaseEvent (QEvent *e, Qt::MouseButton button, const QPointF &pos, Qt::KeyboardModifiers modifiers, Qt::MouseButtons buttons, const QPoint &globalPos) |
void | outdent () |
void | paste (const QMimeData *source) |
QTextControlPrivate () | |
QRectF | rectForPosition (int position) const |
void | repaintCursor () |
void | repaintOldAndNewSelection (const QTextCursor &oldSelection) |
void | repaintSelection () |
void | selectionChanged (bool forceEmitSelectionChanged=false) |
QRectF | selectionRect (const QTextCursor &cursor) const |
QRectF | selectionRect () const |
bool | sendMouseEventToInputContext (QEvent *e, QEvent::Type eventType, Qt::MouseButton button, const QPointF &pos, Qt::KeyboardModifiers modifiers, Qt::MouseButtons buttons, const QPoint &globalPos) |
void | setBlinkingCursorEnabled (bool enable) |
void | setClipboardSelection () |
void | setContent (Qt::TextFormat format=Qt::RichText, const QString &text=QString(), QTextDocument *document=0) |
void | setCursorPosition (const QPointF &pos) |
void | setCursorPosition (int pos, QTextCursor::MoveMode mode=QTextCursor::MoveAnchor) |
void | showToolTip (const QPoint &globalPos, const QPointF &pos, QWidget *contextWidget) |
void | startDrag () |
void | updateCurrentCharFormat () |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Definition at line 72 of file qtextcontrol_p_p.h.
QTextControlPrivate::QTextControlPrivate | ( | ) |
Definition at line 117 of file qtextcontrol.cpp.
void QTextControlPrivate::_q_copyLink | ( | ) |
Definition at line 3050 of file qtextcontrol.cpp.
void QTextControlPrivate::_q_deleteSelected | ( | ) |
Definition at line 756 of file qtextcontrol.cpp.
Referenced by repaintSelection().
void QTextControlPrivate::_q_documentLayoutChanged | ( | ) |
Definition at line 628 of file qtextcontrol.cpp.
Referenced by setContent().
void QTextControlPrivate::_q_emitCursorPosChanged | ( | const QTextCursor & | someCursor | ) |
Definition at line 619 of file qtextcontrol.cpp.
Referenced by repaintSelection(), and setContent().
void QTextControlPrivate::_q_setCursorAfterUndoRedo | ( | int | undoPosition, |
int | charsAdded, | ||
int | charsRemoved | ||
) |
Referenced by repaintSelection().
void QTextControlPrivate::_q_updateBlock | ( | const QTextBlock & | block | ) |
Definition at line 1339 of file qtextcontrol.cpp.
Referenced by _q_documentLayoutChanged().
void QTextControlPrivate::_q_updateCurrentCharFormatAndSelection | ( | ) |
Definition at line 601 of file qtextcontrol.cpp.
Referenced by repaintSelection(), and setContent().
Definition at line 2675 of file qtextcontrol.cpp.
Referenced by selectionRect().
QString QTextControlPrivate::anchorForCursor | ( | const QTextCursor & | anchor | ) | const |
Definition at line 2066 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::append | ( | const QString & | text, |
Qt::TextFormat | format = Qt::AutoText |
||
) |
Definition at line 2916 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::contextMenuEvent | ( | const QPoint & | screenPos, |
const QPointF & | docPos, | ||
QWidget * | contextWidget | ||
) |
Definition at line 1843 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::createAutoBulletList | ( | ) |
Definition at line 389 of file qtextcontrol.cpp.
bool QTextControlPrivate::cursorMoveKeyEvent | ( | QKeyEvent * | e | ) |
Definition at line 139 of file qtextcontrol.cpp.
QRectF QTextControlPrivate::cursorRectPlusUnicodeDirectionMarkers | ( | const QTextCursor & | cursor | ) | const |
Definition at line 2215 of file qtextcontrol.cpp.
Referenced by repaintCursor(), repaintOldAndNewSelection(), and repaintSelection().
Definition at line 1861 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::dragLeaveEvent | ( | ) |
Definition at line 1874 of file qtextcontrol.cpp.
Referenced by selectionRect().
bool QTextControlPrivate::dragMoveEvent | ( | QEvent * | e, |
const QMimeData * | mimeData, | ||
const QPointF & | pos | ||
) |
Definition at line 1885 of file qtextcontrol.cpp.
Referenced by selectionRect().
bool QTextControlPrivate::dropEvent | ( | const QMimeData * | mimeData, |
const QPointF & | pos, | ||
Qt::DropAction | dropAction, | ||
QWidget * | source | ||
) |
Definition at line 1909 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::extendBlockwiseSelection | ( | int | suggestedNewPosition | ) |
Definition at line 726 of file qtextcontrol.cpp.
Referenced by repaintSelection().
void QTextControlPrivate::extendWordwiseSelection | ( | int | suggestedNewPosition, |
qreal | mouseXPosition | ||
) |
Definition at line 652 of file qtextcontrol.cpp.
Referenced by repaintSelection().
void QTextControlPrivate::focusEvent | ( | QFocusEvent * | e | ) |
Definition at line 2037 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::gotoNextTableCell | ( | ) |
Definition at line 351 of file qtextcontrol.cpp.
void QTextControlPrivate::gotoPreviousTableCell | ( | ) |
Definition at line 370 of file qtextcontrol.cpp.
void QTextControlPrivate::indent | ( | ) |
Definition at line 314 of file qtextcontrol.cpp.
void QTextControlPrivate::init | ( | Qt::TextFormat | format = Qt::RichText , |
const QString & | text = QString() , |
||
QTextDocument * | document = 0 |
||
) |
Definition at line 407 of file qtextcontrol.cpp.
QInputContext * QTextControlPrivate::inputContext | ( | ) |
Definition at line 3060 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::inputMethodEvent | ( | QInputMethodEvent * | e | ) |
Definition at line 1932 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::keyPressEvent | ( | QKeyEvent * | e | ) |
Definition at line 1166 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::mouseDoubleClickEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos | ||
) |
Definition at line 1761 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::mouseMoveEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos | ||
) |
Definition at line 1612 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::mousePressEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos | ||
) |
Definition at line 1513 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::mouseReleaseEvent | ( | QEvent * | e, |
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos | ||
) |
Definition at line 1694 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::outdent | ( | ) |
Definition at line 334 of file qtextcontrol.cpp.
void QTextControlPrivate::paste | ( | const QMimeData * | source | ) |
QRectF QTextControlPrivate::rectForPosition | ( | int | position | ) | const |
Definition at line 1347 of file qtextcontrol.cpp.
Referenced by repaintSelection().
void QTextControlPrivate::repaintCursor | ( | ) |
Definition at line 547 of file qtextcontrol.cpp.
Referenced by setBlinkingCursorEnabled().
void QTextControlPrivate::repaintOldAndNewSelection | ( | const QTextCursor & | oldSelection | ) |
Definition at line 553 of file qtextcontrol.cpp.
Referenced by cursorMoveKeyEvent(), and repaintSelection().
|
inline |
Definition at line 102 of file qtextcontrol_p_p.h.
void QTextControlPrivate::selectionChanged | ( | bool | forceEmitSelectionChanged = false | ) |
Definition at line 574 of file qtextcontrol.cpp.
Referenced by _q_updateCurrentCharFormatAndSelection(), cursorMoveKeyEvent(), extendBlockwiseSelection(), extendWordwiseSelection(), and repaintSelection().
QRectF QTextControlPrivate::selectionRect | ( | const QTextCursor & | cursor | ) | const |
|
inline |
bool QTextControlPrivate::sendMouseEventToInputContext | ( | QEvent * | e, |
QEvent::Type | eventType, | ||
Qt::MouseButton | button, | ||
const QPointF & | pos, | ||
Qt::KeyboardModifiers | modifiers, | ||
Qt::MouseButtons | buttons, | ||
const QPoint & | globalPos | ||
) |
Definition at line 1804 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::setBlinkingCursorEnabled | ( | bool | enable | ) |
Definition at line 638 of file qtextcontrol.cpp.
Referenced by repaintSelection().
void QTextControlPrivate::setClipboardSelection | ( | ) |
Definition at line 608 of file qtextcontrol.cpp.
Referenced by extendBlockwiseSelection(), extendWordwiseSelection(), and repaintSelection().
void QTextControlPrivate::setContent | ( | Qt::TextFormat | format = Qt::RichText , |
const QString & | text = QString() , |
||
QTextDocument * | document = 0 |
||
) |
Definition at line 414 of file qtextcontrol.cpp.
Referenced by init().
void QTextControlPrivate::setCursorPosition | ( | const QPointF & | pos | ) |
Definition at line 528 of file qtextcontrol.cpp.
Referenced by extendWordwiseSelection().
void QTextControlPrivate::setCursorPosition | ( | int | pos, |
QTextCursor::MoveMode | mode = QTextCursor::MoveAnchor |
||
) |
Definition at line 537 of file qtextcontrol.cpp.
void QTextControlPrivate::showToolTip | ( | const QPoint & | globalPos, |
const QPointF & | pos, | ||
QWidget * | contextWidget | ||
) |
Definition at line 2745 of file qtextcontrol.cpp.
Referenced by selectionRect().
void QTextControlPrivate::startDrag | ( | ) |
Definition at line 502 of file qtextcontrol.cpp.
void QTextControlPrivate::updateCurrentCharFormat | ( | ) |
Definition at line 301 of file qtextcontrol.cpp.
Referenced by _q_updateCurrentCharFormatAndSelection().
bool QTextControlPrivate::acceptRichText |
Definition at line 207 of file qtextcontrol_p_p.h.
QString QTextControlPrivate::anchorOnMousePress |
Definition at line 222 of file qtextcontrol_p_p.h.
Definition at line 197 of file qtextcontrol_p_p.h.
Referenced by selectionRect(), and startDrag().
QTextCursor QTextControlPrivate::cursor |
Definition at line 179 of file qtextcontrol_p_p.h.
Referenced by _q_deleteSelected(), _q_emitCursorPosChanged(), createAutoBulletList(), cursorMoveKeyEvent(), extendBlockwiseSelection(), extendWordwiseSelection(), gotoNextTableCell(), gotoPreviousTableCell(), indent(), outdent(), repaintCursor(), repaintOldAndNewSelection(), repaintSelection(), selectionChanged(), setClipboardSelection(), setContent(), setCursorPosition(), startDrag(), and updateCurrentCharFormat().
QBasicTimer QTextControlPrivate::cursorBlinkTimer |
Definition at line 187 of file qtextcontrol_p_p.h.
Referenced by setBlinkingCursorEnabled().
bool QTextControlPrivate::cursorIsFocusIndicator |
Definition at line 180 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::cursorOn |
Definition at line 178 of file qtextcontrol_p_p.h.
Referenced by setBlinkingCursorEnabled().
QTextCursor QTextControlPrivate::dndFeedbackCursor |
Definition at line 183 of file qtextcontrol_p_p.h.
QTextDocument* QTextControlPrivate::doc |
Definition at line 177 of file qtextcontrol_p_p.h.
Referenced by _q_documentLayoutChanged(), init(), repaintOldAndNewSelection(), and setContent().
bool QTextControlPrivate::dragEnabled |
Definition at line 191 of file qtextcontrol_p_p.h.
QPoint QTextControlPrivate::dragStartPos |
Definition at line 196 of file qtextcontrol_p_p.h.
QVector<QAbstractTextDocumentLayout::Selection> QTextControlPrivate::extraSelections |
Definition at line 212 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::hadSelectionOnMousePress |
Definition at line 223 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::hasFocus |
Definition at line 215 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::hideCursor |
Definition at line 210 of file qtextcontrol_p_p.h.
QString QTextControlPrivate::highlightedAnchor |
Definition at line 221 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::ignoreAutomaticScrollbarAdjustement |
Definition at line 201 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::ignoreUnusedNavigationEvents |
Definition at line 225 of file qtextcontrol_p_p.h.
Referenced by cursorMoveKeyEvent().
Qt::TextInteractionFlags QTextControlPrivate::interactionFlags |
Definition at line 185 of file qtextcontrol_p_p.h.
Referenced by _q_deleteSelected(), extendBlockwiseSelection(), extendWordwiseSelection(), init(), and startDrag().
bool QTextControlPrivate::isEnabled |
Definition at line 219 of file qtextcontrol_p_p.h.
QTextCharFormat QTextControlPrivate::lastCharFormat |
Definition at line 181 of file qtextcontrol_p_p.h.
Referenced by updateCurrentCharFormat().
bool QTextControlPrivate::lastSelectionState |
Definition at line 199 of file qtextcontrol_p_p.h.
Referenced by selectionChanged().
QString QTextControlPrivate::linkToCopy |
Definition at line 230 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::mightStartDrag |
Definition at line 195 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::mousePressed |
Definition at line 193 of file qtextcontrol_p_p.h.
Referenced by startDrag().
bool QTextControlPrivate::openExternalLinks |
Definition at line 226 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::overwriteMode |
Definition at line 206 of file qtextcontrol_p_p.h.
QPalette QTextControlPrivate::palette |
Definition at line 214 of file qtextcontrol_p_p.h.
Referenced by setContent().
int QTextControlPrivate::preeditCursor |
Definition at line 209 of file qtextcontrol_p_p.h.
QTextCursor QTextControlPrivate::selectedBlockOnTrippleClick |
Definition at line 204 of file qtextcontrol_p_p.h.
Referenced by extendBlockwiseSelection(), and setCursorPosition().
QTextCursor QTextControlPrivate::selectedWordOnDoubleClick |
Definition at line 203 of file qtextcontrol_p_p.h.
Referenced by extendWordwiseSelection(), and setCursorPosition().
QPointF QTextControlPrivate::trippleClickPoint |
Definition at line 189 of file qtextcontrol_p_p.h.
QBasicTimer QTextControlPrivate::trippleClickTimer |
Definition at line 188 of file qtextcontrol_p_p.h.
bool QTextControlPrivate::wordSelectionEnabled |
Definition at line 228 of file qtextcontrol_p_p.h.
Referenced by extendWordwiseSelection().