-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed version and documentation and added a donation dialog.
Changed the readMe to include the new feature (Find dialog wrapping)
- Loading branch information
1 parent
4fa67f6
commit fa0ee77
Showing
4 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# screenWrapping | ||
# Copyright 2018 Hamada Trichine, released under GPLv2. | ||
|
||
import wx, gui, config | ||
import wx, gui, config, api | ||
|
||
class ScreenWrappingSettings(gui.SettingsPanel): | ||
# Translators: The name of the addon. | ||
|
@@ -12,9 +12,12 @@ def makeSettings(self, sizer): | |
# Translators: Text for the check box in the settings that turns on or off the beeps when wrapping. | ||
self.beepsCheckBox = self.sizer.addItem(wx.CheckBox(self, id=wx.ID_ANY, label=_("&Play a beep when wrapping"))) | ||
self.beepsCheckBox.SetValue(config.conf["screenWrapping"]["turnOnBeeps"]) | ||
|
||
# Translators: Text for the button in the settings that copys the donation E-mail to the clipboard. | ||
self.copyDonationMailButton = self.sizer.addItem(wx.Button(self, id=wx.ID_ANY, label=_("&Copy PayPal donation E-mail to clipboard"))) | ||
self.copyDonationMailButton.Bind(wx.EVT_BUTTON, lambda e: api.copyToClip("[email protected]")) | ||
|
||
def onSave(self): | ||
config.conf["screenWrapping"]["turnOnBeeps"] = self.beepsCheckBox.GetValue() | ||
|
||
def onDiscard(self): | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# screenWrapping | ||
# Copyright 2018 Hamada Trichine, released under GPLv2. | ||
|
||
import addonHandler | ||
addonHandler.initTranslation() | ||
|
||
|
||
def onInstall(): | ||
import wx, api | ||
# Translators: donation dialog title. | ||
dialogTitle = _("Would you like to donate?") | ||
# Translators: donation dialog message. | ||
ret = wx.MessageBox(_("If you like my work, please consider donating. Any contribution you can give helps me to keep going. My paypal E-mail is [email protected]. Would you like to copy it to your clipboard? You can always find it under nvda settings/screen wrapping"), dialogTitle, style=wx.YES_NO) | ||
if ret == wx.YES: | ||
api.copyToClip("[email protected]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,9 @@ | |
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager | ||
"addon_description" : _("""This addon brings the screen wrapping feature to nvda. | ||
When you press quick navigation keys such as h, b, f and others, you will be placed on the next element regardless of your current position on a webpage. | ||
If elements are not found below your position, you will be placed at the first element of the requested type available from the beginning of the page and vice versa when you are searching upwards."""), | ||
If elements are not found below your position, you will be placed at the first element of the requested type available from the beginning of the page and vice versa when you are searching upwards. this also extends to the find dialog of nvda."""), | ||
# version | ||
"addon_version" : "1.7", | ||
"addon_version" : "1.8", | ||
# Author(s) | ||
"addon_author" : u"Hamada Trichine <[email protected]>", | ||
# URL for the add-on documentation support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters