ICS

QicsTable Documentation Set

QicsMappedDimensionManager.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 _QICSMAPPEDDIMENSIONMANAGER_H
00011 #define _QICSMAPPEDDIMENSIONMANAGER_H
00012 
00013 #include <QObject>
00014 
00016 
00017 class QicsDimensonManager;
00018 class QicsGrid;
00019 class QicsGridInfo;
00020 
00021 
00036 
00037 
00040 
00041 class QICS_EXPORT QicsMappedDimensionManager /* : public QObject, public Qics */
00042 {
00043     /* Q_OBJECT */
00044 public:
00045 
00050     QicsMappedDimensionManager(QicsDimensionManager *, QicsGridInfo *);
00051 
00055     ~QicsMappedDimensionManager();
00056 
00063     void setDefaultFont(const QFont &fnt);
00064 
00071     void setRowFont(Qics::QicsGridType grid_type, int row, const QFont &fnt);
00078     void unsetRowFont(Qics::QicsGridType grid_type, int row);
00079 
00085     void setRepeatingRowFont(Qics::QicsGridType grid_type,
00086                              int row, unsigned int interval,
00087                              const QFont &fnt);
00088 
00095     void setColumnFont(Qics::QicsGridType grid_type, int col, const QFont &fnt);
00102     void unsetColumnFont(Qics::QicsGridType grid_type, int col);
00103 
00109     void setRepeatingColumnFont(Qics::QicsGridType grid_type,
00110                                 int col, unsigned int interval,
00111                                 const QFont &fnt);
00112 
00119     void setCellFont(Qics::QicsGridType grid_type, int row, int col,
00120              const QFont &fnt);
00127     void unsetCellFont(Qics::QicsGridType grid_type, int row, int col);
00128 
00132     void setRowHeightInPixels(int row, int height);
00137     void setRowHeightInChars(int row, int height);
00138 
00144     void setRepeatingRowHeightInPixels(int row, unsigned int interval,
00145                                        int height);
00146 
00152     void setRepeatingRowHeightInChars(int row, unsigned int interval,
00153                                        int height);
00154 
00158     void setColumnWidthInPixels(int col, int width);
00162     void setColumnWidthInChars(int col, int width);
00163 
00169     void setRepeatingColumnWidthInPixels(int col, unsigned int interval,
00170                                          int width);
00176     void setRepeatingColumnWidthInChars(int col, unsigned int interval,
00177                                         int width);
00178 
00182     int rowHeight(int row) const;
00186     int columnWidth(int col) const;
00187 
00191     void setRowMinHeightInPixels(int row, int height);
00196     void setRowMinHeightInChars(int row, int height);
00197 
00201     void setColumnMinWidthInPixels(int col, int width);
00205     void setColumnMinWidthInChars(int col, int width);
00206 
00210     int rowMinHeight(int row) const;
00211 
00215     int rowMaxHeight(int row) const;
00216 
00220     int columnMinWidth(int col) const;
00221 
00225     int columnMaxWidth(int row) const;
00226 
00230     void setDefaultMargin(int margin);
00234     void setRowMargin(Qics::QicsGridType grid_type, int row, int margin);
00238     void setColumnMargin(Qics::QicsGridType grid_type, int col, int margin);
00242     void setCellMargin(Qics::QicsGridType grid_type, int row, int col,
00243                        int margin);
00244 
00250     void setRepeatingRowMargin(Qics::QicsGridType grid_type,
00251                                int row, unsigned int interval,
00252                                int margin);
00253 
00259     void setRepeatingColumnMargin(Qics::QicsGridType grid_type,
00260                                   int col, unsigned int interval,
00261                                   int margin);
00262 
00266     void setDefaultBorderWidth(int bw);
00267 
00271     void setRowBorderWidth(Qics::QicsGridType grid_type, int row, int bw);
00275     void setColumnBorderWidth(Qics::QicsGridType grid_type, int col, int bw);
00279     void setCellBorderWidth(Qics::QicsGridType grid_type, int row, int col,
00280                             int bw);
00281 
00287     void setRepeatingRowBorderWidth(Qics::QicsGridType grid_type,
00288                                     int row, unsigned int interval,
00289                                     int bw);
00295     void setRepeatingColumnBorderWidth(Qics::QicsGridType grid_type,
00296                                        int col, unsigned int interval,
00297                                        int bw);
00298 
00302     bool isRowStretchable(int row) const;
00303 
00307     void setRowStretchable(int row, bool set);
00308 
00312     bool isColumnStretchable(int col) const;
00313 
00317     void setColumnStretchable(int col, bool set);
00318 
00323     void stretchRows(int start_row, int end_row, int space);
00324 
00329     void stretchColumns(int start_col, int end_col, int space);
00330 
00335     int regionHeight(const QicsRegion &region) const;
00340     int regionWidth(const QicsRegion &region) const;
00341 
00346     void overrideRowHeight(int row, int height);
00347 
00352     void overrideColumnWidth(int col, int width);
00353 
00358     void resetRowHeight(int row);
00359 
00364     void resetColumnWidth(int col);
00365 
00370     int overriddenRowHeight(int row) const;
00371 
00376     int overriddenColumnWidth(int col) const;
00377 
00381     void hideRow(int row);
00382 
00386     void hideColumn(int col);
00387 
00391     void showRow(int row);
00392 
00396     void showColumn(int col);
00397 
00401     bool isRowHidden(int row) const;
00402 
00406     bool isColumnHidden(int col) const;
00407 
00408 private:
00409     QicsDimensionManager *myDM;
00410     QicsGridInfo *myInfo;
00411 };
00412 
00413 #endif /* _QICSMAPPEDDIMENSIONMANAGER_H */

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