mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable Multi Dive Editing.
This patch enables multi dive editing on the selected dives. It's a bit of big patch where I reworked how it worked since it was written just for a single dive. this means that this can introduce bugs - I'v tested it quite a bit but a thing could slip thru my fingers. :) How this is supposed to work: Select a few dives that you want ( one or more ) then click on the field that you wanna edit / multi edit, and press 'accept'. *only* the edited field will be modified thru all dives. Next patch - I'll change the bg color of the edited fields.A Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
cbbc7d99ea
commit
225b13a22d
2 changed files with 162 additions and 56 deletions
|
@ -9,11 +9,12 @@
|
|||
|
||||
#include <QTabWidget>
|
||||
#include <QDialog>
|
||||
#include <QMap>
|
||||
|
||||
#include "models.h"
|
||||
|
||||
class QCompleter;
|
||||
|
||||
struct dive;
|
||||
namespace Ui
|
||||
{
|
||||
class MainTab;
|
||||
|
@ -76,8 +77,7 @@ private:
|
|||
Ui::MainTab *ui;
|
||||
WeightModel *weightModel;
|
||||
CylindersModel *cylindersModel;
|
||||
NotesBackup notesBackup;
|
||||
struct dive* currentDive;
|
||||
QMap<dive*, NotesBackup> notesBackup;
|
||||
QPushButton *addCylinder;
|
||||
QPushButton *addWeight;
|
||||
enum { NONE, DIVE, TRIP } editMode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue