mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
QML UI: Start Add Dive feature
Start working on the add dive feature, to enable the user add a new dive using the mobile UI. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
This commit is contained in:
parent
10d8a625d0
commit
8d03d26480
4 changed files with 21 additions and 0 deletions
|
@ -27,6 +27,10 @@ Item {
|
|||
qmlProfile.update()
|
||||
}
|
||||
|
||||
function clearDetails() {
|
||||
|
||||
}
|
||||
|
||||
Flickable {
|
||||
id: flick
|
||||
width: parent.width
|
||||
|
|
|
@ -37,6 +37,16 @@ ApplicationWindow {
|
|||
stackView.push(downloadDivesWindow)
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: "Add Dive"
|
||||
onTriggered: {
|
||||
manager.addDive();
|
||||
detailsWindow.clearDetails()
|
||||
stackView.push(detailsWindow)
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: "Save Changes"
|
||||
onTriggered: {
|
||||
|
|
|
@ -126,6 +126,12 @@ void QMLManager::saveChanges()
|
|||
set_filename(fileName.toUtf8().data(), true);
|
||||
mark_divelist_changed(false);
|
||||
}
|
||||
|
||||
void QMLManager::addDive()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool QMLManager::saveCloudPassword() const
|
||||
{
|
||||
return m_saveCloudPassword;
|
||||
|
|
|
@ -28,6 +28,7 @@ public slots:
|
|||
void loadDives();
|
||||
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
|
||||
void saveChanges();
|
||||
void addDive();
|
||||
private:
|
||||
QString m_cloudUserName;
|
||||
QString m_cloudPassword;
|
||||
|
|
Loading…
Add table
Reference in a new issue