ICS

QicsTable Documentation Set

QicsRepeatingColumn.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 _QICSREPEATINGCOLUMN_H
00011 #define _QICSREPEATINGCOLUMN_H
00012 
00013 #include <QicsCellCommon.h>
00014 
00015 class QicsColumn;
00016 
00017 #ifdef CREATE_OBJS_WITH_QICSTABLE
00018 class QicsTable;
00019 #endif
00020 
00022 
00046 
00047 
00050 
00051 class QICS_EXPORT QicsRepeatingColumn: public QicsCellCommon
00052 {
00053 Q_OBJECT
00054 
00055     friend class QicsTableCommon;
00056     friend class QicsHeader;
00057 
00058 public:
00066     int startColumnIndex;
00067 
00071     int interval;
00072 
00081     int widthInPixels;
00094     int widthInChars;
00096 
00097 public:
00098 #ifdef CREATE_OBJS_WITH_QICSTABLE
00099 
00108     QicsRepeatingColumn(int start_col, unsigned int interval, QicsTable *table);
00109 #endif
00110 
00115     QicsRepeatingColumn(int start_col, unsigned int interval, QicsGridInfo *info,
00116              QObject *parent = 0);
00117 
00121     inline int startColumnIndex(void) const
00122     { return myStartColumn; }
00123 
00128     inline int interval(void) const
00129     { return myInterval; }
00130 
00137     int widthInPixels(void) const;
00138 
00145     int widthInChars(void) const;
00146 
00147 public slots:
00152     inline void setStartColumnIndex(int idx)
00153     { myStartColumn = idx; }
00154 
00159     inline void setInterval(int interval)
00160     { myInterval = interval; }
00161 
00168     void setWidthInPixels(int width);
00169 
00176     void setWidthInChars(int width);
00177 
00178 protected:
00183     void init(int start_col, unsigned int interval);
00184 
00185     virtual void setAttr(QicsCellStyle::QicsCellStyleProperty attr, const void *val);
00186     virtual void *getAttr(QicsCellStyle::QicsCellStyleProperty attr) const;
00187     virtual void clearAttr(QicsCellStyle::QicsCellStyleProperty attr);
00188 
00189     virtual void setDMMargin(int margin);
00190     virtual void setDMFont(const QFont &font);
00191     virtual void setDMBorderWidth(int bw);
00192 
00197     int myStartColumn;
00198 
00203     int myInterval;
00204 
00205 private:
00206 #ifdef Q_DISABLE_COPY
00207     QicsRepeatingColumn(const QicsColumn& col);
00208     QicsRepeatingColumn &operator=(const QicsColumn& col);
00209 #endif
00210 };
00211 
00212 #endif /* _QICSREPEATINGCOLUMN_H */

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