Eneboo - Documentación para desarrolladores
Clases | Tipos públicos | Slots públicos | Señales | Métodos públicos | Métodos públicos estáticos | Métodos protegidos | Atributos protegidos | Propiedades
Referencia de la Clase QtMultiLineEdit

#include <qtmultilineedit.h>

Diagrama de herencias de QtMultiLineEdit
QtTableView QFrame QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

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 QValidatorvalidator () 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
QStringgetString (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

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
Normal 
NoEcho 
Password 
Valores de enumeraciones:
NoWrap 
WidgetWidth 
FixedPixelWidth 
FixedColumnWidth 
Valores de enumeraciones:
AtWhiteSpace 
Anywhere 

Documentación del constructor y destructor

QtMultiLineEdit::QtMultiLineEdit ( QWidget parent = 0,
const char *  name = 0 
)
QtMultiLineEdit::~QtMultiLineEdit ( )

Documentación de las funciones miembro

int QtMultiLineEdit::alignment ( ) const
void QtMultiLineEdit::append ( const QString s) [slot]
bool QtMultiLineEdit::atBeginning ( ) const
bool QtMultiLineEdit::atEnd ( ) const
bool QtMultiLineEdit::autoUpdate ( ) const

Reimplementado de QtTableView.

void QtMultiLineEdit::backspace ( ) [protected, virtual]
void QtMultiLineEdit::clear ( void  ) [slot]
void QtMultiLineEdit::copy ( ) const [slot]
void QtMultiLineEdit::copyAvailable ( bool  ) [signal]
void QtMultiLineEdit::copyText ( ) const [slot]
void QtMultiLineEdit::cursorDown ( bool  mark = FALSE) [protected, virtual]
void QtMultiLineEdit::cursorLeft ( bool  mark = FALSE,
bool  wrap = TRUE 
) [protected, virtual]
QPoint QtMultiLineEdit::cursorPoint ( ) const [protected]
void QtMultiLineEdit::cursorPosition ( int line,
int col 
) const
void QtMultiLineEdit::cursorRight ( bool  mark = FALSE,
bool  wrap = TRUE 
) [protected, virtual]
void QtMultiLineEdit::cursorUp ( bool  mark = FALSE) [protected, virtual]
void QtMultiLineEdit::cursorWordBackward ( bool  mark)
void QtMultiLineEdit::cursorWordForward ( bool  mark)
void QtMultiLineEdit::cut ( ) [slot]
int QtMultiLineEdit::defaultTabStop ( ) [static]
void QtMultiLineEdit::del ( ) [protected, virtual]
void QtMultiLineEdit::deselect ( ) [slot]
void QtMultiLineEdit::dragEnterEvent ( QDragEnterEvent ) [protected, virtual]

This event handler is called when a drag is in progress and the mouse enters this widget.

See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application.

Ver también:
QTextDrag, QImageDrag, QDragEnterEvent

Reimplementado de QWidget.

void QtMultiLineEdit::dragLeaveEvent ( QDragLeaveEvent ) [protected, virtual]

This event handler is called when a drag is in progress and the mouse leaves this widget.

See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application.

Ver también:
QTextDrag, QImageDrag, QDragLeaveEvent

Reimplementado de QWidget.

void QtMultiLineEdit::dragMoveEvent ( QDragMoveEvent ) [protected, virtual]

This event handler is called when a drag is in progress and the mouse enters this widget, and whenever it moves within the widget.

See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application.

Ver también:
QTextDrag, QImageDrag, QDragMoveEvent

Reimplementado de QWidget.

void QtMultiLineEdit::dropEvent ( QDropEvent ) [protected, virtual]

This event handler is called when the drag is dropped on this widget.

See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application.

Ver también:
QTextDrag, QImageDrag, QDropEvent

Reimplementado de QWidget.

EchoMode QtMultiLineEdit::echoMode ( ) const
bool QtMultiLineEdit::edited ( ) const
void QtMultiLineEdit::end ( bool  mark = FALSE) [protected, virtual]
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]

This event handler can be reimplemented in a subclass to receive keyboard focus events (focus received) for the widget.

A widget normally must setFocusPolicy() to something other than NoFocus in order to receive focus events. (Note that the application programmer can call setFocus() on any widget, even those that do not normally accept focus.)

The default implementation updates the widget (except for toplevel widgets that do not specify a focusPolicy() ). It also calls setMicroFocusHint(), hinting any system-specific input tools about the focus of the user's attention.

Ver también:
focusOutEvent(), setFocusPolicy(), keyPressEvent(), keyReleaseEvent(), event(), QFocusEvent

Reimplementado de QWidget.

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]

This event handler can be reimplemented in a subclass to receive keyboard focus events (focus lost) for the widget.

