/***************************************************************************
    copyright     : (C) 1999 by Edwin Glaser
    email         : edwin@pannenleiter.de
    version       : $Id: dbmultilineedit.h,v 1.1.1.1 2000/02/07 21:42:01 ege Exp $
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   * 
 *                                                                         *
 ***************************************************************************/



#ifndef DBMULTILINEEDIT_H
#define DBMULTILINEEDIT_H

#include <qwidget.h>

#include "dbdatasource.h"
#include "dblineedit.h"
#include "dbpainter.h"

/**
  * A data-aware multilineedit 
  * 
  *@author Edwin Glaser
  */

class DBMultiLineEdit : public DBLineEdit  
{
   Q_OBJECT

protected:

public: 
	DBMultiLineEdit(DBDataSource *d, int col, QWidget *parent=0, const char *name=0);
	DBMultiLineEdit(DBDataSource *d, int col, bool showFocus, QWidget *parent=0, const char *name=0);
	~DBMultiLineEdit();
	virtual void paint (QPainter *p, int width, int height, int align = 0, const char *format = 0);

protected:
	virtual void keyPressEvent ( QKeyEvent *);

};

class DBMultiLineEditFactory : public DBWidgetFactory
{
protected:
  static DBMultiLineEditFactory *instance;
	DBMultiLineEditFactory() {};
	
public:
	static DBWidgetFactory *getFactory();
	virtual QWidget *makeEditor(DBDataSource *d, int col, QWidget *parent);
	virtual DBPainter *makePainter (QWidget *editor);
};

#endif



Documentation generated by eg@wonko on Sam Feb 19 00:09:53 MET 2000