| 
									
										
										
										
											2017-04-27 20:26:05 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | #ifndef DIVECOMPUTERMANAGEMENTDIALOG_H
 | 
					
						
							|  |  |  | #define DIVECOMPUTERMANAGEMENTDIALOG_H
 | 
					
						
							|  |  |  | #include <QDialog>
 | 
					
						
							| 
									
										
										
										
											2013-10-03 11:54:24 -07:00
										 |  |  | #include "ui_divecomputermanagementdialog.h"
 | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-06-07 15:34:27 -03:00
										 |  |  | class QModelIndex; | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | class DiveComputerModel; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-27 20:09:57 -08:00
										 |  |  | class DiveComputerManagementDialog : public QDialog { | 
					
						
							|  |  |  | 	Q_OBJECT | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2013-10-15 04:37:31 -07:00
										 |  |  | 	static DiveComputerManagementDialog *instance(); | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | 	void update(); | 
					
						
							| 
									
										
										
										
											2013-06-17 15:58:26 -07:00
										 |  |  | 	void init(); | 
					
						
							| 
									
										
										
										
											2013-06-07 15:34:27 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-27 20:09:57 -08:00
										 |  |  | public | 
					
						
							|  |  |  | slots: | 
					
						
							|  |  |  | 	void tryRemove(const QModelIndex &index); | 
					
						
							| 
									
										
										
										
											2013-06-17 15:58:26 -07:00
										 |  |  | 	void accept(); | 
					
						
							|  |  |  | 	void reject(); | 
					
						
							| 
									
										
										
										
											2013-06-07 15:34:27 -03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | private: | 
					
						
							| 
									
										
										
										
											2014-02-27 20:09:57 -08:00
										 |  |  | 	explicit DiveComputerManagementDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); | 
					
						
							| 
									
										
										
										
											2013-10-15 04:37:31 -07:00
										 |  |  | 	Ui::DiveComputerManagementDialog ui; | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | 	DiveComputerModel *model; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-11 19:14:46 +01:00
										 |  |  | #endif // DIVECOMPUTERMANAGEMENTDIALOG_H
 |