diff options
Diffstat (limited to 'commands/command_edit.h')
-rw-r--r-- | commands/command_edit.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/commands/command_edit.h b/commands/command_edit.h index 8532523e2..cd12eaa04 100644 --- a/commands/command_edit.h +++ b/commands/command_edit.h @@ -97,6 +97,43 @@ public: DiveField fieldId() const override; }; + +class EditWaveSize : public EditBase<int> { +public: + using EditBase<int>::EditBase; // Use constructor of base class. + void set(struct dive *d, int value) const override; + int data(struct dive *d) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + +class EditCurrent : public EditBase<int> { +public: + using EditBase<int>::EditBase; // Use constructor of base class. + void set(struct dive *d, int value) const override; + int data(struct dive *d) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + +class EditSurge : public EditBase<int> { +public: + using EditBase<int>::EditBase; // Use constructor of base class. + void set(struct dive *d, int value) const override; + int data(struct dive *d) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + +class EditChill : public EditBase<int> { +public: + using EditBase<int>::EditBase; // Use constructor of base class. + void set(struct dive *d, int value) const override; + int data(struct dive *d) const override; + QString fieldName() const override; + DiveField fieldId() const override; +}; + class EditAirTemp : public EditBase<int> { public: using EditBase<int>::EditBase; // Use constructor of base class. @@ -244,7 +281,11 @@ struct PasteState { QString buddy; QString suit; int rating; + int wavesize; int visibility; + int current; + int surge; + int chill; tag_entry *tags; struct cylinder_table cylinders; struct weightsystem_table weightsystems; |