Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriain holmes <iain@xamarin.com>2017-06-14 13:47:15 +0300
committeriain holmes <iain@xamarin.com>2017-06-14 14:17:20 +0300
commitade896664b8729880574a7753eb53f3c11b05c66 (patch)
tree7f4bf0e4709694ef903fc5bbd48dd4c87935f8bc /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools
parent09ca7fb800aa53799ce968430b8b0e6ae895ceb1 (diff)
[A11y] Simplify the API for adding label relationships
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools/ExternalToolPanel.cs25
1 files changed, 11 insertions, 14 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools/ExternalToolPanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools/ExternalToolPanel.cs
index 5c3373534f..f782814da7 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools/ExternalToolPanel.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ExternalTools/ExternalToolPanel.cs
@@ -142,38 +142,35 @@ namespace MonoDevelop.Ide.ExternalTools
void SetupAccessibility ()
{
- addButton.SetCommonAccessibilityAttributes ("ExternalTools.Add", null,
+ addButton.SetCommonAccessibilityAttributes ("ExternalTools.Add", "",
GettextCatalog.GetString ("Click to add a new external tool"));
- removeButton.SetCommonAccessibilityAttributes ("ExternalTools.Remove", null,
+ removeButton.SetCommonAccessibilityAttributes ("ExternalTools.Remove", "",
GettextCatalog.GetString ("Click to remove an external tool from the list"));
- moveUpButton.SetCommonAccessibilityAttributes ("ExternalTools.Up", null,
+ moveUpButton.SetCommonAccessibilityAttributes ("ExternalTools.Up", "",
GettextCatalog.GetString ("Click to move the selected tool up the list"));
- moveDownButton.SetCommonAccessibilityAttributes ("ExternalTools.Down", null,
+ moveDownButton.SetCommonAccessibilityAttributes ("ExternalTools.Down", "",
GettextCatalog.GetString ("Click to move the selected tool down the list"));
- titleTextBox.SetCommonAccessibilityAttributes ("ExternalTools.Title", null,
+ titleTextBox.SetCommonAccessibilityAttributes ("ExternalTools.Title", titleLabel,
GettextCatalog.GetString ("Enter the title for this command"));
- titleTextBox.SetAccessibilityLabelRelationship (titleLabel);
browseButton.Accessible.SetCommonAttributes ("ExternalTools.Command", null,
GettextCatalog.GetString ("Enter or select the path for the external command"));
browseButton.Accessible.SetTitleUIElement (commandLabel.Accessible);
- argumentTextBox.SetCommonAccessibilityAttributes ("ExternalTools.Arguments", null,
+ argumentTextBox.SetCommonAccessibilityAttributes ("ExternalTools.Arguments", "",
GettextCatalog.GetString ("Enter the arguments for the external command"));
argumentTextBox.SetAccessibilityLabelRelationship (argumentLabel);
tagSelectorArgs.ButtonAccessible.SetCommonAttributes ("ExternalTools.tagSelectorArgs", GettextCatalog.GetString ("Argument Tags"),
GettextCatalog.GetString ("Select tags to add to the arguments"));
- workingDirTextBox.SetCommonAccessibilityAttributes ("ExternalTools.workingDir", null,
+ workingDirTextBox.SetCommonAccessibilityAttributes ("ExternalTools.workingDir", workingDirLabel,
GettextCatalog.GetString ("Enter the working directory for this command"));
- workingDirTextBox.SetAccessibilityLabelRelationship (workingDirLabel);
tagSelectorPath.ButtonAccessible.SetCommonAttributes ("ExternalTools.tagSelectorPath", GettextCatalog.GetString ("Working Directory Tags"),
GettextCatalog.GetString ("Select tags to add to the working directory"));
- defaultKeyTextBox.SetCommonAccessibilityAttributes ("ExternalTools.defaultKey", null,
+ defaultKeyTextBox.SetCommonAccessibilityAttributes ("ExternalTools.defaultKey", defaultKeyLabel,
GettextCatalog.GetString ("Enter the default key binding for this command"));
- defaultKeyTextBox.SetAccessibilityLabelRelationship (defaultKeyLabel);
- promptArgsCheckBox.SetCommonAccessibilityAttributes ("ExternalTools.promptArgs", null,
+ promptArgsCheckBox.SetCommonAccessibilityAttributes ("ExternalTools.promptArgs", "",
GettextCatalog.GetString ("Check to prompt for arguments when running the command"));
- saveCurrentFileCheckBox.SetCommonAccessibilityAttributes ("ExternalTools.saveCurrentFile", null,
+ saveCurrentFileCheckBox.SetCommonAccessibilityAttributes ("ExternalTools.saveCurrentFile", "",
GettextCatalog.GetString ("Check to save the current file before running the command"));
- useOutputPadCheckBox.SetCommonAccessibilityAttributes ("ExternalTools.useExternalPad", null,
+ useOutputPadCheckBox.SetCommonAccessibilityAttributes ("ExternalTools.useExternalPad", "",
GettextCatalog.GetString ("Check to display the commands output in the Output Pad"));
}