mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make impossible to change dives while editing one.
This is to prevent loss of data, so if the user is editing something, either cancel the edition or save it, to continue moving around on the Dive List. - Only the dive list is affected, user can still play with the globe and the profile. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
80274b5788
commit
046eacabe5
3 changed files with 51 additions and 6 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <QModelIndex>
|
||||
#include <QAction>
|
||||
|
||||
struct DiveList;
|
||||
class QSortFilterProxyModel;
|
||||
class DiveTripModel;
|
||||
|
||||
|
@ -24,15 +25,24 @@ class DiveNotes;
|
|||
class Stats;
|
||||
class Equipment;
|
||||
class QItemSelection;
|
||||
class DiveListView;
|
||||
class GlobeGPS;
|
||||
class MainTab;
|
||||
class ProfileGraphicsView;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MainWindow();
|
||||
ProfileGraphicsView *graphics();
|
||||
MainTab *information();
|
||||
DiveListView *dive_list();
|
||||
GlobeGPS *globe();
|
||||
|
||||
private Q_SLOTS:
|
||||
|
||||
|
||||
/* file menu action */
|
||||
void on_actionNew_triggered();
|
||||
void on_actionOpen_triggered();
|
||||
|
@ -86,4 +96,6 @@ private:
|
|||
void redrawProfile();
|
||||
};
|
||||
|
||||
MainWindow *mainWindow();
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue