Commit Graph

83 Commits

Author SHA1 Message Date
Neil Booth 144f53be18 Use TaskThread to simplify ThreadedButton
And improve labels dialog
2016-01-17 16:13:32 +09:00
Neil Booth c714acf739 Add TaskThread, use to simplify WaitingDialog
This will be useful as a client thread for hardware wallets
2016-01-17 15:47:08 +09:00
Neil Booth 0219687d41 Some work on multisig. 2016-01-13 19:20:58 +09:00
Neil Booth 45f518e191 Improve Master Public Keys dialog
- Put the radio buttons inside the group box
- Share more code between the have-group-box and not cases
- Use ChoicesLayout
- Don't use cosigner terminology unless it's a Multisig wallet
2016-01-11 12:31:45 +09:00
Neil Booth 9cf0a9720f QT handler improvements
Now we have the top_level_window() function, stop using the window
stack.
2016-01-10 13:24:56 +09:00
Neil Booth 83cc5e2001 Fix top level window issue on Mac
Better, more generic fix superseding prior two patches.
2016-01-10 12:56:12 +09:00
Neil Booth 2377476207 Separate out new QT util ChoicesLayout
For future use elsewhere
2016-01-09 15:38:27 +09:00
Neil Booth 40ae744c1e Fix show_error inheritance issue 2016-01-03 11:18:20 +09:00
Neil Booth a7028176cd Trezor: Add wipe device functionality
Also add a chicken box for PIN removal.
2016-01-03 10:26:34 +09:00
Neil Booth 8f91af28a5 More cleanup of WaitingDialog
Simplify its interface
2015-12-26 11:18:32 +09:00
Neil Booth ffd081ac21 Clean up WaitingDialog
Prevent GC so callers don't have to.
2015-12-23 22:10:11 +09:00
Neil Booth 0ecf2565ce MessageBoxMixin-related cleanup 2015-12-23 20:05:09 +09:00
Neil Booth 9484b6371f More modality fixes and cleanups 2015-12-23 18:31:36 +09:00
Neil Booth 15e9991e2a Move message box logic to a mixin 2015-12-23 15:10:15 +09:00
Neil Booth 21e4a30371 Modality fixes for critical errors 2015-12-23 13:39:20 +09:00
Neil Booth 57d4b27696 Fix a bunch more modality issues for message boxes 2015-12-23 13:21:13 +09:00
Neil Booth 44a436e964 Make line_dialog, text_dialog window modal
Move new_wallet and get_wallet_folder from qt/__init__.py
to qt/main_window.py for correct centring and window modality.
2015-12-22 07:55:33 +09:00
Neil Booth 8598f9ef9c Permit sweep of private keys for watch-only wallet
Fixes #1585
Warn user if watching-only.
Introduce new helper class WindowModalDialog and use it in a couple
of places.  This is better than process-modal dialogs for our
multi-window daemon setup.
2015-12-21 23:52:48 +09:00
Neil Booth 2226667437 QT: Stop timer cleanly to avoid exceptions on exit 2015-12-20 16:15:33 +09:00
ThomasV 9d3162b1a1 simplify get_label 2015-12-15 12:52:30 +01:00
Neil Booth 0371a3dc32 Don't refresh whilst editing!
It's long been a pet peeve of mine that whilst editing a label,
something would cause Electrum to refresh the widget, such as
an incoming tx or a new block, and you'd lose your edits.
This changes MyTreeWidget so that, if editing, updates are
deferred until editing finishes.
2015-09-09 09:36:35 +09:00
Neil Booth 544b829f6e Rework MyTreeWidget editing
Gets rid of need for EditableItem class.
New callback on_permit_edit to permit widgets to refuse editing.
Restores popup menu on activating a non-editable column behaviour.
2015-09-09 07:38:54 +09:00
ThomasV 533cdde366 right align numerical values in history widget 2015-09-08 12:09:22 +02:00
Neil Booth 9b50d1e7bc Fix history headers on plugin load / unload 2015-09-06 21:14:36 +09:00
Neil Booth f68c04e251 Only pass user edits to item_edited()
It was picking up changes made when the history tab updates when
a transaction changes confirmation state
2015-08-30 18:19:27 +09:00
Neil Booth 607664e663 Fix contact editing.
This fixes some bugs in contact editing:

- a changed address is now checked for validity. Shows
  error if invalid and restores prior value
- the changes are saved, before they were dropped
- adding a new contact switches to the contacts tab,
  it used to switch to the address tab

As an enhancement, the contact name, as well as its address,
can be edited and updated.

Finally, the platform edit key can also be used to edit,
in adition to double-clicking.  This is typically the F2 key.
2015-08-29 21:22:08 +09:00
Neil Booth 851db130ea Cleaner column editing in MyTreeWidget
Also enables arbitrary columns to be edited, but nothing
uses that yet.
2015-08-29 20:58:08 +09:00
Neil Booth f32cb71ed5 Clean up MyTreeWidget item editing 2015-08-28 22:55:25 +09:00
ThomasV e9523f231b fix account renaming issues #1158 #1299 2015-08-17 12:49:04 +02:00
ThomasV 2515fc9b6a use blue color to denote auto-filled values (fee, exchange rates plugin) 2015-08-06 12:56:48 +02:00
ThomasV 1e668209dc improve signed URI window 2015-07-19 10:54:45 +02:00
ThomasV 35aba0c14b show alias satus in gui after fetch 2015-07-11 18:14:00 +02:00
ThomasV 18032fc4f6 treewidget: keep default label when editing 2015-05-17 12:48:17 +02:00
ThomasV 1cb6c08a13 use get_config instead of passing window to ScanQRTextEdit 2015-05-08 19:58:29 +02:00
ThomasV 0a1c8f5546 underline help label 2015-05-03 07:06:54 +02:00
ThomasV 9f4a914526 change mouse cursor over clickable labels 2015-05-02 13:36:10 +02:00
Neil Booth b71d35f027 Make stretch column editable again. 2015-04-30 16:39:32 +09:00
ThomasV 953674aac7 resize columns to content by default 2015-04-29 09:26:22 +02:00
Neil Booth 72cf707e61 Filter on an array of columns. Make search string lower case too. 2015-04-27 08:37:03 +09:00
Jason Jackson acedbe304a Fix spelling of Clipboard 2015-04-24 23:20:34 -04:00
ThomasV d94aee83b9 enable sorting for all lists except history 2015-04-23 18:28:37 +02:00
ThomasV 706d605f91 recursive generator for tree leaves 2015-04-23 15:24:12 +02:00
ThomasV 45081b1c8b search box 2015-04-23 13:50:35 +02:00
ThomasV fd651709b8 fix 2015-04-22 09:56:16 +02:00
ThomasV 2f0f1aafa6 replace help buttons in send tab with clickable labels 2015-04-22 09:49:01 +02:00
ThomasV acf4ad5ec8 add preprocessing to ThreadedButton 2015-04-21 11:00:40 +02:00
ThomasV 2f729c2505 add copy button to tx dialog 2015-04-20 14:44:59 +02:00
ThomasV fa446eac2e improved buttons 2015-04-20 14:15:18 +02:00
ThomasV b42ff0b925 gui: fix buttonsTextEdit bug 2015-04-20 12:32:48 +02:00
ThomasV a3ed4ce2a7 new class to show buttons in LineEdit. fixes #1050 2015-04-20 11:49:27 +02:00