mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Undo: implement undo of dive mode editing
Add a new UndoCommand for dive mode editing. This one is a bit special, as the mode is associated with a dive computer (DC), not a dive. Thus the edit command has an additional parameter, viz. the index of the DC. This does not fit properly to the EditBase class, as this class isn't aware of additional parameters and therefore this parameter is not sent via signals. At the moment this doesn't matter. In any case, the semantics of editing are weird and therefore let's do the simple thing (derive from EditBase) and let's see what the future brings. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									45ef879546
								
							
						
					
					
						commit
						f11ac40593
					
				
					 6 changed files with 72 additions and 15 deletions
				
			
		|  | @ -53,6 +53,7 @@ void purgeUnusedDiveSites(); | |||
| // 4) Dive editing related commands
 | ||||
| 
 | ||||
| void editNotes(const QVector<dive *> dives, const QString &newValue, const QString &oldValue); | ||||
| void editMode(const QVector<dive *> dives, int index, int newValue, int oldValue); | ||||
| 
 | ||||
| } // namespace Command
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue