diff options
author | stuconnolly <stuart02@gmail.com> | 2011-09-04 13:30:26 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-09-04 13:30:26 +0000 |
commit | 7b69d7481a828f4466335dd988da5ee3bc35af33 (patch) | |
tree | f10244d4300b7ef272062cdcf63535730e4f8131 /Source/SPTableRelations.h | |
parent | 41d0618a58f4f047ce453577d1b2b01a29761705 (diff) | |
download | sequelpro-7b69d7481a828f4466335dd988da5ee3bc35af33.tar.gz sequelpro-7b69d7481a828f4466335dd988da5ee3bc35af33.tar.bz2 sequelpro-7b69d7481a828f4466335dd988da5ee3bc35af33.zip |
Fix for issue 1168. Whenever the database is changed load all of the currently used relation names in a backgroud thread. In the event that the user opens the add new relation sheet during this process, the ability to enter a relation name and confirm the addition is disabled until the retrieval process is complete. There is also a new progress indicator on the add sheet to indicate this.
Diffstat (limited to 'Source/SPTableRelations.h')
-rw-r--r-- | Source/SPTableRelations.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/SPTableRelations.h b/Source/SPTableRelations.h index 74dd0a17..a600ebf0 100644 --- a/Source/SPTableRelations.h +++ b/Source/SPTableRelations.h @@ -50,12 +50,16 @@ IBOutlet NSPopUpButton *onUpdatePopUpButton; IBOutlet NSPopUpButton *onDeletePopUpButton; IBOutlet NSButton *confirmAddRelationButton; + IBOutlet NSProgressIndicator *dataProgressIndicator; + IBOutlet NSTextField *progressStatusTextField; MCPConnection *connection; - NSMutableArray *relationData; NSUserDefaults *prefs; + NSMutableArray *relationData; NSMutableArray *takenConstraintNames; + + BOOL isRetrievingRelationNames; } @property (readonly) NSMutableArray *relationData; @@ -77,6 +81,7 @@ - (void)endDocumentTaskForTab:(NSNotification *)aNotification; // Other +- (void)loadUsedRelationNames; - (NSArray *)relationDataForPrinting; - (void)alertDidEnd:(NSAlert *)alert returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo; |