diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-18 00:34:29 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-18 00:34:29 +0000 |
commit | a8dc3ac2af642fb59c8fbed12c3a28038ef3a175 (patch) | |
tree | f3a9e068aeb9fbf5497a2d968539cbd19fc5ffda /Source/SPConstants.m | |
parent | 5b6e0e9760c7719456de1ac856daf27e509a42d3 (diff) | |
download | sequelpro-a8dc3ac2af642fb59c8fbed12c3a28038ef3a175.tar.gz sequelpro-a8dc3ac2af642fb59c8fbed12c3a28038ef3a175.tar.bz2 sequelpro-a8dc3ac2af642fb59c8fbed12c3a28038ef3a175.zip |
Present a warning to the user when attempting to print the current table's content view which exceeds a set number of rows. This number is currently set to 1000 which can be changed via the hidden preference key 'PrintWarningRowLimit'. The approach to cancelling the print HTML generation thread may also need to be re-implemented to ensure that it is killed straight away, something that is currently not possible using NSThread. Rowan suggested using pthreads instead, but this should be discussed in terms of potential memory leaks and stability.
Diffstat (limited to 'Source/SPConstants.m')
-rw-r--r-- | Source/SPConstants.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPConstants.m b/Source/SPConstants.m index 7db91664..1b34b1c7 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -57,7 +57,6 @@ NSString *SPDefaultEncoding = @"DefaultEncoding"; NSString *SPUseMonospacedFonts = @"UseMonospacedFonts"; NSString *SPDisplayTableViewVerticalGridlines = @"DisplayTableViewVerticalGridlines"; NSString *SPCustomQueryMaxHistoryItems = @"CustomQueryMaxHistoryItems"; -NSString *SPDisplayServerVersionInWindowTitle = @"DisplayServerVersionInWindowTitle"; // Tables Prefpane NSString *SPReloadAfterAddingRow = @"ReloadAfterAddingRow"; @@ -124,6 +123,10 @@ NSString *SPEditInSheetEnabled = @"EditInSheetEnabled"; NSString *SPTableInformationPanelCollapsed = @"TableInformationPanelCollapsed"; NSString *SPTableColumnWidths = @"tableColumnWidths"; +// Hidden Prefs +NSString *SPPrintWarningRowLimit = @"PrintWarningRowLimit"; +NSString *SPDisplayServerVersionInWindowTitle = @"DisplayServerVersionInWindowTitle"; + // Import NSString *SPCSVImportFieldEnclosedBy = @"CSVImportFieldEnclosedBy"; NSString *SPCSVImportFieldEscapeCharacter = @"CSVImportFieldEscapeCharacter"; |