aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDump.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDump.h')
-rw-r--r--Source/TableDump.h73
1 files changed, 10 insertions, 63 deletions
diff --git a/Source/TableDump.h b/Source/TableDump.h
index cec3d92b..9d27a952 100644
--- a/Source/TableDump.h
+++ b/Source/TableDump.h
@@ -22,7 +22,6 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// More info at <http://code.google.com/p/sequel-pro/>
-// Or mail to <lorenz@textor.ch>
#import <Cocoa/Cocoa.h>
#import <MCPKit/MCPKit.h>
@@ -38,32 +37,7 @@
IBOutlet id tableDataInstance;
IBOutlet id customQueryInstance;
- IBOutlet id exportDumpView;
- IBOutlet id exportCSVView;
- IBOutlet id exportMultipleCSVView;
- IBOutlet id exportMultipleXMLView;
- IBOutlet id exportDumpTableView;
- IBOutlet id exportMultipleCSVTableView;
- IBOutlet id exportMultipleXMLTableView;
- IBOutlet id exportFieldNamesSwitch;
- IBOutlet id exportFieldsTerminatedField;
- IBOutlet id exportFieldsEnclosedField;
- IBOutlet id exportFieldsEscapedField;
- IBOutlet id exportLinesTerminatedField;
- IBOutlet id exportMultipleFieldNamesSwitch;
- IBOutlet id exportMultipleFieldsTerminatedField;
- IBOutlet id exportMultipleFieldsEnclosedField;
- IBOutlet id exportMultipleFieldsEscapedField;
- IBOutlet id exportMultipleLinesTerminatedField;
-
- // New Export Window
- IBOutlet id exportWindow;
- IBOutlet id exportTabBar;
- IBOutlet id exportToolbar;
- IBOutlet id exportTableList;
-
IBOutlet id importCSVView;
- IBOutlet NSPopUpButton *importFormatPopup;
IBOutlet id importCSVBox;
IBOutlet id importFieldNamesSwitch;
IBOutlet id importFieldsTerminatedField;
@@ -72,10 +46,13 @@
IBOutlet id importLinesTerminatedField;
IBOutlet id importFieldMapperSheetWindow;
+ IBOutlet NSPopUpButton *importFormatPopup;
+
IBOutlet id importFromClipboardSheet;
- IBOutlet NSTextView *importFromClipboardTextView;
IBOutlet id importFromClipboardAccessoryView;
-
+
+ IBOutlet NSTextView *importFromClipboardTextView;
+
IBOutlet id addDropTableSwitch;
IBOutlet id addCreateTableSwitch;
IBOutlet id addTableContentSwitch;
@@ -94,7 +71,6 @@
MCPConnection *mySQLConnection;
- NSMutableArray *tables;
NSMutableArray *nibObjectsToRelease;
// Field Mapper Controller
@@ -127,16 +103,9 @@
}
// IBAction methods
-- (IBAction)reloadTables:(id)sender;
-- (IBAction)selectTables:(id)sender;
- (IBAction)closeSheet:(id)sender;
- (IBAction)cancelProgressBar:(id)sender;
-
-// Export methods
-- (void)export;
-- (void)exportFile:(NSInteger)tag;
-- (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo;
-- (void)exportBackgroundProcess:(NSDictionary *)exportAction;
+- (IBAction)updateExportCompressionSetting:(id)sender;
// Import methods
- (void)importFile;
@@ -146,37 +115,15 @@
- (void)importCSVFile:(NSString *)filename;
- (IBAction)changeFormat:(id)sender;
- (void)openPanelDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo;
-- (BOOL) buildFieldMappingArrayWithData:(NSArray *)importData isPreview:(BOOL)dataIsPreviewData ofSoureFile:(NSString*)filename;
-- (NSString *) mappedValueStringForRowArray:(NSArray *)csvRowArray;
-- (NSString *) mappedUpdateSetStatementStringForRowArray:(NSArray *)csvRowArray;
-
-// Export methods
-- (BOOL)dumpSelectedTablesAsSqlToFileHandle:(SPFileHandle *)fileHandle;
-- (BOOL)dumpSchemaAsDotToFileHandle:(SPFileHandle *)fileHandle;
-- (BOOL)writeCsvForArray:(NSArray *)array orStreamingResult:(MCPStreamingResult *)streamingResult
- toFileHandle:(SPFileHandle *)fileHandle
- outputFieldNames:(BOOL)firstLine terminatedBy:(NSString *)terminated
- enclosedBy:(NSString *)enclosed escapedBy:(NSString *)escaped
- lineEnds:(NSString *)lineEnds withNumericColumns:(NSArray *)tableColumnNumericStatus totalRows:(NSInteger)totalRows silently:(BOOL)silently;
-- (BOOL)writeXmlForArray:(NSArray *)array orStreamingResult:(MCPStreamingResult *)streamingResult
- toFileHandle:(SPFileHandle *)fileHandle
- tableName:(NSString *)table withHeader:(BOOL)header totalRows:(NSInteger)totalRows silently:(BOOL)silently;
-- (NSString *)htmlEscapeString:(NSString *)string;
-- (NSString *)createViewPlaceholderSyntaxForView:(NSString *)viewName;
-
-- (BOOL)exportTables:(NSArray *)selectedTables toFileHandle:(SPFileHandle *)fileHandle usingFormat:(NSString *)type usingMulti:(BOOL)multi;
-- (BOOL)exportSelectedTablesToFileHandle:(SPFileHandle *)fileHandle usingFormat:(NSString *)type;
-
-// New Export methods
-- (IBAction)switchTab:(id)sender;
-- (IBAction)switchInput:(id)sender;
+- (BOOL)buildFieldMappingArrayWithData:(NSArray *)importData isPreview:(BOOL)dataIsPreviewData ofSoureFile:(NSString*)filename;
+- (NSString *)mappedValueStringForRowArray:(NSArray *)csvRowArray;
+- (NSString *)mappedUpdateSetStatementStringForRowArray:(NSArray *)csvRowArray;
// Additional methods
- (void)setConnection:(MCPConnection *)theConnection;
- (void)showErrorSheetWithMessage:(NSString*)message;
-// Import/export delegate notifications
+// Import delegate notifications
- (void)panelSelectionDidChange:(id)sender;
-- (IBAction)updateExportCompressionSetting:(id)sender;
@end