mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive list: add context menu function to renumber dive(s)
No attempt is made to ensure that what the user does is sane. So this can result in duplicate numbers, non-consecutive numbers, non-monotonous numbers, whatever floats the users boat. You can renumber a single dive or all selected dives (with a starting number given that is applied to the oldest selected dive and then for each newer selected dive that number is incremented by one). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4d14059d7c
commit
b303f217a9
7 changed files with 32 additions and 10 deletions
|
@ -40,6 +40,7 @@ class RenumberDialog : public QDialog {
|
|||
Q_OBJECT
|
||||
public:
|
||||
static RenumberDialog *instance();
|
||||
void renumberOnlySelected(bool selected = true);
|
||||
private
|
||||
slots:
|
||||
void buttonClicked(QAbstractButton *button);
|
||||
|
@ -47,6 +48,7 @@ slots:
|
|||
private:
|
||||
explicit RenumberDialog(QWidget *parent);
|
||||
Ui::RenumberDialog ui;
|
||||
bool selectedOnly;
|
||||
};
|
||||
|
||||
class ShiftTimesDialog : public QDialog {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue