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

#include <styledbutton.h>

Diagrama de herencias de StyledButton
QButton QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Tipos públicos

enum  EditorType { ColorEditor, PixmapEditor }

Slots públicos

virtual void onEditor ()

Señales

void changed ()

Métodos públicos

 StyledButton (QWidget *parent=0, const char *name=0)
 StyledButton (const QBrush &b, QWidget *parent=0, const char *name=0, WFlags f=0)
 ~StyledButton ()
void setEditor (EditorType)
EditorType editor () const
void setColor (const QColor &)
void setPixmap (const QPixmap &)
QPixmappixmap () const
QColor color () const
void setScale (bool)
bool scale () const
QSize sizeHint () const
QSize minimumSizeHint () const
void setFormWindow (FormWindow *fw)

Métodos protegidos

void mousePressEvent (QMouseEvent *)
void mouseMoveEvent (QMouseEvent *)
void dragEnterEvent (QDragEnterEvent *)
void dragMoveEvent (QDragMoveEvent *)
void dragLeaveEvent (QDragLeaveEvent *)
void dropEvent (QDropEvent *)
void drawButton (QPainter *)
void drawButtonLabel (QPainter *)
void resizeEvent (QResizeEvent *)
void scalePixmap ()

Propiedades

QColor color
QPixmap pixmap
 the pixmap shown on the button
EditorType editor
bool scale

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
ColorEditor 
PixmapEditor 

Documentación del constructor y destructor

StyledButton::StyledButton ( QWidget parent = 0,
const char *  name = 0 
)
StyledButton::StyledButton ( const QBrush b,
QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)
StyledButton::~StyledButton ( )

Documentación de las funciones miembro

void StyledButton::changed ( ) [signal]
QColor StyledButton::color ( ) const
void StyledButton::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 StyledButton::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 StyledButton::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 StyledButton::drawButton ( QPainter ) [protected, virtual]

Draws the button. The default implementation does nothing.

This virtual function is reimplemented by subclasses to draw real buttons. At some point, these reimplementations should call drawButtonLabel().

Ver también:
drawButtonLabel(), paintEvent()

Reimplementado de QButton.

void StyledButton::drawButtonLabel ( QPainter ) [protected, virtual]

Draws the button text or pixmap.

This virtual function is reimplemented by subclasses to draw real buttons. It is invoked by drawButton().

Ver también:
drawButton(), paintEvent()

Reimplementado de QButton.

void StyledButton::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.

EditorType StyledButton::editor ( ) const
QSize StyledButton::minimumSizeHint ( ) const [virtual]

Reimplementado de QWidget.

void StyledButton::mouseMoveEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QButton.

void StyledButton::mousePressEvent ( QMouseEvent e) [protected, virtual]

Reimplementado de QButton.

void StyledButton::onEditor ( ) [virtual, slot]
QPixmap* StyledButton::pixmap ( ) const

Reimplementado de QButton.

void StyledButton::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.

bool StyledButton::scale ( ) const
void StyledButton::scalePixmap ( ) [protected]
void StyledButton::setColor ( const QColor c)
void StyledButton::setEditor ( EditorType  e)
void StyledButton::setFormWindow ( FormWindow fw) [inline]
void StyledButton::setPixmap ( const QPixmap pm) [virtual]

Reimplementado de QButton.

void StyledButton::setScale ( bool  on)
QSize StyledButton::sizeHint ( ) const [virtual]

Reimplementado de QWidget.


Documentación de propiedades

QColor StyledButton::color [read, write]
StyledButton::EditorType StyledButton::editor [read, write]
QPixmap * StyledButton::pixmap [read, write]

the pixmap shown on the button

If the pixmap is monochrome (i.e. it is a QBitmap or its depth is 1) and it does not have a mask, this property will set the pixmap to be its own mask. The purpose of this is to draw transparent bitmaps which are important for toggle buttons, for example.

pixmap() returns 0 if no pixmap was set.

Reimplementado de QButton.

bool StyledButton::scale [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'