summaryrefslogtreecommitdiffstats
path: root/qt-mobile
AgeCommit message (Collapse)Author
2015-12-27QML UI: try to remove two binding loopsGravatar Dirk Hohndel
Let's face it. I have no idea what I'm doing here. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: add debug output for echoModeGravatar Dirk Hohndel
For some users by default the password characters aren't hidden. Maybe the debugging output will help us understand what's going on. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: cloud credential input: use text input hintsGravatar Dirk Hohndel
We shouldn't auto-capitalize and the text should only be email address characters. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: if remote is same as local cache, don't load / process remoteGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: load from cache before trying to sync with the cloud serverGravatar Dirk Hohndel
This is a simple way to deal with a "no network" situation. But this isn't ideal, yet, if there is a slow network as the dive list will be reset again once the sync from the cloud finishes. So there is some more thought needed to make this work "mostly as expected". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: change the way we extract input data from dive editGravatar Dirk Hohndel
Instead of doing the silly "onEditingFinished" we get the strings from the QML components at the time we commit the change. Much more logical, much more straight forward, no issues with the TextArea not having an onEditingFinished signal. This still has a few open todos: the temperatures aren't parsed, the edit screen is missing depth and duration, we can't edit the dive time (and it isn't passed in on the commit). But it's progress. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: correct text for context drawer when adding diveGravatar Dirk Hohndel
This needs to say "Save" to indicate that you are saving the data that was entered. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: get add dive closer to being usefulGravatar Dirk Hohndel
Now we at least start out with the corret date, time and number. This still isn't functional as a lot of the data aren't used and the way you save the data is completely silly, but it's another step in the right direction. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: don't crash when committing changes and unable to find the diveGravatar Dirk Hohndel
This mainly happens because add dive is completely broken right now, but in general it seems to be good policy not to blindly dereference this pointer... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26Two more helper functions for the QML managerGravatar Dirk Hohndel
I'm not sure this is the best way to do this - QML should be able to get to the model data directly (I hope?). But this seems to work and I need it to make Add Dive be semi-correct. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: when adding a dive, start in edit modeGravatar Dirk Hohndel
Obviously we don't want to "view" a new dive, we want to "edit" it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: show app name in the top bar as Subsurface mobileGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: mark locations with GPS dataGravatar Dirk Hohndel
In the dive detail view, if a location has an associated GPS location, show the name of the location underlined so the user knows that tapping on it will open a browser window with a map picture. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML-UI: add hacky, useless way to show the GPS location of a diveGravatar Dirk Hohndel
This is of course stupid and NOT what we want to do, but one could argue it's better than nothing (well, not sure, whatever). If we have a GPS location associated with a dive and you tap on the location name when showing the dive details, it opens a static image of a satellite map with a marker for the dive site. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML-UI: attempt to improve profile scalingGravatar Dirk Hohndel
This still doesn't address all the issues, but appears to be a step forward. It also contains some debug output to better understand what's going on. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-24QML-UI: fix black squares on some Android devicesGravatar Dirk Hohndel
It appears that one some Android devices there is an interaction between Qt and the GL implementation that results in black squares instead of icons being shown on the screen. Disabling the GammaAdjust avoids running the shader and fixes this problem. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20QML-UI: log the full version at startGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19QML-UI: allow toggling verbose mode from the UIGravatar Dirk Hohndel
Hidden in the Developer menu. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19QML-UI: more log message when retrieving web user idGravatar Dirk Hohndel
At least one tester cannot retrieve their web user id. This should help us collect more data and figure out why this fails. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19QML-UI: actually show the right text for missing cloud credentialsGravatar Dirk Hohndel
If we have no credentials or invalid credentials, update the text on the start page accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-15QML UI: show better message about dive list at startGravatar Dirk Hohndel
Now the message should make more sense. First it tells you that it's looking for dives. Then you get some progress during the git download, and error messages if things failed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-07QML-UI: make dive edit almost sort of workGravatar Dirk Hohndel
So this has a lot of caveats: - right now it only works for buddy, divemaster and suit - you have to actually exit the field with your cursor or the change doesn't take - that's ridiculous, there must be a far more clever way to do this - because I use the onEditingFinished handler I can't do this for the Notes (so here's another reason why I KNOW that this is the wrong way to do this) But it shows in principle how this could be done and once someone who actually knows what they are doing gets their hands on the code I'm optimistic that this can be morphed into something much more useful. It does tie together the changes made in the previous commits so that both clicking around on the dive list gives the expected results and synching the data back to the cloud actually works. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-07QML-UI: that's not how you compare char pointers...Gravatar Dirk Hohndel
Well, at least it doesn't what you think it does. Let's use our little helper to actually compare the strings. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-08Page margins for app logGravatar Sebastian Kügler
Adds consistent page margins also to Log page. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08sync with mobilecomponents f4d5d19fcGravatar Sebastian Kügler
- Kills a warning in ContextDrawer. - Improves sizing of menu icons. - Fixes icon rendering in menues. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08fix vertical alignment in divelistGravatar Sebastian Kügler
left and right of the items and the headings are now synced and consistent with other pages. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08delete CloudStorage.qmlGravatar Sebastian Kügler
File is unused, apparently a left-over from a rename. It's not included in the qrc and referenced nowhere, so it's safe to delete. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08Fix page margins in preferences and cloudcredentialsGravatar Sebastian Kügler
- page margins are gridUnit / 2, consistent with other pages - Simplify layout: we don't need to nest that much here, saves two objects and simplifies code a bit Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08divelist polishGravatar Sebastian Kügler
- fix page margins (gridUnit / 2) - trip heading marker now stretches over the full length Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08implement new menu structureGravatar Sebastian Kügler
This patch creates the following menu structure in the application menu as discussed on irc: Cloud credentials Preferences Manage dives Download from computer Add dive manually Refresh dives Upload to cloud GPS Add GPS tags to dives Upload GPS data Clear GPS cache Advanced (hidden by default) App log Theme Information "Save" moves out of the context menu, since it's a global thing (syncs to server). Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08Fix page margins of start pageGravatar Sebastian Kügler
Consistent with other pages: half a gridUnit around the content. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08theme test improvementsGravatar Sebastian Kügler
- fix page magins - add headings - add screen dimensions in gridUnits Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-08increase horizontal spacing at the edgesGravatar Sebastian Kügler
Spacing around pages is half a grid unit, as consistent with (some of the) other pages. For the dive list, it's slightly more complicated: We want the list items to reach the edges on both side as to increase the interactive area. We have to apply the spacing left and right inside the listitems. This patch does that. Another consistency fix with other pages is that we're now adding a header at the top of the dive list, which scrolles with the list view. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07Merge branch 'divedetailssplit' of github.com:sebasje/subsurfaceGravatar Dirk Hohndel
2015-12-08Fix text wrapping in log viewerGravatar Sebastian Kügler
Apparently, the width setting got lost in the previous change. This sets the width of the log text explicitely to the grandparent's width. It fixes text clipping in the log window. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07QML-UI: add dive date to the detail viewGravatar Dirk Hohndel
That one really bugged me... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-07simplify and style log pageGravatar Sebastian Kügler
- less instantiated objects inside each other - add page heading - allow wrapping of text Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07Fix styling in Preferences pageGravatar Sebastian Kügler
- styled labels from MobileComponents - secondary header becomes smaller Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07Fix text clippingGravatar Sebastian Kügler
2015-12-07redesign dive details viewGravatar Sebastian Kügler
This change cleans up the layout optimized for viewing dive details. The top part contains brief and essential dive info (location, depth, duration, dive no.), then the profile, then a table with more details, and finally the notes. The goal here is to present the dive's data more efficiently and attractively now that the edit part is factored out. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07Add more iconsGravatar Sebastian Kügler
Icons for document-edit, document-save and view-readermode are added from the light breeze variant. They're usd in the dive's contextual actions. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07dive edit gets contextual actionsGravatar Sebastian Kügler
Option to switch between view and edit and to save the changes are now in the context drawer. Let's see how this works out. If it turns out to be badly discoverable (which is what I'm worried about), this needs to be fixed at component level.
2015-12-07noise--Gravatar Sebastian Kügler
Kill print in DiveList's startpage. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07add context drawer component to the qrc fileGravatar Sebastian Kügler
It's now needed in main.qml. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07add a contextdrawerGravatar Sebastian Kügler
This item can be dragged in from the right hand side and provides contextual actions for a page. It will be used in the dive details edit. If there are actions, the floating button on the bottom shows an arrow indicating that one can drag it in from the right hand side to the left. Also clean up a bit of a noisy print that's not needed anymore. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07split divedetails into view and edit partsGravatar Sebastian Kügler
This splits the dive detail page into two modes: view and edit - The edit part loses the profile (it's not editable anyway) - The view part gets a new layout, friendlier for viewing - Properties for diveNumber, duration, depth and weight are added Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07state machine controls edit/view dive detailsGravatar Sebastian Kügler
This is the first part of splitting the dive details into edit/view modes. - introduce a state machine to switch between view and edit mode - factor out the editor into its own component Both components are almost the same, but we can change them individually now. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07Styled heading in startpageGravatar Sebastian Kügler
We have a specific component for headings now, use it for consistency's sake. Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07sync with mobilecomponents 9d8bf6d77dGravatar Sebastian Kügler
- Fixes interactivity in context drawer. - These are mostly cleanups that have been done pre-merge of these components. This now is the state of master in plasma-mobile. - makes navigation a bit more intuitive Signed-off-by: Sebastian Kügler <sebas@kde.org>
2015-12-07Fix indentationGravatar Sebastian Kügler
It's a bit all over the place. This makes it consistent and aligned. Signed-off-by: Sebastian Kügler <sebas@kde.org>