KFormDesigner::FormWidget Class Referenceabstract

#include <form.h>

Inheritance diagram for KFormDesigner::FormWidget:
FormWidgetBase KexiDBForm KexiReportForm

Public Member Functions

virtual void drawRects (const TQValueList< TQRect > &list, int type)=0
 
virtual void drawRect (const TQRect &r, int type)=0
 
virtual void initBuffer ()=0
 
virtual void clearForm ()=0
 
virtual void highlightWidgets (TQWidget *from, TQWidget *to)=0
 

Protected Attributes

Form * m_form
 

Friends

class Form
 

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

Constructor & Destructor Documentation

◆ FormWidget()

FormWidget::FormWidget ( )

Definition at line 77 of file form.cpp.

◆ ~FormWidget()

FormWidget::~FormWidget ( )
virtual

Definition at line 82 of file form.cpp.

Member Function Documentation

◆ clearForm()

virtual void KFormDesigner::FormWidget::clearForm ( )
pure virtual

Clears the form, ie pastes the whole buffer to repaint the Form.

Implemented in KexiDBForm, and KexiReportForm.

◆ drawRects()

virtual void KFormDesigner::FormWidget::drawRects ( const TQValueList< TQRect > &  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.

◆ highlightWidgets()

virtual void KFormDesigner::FormWidget::highlightWidgets ( TQWidget *  from,
TQWidget *  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.

◆ initBuffer()

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 Symbol Documentation

◆ Form

friend class Form
friend

Definition at line 80 of file form.h.

Member Data Documentation

◆ m_form

Form* KFormDesigner::FormWidget::m_form
protected

Definition at line 78 of file form.h.


The documentation for this class was generated from the following files: