ICS

QicsTable Documentation Set

QicsGridStyle.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 _QicsGridStyle_H
00011 #define _QicsGridStyle_H
00012 
00013 #include <QicsStyle.h>
00014 
00015 #include <qwidget.h>
00016 #include <qvaluevector.h>
00017 
00019 
00031 class QicsGridStyle: public QicsStyle
00032 {
00033 public:
00040     enum QicsGridStyleProperty { HorizontalGridLinesVisible = 0,
00041                  VerticalGridLinesVisible,
00042                  HorizontalGridLineWidth,
00043                  VerticalGridLineWidth,
00044                  HorizontalGridLineStyle,
00045                  VerticalGridLineStyle,
00046                  HorizontalGridLinePen,
00047                  VerticalGridLinePen,
00048                  GridCellClipping,
00049                  DrawPartialCells,
00050                  AllowUserResize,
00051                  AllowUserMove,
00052                  ClickToEdit,
00053                  AutoSelectCellContents,
00054                  TraversalKeyEditBehavior,
00055                  EnterTraversalDirection,
00056                  TabTraversalDirection,
00057                  EnterTraverseToBegin,
00058                  TabTraverseToBegin,
00059                  GridRepaintBehavior,
00060                  CellOverflowBehavior,
00061                  MaxOverflowCells,
00062                  CurrentCellStyle,
00063                  CurrentCellBorderWidth,
00064                  FrameLineWidth,
00065                  FrameStyle,
00066                  GridPalette,
00067                  Viewport,
00068                  MoreTextPixmap,
00069                  DragEnabled,
00070                  LastProperty };
00071 
00072         
00076     QicsGridStyle(QicsGridType type, bool create_defaults = false,
00077           QWidget *template_widget = 0);
00078        
00082     inline void *getValue(QicsGridStyleProperty name) const
00083     { return QicsStyle::getValue((int)name); }
00087     inline void setValue(QicsGridStyleProperty name, const void *val) 
00088     { QicsStyle::setValue((int) name, val); }
00089 
00094     inline void clear(QicsGridStyleProperty prop)
00095     { QicsStyle::clear((int) prop); }
00096 
00097 protected:        
00104     static const QicsStylePropertyType myGridStyleTypeList[];
00105 };
00106 
00107 typedef QValueVector<QicsGridStyle *> QicsGridStylePV;
00108 typedef QValueVector<QicsGridStylePV *> QicsGridStylePVPV;
00109 
00110 #endif /*_QicsGridStyle_H --- Do not add anything past this line */
00111  

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