Improve parameter fixed checkboxes#32
Conversation
Simplify handler for popup-fix/free menu on Parameters panel. Remove old ValueError block as it should not happen.
Allow selecting several cells in the "fixed" column without flipping their value. Do not change focused cell when flipping one checkbox.
Codecov Report
@@ Coverage Diff @@
## maint #32 +/- ##
==========================================
+ Coverage 25.22% 27.86% +2.63%
==========================================
Files 88 89 +1
Lines 11634 11717 +83
==========================================
+ Hits 2935 3265 +330
+ Misses 8699 8452 -247
Continue to review full report at Codecov.
|
|
@dragonyanglong - can you please test the new behavior of Parameters Panel checkboxes and post any problems or comments here? |
dragonyanglong
left a comment
There was a problem hiding this comment.
Hi @pavoljuhas , sure! Could you tell me what are the usecases to test this PR?
BTW, I am testing on linux system and I found one usecase as below, not sure is that related with this PR or not.
Step 1. In the beginning, the initial parameter panel looks like this:

Step 2. Select the refined column, put mouse on the parameter 2 row box, right click - click fix/free, it would look like this. currently, the PR doesn't make difference yet.


Step 3. Again put mouse on the parameter 2 row box, right click - click fix/free, now the PR makes difference.
In this PR with newest commits, it would be all rows being "fixed":

But in older version PDFgui without this PR, only the last three rows would be "fixed":

|
@dragonyanglong - thank you for quick and detailed response. The PR should fix the following misbehaviors of the Fixed-column checkboxes. missed clicks when flipping one value
undesired flips when selecting parameters for "Fix / Free" menu
the Fix/Free behavior above
|
Failing test due to old unconditional needsSave call.
|
Thanks @pavoljuhas for the instructions. I finished the testing on linux Ubuntu 18.04.1 LTS and Mac macOS Sierra 10.12.4. Sorry I don't have windows computer.
In addition, the Overall, the PR looks good to me. Thanks Pavol! |
- provide DISPLAY on Linux via xvfb-run - execute with Python.app on Mac OS X - add python-wxtools to test with system Python
* take empty parameter-fixed value as False * improve behavior of parameter-fixed checkboxes * add tests to cover changed methods * fix spurious call to needsSave * support execution of wx GUI on travis Closes #32.
|
@dragonyanglong - thank you for checking! |
* merge branch 'improve-parameter-fixed-checkboxes' Incorporate #32.
This improves handling of the fixed checkboxes in the Parameters panel,
especially when several cells are selected for the Fixed / Free context menu.