mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create Add Weightsystem dialog
My first attempt to create a Qt dialog and to hook it up with the program. Unsurprisingly this doesn't quite work as expected (i.e., the values I enter aren't populated in the model), but it's a start... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
482bea84c2
commit
f45618f0c7
5 changed files with 190 additions and 3 deletions
30
qt-ui/addweightsystemdialog.h
Normal file
30
qt-ui/addweightsystemdialog.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* addweightsystemdialog.h
|
||||
*
|
||||
* header file for the add weightsystem dialog of Subsurface
|
||||
*
|
||||
*/
|
||||
#ifndef ADDWEIGHTSYSTEMDIALOG_H
|
||||
#define ADDWEIGHTSYSTEMDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "../dive.h"
|
||||
|
||||
namespace Ui{
|
||||
class AddWeightsystemDialog;
|
||||
}
|
||||
|
||||
class AddWeightsystemDialog : public QDialog{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AddWeightsystemDialog(QWidget* parent = 0);
|
||||
void setWeightsystem(weightsystem_t *ws);
|
||||
void updateWeightsystem();
|
||||
|
||||
private:
|
||||
Ui::AddWeightsystemDialog *ui;
|
||||
weightsystem_t *currentWeightsystem;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue