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:
Grace Karanja 2015-08-10 08:35:47 +03:00 committed by Dirk Hohndel
parent 10d8a625d0
commit 8d03d26480
4 changed files with 21 additions and 0 deletions

View file

@ -27,6 +27,10 @@ Item {
qmlProfile.update()
}
function clearDetails() {
}
Flickable {
id: flick
width: parent.width

View file

@ -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: {

View file

@ -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;

View file

@ -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;