Kexi API Documentation (2.0 alpha)

KFormDesigner::FormWidget Class Reference

#include <form.h>

Inheritance diagram for KFormDesigner::FormWidget:

FormWidgetBase KexiDBForm KexiReportForm List of all members.

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

 FormWidget ()
virtual ~FormWidget ()
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

Formm_form

Friends

class Form


Constructor & Destructor Documentation

FormWidget::FormWidget  ) 
 

Definition at line 76 of file form.cpp.

FormWidget::~FormWidget  )  [virtual]
 

Definition at line 81 of file form.cpp.

References m_form, and KFormDesigner::Form::setFormWidget().


Member Function Documentation

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::drawRect const QRect &  r,
int  type
[pure virtual]
 

Implemented in FormWidgetBase, KexiDBForm, and KexiReportForm.

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

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.


Friends And Related Function Documentation

friend class Form [friend]
 

Definition at line 80 of file form.h.

Referenced by FormWidgetBase::closeEvent().


Member Data Documentation

Form* KFormDesigner::FormWidget::m_form [protected]
 

Definition at line 78 of file form.h.

Referenced by KFormDesigner::Form::setFormWidget(), and ~FormWidget().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:59 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003