ICS

QicsTable Documentation Set

QicsScrollManager.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 _QICSSCROLLMANAGER_H
00011 #define _QICSSCROLLMANAGER_H
00012 
00013 #include <QicsNamespace.h>
00014 #include <QObject>
00015 
00017 
00018 class QicsScroller;
00019 class QicsScreenGrid;
00020 
00021 
00032 
00033 
00036 
00037 class QicsScrollManager: public QObject, public Qics
00038 {
00039     Q_OBJECT
00040 
00041 public:
00045     QicsScrollManager();
00049     virtual ~QicsScrollManager();
00050 
00057     void connectScroller(QicsScroller *scroller);
00063     void disconnectScroller(QicsScroller *scroller);
00064 
00070     inline QicsScreenGrid *primaryGrid(void) const { return myPrimaryGrid; }
00076     void setPrimaryGrid(QicsScreenGrid *grid);
00077 
00085     void connectGrid(QicsScreenGrid *grid, bool control_rows, bool control_columns);
00091     void disconnectGrid(QicsScreenGrid *grid);
00092 
00096     inline int rowIndex(void) const { return myRowIndex; }
00100     inline int columnIndex(void) const { return myColumnIndex; }
00101     
00103     
00104     inline QicsScroller* horizontalScroller()const{return myHScroller;}
00105     
00107     
00108     inline QicsScroller* verticalScroller()const{return myVScroller;}
00109 
00110 public slots:
00115     void setRowMinValue(int val);
00120     void setRowMaxValue(int val);
00121 
00126     void setColumnMinValue(int val);
00131     void setColumnMaxValue(int val);
00132 
00136     void setRowIndex(int idx);
00140     void setColumnIndex(int idx);
00141     
00142     bool eventFilter(QObject*,QEvent*);
00143 
00144 signals:
00148     void rowIndexChanged(int idx);
00152     void columnIndexChanged(int idx);
00153 
00158     void indexChanged(QicsIndexType type, int val);
00159 
00164     void minIndexChanged(QicsIndexType type, int val);
00169     void maxIndexChanged(QicsIndexType type, int val);
00170 
00171 protected:
00173     QicsScreenGrid *myPrimaryGrid;
00175     int myRowIndex;
00177     int myColumnIndex;
00178 
00179     QicsScroller* myHScroller;
00180     QicsScroller* myVScroller;
00181     
00182 
00183 protected slots:
00187     void setIndex(QicsIndexType type, int idx);
00193     void gridBoundsChanged(void);
00197     void gridDestroyed(QObject *obj);
00198 
00199 };
00200 
00201 #endif /* _QICSSCROLLMANAGER_H */

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