Clases |
struct | QtMultiLineEditRow |
Tipos públicos |
enum | EchoMode { Normal,
NoEcho,
Password
} |
enum | WordWrap { NoWrap,
WidgetWidth,
FixedPixelWidth,
FixedColumnWidth
} |
enum | WrapPolicy { AtWhiteSpace,
Anywhere
} |
Slots públicos |
virtual void | setText (const QString &) |
virtual void | setReadOnly (bool) |
virtual void | setOverwriteMode (bool) |
void | clear () |
void | append (const QString &) |
void | deselect () |
void | selectAll () |
void | paste () |
void | pasteSubType (const QCString &subtype) |
void | copyText () const |
void | copy () const |
void | cut () |
void | insert (const QString &) |
void | undo () |
void | redo () |
Señales |
void | textChanged () |
void | returnPressed () |
void | undoAvailable (bool) |
void | redoAvailable (bool) |
void | copyAvailable (bool) |
Métodos públicos |
| QtMultiLineEdit (QWidget *parent=0, const char *name=0) |
| ~QtMultiLineEdit () |
QString | textLine (int line) const |
int | numLines () const |
QSize | sizeHint () const |
QSize | minimumSizeHint () const |
QSizePolicy | sizePolicy () const |
virtual void | setFont (const QFont &font) |
virtual void | insertLine (const QString &s, int line=-1) |
virtual void | insertAt (const QString &s, int line, int col, bool mark=FALSE) |
virtual void | removeLine (int line) |
void | cursorPosition (int *line, int *col) const |
virtual void | setCursorPosition (int line, int col, bool mark=FALSE) |
void | getCursorPosition (int *line, int *col) const |
bool | atBeginning () const |
bool | atEnd () const |
virtual void | setFixedVisibleLines (int lines) |
int | maxLineWidth () const |
void | setAlignment (int flags) |
int | alignment () const |
virtual void | setValidator (const QValidator *) |
const QValidator * | validator () const |
void | setEdited (bool) |
bool | edited () const |
void | cursorWordForward (bool mark) |
void | cursorWordBackward (bool mark) |
virtual void | setEchoMode (EchoMode) |
EchoMode | echoMode () const |
void | setMaxLength (int) |
int | maxLength () const |
virtual void | setMaxLineLength (int) |
int | maxLineLength () const |
virtual void | setMaxLines (int) |
int | maxLines () const |
virtual void | setHMargin (int) |
int | hMargin () const |
virtual void | setSelection (int row_from, int col_from, int row_to, int col_t) |
void | setWordWrap (WordWrap mode) |
WordWrap | wordWrap () const |
void | setWrapColumnOrWidth (int) |
int | wrapColumnOrWidth () const |
void | setWrapPolicy (WrapPolicy policy) |
WrapPolicy | wrapPolicy () const |
bool | autoUpdate () const |
virtual void | setAutoUpdate (bool) |
void | setUndoEnabled (bool) |
bool | isUndoEnabled () const |
void | setUndoDepth (int) |
int | undoDepth () const |
bool | isReadOnly () const |
bool | isOverwriteMode () const |
QString | text () const |
int | length () const |
Métodos públicos estáticos |
static void | setDefaultTabStop (int ex) |
static int | defaultTabStop () |
Métodos protegidos |
void | paintCell (QPainter *, int row, int col) |
bool | event (QEvent *) |
void | mousePressEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
void | wheelEvent (QWheelEvent *) |
void | keyPressEvent (QKeyEvent *) |
void | focusInEvent (QFocusEvent *) |
void | focusOutEvent (QFocusEvent *) |
void | timerEvent (QTimerEvent *) |
void | leaveEvent (QEvent *) |
void | resizeEvent (QResizeEvent *) |
bool | focusNextPrevChild (bool) |
void | dragMoveEvent (QDragMoveEvent *) |
void | dragEnterEvent (QDragEnterEvent *) |
void | dropEvent (QDropEvent *) |
void | dragLeaveEvent (QDragLeaveEvent *) |
bool | hasMarkedText () const |
QString | markedText () const |
int | textWidth (int) |
int | textWidth (const QString &) |
QPoint | cursorPoint () const |
virtual void | insert (const QString &, bool mark) |
virtual void | newLine () |
virtual void | killLine () |
virtual void | pageUp (bool mark=FALSE) |
virtual void | pageDown (bool mark=FALSE) |
virtual void | cursorLeft (bool mark=FALSE, bool wrap=TRUE) |
virtual void | cursorRight (bool mark=FALSE, bool wrap=TRUE) |
virtual void | cursorUp (bool mark=FALSE) |
virtual void | cursorDown (bool mark=FALSE) |
virtual void | backspace () |
virtual void | del () |
virtual void | home (bool mark=FALSE) |
virtual void | end (bool mark=FALSE) |
bool | getMarkedRegion (int *line1, int *col1, int *line2, int *col2) const |
int | lineLength (int row) const |
QString * | getString (int row) const |
bool | isEndOfParagraph (int row) const |
QString | stringShown (int row) const |
void | insertChar (QChar) |
Atributos protegidos |
bool | cursorOn |
Propiedades |
int | numLines |
bool | atBeginning |
bool | atEnd |
int | maxLineWidth |
Alignment | alignment |
bool | edited |
EchoMode | echoMode |
int | maxLength |
int | maxLines |
int | hMargin |
WordWrap | wordWrap |
int | wrapColumnOrWidth |
WrapPolicy | wrapPolicy |
bool | autoUpdate |
bool | undoEnabled |
int | undoDepth |
bool | readOnly |
bool | overWriteMode |
QString | text |
int | length |
bool QtMultiLineEdit::event |
( |
QEvent * |
e | ) |
[protected, virtual] |
This is the main event handler; it handles event e. You can reimplement this function in a subclass, but we recommend using one of the specialized event handlers instead.
The main event handler first passes an event through all event filters that have been installed. If none of the filters intercept the event, it calls one of the specialized event handlers.
Key press and release events are treated differently from other events. event() checks for Tab and Shift+Tab and tries to move the focus appropriately. If there is no widget to move the focus to (or the key press is not Tab or Shift+Tab), event() calls keyPressEvent().
This function returns TRUE if it is able to pass the event over to someone (i.e. someone wanted the event); otherwise returns FALSE.
- Ver también:
- closeEvent(), focusInEvent(), focusOutEvent(), enterEvent(), keyPressEvent(), keyReleaseEvent(), leaveEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveEvent(), paintEvent(), resizeEvent(), QObject::event(), QObject::timerEvent()
Reimplementado de QWidget.
void QtMultiLineEdit::focusInEvent |
( |
QFocusEvent * |
| ) |
[protected, virtual] |
bool QtMultiLineEdit::focusNextPrevChild |
( |
bool |
next | ) |
[protected, virtual] |
Finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns TRUE if is can find a new widget and FALSE if it can't,
If next is TRUE, this function searches "forwards", if next is FALSE, it searches "backwards".
Sometimes, you will want to reimplement this function. For example, a web browser might reimplement it to move its "current
active link" forwards or backwards, and call QWidget::focusNextPrevChild() only when it reaches the last or first link on the "page".
Child widgets call focusNextPrevChild() on their parent widgets, but only the top-level widget decides where to redirect focus. By overriding this method for an object, you thus gain control of focus traversal for all child widgets.
- Atención:
- QScrollView uses it own logic for this function, which does the right thing in most cases. But if you are using a QScrollView and want complete control of the focus chain you'll need to override QScrollView::focusNextPrevChild() and your top-level widgets' focusNextPrevChild() functions.
- Ver también:
- focusData()
Reimplementado de QWidget.
void QtMultiLineEdit::focusOutEvent |
( |
QFocusEvent * |
| ) |
[protected, virtual] |
void QtMultiLineEdit::keyPressEvent |
( |
QKeyEvent * |
e | ) |
[protected, virtual] |
This event handler, for event e, can be reimplemented in a subclass to receive key press events for the widget.
A widget must call setFocusPolicy() to accept focus initially and have focus in order to receive a key press event.
If you reimplement this handler, it is very important that you explicitly ignore the event if you do not understand it, so that the widget's parent can interpret it; otherwise, the event will be implicitly accepted. Although top-level widgets are able to choose whether to accept or ignore unknown events because they have no parent widgets that could otherwise handle them, it is good practice to explicitly ignore events to make widgets as reusable as possible.
The default implementation closes popup widgets if the user presses Esc. Otherwise the event is ignored.
- Ver también:
- keyReleaseEvent(), QKeyEvent::ignore(), setFocusPolicy(), focusInEvent(), focusOutEvent(), event(), QKeyEvent
Reimplementado de QWidget.
void QtMultiLineEdit::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
[protected, virtual] |
This event handler, for event e, can be reimplemented in a subclass to receive mouse move events for the widget.
If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched on, mouse move events occur even if no mouse button is pressed.
QMouseEvent::pos() reports the position of the mouse cursor, relative to this widget. For press and release events, the position is usually the same as the position of the last mouse move event, but it might be different if the user's hand shakes. This is a feature of the underlying window system, not Qt.
- Ver también:
- setMouseTracking(), mousePressEvent(), mouseReleaseEvent(), mouseDoubleClickEvent(), event(), QMouseEvent
Reimplementado de QWidget.
void QtMultiLineEdit::mousePressEvent |
( |
QMouseEvent * |
e | ) |
[protected, virtual] |
void QtMultiLineEdit::resizeEvent |
( |
QResizeEvent * |
e | ) |
[protected, virtual] |
Processes the resize event e.
Adjusts the frame rectangle for the resized widget. The frame rectangle is elastic, and the surrounding area is static.
The resulting frame rectangle may be null or invalid. You can use setMinimumSize() to avoid those possibilities.
Nothing is done if the frame rectangle is a null rectangle already.
Reimplementado de QtTableView.
void QtMultiLineEdit::wheelEvent |
( |
QWheelEvent * |
e | ) |
[protected, virtual] |
This event handler, for event e, can be reimplemented in a subclass to receive wheel events for the widget.
If you reimplement this handler, it is very important that you ignore() the event if you do not handle it, so that the widget's parent can interpret it.
The default implementation ignores the event.
- Ver también:
- QWheelEvent::ignore(), QWheelEvent::accept(), event(), QWheelEvent
Reimplementado de QWidget.
La documentación para esta clase fue generada a partir de los siguientes ficheros: