mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Desktop: On dive edit from the dive list or map, switch to new state
If "Edit dive" is selected from the dive list or the map view, switch to a new mode, which shows the dive infos and the profile. After the edit, switch back to the previous state. Fixes #1213 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9d342d0e1a
commit
57bf174c4f
3 changed files with 65 additions and 19 deletions
|
@ -54,7 +54,8 @@ public:
|
|||
MAP_MAXIMIZED,
|
||||
INFO_MAXIMIZED,
|
||||
PROFILE_MAXIMIZED,
|
||||
LIST_MAXIMIZED
|
||||
LIST_MAXIMIZED,
|
||||
EDIT
|
||||
};
|
||||
|
||||
MainWindow();
|
||||
|
@ -87,6 +88,8 @@ public:
|
|||
NotificationWidget *getNotificationWidget();
|
||||
void enableDisableCloudActions();
|
||||
void setCheckedActionFilterTags(bool checked);
|
||||
void enterEditState();
|
||||
void exitEditState();
|
||||
|
||||
private
|
||||
slots:
|
||||
|
@ -190,6 +193,7 @@ private:
|
|||
QAction *actionPreviousDive;
|
||||
UserManual *helpView;
|
||||
CurrentState state;
|
||||
CurrentState stateBeforeEdit;
|
||||
QString filter_open();
|
||||
QString filter_import();
|
||||
static MainWindow *m_Instance;
|
||||
|
@ -210,6 +214,7 @@ private:
|
|||
QString lastUsedDir();
|
||||
void updateLastUsedDir(const QString &s);
|
||||
void registerApplicationState(const QByteArray& state, QWidget *topLeft, QWidget *topRight, QWidget *bottomLeft, QWidget *bottomRight);
|
||||
void enterState(CurrentState);
|
||||
bool filesAsArguments;
|
||||
UpdateManager *updateManager;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue