ICS

QicsTable Documentation Set

QicsRepeatingRow.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 _QICSREPEATINGROW_H
00011 #define _QICSREPEATINGROW_H
00012 
00013 #include <QicsCellCommon.h>
00014 #include <QicsDataModel.h>
00015 
00016 class QicsHeader;
00017 
00018 #ifdef CREATE_OBJS_WITH_QICSTABLE
00019 class QicsTable;
00020 #endif
00021 
00023 
00047 
00048 
00051 
00052 class QICS_EXPORT QicsRepeatingRow: public QicsCellCommon
00053 {
00054 Q_OBJECT
00055 
00056     friend class QicsTableCommon;
00057     friend class QicsHeader;
00058 
00059 public:
00067     int startRowIndex;
00068 
00072     int interval;
00073 
00082     int heightInPixels;
00095     int heightInChars;
00097 
00098 public:
00099 #ifdef CREATE_OBJS_WITH_QICSTABLE
00100 
00109     QicsRepeatingRow(int start_row, unsigned int interval, QicsTable *table);
00110 #endif
00111 
00116     QicsRepeatingRow(int start_row, unsigned int interval, QicsGridInfo *info,
00117              QObject *parent = 0);
00118 
00122     inline int startRowIndex(void) const
00123     { return myStartRow; }
00124 
00129     inline int interval(void) const
00130     { return myInterval; }
00131 
00138     int heightInPixels(void) const;
00139 
00146     int heightInChars(void) const;
00147 
00148 public slots:
00153     inline void setStartRowIndex(int idx)
00154     { myStartRow = idx; }
00155 
00160     inline void setInterval(int interval)
00161     { myInterval = interval; }
00162 
00169     void setHeightInPixels(int height);
00170 
00177     void setHeightInChars(int height);
00178 
00179 protected:
00184     void init(int start_row, unsigned int interval);
00185 
00186     virtual void setAttr(QicsCellStyle::QicsCellStyleProperty attr, const void *val);
00187     virtual void *getAttr(QicsCellStyle::QicsCellStyleProperty attr) const;
00188     virtual void clearAttr(QicsCellStyle::QicsCellStyleProperty attr);
00189 
00190     virtual void setDMMargin(int margin);
00191     virtual void setDMFont(const QFont &font);
00192     virtual void setDMBorderWidth(int bw);
00193 
00198     int myStartRow;
00199 
00204     int myInterval;
00205 
00206 private:
00207 #ifdef Q_DISABLE_COPY
00208     QicsRepeatingRow(const QicsRow& row);
00209     QicsRepeatingRow &operator=(const QicsRow& row);
00210 #endif
00211 };
00212 
00213 #endif /* _QICSREPEATINGROW_H */

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