aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
AgeCommit message (Collapse)Author
2016-03-08port to Kirigami imports and new apiGravatar Marco Martin
first quick and dirty port of the imports to Kirigami 1.0 (using system installed for now) adapt to api changes and try out some of the proposed ui changes from the HIG Signed-off-by: Marco Martin <notmart@gmail.com>
2016-03-05QML UI: small modification to About screenGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03QML UI: make sure the drawer is closed after going back to dive listGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03QML UI: brute force around Qt 5.6.0 bugGravatar Dirk Hohndel
With the current release candidate of Qt 5.6.0 we get into an infinite recursion of the grid layout engine. This had happened before (prior to the 5.6 beta) and it appeared that setting the maximum width of the columns was sufficient to fix this. But with the RC even that isn't sufficient, so now we give up on having QML figure out the best possible column width and hard code both preferred and maximum width to the same, predefined values. That's a total shame, but at least now we can build against Qt 5.6 without infinite recursions and crashes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03QML UI: remove commented out / unused codeGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03QML UI: try to avoid binding loopGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03use the global showPassiveNotification functionGravatar Marco Martin
don't create a local PassiveNotification copy, use the global show/hidePassiveNotification from ApplicationWindow, now that it works Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03QML UI: remove incorrect statementGravatar Dirk Hohndel
Not sure what this was even supposed to do... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-03QML UI: show notification for saving dives to cloud as wellGravatar Dirk Hohndel
Fixes #1014 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-02QML UI: show notification when cloud is accessedGravatar Dirk Hohndel
And hide the notification either after 5 seconds or once we are done. This requires an extension to the Kirigami components that isn't upstream, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-02QML UI: resolve confusion about dive list model orderingGravatar Dirk Hohndel
Oops, I forgot to take the sort model on top of the model into account. Now everything should stay consistent - ListView order when accessed from QML, but internal order when accessing the underlying array. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-03-02QML UI: after adding a dive, jump to it in the listGravatar Dirk Hohndel
Don't do the slow motion scrolling through the list if we previously showed a different dive in the list. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-29QML UI: implement undeleteGravatar Dirk Hohndel
This code is very similar to the undo code in the desktop UI, but untangling that from the desktop seemed massive overkill; we don't have lists of dives to delete and undelete here - so this is actually much simpler and easier to maintain (I hope). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-29QML UI: present an undo dialog after deleteGravatar Dirk Hohndel
The dialog gives the user 3 seconds to undo the delete and then disappears without any user interaction. This isn't hooked up, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-28QML UI: small adjustment to DiveDetailsViewGravatar Dirk Hohndel
This reduces the margin to use more of the available space and also makes the first column slightly wider so the word "Cylinder" isn't broken on a Nexus 6p. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-28QML UI: ensure that after a dive edit the profile is redrawnGravatar Dirk Hohndel
Normally this is triggered when the DiveDetailsView component is completed, but since QML isn't recreating this component unless we switch to a dive a couple of spots in the dive list away from this one, we wouldn't get any changes in the data reflected in the profile. But since this now redraws the same dive that potentially was drawn last, we need to make sure we call plotDive() with force=true. I also suspect that this could help with the strange bug that sometimes we show a blank profile after certain edits. See #1013 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-23QML UI: add context menu to delete diveGravatar Dirk Hohndel
This allows the user to delete the currently shown dive. This action takes effect right away, no confirmation, it gets right away written to the local git cache. One idea for an undo operation here could be to simply reset the git tree to HEAD^ and reload. Not elegant, but would work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-20QML UI: only allow valid gas mixesGravatar Dirk Hohndel
The input is restricted to EAN100 EANxx (with 'x' one of 0..9) AIR xx/xx (with 'x' one of 0..9) xxx (with 'x' one of 0..9 and the number <= 100) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-20QML UI: don't allow negative duration or depthGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-15QML UI: better text when no profile is shown for a diveGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-14QML UI: don't show an odd profile for zero duration diveGravatar Dirk Hohndel
A dive with zero duration creates an odd profile that is 2min 30seconds long and looks just weird. Instead, simply show a text that there is on profile shown for such a dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-14QML UI: back key on dive list exits the appGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: when canceling a dive add, go back to dive listGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: simplify and correct top bar layoutGravatar Dirk Hohndel
Now things are centered and reasonably well spaced Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: remove disabled parts of the top barGravatar Dirk Hohndel
I guess we are going with the Plasma Mobile influenced design after all Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: better margins for start pageGravatar Dirk Hohndel
This way it doesn't look like it's stuck in the corner. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13Fix incorrect reference to endEditMode()Gravatar Dirk Hohndel
Not sure how that slipped through the cracks. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: use action button for save in GPS preferencesGravatar Dirk Hohndel
For consistency Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: don't change dive while editingGravatar Dirk Hohndel
If the user taps on a dive in the dive list while a dive is being edited or added, ignore that tap. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: change the dive add/edit action button to be saveGravatar Dirk Hohndel
Remove the button on the page and instead use the action button to save and the back key to cancel. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: use action button and Android back button to save / go backGravatar Dirk Hohndel
This is more consistent with the rest of our UI To make this work you once again need changes to the mobile components that aren't upstream, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-13QML UI: enable edit of gasmixGravatar Joakim Bygdell
First cylinder only, show warning if there are more than one cylinder defined. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-12QML UI: remove the redundant context menus that just close the pageGravatar Dirk Hohndel
Android users are well used to using the back key for this. I kept the code in place as things may end up completely different on IOS or other mobile platforms. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-12Add missing importGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-12QML UI: add context menu to Theme TestGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-12QML UI: experimentally enable context menu on each pageGravatar Dirk Hohndel
This is necessary to allow all user interaction when removing action buttons from the top bar. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-12QML UI: experimentally turn off all the top bar buttonsGravatar Dirk Hohndel
This allows us to shrink the top bar quite a bit and have a little more screen real estate. In order to maintain functionality we need to reenable the context menu on some screens. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: even with valid credentials, don't show empty dive listGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML-UI: allow dive list to be pulled up above Action ButtonGravatar Dirk Hohndel
This way you can fully interact with it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: calculate correct height for the cloud credentialsGravatar Dirk Hohndel
It still complains about a binding loop but I don't quite understand why and how... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: remove unnecessary outer item from start pageGravatar Dirk Hohndel
This changes nothing except for removing the item and reindenting the code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: try to get correct height for start pageGravatar Dirk Hohndel
Still not quite correct. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: make the start page scrollableGravatar Dirk Hohndel
This doesn't quite work yet as the start page appears to miscalculate its height (the cloud credentials page appears to be missing). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: redesign the About pageGravatar Dirk Hohndel
Make things centered, lay them out correctly, make sure the image fits. This includes the re-indentation of the previous commit - but the changes are so massive that it seemed pointless to do this as its own commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: close About page on back keyGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-11QML UI: cloud credentials: put the two buttons side by sideGravatar Dirk Hohndel
That looks better. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-10QML UI: close all other pages when switching cloud credentialsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-10QML UI: disable some menu entries without valid credentialsGravatar Dirk Hohndel
This requires a patch to the mobile components that isn't upstream, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-10QML UI: allow changing credentialsGravatar Dirk Hohndel
With the integration of the credentials into the start page the logic for this has changed. Since the code for start page and dive list is actually on the same page, using opacity to switch between the two sub pages (depending on whether we have valid credentials and dives to show), the old way of changing credentials no longer worked. With theis patch the user once again can change their credentials (and change their mind and go back to the dive list). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2016-02-10Indentation fix after the last commitGravatar Dirk Hohndel
For the ThemeTest we could simply drop the item, for the GPS preferences and the DowbloadFromDiveComputer page everything got indented by one level. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>