A widget to add a set-point change

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-11-25 21:22:02 +01:00 committed by Dirk Hohndel
parent 584775cbc0
commit 96a94f1a19
4 changed files with 180 additions and 0 deletions

View file

@ -9,11 +9,13 @@ class QAbstractButton;
#include <stdint.h>
#include "ui_renumber.h"
#include "ui_setpoint.h"
#include "ui_shifttimes.h"
#include "ui_shiftimagetimes.h"
#include "ui_divecomponentselection.h"
#include "ui_listfilter.h"
#include "exif.h"
#include <dive.h>
class MinMaxAvgWidget : public QWidget {
Q_OBJECT
@ -56,6 +58,22 @@ private:
bool selectedOnly;
};
class SetpointDialog : public QDialog {
Q_OBJECT
public:
static SetpointDialog *instance();
void setpointData(struct divecomputer *divecomputer, int time);
private
slots:
void buttonClicked(QAbstractButton *button);
private:
explicit SetpointDialog(QWidget *parent);
Ui::SetpointDialog ui;
struct divecomputer *dc;
int time;
};
class ShiftTimesDialog : public QDialog {
Q_OBJECT
public: