summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-24 21:11:20 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-15 11:20:49 -0700
commit944a9aed54b7dfdac606f5503578b46f6c0e8235 (patch)
treeca61338064710f807bf46904c5409b91d860c6f5 /desktop-widgets/tab-widgets/maintab.h
parent99dc528a10df63099cda571a998b2a34c9d0b022 (diff)
downloadsubsurface-944a9aed54b7dfdac606f5503578b46f6c0e8235.tar.gz
Undo: show warning message if more than one dive edited
On the MainTab, warn if more than one dive was edited. To this purpose, add a new KMessageWidget with an "OK" button that closes the message. Code is mostly a copy of the already existing "Editing dive" message. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.h')
-rw-r--r--desktop-widgets/tab-widgets/maintab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h
index fd11a40fc..70cabf343 100644
--- a/desktop-widgets/tab-widgets/maintab.h
+++ b/desktop-widgets/tab-widgets/maintab.h
@@ -75,6 +75,7 @@ slots:
void on_tagWidget_editingFinished();
void hideMessage();
void closeMessage();
+ void closeWarning();
void displayMessage(QString str);
void enableEdition(EditMode newEditMode = NONE);
void updateTextLabels(bool showUnits = true);
@@ -92,6 +93,7 @@ private:
int lastTabSelectedDiveTrip;
dive_trip_t *currentTrip;
QList<TabBase*> extraWidgets;
+ void divesEdited(int num); // Opens a warning window if more than one dive was edited
};
#endif // MAINTAB_H