Add toggleReportCellBorders script to input gestures.#10408
Conversation
|
I closed previous PR and open a new one but it fails with the same message: |
| def script_toggleReportCellBorders(self, gesture): | ||
| if not config.conf["documentFormatting"]["reportBorderStyle"] and not config.conf["documentFormatting"]["reportBorderColor"]: | ||
| # Translators: A message reported when cycling through cell borders settings. | ||
| config.conf["documentFormatting"]["reportBorderStyle"] = True |
There was a problem hiding this comment.
At the moment check for translatable commends fails because the commend is not placed directly above the message.
|
PR introduces Flake8 errors 😲 See test results for Failed build of commit c517cd8955 |
LeonarddeR
left a comment
There was a problem hiding this comment.
Thanks for taking this
| @@ -1,9 +1,8 @@ | |||
| # -*- coding: UTF-8 -*- | |||
There was a problem hiding this comment.
Feel free to remove this line
There was a problem hiding this comment.
It must be present because there is a letter Ł in one of contributors name.
There was a problem hiding this comment.
Now the encoding declaration can be removed, since the encoding is specified when invoking Gettext.
| @@ -1,9 +1,8 @@ | |||
| # -*- coding: UTF-8 -*- | |||
| #globalCommands.py | |||
| #A part of NonVisual Desktop Access (NVDA) | |||
There was a problem hiding this comment.
Could you please add a space after every hash sign while at it?
| #A part of NonVisual Desktop Access (NVDA) | |
| # A part of NonVisual Desktop Access (NVDA) |
| ui.message(state) | ||
| # Translators: Input help mode message for toggle report font name command. | ||
| script_toggleReportFontName.__doc__=_("Toggles on and off the reporting of font changes") | ||
| script_toggleReportFontName.__doc__=_("Toggles on and off the reporting of font name changes") |
There was a problem hiding this comment.
As you are touching code for this script, could you please also add the script decorator to this one?
|
|
||
| @script( | ||
| # Translators: Input help mode message for toggle report cell borders command. | ||
| description=_("Cycles through cell borders settings"), |
There was a problem hiding this comment.
| description=_("Cycles through cell borders settings"), | |
| description=_("Cycles through the cell border reporting settings"), |
|
PR introduces Flake8 errors 😲 See test results for Failed build of commit fa5bebbff0 |
|
@LeonarddeR All comments are addressed. And thanks a lot @lukaszgo1 for help. |
|
@jakubl7545 Do you intent to fix the merge conflicts here? |
|
Is there anything blocking this PR from being looked at? cc @seanbudd |
|
|
||
| @script( | ||
| # Translators: Input help mode message for toggle report cell borders command. | ||
| description=_("Cycles through the cell border reporting settings"), |
There was a problem hiding this comment.
| description=_("Cycles through the cell border reporting settings"), | |
| description=_("Cycles through the cell border reporting settings"), |
| not config.conf["documentFormatting"]["reportBorderStyle"] and not | ||
| config.conf["documentFormatting"]["reportBorderColor"] |
There was a problem hiding this comment.
Just to improve readability
| not config.conf["documentFormatting"]["reportBorderStyle"] and not | |
| config.conf["documentFormatting"]["reportBorderColor"] | |
| not config.conf["documentFormatting"]["reportBorderStyle"] and | |
| not config.conf["documentFormatting"]["reportBorderColor"] |
| config.conf["documentFormatting"]["reportBorderStyle"] and not | ||
| config.conf["documentFormatting"]["reportBorderColor"] |
There was a problem hiding this comment.
| config.conf["documentFormatting"]["reportBorderStyle"] and not | |
| config.conf["documentFormatting"]["reportBorderColor"] | |
| config.conf["documentFormatting"]["reportBorderStyle"] and | |
| not config.conf["documentFormatting"]["reportBorderColor"] |
See test results for failed build of commit a30119b14b |
|
@seanbudd Changes applied. |
|
That was discussed long time ago. Don't remember the details but I was asked to do that by the reviewer. |
Co-authored-by: Cyrille Bougot <cyrille.bougot2@laposte.net>
Link to issue number:
Closes #9507
Summary of the issue:
Currently script for reporting cell borders is not present in input gestures dialog so it is not possible to add a gesture for that.
Description of how this pull request fixes the issue:
It adds toggleReportCellBorders script to globalCommands.
Testing performed:
I opened document formatting group in input gestures and found added script there. Then assigned gesture and checked that it works.
Known issues with pull request:
None.
Change log entry:
It is now possible to assign gesture to script reporting cell borders.
Section: Bug fixes