-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvda 2019.3 compatibility, version 2.0, addon template switching, win…
…scp support, some other minor fixes
- Loading branch information
1 parent
9efa67e
commit bedcf20
Showing
32 changed files
with
345 additions
and
198 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions
5
codes/addon/appModules/explorer.py → addon/appModules/explorer.py
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
8 changes: 5 additions & 3 deletions
8
codes/addon/appModules/totalcmd.py → addon/appModules/totalcmd.py
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
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
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,24 @@ | ||
import os | ||
import winsound | ||
import controlTypes | ||
import appModuleHandler | ||
import api | ||
|
||
moduleDir = os.path.dirname(__file__) | ||
loc = os.path.join(moduleDir, "data") | ||
|
||
|
||
def play(name): | ||
ft = os.path.splitext(name) | ||
fe = ft[1][1:] | ||
f = os.path.join(loc, fe + '.wav') | ||
if os.path.exists(f): | ||
winsound.PlaySound(f, winsound.SND_ASYNC) | ||
|
||
|
||
class AppModule(appModuleHandler.AppModule): | ||
def event_gainFocus(self, obj, nextHandler): | ||
if obj.role == controlTypes.ROLE_LISTITEM: | ||
play(obj.name) | ||
nextHandler() | ||
|
File renamed without changes.
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,49 @@ | ||
# -*- coding: UTF-8 -*- | ||
|
||
# Build customizations | ||
# Change this file instead of sconstruct or manifest files, whenever possible. | ||
|
||
# Full getext (please don't change) | ||
_ = lambda x: x | ||
|
||
# Add-on information variables | ||
addon_info = { | ||
# for previously unpublished addons, please follow the community guidelines at: | ||
# https://bitbucket.org/nvdaaddonteam/todo/raw/master/guidelines.txt | ||
# add-on Name, internal for nvda | ||
"addon_name": "soundfile", | ||
# Add-on summary, usually the user visible name of the addon. | ||
# Translators: Summary for this add-on to be shown on installation and add-on information. | ||
"addon_summary": _("sounds by navigation on files"), | ||
# Add-on description | ||
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager | ||
"addon_description": _("plays sounds by navigation on files in file manager depends on file extensions"), | ||
# version | ||
"addon_version": "2.0", | ||
# Author(s) | ||
"addon_author": "ilyapashuk", | ||
# URL for the add-on documentation support | ||
"addon_url": "https://github.com/ilyapashuk/SoundFile-nvda-addon", | ||
# Documentation file name | ||
"addon_docFileName": None, | ||
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional) | ||
"addon_minimumNVDAVersion": "2019.3", | ||
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version) | ||
"addon_lastTestedNVDAVersion": "2020.2", | ||
# Add-on update channel (default is None, denoting stable releases, and for development releases, use "dev"; do not change unless you know what you are doing) | ||
"addon_updateChannel": None, | ||
} | ||
|
||
|
||
import os.path | ||
|
||
# Define the python files that are the sources of your add-on. | ||
# You can use glob expressions here, they will be expanded. | ||
pythonSources = ["addon/appModules/explorer.py","addon/appModules/7zfm.py","addon/appModules/totalcmd.py","addon/appModules/winrar.py", "addon/appModules/winscp.py"] | ||
|
||
# Files that contain strings for translation. Usually your python sources | ||
i18nSources = pythonSources + ["buildVars.py"] | ||
|
||
# Files that will be ignored when building the nvda-addon file | ||
# Paths are relative to the addon directory, not to the root directory of your addon sources. | ||
excludedFiles = [] |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
summary = "{addon_summary}" | ||
description = """{addon_description}""" |
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,10 @@ | ||
name = {addon_name} | ||
summary = "{addon_summary}" | ||
description = """{addon_description}""" | ||
author = "{addon_author}" | ||
url = {addon_url} | ||
version = {addon_version} | ||
docFileName = {addon_docFileName} | ||
minimumNVDAVersion = {addon_minimumNVDAVersion} | ||
lastTestedNVDAVersion = {addon_lastTestedNVDAVersion} | ||
updateChannel = {addon_updateChannel} |
Oops, something went wrong.
bedcf20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Only works for explorer.exe :(
Can you make it work in FileZilla?
Regards