ICS

QicsTable Documentation Set

QicsStyle.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 _QicsStyle_H
00011 #define _QicsStyle_H
00012 
00013 #include <QicsNamespace.h>
00014 
00015 #include <QVector>
00016 #include <QPen>
00017 #include <QPalette>
00018 
00033 
00034 
00037 
00038  
00039 class QicsStyle: public Qics
00040 {
00041 public:
00045 enum QicsStylePropertyType
00046 {
00047     QicsT_Int = 0,
00048     QicsT_Float,
00049     QicsT_QString,
00050     QicsT_QColor,
00051     QicsT_Boolean,
00052     QicsT_QWidget,
00053     QicsT_QPalette,
00054     QicsT_QFont,
00055     QicsT_QPixmap,
00056     QicsT_QCursor,
00057     QicsT_QicsCellDisplay,
00058     QicsT_QicsDataItemFormatter,
00059     QicsT_QValidator,
00060     QicsT_PasteValidator,
00061     QicsT_QPen,
00062     QicsT_QicsRegion,
00063     QicsT_QicsMouseMap,
00064     QicsT_Pointer
00065 };
00069     QicsStyle();
00070         
00074     virtual ~QicsStyle();
00075         
00079     inline void *getValue(int prop) const
00080     { return myProperties[prop]; }
00084     void setValue(int prop, const void *val);
00085 
00090     void clear(int prop);
00091         
00096     bool isEmpty(void) const;
00101     static QString penToString(const QPen *pen);
00107     static QPen * stringToPen(const QString penSetings);
00112     static QString paletteToString(const QPalette *pal);
00118     static QPalette * stringToPalette(const QString paletteSetings);
00119 
00120 protected:
00121     void init(void);
00122        
00126     void **myProperties;
00127 
00128     int myNumProperties;
00129 
00131     int mySetCount;
00132 
00139     const QicsStylePropertyType *myStyleTypeList;
00140 
00141 private:
00142             
00146     QicsStyle& operator=(const QicsStyle&) { return *this;} // Copy operator
00150     QicsStyle(const QicsStyle&) {} // Copy Constructor
00151 };
00152 
00153 typedef QVector<QicsStyle *> QicsStylePV;
00154 typedef QVector<QicsStylePV *> QicsStylePVPV;
00155 
00156 #endif /*_QicsStyle_H --- Do not add anything past this line */
00157  

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