diff options
author | stuconnolly <stuart02@gmail.com> | 2009-05-17 23:35:25 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-05-17 23:35:25 +0000 |
commit | e80c61444c0446dcb052bd26d2eef207b97cea4e (patch) | |
tree | e1658f4365ee0d7d9c54d7127192cd456f2929e6 /Source/TablesList.h | |
parent | 769f2adb4e72667e855b2a63d298d711d16e0185 (diff) | |
download | sequelpro-e80c61444c0446dcb052bd26d2eef207b97cea4e.tar.gz sequelpro-e80c61444c0446dcb052bd26d2eef207b97cea4e.tar.bz2 sequelpro-e80c61444c0446dcb052bd26d2eef207b97cea4e.zip |
Add the ability to rename tables. This could potentially be enhanced to allowing renaming views, which is supported as of MySQL version 5.0.14, but requires some version detection to take place.
Diffstat (limited to 'Source/TablesList.h')
-rw-r--r-- | Source/TablesList.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/TablesList.h b/Source/TablesList.h index 9eb632ab..a1268ee7 100644 --- a/Source/TablesList.h +++ b/Source/TablesList.h @@ -57,9 +57,14 @@ enum sp_table_types IBOutlet id tableNameField; IBOutlet id tableEncodingButton; IBOutlet id addTableButton; + IBOutlet id tableRenameSheet; + IBOutlet id tableRenameField; + IBOutlet id tableRenameText; + IBOutlet id renameTableButton; IBOutlet NSMenuItem *removeTableMenuItem; IBOutlet NSMenuItem *duplicateTableMenuItem; + IBOutlet NSMenuItem *renameTableMenuItem; CMMCPConnection *mySQLConnection; @@ -72,9 +77,10 @@ enum sp_table_types // IBAction methods - (IBAction)updateTables:(id)sender; - (IBAction)addTable:(id)sender; -- (IBAction)closeTableSheet:(id)sender; +- (IBAction)closeSheet:(id)sender; - (IBAction)removeTable:(id)sender; - (IBAction)copyTable:(id)sender; +- (IBAction)renameTable:(id)sender; // copyTableSheet methods - (IBAction)closeCopyTableSheet:(id)sender; |