Commit Graph

1555 Commits

Author SHA1 Message Date
Oleg Shparber
6f322602f0 registry: Check if index file path is present in metadata 2016-11-16 03:44:01 -05:00
Oleg Shparber
3629d57829 registry: Fix compiler warnings 2016-11-15 23:16:16 -05:00
Oleg Shparber
280a8d85c3 registry: Turn SearchModel into QAbstractListModel 2016-11-13 06:00:11 -05:00
Oleg Shparber
7c8c0f37bb registry: Fix header inclusion for ListModel 2016-11-13 05:59:37 -05:00
Oleg Shparber
3680ef0ce0 registry: Use item role instead of column for URLs 2016-11-13 05:59:14 -05:00
Oleg Shparber
7593515cfe registry, ui: Unify item data roles across Registry models 2016-11-13 05:46:00 -05:00
Oleg Shparber
1dc1184010 registry: Remove all references to docset sourceId
It was never used.
2016-11-13 04:43:20 -05:00
Oleg Shparber
c88bfacb34 app: Add 'Pipe' symbol type icon 2016-11-13 03:57:30 -05:00
Oleg Shparber
ed29c22b59 registry: Fix anchor navigation in some docsets (fixes #641)
This fixes decoding of fragments that start with '//dash_ref'.
2016-11-08 22:57:41 -05:00
Oleg Shparber
1d8c1c11aa registry: Fix related links not being retrieved (fixes #651) 2016-11-08 21:26:27 -05:00
Oleg Shparber
003bb31a2d registry: Remove unused include 2016-10-31 15:49:02 -04:00
Oleg Shparber
99074288d4 doc: Remove Qt Sql from the required dependencies. 2016-10-31 15:49:02 -04:00
Oleg Shparber
c932951efc ui: Cleanup DocsetsDialog 2016-10-31 15:49:02 -04:00
Jerzy Kozera
e7f631d2d5 Better sorting of search results and fuzzy search (#614)
Uses an O(m+n) algorithm based on https://github.com/bevacqua/fuzzysearch.

Also adds sqlite3_mutex_enter and sqlite3_mutex_leave calls to prevent
crashes inside sqlite3 which occurred while testing.

Fixes #100.
Fixes #603.
2016-10-31 15:45:52 -04:00
Oleg Shparber
6cb63ee8f0 core: Store docset storage path in portable version (fixes #609) 2016-10-14 01:27:28 -04:00
Oleg Shparber
042b0bb5b6 Merge tag 'v0.3.1'
v0.3.1
2016-10-10 02:05:50 -04:00
Oleg Shparber
3bb1af0f72 Merge branch 'hotfix/0.3.1' into stable 2016-10-10 02:05:43 -04:00
Oleg Shparber
783fb12ae8 Bump version to 0.3.1 2016-10-10 01:40:05 -04:00
Oleg Shparber
6b8ac9de88 ui: Add changes to DocsetsDialog missing from #625
Missing from ac0d19e5fe.
2016-10-10 01:39:20 -04:00
Oleg Shparber
ac0d19e5fe ui: Fix 'Select All' selection in the docset manager (#625)
This fixes duplicated items in selection models because of multiple
columns.
2016-10-09 18:52:02 -04:00
Oleg Shparber
1462414e3d util: Minor fixes in SQLiteDatabase
Mostly coding style, plus checks in value().
2016-10-09 18:25:50 -04:00
Jerzy Kozera
457af2fe8f registry: Add our own sqlite3 wrapper (#619)
This is going to help with implementing PR #614 in a cleaner way, avoiding
problems with sqlite3_create_function interface availability on various
platforms.
2016-10-09 17:26:29 -04:00
Oleg Shparber
2d2a561c41 ui: Fix a race condition when removing docsets (#624) 2016-10-09 15:38:19 -04:00
Jerzy Kozera
ba8c3ad00e ui: Fix docset removal on Windows (fixes #621) (#623)
Docsets need to be removed from the registry first,
to avoid rename() failing when files are in use.
2016-10-09 13:38:08 -04:00
Oleg Shparber
dd5ebd2d0a doc: Fix menu path to the docset manager 2016-10-09 11:24:25 -04:00
Oleg Shparber
caff862805 core: Reject no-scheme URLs on a local file system (fixes #532) (#620)
This change adds back a custom network access manager, that was removed
as a fix for #474. Although this time URL validation is much more simple.
2016-10-09 01:01:04 -04:00
Jerzy Kozera
2f9dd40086 qmake: Fix missing defines causing memory corruption (fixes #595) (#616)
Missing USE_APPINDICATOR in libs/core/ was causing the MainWindow class
declaration to be truncated, thus causing memory corruption when later used
with the full definition in libs/ui/.
2016-10-07 23:42:27 -04:00
Oleg Shparber
0e6d4fffa8 Merge tag 'v0.3.0'
Zeal 0.3.0
2016-09-22 23:57:05 -04:00
Oleg Shparber
e18ff9c274 Merge branch 'release/0.3.0' into stable 2016-09-22 23:56:02 -04:00
Oleg Shparber
1b11c54bfa Bump version to 0.3.0 2016-09-22 23:52:54 -04:00
Oleg Shparber
eb95d58cfd qmake: Reduce qmake log output 2016-09-22 21:40:29 -04:00
Oleg Shparber
14c72d38aa qmake: Add Qt Network dependency for Core 2016-09-22 21:39:36 -04:00
Oleg Shparber
380031d34a qmake: Use Qt WebKit by default 2016-09-22 20:51:15 -04:00
Oleg Shparber
e642cb509d ui: Use QWebView::load() instead of setUrl() 2016-09-22 02:20:26 -04:00
Oleg Shparber
f69004ebbb ui: Fix redundant download state resets in DocsetsDialog 2016-09-22 02:14:04 -04:00
Oleg Shparber
f7ecf2920d ui: Use model indexes instead of list items where possible 2016-09-22 02:12:48 -04:00
Oleg Shparber
797cd7953b ui: Add ability to start a docset update by a double click 2016-09-22 00:30:33 -04:00
Oleg Shparber
236eb007e4 registry: Do not use CFBundleName and docset name as a keyword
#383 for more details.
2016-09-21 21:20:55 -04:00
Oleg Shparber
eb3fccee23 registry: Strip out <dash_entry_.*> from page URLs (fixes #596) 2016-09-19 21:54:21 -04:00
Oleg Shparber
94a37f73c3 registry: Build index page URL only once 2016-09-19 21:37:32 -04:00
Oleg Shparber
fed639b5fb registry: Prefer index file path provided by docset 2016-09-19 21:24:39 -04:00
Oleg Shparber
64f4f32a60 registry: Add some missing symbol type aliases 2016-09-19 03:32:09 -04:00
Oleg Shparber
ba859d0e46 registry: Use LEFT JOIN instead of INNER JOIN in all queries
Fixes #563 as a side effect!
2016-09-19 03:31:32 -04:00
Oleg Shparber
a59ae13b47 registry: Return QUrl for docset index page (fixes #598) 2016-09-19 02:26:03 -04:00
Oleg Shparber
bdaba34a8c registry: Treat only //apple_ref URL fragments as decoded (fixes #513) 2016-09-18 22:44:12 -04:00
Oleg Shparber
cf22be91d0 registry,ui: Create page addresses during docset loading
This hides the internal docset structure inside the Docset class.
2016-09-18 22:42:37 -04:00
Oleg Shparber
846892446b registry: Move SQL sanitization to Docset
SearchQuery should not know about the underlying search mechanism.
2016-09-18 19:10:46 -04:00
Oleg Shparber
7282698a9d registry: Do not sort search results by docset 2016-09-18 18:54:32 -04:00
Oleg Shparber
302d6028e6 registry: Cleanup Docset a bit 2016-09-18 18:33:03 -04:00
Oleg Shparber
947b67a54d registry: Optimize docset selection with keywords present 2016-09-18 18:26:18 -04:00