A widget normally must setFocusPolicy() to something other than NoFocus in order to receive focus events. (Note that the application programmer can call setFocus() on any widget, even those that do not normally accept focus.)

The default implementation updates the widget (except for toplevel widgets that do not specify a focusPolicy() ). It also calls setMicroFocusHint(), hinting any system-specific input tools about the focus of the user's attention.

Ver también:
focusInEvent(), setFocusPolicy(), keyPressEvent(), keyReleaseEvent(), event(), QFocusEvent

Reimplementado de QWidget.

void QtMultiLineEdit::getCursorPosition ( int line,
int col 
) const
bool QtMultiLineEdit::getMarkedRegion ( int line1,
int col1,
int line2,
int col2 
) const [protected]
QString * QtMultiLineEdit::getString ( int  row) const [inline, protected]
bool QtMultiLineEdit::hasMarkedText ( ) const [protected]
int QtMultiLineEdit::hMargin ( ) const
void QtMultiLineEdit::home ( bool  mark = FALSE) [protected, virtual]
void QtMultiLineEdit::insert ( const QString s) [slot]
void QtMultiLineEdit::insert ( const QString str,
bool  mark 
) [protected, virtual]
void QtMultiLineEdit::insertAt ( const QString s,
int  line,
int  col,
bool  mark = FALSE 
) [virtual]
void QtMultiLineEdit::insertChar ( QChar  c) [protected]
void QtMultiLineEdit::insertLine ( const QString s,
int  line = -1 
) [virtual]
bool QtMultiLineEdit::isEndOfParagraph ( int  row) const [protected]
bool QtMultiLineEdit::isOverwriteMode ( ) const [inline]
bool QtMultiLineEdit::isReadOnly ( ) const [inline]
bool QtMultiLineEdit::isUndoEnabled ( ) const
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::killLine ( ) [protected, virtual]
void QtMultiLineEdit::leaveEvent ( QEvent ) [protected, virtual]

This event handler can be reimplemented in a subclass to receive widget leave events.

A leave event is sent to the widget when the mouse cursor leaves the widget.

Ver también:
enterEvent(), mouseMoveEvent(), event()

Reimplementado de QWidget.

int QtMultiLineEdit::length ( ) const
int QtMultiLineEdit::lineLength ( int  row) const [inline, protected]
QString QtMultiLineEdit::markedText ( ) const [protected]
int QtMultiLineEdit::maxLength ( ) const
int QtMultiLineEdit::maxLineLength ( ) const
int QtMultiLineEdit::maxLines ( ) const
int QtMultiLineEdit::maxLineWidth ( ) const
QSize QtMultiLineEdit::minimumSizeHint ( ) const [virtual]

Reimplementado de QWidget.

void QtMultiLineEdit::mouseDoubleClickEvent ( QMouseEvent e) [protected, virtual]

This event handler, for event e, can be reimplemented in a subclass to receive mouse double click events for the widget.

The default implementation generates a normal mouse press event.

Note that the widgets gets a mousePressEvent() and a mouseReleaseEvent() before the mouseDoubleClickEvent().

Ver también:
mousePressEvent(), mouseReleaseEvent() mouseMoveEvent(), event(), QMouseEvent

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]

This event handler, for event e, can be reimplemented in a subclass to receive mouse press events for the widget.

If you create new widgets in the mousePressEvent() the mouseReleaseEvent() may not end up where you expect, depending on the underlying window system (or X11 window manager), the widgets' location and maybe more.

The default implementation implements the closing of popup widgets when you click outside the window. For other widget types it does nothing.

Ver también:
mouseReleaseEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), event(), QMouseEvent

Reimplementado de QWidget.

void QtMultiLineEdit::mouseReleaseEvent ( QMouseEvent e) [protected, virtual]

This event handler, for event e, can be reimplemented in a subclass to receive mouse release events for the widget.

Ver también:
mouseReleaseEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), event(), QMouseEvent

Reimplementado de QWidget.

void QtMultiLineEdit::newLine ( ) [protected, virtual]
int QtMultiLineEdit::numLines ( ) const
void QtMultiLineEdit::pageDown ( bool  mark = FALSE) [protected, virtual]
void QtMultiLineEdit::pageUp ( bool  mark = FALSE) [protected, virtual]
void QtMultiLineEdit::paintCell ( QPainter painter,
int  row,
int  col 
) [protected, virtual]

Implementa QtTableView.

