|
@@ -14,6 +14,7 @@ public protocol TestCaseCellViewDelegate : NSObjectProtocol {
|
|
|
|
|
|
class TestCaseCellView : NSTableCellView, NSMenuDelegate {
|
|
class TestCaseCellView : NSTableCellView, NSMenuDelegate {
|
|
@IBOutlet var _titleLbl : NSTextField!
|
|
@IBOutlet var _titleLbl : NSTextField!
|
|
|
|
+ @IBOutlet var _markLbl : NSTextField!
|
|
@IBOutlet var _keyContentView : NSView!
|
|
@IBOutlet var _keyContentView : NSView!
|
|
@IBOutlet var _sepLine : NSView!
|
|
@IBOutlet var _sepLine : NSView!
|
|
@IBOutlet var _activityView : ActivityView!
|
|
@IBOutlet var _activityView : ActivityView!
|
|
@@ -111,6 +112,11 @@ class TestCaseCellView : NSTableCellView, NSMenuDelegate {
|
|
_title = title;
|
|
_title = title;
|
|
|
|
|
|
_titleLbl.stringValue = _title ?? ""
|
|
_titleLbl.stringValue = _title ?? ""
|
|
|
|
+ let size = _titleLbl.sizeThatFits(_titleLbl.frame.size);
|
|
|
|
+ _markLbl.frame = CGRectMake(_titleLbl.frame.origin.x + size.width,
|
|
|
|
+ _titleLbl.frame.origin.y,
|
|
|
|
+ _titleLbl.frame.size.width - size.width,
|
|
|
|
+ _titleLbl.frame.size.height)
|
|
}
|
|
}
|
|
|
|
|
|
public func title() -> String? {
|
|
public func title() -> String? {
|
|
@@ -189,6 +195,17 @@ class TestCaseCellView : NSTableCellView, NSMenuDelegate {
|
|
self.setTitle((_autoTestObj?.name())!)
|
|
self.setTitle((_autoTestObj?.name())!)
|
|
self.setCheckKeys((_autoTestObj?.selectedKeys())!)
|
|
self.setCheckKeys((_autoTestObj?.selectedKeys())!)
|
|
|
|
|
|
|
|
+ let useOldLibValue = _autoTestObj?.params().value(forKey: "useOldLib")
|
|
|
|
+ var useOldLib = false
|
|
|
|
+ if nil != useOldLibValue {
|
|
|
|
+ if (useOldLibValue as? String) != nil {
|
|
|
|
+ useOldLib = NSString(string: (useOldLibValue as! String)).boolValue
|
|
|
|
+ }else if (useOldLibValue as? NSNumber) != nil {
|
|
|
|
+ useOldLib = (useOldLibValue as! NSNumber).boolValue
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ _markLbl.isHidden = useOldLib
|
|
// self.wantsLayer = true
|
|
// self.wantsLayer = true
|
|
// if _autoTestObj?.isOriginFileExist() == true && _autoTestObj?.isCheckFileExist() == true {
|
|
// if _autoTestObj?.isOriginFileExist() == true && _autoTestObj?.isCheckFileExist() == true {
|
|
// self.layer?.opacity = 1
|
|
// self.layer?.opacity = 1
|
|
@@ -199,6 +216,7 @@ class TestCaseCellView : NSTableCellView, NSMenuDelegate {
|
|
self.setTitle("")
|
|
self.setTitle("")
|
|
self.setCheckKeys([])
|
|
self.setCheckKeys([])
|
|
|
|
|
|
|
|
+ _markLbl.isHidden = true;
|
|
// self.wantsLayer = true
|
|
// self.wantsLayer = true
|
|
// self.layer?.opacity = 0.5
|
|
// self.layer?.opacity = 0.5
|
|
}
|
|
}
|