| 
									
										
										
										
											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; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class DiveComputerManagementDialog : public QDialog{ | 
					
						
							|  |  |  | Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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
										 |  |  | 
 | 
					
						
							|  |  |  | 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: | 
					
						
							| 
									
										
										
										
											2013-10-15 04:37:31 -07:00
										 |  |  | 	explicit DiveComputerManagementDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); | 
					
						
							|  |  |  | 	Ui::DiveComputerManagementDialog ui; | 
					
						
							| 
									
										
										
										
											2013-06-07 11:43:45 -03:00
										 |  |  | 	DiveComputerModel *model; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-06-17 15:58:26 -07:00
										 |  |  | #endif
 |