mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Add typical 0 to 5 star rating for dives
This works ok-ish, but doesn't allow us to click on the stars and edit them in the divelist, which a user might expect to be able to do - in most "star rating UIs" you simply click on the n-th star to set that rating. Here you need to edit the dive and pick the rating from a drop down menu. Minor oddity: you can actually (if you force it) write anything you want into the star rating. But anything that isn't one of the predefined strings simply results in a zero star rating. Overall the UI feels a bit... forced. But I think this is quite useful anyway. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									ce6c3ee56d
								
							
						
					
					
						commit
						af290d5eb2
					
				
					 6 changed files with 77 additions and 5 deletions
				
			
		|  | @ -1024,7 +1024,8 @@ static void try_to_fill_dive(struct dive **divep, const char *name, char *buf) | |||
| 		return; | ||||
| 	if (MATCH(".buddy", utf8_string, &dive->buddy)) | ||||
| 		return; | ||||
| 
 | ||||
| 	if (MATCH(".rating", get_index, &dive->rating)) | ||||
| 		return; | ||||
| 	if (MATCH(".cylinder.size", cylindersize, &dive->cylinder[cylinder_index].type.size)) | ||||
| 		return; | ||||
| 	if (MATCH(".cylinder.workpressure", pressure, &dive->cylinder[cylinder_index].type.workingpressure)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue