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:
authorManish Sinha <manish.sinha@xamarin.com>2017-08-02 23:49:56 +0300
committerManish Sinha <manish.sinha@xamarin.com>2017-08-04 23:03:57 +0300
commitcdc405b89dfc257c823a233bc49f73b69096efc5 (patch)
treee40a4c5ce2dea95e30dd8e320cb343dbae1fcbc9 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest
parentce7026c16c50d6efec184ad7e3264c56278c5e0f (diff)
[AutoTest] Added support for NSSegmentedControl
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AppQuery.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AppQuery.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AppQuery.cs
index 6cbfbd1600..96719df778 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AppQuery.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.AutoTest/AppQuery.cs
@@ -31,6 +31,7 @@ using MonoDevelop.Components.AutoTest.Operations;
using MonoDevelop.Components.AutoTest.Results;
using System.Linq;
using System.Xml;
+using MonoDevelop.Core;
#if MAC
using AppKit;
@@ -96,6 +97,23 @@ namespace MonoDevelop.Components.AutoTest
}
}
+ if (view is NSSegmentedControl || view.GetType ().IsSubclassOf (typeof (NSSegmentedControl))) {
+ var segmentedControl = (NSSegmentedControl)view;
+ LoggingService.LogInfo ($"Found 'NSSegmentedControl' with {segmentedControl.SegmentCount} children");
+ for (int i = 0; i < segmentedControl.SegmentCount; i++) {
+ var node = new NSObjectResult (view, i);
+ resultSet.Add (node);
+ if (firstChild == null) {
+ firstChild = node;
+ lastChild = node;
+ } else {
+ lastChild.NextSibling = node;
+ node.PreviousSibling = lastChild;
+ lastChild = node;
+ }
+ }
+ }
+
return firstChild;
}
#endif