void QtMultiLineEdit::paste ( ) [slot]
void QtMultiLineEdit::pasteSubType ( const QCString subtype) [slot]
void QtMultiLineEdit::redo ( ) [slot]
void QtMultiLineEdit::redoAvailable ( bool  ) [signal]
void QtMultiLineEdit::removeLine ( int  line) [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::returnPressed ( ) [signal]
void QtMultiLineEdit::selectAll ( ) [slot]
void QtMultiLineEdit::setAlignment ( int  flags)
void QtMultiLineEdit::setAutoUpdate ( bool  enable) [virtual]

Reimplementado de QtTableView.

void QtMultiLineEdit::setCursorPosition ( int  line,
int  col,
bool  mark = FALSE 
) [virtual]
void QtMultiLineEdit::setDefaultTabStop ( int  ex) [static]
void QtMultiLineEdit::setEchoMode ( EchoMode  em) [virtual]
void QtMultiLineEdit::setEdited ( bool  e)
void QtMultiLineEdit::setFixedVisibleLines ( int  lines) [virtual]
void QtMultiLineEdit::setFont ( const QFont font) [virtual]

Reimplementado de QWidget.

void QtMultiLineEdit::setHMargin ( int  m) [virtual]
void QtMultiLineEdit::setMaxLength ( int  m)
void QtMultiLineEdit::setMaxLineLength ( int  m) [virtual]
void QtMultiLineEdit::setMaxLines ( int  m) [virtual]
void QtMultiLineEdit::setOverwriteMode ( bool  on) [inline, virtual, slot]
void QtMultiLineEdit::setReadOnly ( bool  on) [virtual, slot]
void QtMultiLineEdit::setSelection ( int  row_from,
int  col_from,
int  row_to,
int  col_t 
) [virtual]
void QtMultiLineEdit::setText ( const QString s) [virtual, slot]
void QtMultiLineEdit::setUndoDepth ( int  depth)
void QtMultiLineEdit::setUndoEnabled ( bool  enable)
void QtMultiLineEdit::setValidator ( const QValidator v) [virtual]
void QtMultiLineEdit::setWordWrap ( WordWrap  mode)
void QtMultiLineEdit::setWrapColumnOrWidth ( int  value)
void QtMultiLineEdit::setWrapPolicy ( WrapPolicy  policy)
QSize QtMultiLineEdit::sizeHint ( ) const [virtual]

Reimplementado de QFrame.

QSizePolicy QtMultiLineEdit::sizePolicy ( ) const [virtual]

Reimplementado de QWidget.

QString QtMultiLineEdit::stringShown ( int  row) const [protected]
QString QtMultiLineEdit::text ( ) const
void QtMultiLineEdit::textChanged ( ) [signal]
QString QtMultiLineEdit::textLine ( int  line) const
int QtMultiLineEdit::textWidth ( const QString s) [protected]
int QtMultiLineEdit::textWidth ( int  line) [protected]
void QtMultiLineEdit::timerEvent ( QTimerEvent ) [protected, virtual]

This event handler can be reimplemented in a subclass to receive timer events for the object.

QTimer provides a higher-level interface to the timer functionality, and also more general information about timers.

Ver también:
startTimer(), killTimer(), killTimers(), event()

Reimplementado de QObject.

void QtMultiLineEdit::undo ( ) [slot]
void QtMultiLineEdit::undoAvailable ( bool  ) [signal]
int QtMultiLineEdit::undoDepth ( ) const
const QValidator * QtMultiLineEdit::validator ( ) const
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.

WordWrap QtMultiLineEdit::wordWrap ( ) const
int QtMultiLineEdit::wrapColumnOrWidth ( ) const
WrapPolicy QtMultiLineEdit::wrapPolicy ( ) const

Documentación de los datos miembro


Documentación de propiedades

int QtMultiLineEdit::alignment [read, write]
bool QtMultiLineEdit::atBeginning [inline, read]
bool QtMultiLineEdit::atEnd [inline, read]
bool QtMultiLineEdit::autoUpdate [read, write]
QtMultiLineEdit::EchoMode QtMultiLineEdit::echoMode [read, write]
bool QtMultiLineEdit::edited [read, write]
int QtMultiLineEdit::hMargin [read, write]
int QtMultiLineEdit::length [read]
int QtMultiLineEdit::maxLength [read, write]
int QtMultiLineEdit::maxLines [read, write]
int QtMultiLineEdit::maxLineWidth [read]
int QtMultiLineEdit::numLines [inline, read]
bool QtMultiLineEdit::overWriteMode [read, write]
bool QtMultiLineEdit::readOnly [read, write]
QString QtMultiLineEdit::text [read, write]
int QtMultiLineEdit::undoDepth [read, write]
bool QtMultiLineEdit::undoEnabled [read, write]
QtMultiLineEdit::WordWrap QtMultiLineEdit::wordWrap [read, write]
int QtMultiLineEdit::wrapColumnOrWidth [read, write]
QtMultiLineEdit::WrapPolicy QtMultiLineEdit::wrapPolicy [read, write]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'