kexi
KFormDesigner::FormWidget Class Reference
#include <form.h>

Detailed Description
Base (virtual) class for all form widgets.You need to inherit this class, and implement the drawing functions. This is necessary because you cannot inherit QWidget twice, and we want form widgets to be any widget. See FormWidgetBase in test/kfd_part.cpp and just copy functions there.
Definition at line 53 of file form.h.
Public Member Functions | |
virtual void | drawRects (const QValueList< QRect > &list, int type)=0 |
virtual void | drawRect (const QRect &r, int type)=0 |
virtual void | initBuffer ()=0 |
virtual void | clearForm ()=0 |
virtual void | highlightWidgets (QWidget *from, QWidget *to)=0 |
Protected Attributes | |
Form * | m_form |
Friends | |
class | Form |
Member Function Documentation
virtual void KFormDesigner::FormWidget::drawRects | ( | const QValueList< QRect > & | list, | |
int | type | |||
) | [pure virtual] |
This function draws the rects in the list in the Form, above of all widgets, using double-buffering. type can be 1 (selection rect) or 2 (insert rect, dotted).
Implemented in FormWidgetBase, KexiDBForm, and KexiReportForm.
virtual void KFormDesigner::FormWidget::initBuffer | ( | ) | [pure virtual] |
This function inits the buffer used for double-buffering. Called before drawing rect.
Implemented in KexiDBForm, and KexiReportForm.
virtual void KFormDesigner::FormWidget::clearForm | ( | ) | [pure virtual] |
Clears the form, ie pastes the whole buffer to repaint the Form.
Implemented in KexiDBForm, and KexiReportForm.
virtual void KFormDesigner::FormWidget::highlightWidgets | ( | QWidget * | from, | |
QWidget * | to | |||
) | [pure virtual] |
This function highlights two widgets (to is optional), which are sender and receiver, and draws a link between them.
Implemented in FormWidgetBase, KexiDBForm, and KexiReportForm.
The documentation for this class was generated from the following files: