|
3 | 3 | using System.Collections.Generic; |
4 | 4 | using System.Linq; |
5 | 5 | using MonoDevelop.Components; |
| 6 | +using MonoDevelop.Components.AtkCocoaHelper; |
6 | 7 | using MonoDevelop.Core; |
7 | 8 |
|
8 | 9 | namespace MonoDevelop.VersionControl |
@@ -35,12 +36,41 @@ public UrlBasedRepositoryEditor (UrlBasedRepository repo) |
35 | 36 | Fill (); |
36 | 37 | UpdateControls (); |
37 | 38 | updating = false; |
| 39 | + SetupAccessibility (); |
38 | 40 | } |
39 | | - |
| 41 | + |
40 | 42 | Control IRepositoryEditor.Widget { |
41 | 43 | get { return this; } |
42 | 44 | } |
43 | | - |
| 45 | + |
| 46 | + void SetupAccessibility () |
| 47 | + { |
| 48 | + repositoryUrlEntry.SetCommonAccessibilityAttributes ("UrlBasedRepositoryEditor.repositoryUrlEntry", "", |
| 49 | + GettextCatalog.GetString ("Enter the repository url")); |
| 50 | + repositoryUrlEntry.SetAccessibilityLabelRelationship (label4); |
| 51 | + |
| 52 | + repositoryUrlEntry.SetCommonAccessibilityAttributes ("UrlBasedRepositoryEditor.comboProtocol", "", |
| 53 | + GettextCatalog.GetString ("Enter the protocol to use")); |
| 54 | + comboProtocol.SetAccessibilityLabelRelationship (label5); |
| 55 | + |
| 56 | + repositoryServerEntry.SetCommonAccessibilityAttributes ("UrlBasedRepositoryEditor.repositoryServerEntry", "", |
| 57 | + GettextCatalog.GetString ("Enter the server")); |
| 58 | + repositoryServerEntry.SetAccessibilityLabelRelationship (label11); |
| 59 | + |
| 60 | + repositoryPortSpin.SetCommonAccessibilityAttributes ("UrlBasedRepositoryEditor.repositoryPortSpin", "", |
| 61 | + GettextCatalog.GetString ("Enter the port")); |
| 62 | + repositoryPortSpin.SetAccessibilityLabelRelationship (label6); |
| 63 | + |
| 64 | + repositoryPathEntry.SetCommonAccessibilityAttributes ("UrlBasedRepositoryEditor.repositoryPathEntry", "", |
| 65 | + GettextCatalog.GetString ("Enter the path")); |
| 66 | + repositoryPathEntry.SetAccessibilityLabelRelationship (label7); |
| 67 | + |
| 68 | + repositoryUserEntry.SetCommonAccessibilityAttributes ("UrlBasedRepositoryEditor.repositoryUserEntry", "", |
| 69 | + GettextCatalog.GetString ("Enter the user")); |
| 70 | + repositoryUserEntry.SetAccessibilityLabelRelationship (label8); |
| 71 | + } |
| 72 | + |
| 73 | + |
44 | 74 | public bool Validate () |
45 | 75 | { |
46 | 76 | if (!repo.IsUrlValid (repositoryUrlEntry.Text) || !CanCreateUri ()) { |
|
0 commit comments