aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-02 20:32:49 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-02 20:32:49 +0000
commite3b2ea1aa4b868db760d465e2a4319f86c475131 (patch)
tree5aec40472a46de045a4d482777c0e10b6d0e6e17 /Source/SPCopyTable.h
parent590585d37bdd8453dd1020cefe27dd55a77de5aa (diff)
downloadsequelpro-e3b2ea1aa4b868db760d465e2a4319f86c475131.tar.gz
sequelpro-e3b2ea1aa4b868db760d465e2a4319f86c475131.tar.bz2
sequelpro-e3b2ea1aa4b868db760d465e2a4319f86c475131.zip
• minor code cleaning and comment stuff
Diffstat (limited to 'Source/SPCopyTable.h')
-rw-r--r--Source/SPCopyTable.h56
1 files changed, 27 insertions, 29 deletions
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 <table> 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;