Commit Graph

32 Commits

Author SHA1 Message Date
Sander van Grieken e9a1824a77 qml: parent channel open progress dialog to main.qml as it might live longer than OpenChannel 2022-07-26 20:40:13 +02:00
Sander van Grieken 3b9c009e43 qml: include dialogs in back button navigation 2022-07-26 18:01:25 +02:00
Sander van Grieken 623de58b7b qml: network status improvements
create NetworkStatusIndicator component
add forks/chaintips and lagging property to qenetwork
add synchronizing and synchronizing progress properties to qewallet
Note: new wallet synchronizing is not picked up in UI yet, missing
an is_up_to_date event at the start still..
2022-07-21 19:46:12 +02:00
Sander van Grieken 9147e84010 qml: finally! 2022-07-20 11:08:59 +02:00
Sander van Grieken 6aded403b8 qml: pin lock after inactivity 2022-07-20 11:08:31 +02:00
Sander van Grieken 2a13212ded implement auth by PIN and allow auth override to wallet password
by passing method='wallet' to auth_protect
2022-07-07 18:30:20 +02:00
Sander van Grieken f2857243cb show 'press again to quit' message when pressing back on last page in the stack 2022-07-07 18:30:20 +02:00
Sander van Grieken b2fafcb428 add initial submarine swap functionality 2022-07-07 18:29:02 +02:00
Sander van Grieken 9243f3b896 implement wallet password change.
implement wallet delete (though actual wallet file delete is left out still)
2022-07-07 18:29:01 +02:00
Sander van Grieken e9a174711b UI on Wallets screen. Add active/not active/current indicator tags.
initial wallet delete/change password boilerplate
2022-07-07 18:29:01 +02:00
Sander van Grieken 7cb8c347b5 Add @auth_protect decorator.
This guards function calls by storing the function, args and kwargs into
an added attribute '__auth_fcall' on the object using the decorator,
then emits a signal that can be handled by the UI.

The UI can signal auth-success or auth-failure back to the object by
calling either the authProceed() slot or the authCancel slot.

The object utilizing this decorator MUST inherit/mixin the AuthMixin
class, which provides the above two slots, and handling of state.

The decorator also accepts a 'reject' parameter, containing the name of
a parameterless function on the object, which is called when
authentication has failed/is cancelled.
2022-07-07 18:29:01 +02:00
Sander van Grieken 5889c92e81 improve network status display and states of items when no wallet loaded 2022-07-07 18:29:01 +02:00
Sander van Grieken e78a239bf5 bugfixes, lifecycle improvements 2022-07-07 18:29:01 +02:00
Sander van Grieken 6a22a7698c various UI 2022-07-07 18:29:01 +02:00
Sander van Grieken c4c35c7cde make Constants an Item and a child of main so it properly inherits material
style settings from main
2022-07-07 18:29:01 +02:00
Sander van Grieken 6cb3a07500 move reusable controls into controls/ subdir 2022-07-07 18:29:01 +02:00
Sander van Grieken e30cb4ed5f android back button pops pages from stackview unless we reach
bottom of stack
2022-07-07 18:29:01 +02:00
Sander van Grieken 201669d178 UI here and there 2022-07-07 18:29:01 +02:00
Sander van Grieken cb203dfe50 show popup for user notifications 2022-07-07 18:29:01 +02:00
Sander van Grieken 64745ece10 add simple internal notification popup,
refactor MessageDialog
2022-07-07 18:29:01 +02:00
Sander van Grieken da727278fa small fixes 2022-07-07 18:29:01 +02:00
Sander van Grieken f60eca054d add watch-only indicator
use default state instead of named state
set font defaults where it is convenient
2022-07-07 18:28:00 +02:00
Sander van Grieken 7e6991c097 UI 2022-07-07 18:28:00 +02:00
Sander van Grieken 271f36d3b3 add yes/no button option to generic messagedialog, so it can be used
to ask the user a simple yes/no question.
2022-07-07 18:28:00 +02:00
Sander van Grieken f5807df91c add a container for styling constants, so we don't repeat literals all over the code 2022-07-07 18:28:00 +02:00
Sander van Grieken 17820b9346 add QEAddressListModel and initial Addresses.qml page.
show sane main view when no wallet loaded.
show error dialog when wallet could not be loaded.
show wallet up_to_date indicator in title bar.
refactor QETransactionListModel to be more self-contained.
2022-07-07 18:28:00 +02:00
Sander van Grieken c79414012c fix bug where undefined wallet instance crashes app 2022-07-07 18:28:00 +02:00
Sander van Grieken 670882c3c0 improve wallet open flow
remove load_wallet from walletDB, route all wallet loading through QEDaemon.
QEDaemon emits walletLoaded and walletRequiresPassword signals. main.qml opens
OpenWallet view when extra user interaction is needed
2022-07-07 18:28:00 +02:00
Sander van Grieken d13f5d0da0 qml: add server connect wizard 2022-07-07 18:28:00 +02:00
Sander van Grieken ba7bcbfcbc qml: many UI updates and additions 2022-07-07 18:28:00 +02:00
Sander van Grieken e534c5d834 qml: switch to QtQuick Controls 2022-07-07 18:28:00 +02:00
Sander van Grieken 3dce09328e qml: Initial QML to test QObject property binding, ListModels, Camera 2022-07-07 18:28:00 +02:00