00001 #ifndef EVENTHANDLER_H 00002 #define EVENTHANDLER_H 00003 00004 #include <qobject.h> 00005 #include <qtable.h> 00006 00007 #define QUANTITY 1 00008 #define DATE 2 00009 00010 00011 class EventHandler : public QObject { 00012 Q_OBJECT 00013 public: 00014 EventHandler(QWidget *, const int); 00015 EventHandler(QWidget *, QTable *); 00016 ~EventHandler(); 00017 bool eventFilter( QObject *, QEvent *); 00018 // int const QUANTITY=1; 00019 // int const DATE=2; 00020 00021 00022 private: 00023 void nextCell(QObject *); 00024 void duplicateCell(QObject *); 00025 int m_TextEditType; 00026 void manageDate(QObject *); 00027 void manageQuantity(QObject *); 00028 00029 //QString * columnFunctions[]; 00030 00031 protected: 00032 //bool eventFilter( QObject *obj, QEvent *ev ); 00033 }; 00034 00035 #endif