ICS

QicsTable Documentation Set

custom_grid.h

/****************************************************************************
** $RCSfile: cg_h.html,v $ $Date: 2008/07/16 14:58:58 $
**
** Copyright ( C ) 2002-2006 Integrated Computer Solutions, Inc.
** All rights reserved.
**
** This file is part of an example program for QicsTable.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#ifndef _CUSTOM_GRID_H
#define _CUSTOM_GRID_H

#include <QicsTableGrid.h>
#include <QMenu>
#include <QMouseEvent>


// This is an example of a custom grid.

class CustomGrid : public QicsTableGrid
{
Q_OBJECT

public:
    CustomGrid(QWidget *w, QicsGridInfo &info,
           int top_row = 0, int left_column = 0);

    static QicsTableGrid *createGrid(QWidget *w, QicsGridInfo &info,
                     int top_row = 0, int left_column = 0);
protected:
    virtual void handleMousePressEvent(const QicsICell &cell, QMouseEvent *m);

private:
    QMenu *_menu;
};


#endif /* _CUSTOM_GRID_H */

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