From e3b2ea1aa4b868db760d465e2a4319f86c475131 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 2 Nov 2010 20:32:49 +0000 Subject: =?UTF-8?q?=E2=80=A2=20minor=20code=20cleaning=20and=20comment=20s?= =?UTF-8?q?tuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCopyTable.h | 56 +++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 29 deletions(-) (limited to 'Source/SPCopyTable.h') diff --git a/Source/SPCopyTable.h b/Source/SPCopyTable.h index 4ed8dfb7..3ccff43c 100644 --- a/Source/SPCopyTable.h +++ b/Source/SPCopyTable.h @@ -37,13 +37,13 @@ is in similar format. The values for each cell are obtained via the objects description method */ -@interface SPCopyTable : SPTableView +@interface SPCopyTable : SPTableView { - id tableInstance; // the table content view instance - id mySQLConnection; // current MySQL connection - NSArray* columnDefinitions; // array of NSDictionary containing info about columns - NSString* selectedTable; // the name of the current selected table - SPDataStorage* tableStorage; // the underlying storage array holding the table data + id tableInstance; // the table content view instance + id mySQLConnection; // current MySQL connection + NSArray* columnDefinitions; // array of NSDictionary containing info about columns + NSString* selectedTable; // the name of the current selected table + SPDataStorage* tableStorage; // the underlying storage array holding the table data NSUserDefaults *prefs; @@ -51,9 +51,7 @@ } - -- (void)setFieldEditorSelectedRange:(NSRange)aRange; -- (NSRange)fieldEditorSelectedRange; +@property(readwrite,assign) NSRange fieldEditorSelectedRange; /*! @method copy: @@ -65,15 +63,15 @@ - (void)copy:(id)sender; /*! - @method validateMenuItem: - @abstract Dynamically enable Copy menu item for the table view - @discussion Will only enable the Copy item when something is selected in - this table view - @param anItem the menu item being validated - @result YES if there is at least one row selected & the menu item is - copy, NO otherwise + @method draggedRowsAsTabString: + @abstract getter of the dragged rows of the table for drag + @discussion For the dragged rows returns a single string with each row + separated by a newline and then for each column value separated by a + tab. Values are from the objects description method, so make sure it + returns something meaningful. + @result The above described string, or nil if nothing selected */ -- (BOOL)validateMenuItem:(NSMenuItem*)anItem; +- (NSString *)draggedRowsAsTabString; /*! @method draggingSourceOperationMaskForLocal: @@ -94,17 +92,6 @@ */ - (NSString *)selectedRowsAsTabStringWithHeaders:(BOOL)withHeaders; -/*! - @method draggedRowsAsTabString: - @abstract getter of the dragged rows of the table for drag - @discussion For the dragged rows returns a single string with each row - separated by a newline and then for each column value separated by a - tab. Values are from the objects description method, so make sure it - returns something meaningful. - @result The above described string, or nil if nothing selected -*/ -- (NSString *)draggedRowsAsTabString; - /* * Generate a string in form of INSERT INTO VALUES () of * currently selected rows. Support blob data as well. @@ -132,7 +119,7 @@ while this accesses it. @result A dictionary - mapped by column identifier - of the column widths to use */ -- (NSDictionary *) autodetectColumnWidths; +- (NSDictionary *)autodetectColumnWidths; /*! @method autodetectWidthForColumnDefinition:maxRows: @@ -153,6 +140,17 @@ */ - (NSUInteger)autodetectWidthForColumnDefinition:(NSDictionary *)columnDefinition maxRows:(NSUInteger)rowsToCheck; +/*! + @method validateMenuItem: + @abstract Dynamically enable Copy menu item for the table view + @discussion Will only enable the Copy item when something is selected in + this table view + @param anItem the menu item being validated + @result YES if there is at least one row selected & the menu item is + copy, NO otherwise +*/ +- (BOOL)validateMenuItem:(NSMenuItem*)anItem; + - (BOOL)isCellEditingMode; - (BOOL)isCellComplex; -- cgit v1.2.3