mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	
		
			
	
	
		
			33 lines
		
	
	
	
		
			663 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			33 lines
		
	
	
	
		
			663 B
		
	
	
	
		
			C
		
	
	
	
	
	
|  | // SPDX-License-Identifier: GPL-2.0
 | ||
|  | #ifndef DIVEHANDLER_HPP
 | ||
|  | #define DIVEHANDLER_HPP
 | ||
|  | 
 | ||
|  | #include <QGraphicsPathItem>
 | ||
|  | #include <QElapsedTimer>
 | ||
|  | 
 | ||
|  | class DiveHandler : public QObject, public QGraphicsEllipseItem { | ||
|  | 	Q_OBJECT | ||
|  | public: | ||
|  | 	DiveHandler(); | ||
|  | 
 | ||
|  | protected: | ||
|  | 	void contextMenuEvent(QGraphicsSceneContextMenuEvent *event); | ||
|  | 	void mouseMoveEvent(QGraphicsSceneMouseEvent *event); | ||
|  | 	void mousePressEvent(QGraphicsSceneMouseEvent *event); | ||
|  | 	void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); | ||
|  | signals: | ||
|  | 	void moved(); | ||
|  | 	void clicked(); | ||
|  | 	void released(); | ||
|  | private: | ||
|  | 	int parentIndex(); | ||
|  | public | ||
|  | slots: | ||
|  | 	void selfRemove(); | ||
|  | 	void changeGas(); | ||
|  | private: | ||
|  | 	QElapsedTimer t; | ||
|  | }; | ||
|  | 
 | ||
|  | #endif
 |