ICS

QicsTable Documentation Set

QicsICell.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 _QICSICELL_H
00011 #define _QICSICELL_H
00012 
00013 #include <QPoint>
00014 #include <QList>
00015 #include <QVector>
00016 
00017 #include <QicsNamespace.h>
00018 
00034 
00035 
00038 
00039 class QICS_EXPORT QicsICell : public QPoint
00040 {
00041   public:
00045     QicsICell(int row, int col)
00046         : QPoint(col, row) {}
00047 
00051     QicsICell(void) : QPoint(-1, -1) {}
00052   
00056     inline int row(void) const     { return y(); }
00060     inline int column(void) const  { return x(); }
00061 
00065     inline void setRow(int row)    { setY(row); }
00069     inline void setColumn(int col)   { setX(col); }
00070 
00075     inline bool isValid(void) const { return ((x() >= 0) && (y() >= 0)); }
00076 };
00077 
00078 typedef QVector<QicsICell> QicsICellV;
00079 typedef QVector<QicsICell *> QicsICellPV;
00080 typedef QList<QicsICell> QicsICellQVL;
00081 
00082 #endif /* _QICSICELL_H */

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