diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-05 11:37:30 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-05 11:37:30 +0000 |
commit | 64567b12a8e9449ea3e23e20f0d236a9bde24dad (patch) | |
tree | e7d96960c5c695ac3afab0fca057dc0b63c5f83c /Source/CustomQuery.h | |
parent | f880dea7369cb6ce57c552cd359f871bf7e2e414 (diff) | |
download | sequelpro-64567b12a8e9449ea3e23e20f0d236a9bde24dad.tar.gz sequelpro-64567b12a8e9449ea3e23e20f0d236a9bde24dad.tar.bz2 sequelpro-64567b12a8e9449ea3e23e20f0d236a9bde24dad.zip |
• refactored the entire history logic in Custom Query
- queries which are longer than then 64 chars are truncated in title and queries which are longer than then 256 chars are truncated in tooltip to avoid processing time to load very long queries from history; this also decreases the memory usage
- added "Insert Next/Previous History Query" logic bound to ^↑ and ^↓
- fixed tiny GUI spacing problem in Custom Query
Diffstat (limited to 'Source/CustomQuery.h')
-rw-r--r-- | Source/CustomQuery.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h index e92dc4f0..8994a7e3 100644 --- a/Source/CustomQuery.h +++ b/Source/CustomQuery.h @@ -100,6 +100,8 @@ IBOutlet NSMenuItem *autouppercaseKeywordsMenuItem; IBOutlet NSMenuItem *commentCurrentQueryMenuItem; IBOutlet NSMenuItem *commentLineOrSelectionMenuItem; + IBOutlet NSMenuItem *previousHistoryMenuItem; + IBOutlet NSMenuItem *nextHistoryMenuItem; IBOutlet NSWindow *helpWebViewWindow; IBOutlet WebView *helpWebView; @@ -146,6 +148,9 @@ NSUInteger numberOfQueries; NSUInteger queryTextViewStartPosition; + + NSInteger currentHistoryOffsetIndex; + BOOL historyItemWasJustInserted; } // IBAction methods |