aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextAndLinkCell.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-08-27 23:52:01 +0000
committerrowanbeentje <rowan@beent.je>2013-08-27 23:52:01 +0000
commit110ffbf58c596add5dfd1d71e7777f90b2a84c00 (patch)
tree233f47fab5bf74b53d24bdf3014699e73339feaa /Source/SPTextAndLinkCell.h
parent64eb9b76d33d6cd28a3ad7caee8e792e4a2cffd3 (diff)
downloadsequelpro-110ffbf58c596add5dfd1d71e7777f90b2a84c00.tar.gz
sequelpro-110ffbf58c596add5dfd1d71e7777f90b2a84c00.tar.bz2
sequelpro-110ffbf58c596add5dfd1d71e7777f90b2a84c00.zip
- Add the ability for SPTextAndLinkCell arrows to be selectively disabled on a per-cell rather than a per-column basis
- Use this ability in SPTableContentDelegate to disable link arrows if the cell is showing a NULL or (not loaded) value, and also if the current row is being edited and so might be unvalidated. This addresses Issue #1790 and http://spbug.com/l/2306 .
Diffstat (limited to 'Source/SPTextAndLinkCell.h')
-rw-r--r--Source/SPTextAndLinkCell.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPTextAndLinkCell.h b/Source/SPTextAndLinkCell.h
index 73eeb486..74f28cc8 100644
--- a/Source/SPTextAndLinkCell.h
+++ b/Source/SPTextAndLinkCell.h
@@ -33,6 +33,7 @@
@interface SPTextAndLinkCell : NSTextFieldCell
{
BOOL hasLink;
+ BOOL linkActive;
NSButtonCell *linkButton;
id linkTarget;
@@ -43,6 +44,8 @@
NSInteger drawState;
}
+@property (readwrite, assign) BOOL linkActive;
+
- (void) setTarget:(id)theTarget action:(SEL)theAction;
- (NSInteger) getClickedColumn;
- (NSInteger) getClickedRow;