Remember selected transaction with multiple account views opened
-
Roman Kapusta
I have a look on your source code, I don't like this heavy use of properties, but I managed to find where are changing account panes (core/gui/main_window.py, _change_current_pane, line 66) there should be something like 'remeber first visible transaction in hiding account' and 'scroll to first visible transaction in showing account'. You vill have something like 'first visible transaction' for every entry pane.
or more simple approach: just scroll to first selected transaction, if it is not visible.
-
Virgil Dupras
moneyGuru already does that. The problem, as I wrote is that it does the minimum scrolling necessary to make the first selected transaction visible, which means that most of the time, the selected transaction ends up either at the very top or the very bottom, which is probably not optimal in most cases. That's why I was suggesting to scroll until the first selected transaction was in the middle of the table.
-
Virgil Dupras
Oops, sorry, I checked again and it doesn't. I thought it did. I have to change the ticket.
-
Virgil Dupras
- Title changed from Scroll position lost in entry view when changing active tab to Remember selected transaction with multiple account views opened
-
Virgil Dupras
(by the way, this is part of an ongoing, long run refactoring process described at http://www.hardcoded.net/docs/moneyguru/refactorings.html#more-resp... )
-
Virgil Dupras
- Milestone set to 2.4.0
- Milestone order changed from 195283 to 0
-
Virgil Dupras
- Assigned user set to Virgil Dupras
-
Virgil Dupras
- State changed from accepted to hold
- Milestone cleared.
The transaction selection update/restore process right now is a mess right now, and before I can un-mess it and implement this selection behavior, I'd ideally have to fully complete the proxy/model instantiation shift I'm currently in the middle of so that I can get rid of the shared account view kludge that's there right now. Once this is done, implementing this ticket will be much easier. Later.
-
Virgil Dupras
- State changed from hold to accepted
- Milestone set to v2.5
- Milestone order changed from 4 to 0
The core gui instantiation refactoring process is complete, so I can give this ticket another try.
-
Virgil Dupras
(from [3f54ce82b68e]) [#252 Remember selected transaction with multiple account views opened] Replaced most references to MainWindow.shown_account by AccountView's own account reference.
Also, removed the shown_account_changed notification. All of this is in preparation of show_account's complete removal so we can have each AccountView instance independent of each other.
https://bitbucket.org/hsoft/moneyguru/changeset/3f54ce82b68e/ -
Virgil Dupras
- State changed from accepted to fixed
(from [c536e5ba7b40]) [#252 Remember selected transaction with multiple account views opened state:fixed] Completely removed MainWindow.shown_account.
This completes the transition from a shared AccountView to one instance of AccountView per opened Account pane. This shared AccountView thing was the cause of the entry selection glitch in #252 Remember selected transaction with multiple account views opened. With one account instance per account, the entry selection doesn't have to be restored because it isn't touched when we switch accounts.
https://bitbucket.org/hsoft/moneyguru/changeset/c536e5ba7b40/ -
Roman Kapusta
good work, thank you
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.