2017-04-27 20:26:05 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// SPDX-License-Identifier: GPL-2.0
							 | 
						
					
						
							
								
									
										
										
										
											2017-04-04 19:21:30 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#ifndef TAB_DIVE_INFORMATION_H
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#define TAB_DIVE_INFORMATION_H
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#include "TabBase.h"
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-03 19:33:06 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include "core/subsurface-qt/divelistnotifier.h"
							 | 
						
					
						
							
								
									
										
										
										
											2017-04-04 19:21:30 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								namespace Ui {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									class TabDiveInformation;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								class TabDiveInformation : public TabBase {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Q_OBJECT
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								public:
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-09 18:12:31 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									TabDiveInformation(MainTab *parent);
							 | 
						
					
						
							
								
									
										
										
										
											2017-04-04 19:21:30 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									~TabDiveInformation();
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-04 11:04:01 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateData(const std::vector<dive *> &selection, dive *currentDive, int currentDC) override;
							 | 
						
					
						
							
								
									
										
										
										
											2018-09-29 22:13:44 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void clear() override;
							 | 
						
					
						
							
								
									
										
										
										
											2020-11-04 13:09:44 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateUi(QString titleColor) override;
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-26 10:03:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								private slots:
							 | 
						
					
						
							
								
									
										
										
										
											2019-06-23 09:22:26 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void divesChanged(const QVector<dive *> &dives, DiveField field);
							 | 
						
					
						
							
								
									
										
										
										
											2020-05-05 11:51:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void cylinderChanged(dive *d);
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-10 13:09:19 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void diveModeChanged(int index);
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-30 12:42:33 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void on_atmPressVal_editingFinished();
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void on_atmPressType_currentIndexChanged(int index);
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-10 13:09:19 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void on_visibility_valueChanged(int value);
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-28 21:04:52 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void on_wavesize_valueChanged(int value);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void on_current_valueChanged(int value);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void on_surge_valueChanged(int value);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void on_chill_valueChanged(int value);
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-11 11:47:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void on_airtemp_editingFinished();
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void on_watertemp_editingFinished();
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-19 12:27:18 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void on_waterTypeCombo_activated(int index);
							 | 
						
					
						
							
								
									
										
										
										
											2017-04-04 19:21:30 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								private:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Ui::TabDiveInformation *ui;
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-26 10:03:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateProfile();
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-19 12:27:18 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									int updateSalinityComboIndex(int salinity);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void checkDcSalinityOverWritten();
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-26 10:03:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateWhen();
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-30 12:42:33 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									int pressTypeIndex;
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-19 12:27:18 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateWaterTypeWidget();
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-30 12:42:33 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateTextBox(int event);
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-17 16:21:17 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void updateMode();
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-10 13:09:19 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void divesEdited(int);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void closeWarning();
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-28 12:35:39 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void showCurrentWidget(bool show, int position);
							 | 
						
					
						
							
								
									
										
										
										
											2017-04-04 19:21:30 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#endif
							 |