| 
									
										
										
										
											2018-09-11 13:35:29 -04:00
										 |  |  | #ifndef KEYEATER_H
 | 
					
						
							|  |  |  | #define KEYEATER_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QObject>
 | 
					
						
							|  |  |  | #include <QKeyEvent>
 | 
					
						
							| 
									
										
										
										
											2019-01-21 17:45:52 -05:00
										 |  |  | #include <QMouseEvent>
 | 
					
						
							| 
									
										
										
										
											2018-09-11 13:35:29 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | class EscapeKeyPressEater : public QObject | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     EscapeKeyPressEater(){} | 
					
						
							|  |  |  |     virtual ~EscapeKeyPressEater(){} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |     bool eventFilter(QObject *obj, QEvent *event); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class EnterKeyPressEater : public QObject | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     EnterKeyPressEater(){} | 
					
						
							|  |  |  |     virtual ~EnterKeyPressEater(){} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |     bool eventFilter(QObject *obj, QEvent *event); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     Q_SIGNAL void enterKeyPressed(QObject *obj, QKeyEvent *evt, bool *pProcessed); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-21 17:45:52 -05:00
										 |  |  | class MousePressEater : public QObject | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     MousePressEater(){} | 
					
						
							|  |  |  |     virtual ~MousePressEater(){} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |     bool eventFilter(QObject *obj, QEvent *event); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     Q_SIGNAL void mousePressed(QObject *obj, QMouseEvent *evt, bool *pProcessed); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-01 22:41:10 -04:00
										 |  |  | class MouseDoubleClickEater : public QObject | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     MouseDoubleClickEater(){} | 
					
						
							|  |  |  |     virtual ~MouseDoubleClickEater(){} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |     bool eventFilter(QObject *obj, QEvent *event); | 
					
						
							| 
									
										
										
										
											2019-01-21 17:45:52 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-01 22:41:10 -04:00
										 |  |  | public: | 
					
						
							|  |  |  |     Q_SIGNAL void mouseDoubleClicked(QObject *obj, QMouseEvent *evt, bool *pProcessed); | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2019-01-21 17:45:52 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-11 13:35:29 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif // KEYEATER_H
 |