commit/clipContentsDesigner: 4 new changesets

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Thu, 24 Nov 2016 10:04:28 -0000

4 new commits in clipContentsDesigner:

https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/fb6ef0eeb846/
Changeset:   fb6ef0eeb846
Branch:      None
User:        norrumar
Date:        2016-11-24 09:43:03+00:00
Summary:     The add-on requires NVDA 2016.4 or later. Use guiHelper for the 
settings dialog

Affected #:  1 file

diff --git a/addon/globalPlugins/clipContentsDesigner/__init__.py 
b/addon/globalPlugins/clipContentsDesigner/__init__.py
index 1e6b704..dcc4248 100644
--- a/addon/globalPlugins/clipContentsDesigner/__init__.py
+++ b/addon/globalPlugins/clipContentsDesigner/__init__.py
@@ -53,15 +53,11 @@ import win32clipboard
 import config
 import wx
 import gui
-from gui import SettingsDialog
+from gui import SettingsDialog, guiHelper
+from globalCommands import SCRCAT_TEXTREVIEW, SCRCAT_CONFIG
 
 addonHandler.initTranslation()
 
-try:
-       from globalCommands import SCRCAT_TEXTREVIEW, SCRCAT_CONFIG
-except:
-       SCRCAT_TEXTREVIEW = SCRCAT_CONFIG = None
-
 confspec = {
        "separator": "string(default="")",
        "addTextBefore": "boolean(default=False)",
@@ -210,19 +206,18 @@ class AddonSettingsDialog(SettingsDialog):
        title = _("Clip Contents Designer settings")
 
        def makeSettings(self, settingsSizer):
+               sHelper = guiHelper.BoxSizerHelper(self, sizer=settingsSizer)
                # Translators: label of a dialog.
-               setSeparatorLabel=wx.StaticText(self, -1, label=_("Type the 
string to be used as a &separator between contents added to the clipboard."))
-               self.setSeparatorEdit=wx.TextCtrl(self, wx.NewId())
-               settingsSizer.Add(setSeparatorLabel)
+               setSeparatorLabel = _("Type the string to be used as a 
&separator between contents added to the clipboard.")
+               setSeparatorLabeledCtrl = 
gui.guiHelper.LabeledControlHelper(self, setSeparatorLabel, wx.TextCtrl)
+               self.setSeparatorEdit = setSeparatorLabeledCtrl.control
                try:
                        
self.setSeparatorEdit.SetValue(config.conf["clipContentsDesigner"]["separator"])
                except KeyError:
                        pass
-               settingsSizer.Add(self.setSeparatorEdit, border=10, 
flag=wx.BOTTOM)
                # Translators: label of a dialog.
-               self.addTextBeforeCheckBox=wx.CheckBox(self, wx.NewId(), 
label=_("&Add text before clip data"))
+               self.addTextBeforeCheckBox = sHelper.addItem(wx.CheckBox(self, 
label= _("&Add text before clip data")))
                
self.addTextBeforeCheckBox.SetValue(config.conf["clipContentsDesigner"]["addTextBefore"])
-               settingsSizer.Add(self.addTextBeforeCheckBox,border=10, 
flag=wx.BOTTOM)
 
        def postInit(self):
                self.setSeparatorEdit.SetFocus()


https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/443a155a4abc/
Changeset:   443a155a4abc
Branch:      None
User:        norrumar
Date:        2016-11-24 09:54:14+00:00
Summary:     Removed old comments used before using Git. Fixed contributor name 
and deleted translator comment non needed.

Affected #:  1 file

diff --git a/addon/globalPlugins/clipContentsDesigner/__init__.py 
b/addon/globalPlugins/clipContentsDesigner/__init__.py
index dcc4248..0e0935f 100644
--- a/addon/globalPlugins/clipContentsDesigner/__init__.py
+++ b/addon/globalPlugins/clipContentsDesigner/__init__.py
@@ -3,52 +3,12 @@
 #Copyright (C) 2012-2016 Noelia Ruiz Martínez, other contributors
 # Released under GPL 2
 
-# Version: 4.0
-# Added configspec
-# Added checkbox for prepending
-# Date: 09/06/2016
-# Fixed key errors in add-on settings, reported by Derek Riemer
-# Date: 10/06/2016
-# Settings managed from config.conf of NVDA core
-# Date: 02/06/2016
-# Version: 3.0
-# Added option of copying the separator to import when reinstalling the 
add-on, suggested by Joseph Lee
-# Date: 07/06/2015
-# Just use a single new line to separate appended strings when no separator is 
set, suggested by Bhavya
-# Date: 05/06/2015
-# Braille representation for math can be appended to the clipboard
-# Date: 03/06/2015
-# Version: 2.0
-# Hindi characters can be writen as a separator
-# Date: 27/02/2015
-# Version: 1.0
-# Changed menu labels according to the new add-on name
-# Date: 3/07/2014
-# Revision and improvements: Mesar Hameed
-# Date: 20/09/2014
-# Added scriptCategory
-# Added msg plugin, developed by Alberto Buffolino
-# Date: 21/09/2014
-# Minor changes in messages according to new add-on name
-# Date: 12, 13/12/2014
-# Changed keyboard commands according to Bhavya's suggestions
-# Date: 13/12/2014
-# Implemented several suggestions from "Alberto Buffolino
-# Date: 14/12/2014
-
-# Append text: a global plugin for appending text to the clipboard
-# Version: 1.1
-# Bug fixed: added control in gestures. Now NVDA+shift+c can be used in Excel 
tables
-# Date: 30/01/2013
-# Version: 1.0
-# Date: 28/12/2012
-
 import addonHandler
 import globalPluginHandler
 import api
 import textInfos
 import ui
-import msg # Developed by Alberto Bufolino
+import msg # Developed by Alberto Buffolino
 import win32clipboard
 import config
 import wx
@@ -161,7 +121,6 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                                return
                        pos = api.getReviewPosition().copy()
                        if self._copyStartMarker.obj != pos.obj:
-                               # Translators: message presented when user 
tries to select text across object boundaries
                                msg.message("The start marker must reside 
within the same object")
                                return
                        pos.move(textInfos.UNIT_CHARACTER, 1, endPoint="end")


https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/640c4095b7fa/
Changeset:   640c4095b7fa
Branch:      None
User:        norrumar
Date:        2016-11-24 09:58:49+00:00
Summary:     Readme: added changes for 5.0 version

Affected #:  1 file

diff --git a/readme.md b/readme.md
index 1613db1..26c488e 100644
--- a/readme.md
+++ b/readme.md
@@ -20,6 +20,10 @@ It's also possible to choose if the added text will be 
appended or prepended.
 
 Note: The above command can be changed from NVDA menu, Preferences submenu, 
Input gestures dialog, Configuration category.
 
+## Changes for 5.0 ##
+*      Requires NVDA 2016.4 or later.
+*      The visual presentation of the dialogs has been enhanced, adhering to 
the appearance of the dialogs shown in NVDA.
+
 ## Changes for 4.0 ##
 *   Add-on settings are managed from NVDA configuration, so that standard 
profiles can be used to save different separators, and it's not needed to copy 
the settings for importing at reinstallation.
 *   Now it's possible to choose if the added text will be appended or 
prepended, using the Add text before clip data check box from the Clip Contents 
Designer settings dialog.


https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/463fc0371ed2/
Changeset:   463fc0371ed2
Branch:      enhancedgui
User:        norrumar
Date:        2016-11-24 10:03:42+00:00
Summary:     Bump version: 5.0-dev

Affected #:  1 file

diff --git a/buildVars.py b/buildVars.py
index d35436d..d9f57e6 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("""Add-on for managing clipboard text."""),
        # version
-       "addon_version" : "4.1",
+       "addon_version" : "5.0-dev",
        # Author(s)
        "addon_author" : u"Noelia Ruiz Martínez <nrm1977@xxxxxxxxx>",
        # URL for the add-on documentation support

Repository URL: https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts: