mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:23:24 +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()
|
qmlProfile.update()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearDetails() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
id: flick
|
id: flick
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
@ -37,6 +37,16 @@ ApplicationWindow {
|
||||||
stackView.push(downloadDivesWindow)
|
stackView.push(downloadDivesWindow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuItem {
|
||||||
|
text: "Add Dive"
|
||||||
|
onTriggered: {
|
||||||
|
manager.addDive();
|
||||||
|
detailsWindow.clearDetails()
|
||||||
|
stackView.push(detailsWindow)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: "Save Changes"
|
text: "Save Changes"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
|
@ -126,6 +126,12 @@ void QMLManager::saveChanges()
|
||||||
set_filename(fileName.toUtf8().data(), true);
|
set_filename(fileName.toUtf8().data(), true);
|
||||||
mark_divelist_changed(false);
|
mark_divelist_changed(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QMLManager::addDive()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
bool QMLManager::saveCloudPassword() const
|
bool QMLManager::saveCloudPassword() const
|
||||||
{
|
{
|
||||||
return m_saveCloudPassword;
|
return m_saveCloudPassword;
|
||||||
|
|
|
@ -28,6 +28,7 @@ public slots:
|
||||||
void loadDives();
|
void loadDives();
|
||||||
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
|
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
|
||||||
void saveChanges();
|
void saveChanges();
|
||||||
|
void addDive();
|
||||||
private:
|
private:
|
||||||
QString m_cloudUserName;
|
QString m_cloudUserName;
|
||||||
QString m_cloudPassword;
|
QString m_cloudPassword;
|
||||||
|
|
Loading…
Add table
Reference in a new issue