Eneboo - Documentación para desarrolladores
Slots públicos | Señales | Métodos públicos | Métodos protegidos
Referencia de la Clase MarkerWidget

#include <markerwidget.h>

Diagrama de herencias de MarkerWidget
QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Slots públicos

void doRepaint ()
void doRepaint ()

Señales

void markersChanged ()
void expandFunction (QTextParagraph *p)
void collapseFunction (QTextParagraph *p)
void collapse (bool all)
void expand (bool all)
void editBreakPoints ()
void isBreakpointPossible (bool &possible, const QString &code, int line)
void showMessage (const QString &msg)
void markersChanged ()
void expandFunction (QTextParagraph *p)
void collapseFunction (QTextParagraph *p)
void collapse (bool all)
void expand (bool all)
void editBreakPoints ()
void isBreakpointPossible (bool &possible, const QString &code, int line)
void showMessage (const QString &msg)

Métodos públicos

 MarkerWidget (ViewManager *parent, const char *name)
 MarkerWidget (ViewManager *parent, const char *name)

Métodos protegidos

void paintEvent (QPaintEvent *e)
void resizeEvent (QResizeEvent *e)
void mousePressEvent (QMouseEvent *e)
void contextMenuEvent (QContextMenuEvent *e)
void paintEvent (QPaintEvent *e)
void resizeEvent (QResizeEvent *e)
void mousePressEvent (QMouseEvent *e)
void contextMenuEvent (QContextMenuEvent *e)

Documentación del constructor y destructor

MarkerWidget::MarkerWidget ( ViewManager parent,
const char *  name 
)
MarkerWidget::MarkerWidget ( ViewManager parent,
const char *  name 
)

Documentación de las funciones miembro

void MarkerWidget::collapse ( bool  all) [signal]
void MarkerWidget::collapse ( bool  all) [signal]
void MarkerWidget::collapseFunction ( QTextParagraph p) [signal]
void MarkerWidget::collapseFunction ( QTextParagraph p) [signal]
void MarkerWidget::contextMenuEvent ( QContextMenuEvent e) [protected, virtual]

This event handler, for event e, can be reimplemented in a subclass to receive widget context menu events.

The default implementation calls e->ignore(), which rejects the context event. See the QContextMenuEvent documentation for more details.

Ver también:
event(), QContextMenuEvent

Reimplementado de QWidget.

void MarkerWidget::contextMenuEvent ( QContextMenuEvent e) [protected, virtual]

This event handler, for event e, can be reimplemented in a subclass to receive widget context menu events.

The default implementation calls e->ignore(), which rejects the context event. See the QContextMenuEvent documentation for more details.

Ver también:
event(), QContextMenuEvent

Reimplementado de QWidget.

void MarkerWidget::doRepaint ( ) [inline, slot]
void MarkerWidget::doRepaint ( ) [inline, slot]
void MarkerWidget::editBreakPoints ( ) [signal]
void MarkerWidget::editBreakPoints ( ) [signal]
void MarkerWidget::expand ( bool  all) [signal]
void MarkerWidget::expand ( bool  all) [signal]
void MarkerWidget::expandFunction ( QTextParagraph p) [signal]
void MarkerWidget::expandFunction ( QTextParagraph p) [signal]
void MarkerWidget::isBreakpointPossible ( bool possible,
const QString code,
int  line 
) [signal]
void MarkerWidget::isBreakpointPossible ( bool possible,
const QString code,
int  line 
) [signal]
void MarkerWidget::markersChanged ( ) [signal]
void MarkerWidget::markersChanged ( ) [signal]
void MarkerWidget::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 MarkerWidget::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 MarkerWidget::paintEvent ( QPaintEvent ) [protected, virtual]

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

A paint event is a request to repaint all or part of the widget. It can happen as a result of repaint() or update(), or because the widget was obscured and has now been uncovered, or for many other reasons.

Many widgets can simply repaint their entire surface when asked to, but some slow widgets need to optimize by painting only the requested region: QPaintEvent::region(). This speed optimization does not change the result, as painting is clipped to that region during event processing. QListView and QCanvas do this, for example.

Qt also tries to speed up painting by merging multiple paint events into one. When update() is called several times or the window system sends several paint events, Qt merges these events into one event with a larger region (see QRegion::unite()). repaint() does not permit this optimization, so we suggest using update() when possible.

When the paint event occurs, the update region has normally been erased, so that you're painting on the widget's background. There are a couple of exceptions and QPaintEvent::erased() tells you whether the widget has been erased or not.

The background can be set using setBackgroundMode(), setPaletteBackgroundColor() or setBackgroundPixmap(). The documentation for setBackgroundMode() elaborates on the background; we recommend reading it.

Ver también:
event(), repaint(), update(), QPainter, QPixmap, QPaintEvent

Reimplementado de QWidget.

void MarkerWidget::paintEvent ( QPaintEvent ) [protected, virtual]

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

A paint event is a request to repaint all or part of the widget. It can happen as a result of repaint() or update(), or because the widget was obscured and has now been uncovered, or for many other reasons.

Many widgets can simply repaint their entire surface when asked to, but some slow widgets need to optimize by painting only the requested region: QPaintEvent::region(). This speed optimization does not change the result, as painting is clipped to that region during event processing. QListView and QCanvas do this, for example.

Qt also tries to speed up painting by merging multiple paint events into one. When update() is called several times or the window system sends several paint events, Qt merges these events into one event with a larger region (see QRegion::unite()). repaint() does not permit this optimization, so we suggest using update() when possible.

When the paint event occurs, the update region has normally been erased, so that you're painting on the widget's background. There are a couple of exceptions and QPaintEvent::erased() tells you whether the widget has been erased or not.

The background can be set using setBackgroundMode(), setPaletteBackgroundColor() or setBackgroundPixmap(). The documentation for setBackgroundMode() elaborates on the background; we recommend reading it.

Ver también:
event(), repaint(), update(), QPainter, QPixmap, QPaintEvent

Reimplementado de QWidget.

void MarkerWidget::resizeEvent ( QResizeEvent ) [protected, virtual]

This event handler can be reimplemented in a subclass to receive widget resize events. When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().

The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.

Widgets that have been created with the WNoAutoErase flag will not be erased. Nevertheless, they will receive a paint event for their entire area afterwards. Again, no drawing needs to be done inside this handler.

The default implementation calls updateMask() if the widget has automatic masking enabled.

Ver también:
moveEvent(), event(), resize(), QResizeEvent, paintEvent()

Reimplementado de QWidget.

void MarkerWidget::resizeEvent ( QResizeEvent ) [protected, virtual]

This event handler can be reimplemented in a subclass to receive widget resize events. When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().

The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.

Widgets that have been created with the WNoAutoErase flag will not be erased. Nevertheless, they will receive a paint event for their entire area afterwards. Again, no drawing needs to be done inside this handler.

The default implementation calls updateMask() if the widget has automatic masking enabled.

Ver también:
moveEvent(), event(), resize(), QResizeEvent, paintEvent()

Reimplementado de QWidget.

void MarkerWidget::showMessage ( const QString msg) [signal]
void MarkerWidget::showMessage ( const QString msg) [signal]

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'