aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableTriggers.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-02-06 17:32:46 +0000
committerstuconnolly <stuart02@gmail.com>2010-02-06 17:32:46 +0000
commit71ece9db51ee88ecdd760079e86e3a5ff6decbba (patch)
treec63836786723ecf53b104ced37121a13931e319d /Source/SPTableTriggers.h
parent2a400dbdf20613e17b5ae9642ea3dc564f7fff77 (diff)
downloadsequelpro-71ece9db51ee88ecdd760079e86e3a5ff6decbba.tar.gz
sequelpro-71ece9db51ee88ecdd760079e86e3a5ff6decbba.tar.bz2
sequelpro-71ece9db51ee88ecdd760079e86e3a5ff6decbba.zip
Complete the implementation of the management of table triggers (accessible via Cmd+6). Note, that better support for entering the trigger statement in terms of escaping and delimiter support most likely needs to be added.
Diffstat (limited to 'Source/SPTableTriggers.h')
-rw-r--r--Source/SPTableTriggers.h37
1 files changed, 17 insertions, 20 deletions
diff --git a/Source/SPTableTriggers.h b/Source/SPTableTriggers.h
index f0c1c7e1..093e1eab 100644
--- a/Source/SPTableTriggers.h
+++ b/Source/SPTableTriggers.h
@@ -18,12 +18,11 @@
//
// More info at <http://code.google.com/p/sequel-pro/>
-
#import <Cocoa/Cocoa.h>
#import <MCPKit/MCPKit.h>
-
-@interface SPTableTriggers : NSObject {
+@interface SPTableTriggers : NSObject
+{
IBOutlet id tableDocumentInstance;
IBOutlet id tablesListInstance;
IBOutlet id tableDataInstance;
@@ -31,19 +30,19 @@
IBOutlet id tableList;
IBOutlet id tableWindow;
- IBOutlet NSButton *addTriggerButton;
- IBOutlet NSButton *removeTriggerButton;
- IBOutlet NSButton *refreshTriggersButton;
- IBOutlet NSTextField *labelTextField;
- IBOutlet NSTableView *triggersTableView;
- IBOutlet NSPanel *addTriggerPanel;
+ IBOutlet NSButton *addTriggerButton;
+ IBOutlet NSButton *removeTriggerButton;
+ IBOutlet NSButton *refreshTriggersButton;
+ IBOutlet NSTableView *triggersTableView;
+ IBOutlet NSPanel *addTriggerPanel;
+ IBOutlet NSTextField *labelTextField;
+
+ IBOutlet NSTextField *triggerNameTextField;
+ IBOutlet NSPopUpButton *triggerActionTimePopUpButton;
+ IBOutlet NSPopUpButton *triggerEventPopUpButton;
+ IBOutlet NSTextView *triggerStatementTextView;
IBOutlet NSBox *addTriggerTableBox;
- IBOutlet NSPopUpButton *columnPopUpButton;
- IBOutlet NSPopUpButton *refTablePopUpButton;
- IBOutlet NSPopUpButton *refColumnPopUpButton;
- IBOutlet NSPopUpButton *onUpdatePopUpButton;
- IBOutlet NSPopUpButton *onDeletePopUpButton;
IBOutlet NSButton *confirmAddTriggerButton;
MCPConnection *connection;
@@ -56,14 +55,12 @@
// IB action methods
- (IBAction)addTrigger:(id)sender;
- (IBAction)removeTrigger:(id)sender;
-- (IBAction)closeRelationSheet:(id)sender;
-- (IBAction)confirmAddRelation:(id)sender;
-- (IBAction)selectTableColumn:(id)sender;
-- (IBAction)selectReferenceTable:(id)sender;
+- (IBAction)closeTriggerSheet:(id)sender;
+- (IBAction)confirmAddTrigger:(id)sender;
- (IBAction)refreshTriggers:(id)sender;
// Task interaction
-- (void)startDocumentTaskForTab:(NSNotification *)aNotification;
-- (void)endDocumentTaskForTab:(NSNotification *)aNotification;
+- (void)startDocumentTaskForTab:(NSNotification *)notification;
+- (void)endDocumentTaskForTab:(NSNotification *)notification;
@end