ICS

QicsTable Documentation Set

QicsWidgetCellDisplay.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 **
00003 ** Copyright (C) 2002-2006 Integrated Computer Solutions, Inc
00004 ** All rights reserved.
00005 **
00006 ** This file is part of the QicsTable Product.
00007 **
00008 **********************************************************************/
00009 
00010 #ifndef _QICSWIDGETCELLDISPLAY_H
00011 #define _QICSWIDGETCELLDISPLAY_H
00012 
00013 #include <QicsCellDisplay.h>
00014 
00015 #include <QWidget>
00016 #include <QPainter>
00017 
00018 class QicsDataItem;
00019 
00020 
00027 
00028 
00031 
00032 class QICS_EXPORT QicsWidgetCellDisplay: public QObject, public QicsCellDisplay {
00033 public:
00037     QicsWidgetCellDisplay(QWidget *widget);
00038 
00042     virtual ~QicsWidgetCellDisplay();
00043 
00047     virtual void displayCell(QicsGrid *, int row, int col,
00048                  const QicsDataItem *itm, QRect &rect,
00049                  QPainter *painter);
00050 
00055     inline virtual void startEdit(QicsScreenGrid *, int, int,
00056                   const QicsDataItem *) {;}
00057 
00062     inline virtual void moveEdit(QicsScreenGrid *, int, int, const QRect &) {;}
00063 
00064     virtual void hideEdit(QicsScreenGrid *);
00065 
00069     inline virtual void endEdit(QicsScreenGrid *, int, int) {;}
00070 
00071     virtual QSize sizeHint(QicsGrid *grid, int row, int col,
00072                const QicsDataItem *itm);
00073 
00074     inline virtual bool editWhenCurrent(void) const { return false; }
00075     
00076     virtual bool eventFilter(QObject* watched,QEvent* e);
00077 
00078     inline virtual bool needsVisibilityNotification(void) const { return true; }
00079 
00080     inline virtual bool isEmpty(QicsGridInfo *, int, int,
00081                 const QicsDataItem *) const
00082     { return false; }
00083 
00084 protected:
00089     QWidget *myWidget;
00090 };
00091 
00092 #endif /* _QICSWIDGETCELLDISPLAY_H */

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.