From 1bf7220ca576a3c09b9d9e53e24e0c6f30f15850 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 10 Apr 2010 18:16:25 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20"Import=20from=20Clipboard"=20?= =?UTF-8?q?=E2=8C=A5=E2=87=A7=E2=8C=98I=20-=20sheet=20showing=20the=20firs?= =?UTF-8?q?t=204kB=20of=20pasteboard=20content=20and=20the=20SQL/CSV=20acc?= =?UTF-8?q?essory=20view=20-=20pasteboard=20content=20will=20be=20saved=20?= =?UTF-8?q?as=20temp=20file=20and=20read=20by=20using=20the=20current=20ta?= =?UTF-8?q?ble/connection=20encoding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDump.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source/TableDump.h') diff --git a/Source/TableDump.h b/Source/TableDump.h index 6a6a34b0..af621f68 100644 --- a/Source/TableDump.h +++ b/Source/TableDump.h @@ -74,6 +74,10 @@ IBOutlet id importLinesTerminatedField; IBOutlet id importFieldMapperSheetWindow; + IBOutlet id importFromClipboardSheet; + IBOutlet NSTextView *importFromClipboardTextView; + IBOutlet id importFromClipboardAccessoryView; + IBOutlet id addDropTableSwitch; IBOutlet id addCreateTableSwitch; IBOutlet id addTableContentSwitch; @@ -133,11 +137,12 @@ // Import methods - (void)importFile; +- (void)importFromClipboard; - (void)importSQLFile:(NSString *)filename; - (void)startSQLImportProcessWithFile:(NSString *)filename; - (void)importCSVFile:(NSString *)filename; - (IBAction)changeFormat:(id)sender; -- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo; +- (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; -- cgit v1.2.3