mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
selection: move current dc logic to profile widget
The current dc global makes no sense on mobile. Therefore, move the logic of the currently displayed dive computer to the profile widget and remove the dc_number global variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
19baae449d
commit
cad80e5a53
10 changed files with 92 additions and 66 deletions
|
@ -7,7 +7,6 @@
|
|||
struct dive;
|
||||
|
||||
extern int amount_selected;
|
||||
extern unsigned int dc_number;
|
||||
extern struct dive *current_dive;
|
||||
|
||||
/*** C and C++ functions ***/
|
||||
|
@ -45,7 +44,7 @@ extern void dump_selection(void);
|
|||
// "currentDive" must be an element of "selection" (or null if "seletion" is empty).
|
||||
// If "currentDc" is negative, an attempt will be made to keep the current computer number.
|
||||
// Returns the list of selected dives
|
||||
QVector<dive *> setSelectionCore(const std::vector<dive *> &selection, dive *currentDive, int currentDc);
|
||||
QVector<dive *> setSelectionCore(const std::vector<dive *> &selection, dive *currentDive);
|
||||
|
||||
// As above, but sends a signal to inform the frontend of the changed selection.
|
||||
// Returns true if the current dive changed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue