Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Examples  

QdbtEditorBase Class Reference

Base class for editors. More...

#include <qdbteditorbase.h>

Collaboration diagram for QdbtEditorBase:

Collaboration graph
[legend]
List of all members.

Public Methods

void setContext (int row, int col)
int rowContext () const
int colContext () const
virtual ~QdbtEditorBase ()
QdbtBaseCellcell () const

Protected Methods

 QdbtEditorBase (QdbtBaseTabular *p)
QdbtBaseTabulartabular () const
bool acceptEdit (QdbtBaseCell *=0)
bool cancelEdit (QdbtBaseCell *=0)

Detailed Description

Base class for editors.

This class simplifies the interaction of cell editors with the remaining tabular components, e.g. the cells and the cell matrix.


Constructor & Destructor Documentation

virtual QdbtEditorBase::~QdbtEditorBase   [inline, virtual]
 

for completeness

QdbtEditorBase::QdbtEditorBase QdbtBaseTabular   p [inline, protected]
 

Constructs an editor base object interacting with the tabular p


Member Function Documentation

bool QdbtEditorBase::acceptEdit QdbtBaseCell   c = 0 [protected]
 

Tries to accept the current edit session. Return TRUE upon succeeding or FALSE, if the current content has not been accepted.

If the table cell c is omitted, the base class tried to determine it from its current context.

bool QdbtEditorBase::cancelEdit QdbtBaseCell   c = 0 [protected]
 

Tries to cancel the current edit session. Return TRUE upon succeeding or FALSE, if this operation has not been permitted.

If the table cell c is omitted, the base class tried to determine it from its current context.

QdbtBaseCell * QdbtEditorBase::cell   const
 

Returns the cell associated to the least recently set context.

int QdbtEditorBase::colContext   const [inline]
 

Determines the context of an edit session and returns the column, that was least recently set using setContext()

int QdbtEditorBase::rowContext   const [inline]
 

Determines the context of an edit session and returns the row, that was least recently set using setContext()

void QdbtEditorBase::setContext int    row,
int    col
[inline]
 

Store the current editing context, so that the cell may be identified afterwards.

QdbtBaseTabular* QdbtEditorBase::tabular   const [inline, protected]
 

Answers the tabular, which was set when creating this editor base object


The documentation for this class was generated from the following files:
Generated on Mon Apr 22 12:21:57 2002 for QdbtTabular by doxygen1.2.15-20020421