mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: add additional star widgets to Information tab
Connect the UI to the underlying dive structure. Enable proper initialisation and management of star widgets while Information tab is active. Enable undo for the addtional star widgets. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e86dd3a52
commit
6d7f26f4bf
8 changed files with 231 additions and 6 deletions
|
@ -26,6 +26,10 @@ struct DiveField {
|
|||
unsigned int buddy : 1;
|
||||
unsigned int rating : 1;
|
||||
unsigned int visibility : 1;
|
||||
unsigned int wavesize : 1;
|
||||
unsigned int current : 1;
|
||||
unsigned int surge : 1;
|
||||
unsigned int chill : 1;
|
||||
unsigned int suit : 1;
|
||||
unsigned int tags : 1;
|
||||
unsigned int mode : 1;
|
||||
|
@ -45,11 +49,15 @@ struct DiveField {
|
|||
BUDDY = 1 << 9,
|
||||
RATING = 1 << 10,
|
||||
VISIBILITY = 1 << 11,
|
||||
SUIT = 1 << 12,
|
||||
TAGS = 1 << 13,
|
||||
MODE = 1 << 14,
|
||||
NOTES = 1 << 15,
|
||||
SALINITY = 1 << 16
|
||||
WAVESIZE = 1 << 12,
|
||||
CURRENT = 1 << 13,
|
||||
SURGE = 1 << 14,
|
||||
CHILL = 1 << 15,
|
||||
SUIT = 1 << 16,
|
||||
TAGS = 1 << 17,
|
||||
MODE = 1 << 18,
|
||||
NOTES = 1 << 19,
|
||||
SALINITY = 1 << 20
|
||||
};
|
||||
DiveField(int flags);
|
||||
};
|
||||
|
@ -177,6 +185,10 @@ inline DiveField::DiveField(int flags) :
|
|||
buddy((flags & BUDDY) != 0),
|
||||
rating((flags & RATING) != 0),
|
||||
visibility((flags & VISIBILITY) != 0),
|
||||
wavesize((flags & WAVESIZE) != 0),
|
||||
current((flags & CURRENT) != 0),
|
||||
surge((flags & SURGE) != 0),
|
||||
chill((flags & CHILL) != 0),
|
||||
suit((flags & SUIT) != 0),
|
||||
tags((flags & TAGS) != 0),
|
||||
mode((flags & MODE) != 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue