Igor Kushnir
5fd5ff5b64
DB model classes: use explicit, nullptr, override
2021-03-06 21:00:31 +01:00
Luis Ángel San Martín
b55c442590
Add missing import
...
It fixes compilation with some compilers
2021-02-08 08:38:15 +01:00
Igor Kushnir
5656c3f540
Make ComicQueryResultProcessor::modelData() static
...
The function doesn't use data members or other member functions. It
could even be put into an unnamed namespace in the cpp file, but that
would require more changes and complicate turning it back into a member
function if need be in the future.
2021-02-06 20:08:47 +02:00
Igor Kushnir
12c2ff027a
ComicQueryResultProcessor: fix a typo in the class name
2021-02-06 20:08:44 +02:00
Igor Kushnir
3a9bec55f8
Library: don't print errors when search edit's text changes
...
This was a temporary debug output. Not useful anymore.
2021-02-05 09:34:13 +01:00
Luis Ángel San Martín
6d5f3d7de3
Use the query search queue in FolderQueryResultProcessor
2021-02-04 19:15:58 +01:00
Luis Ángel San Martín
6461a4014e
Add actions for setting folders as manga/normal
2021-01-16 18:31:48 +01:00
Luis Ángel San Martín
f7fa4adbd0
Add manga
field to folders too
...
This way we can tell the app that a folder contains mangas so the user doesn't have to constantly set comics as manga when new issues are added. And it should be easier to set all the content in a folder as manga from the folder tree.
2021-01-16 18:29:22 +01:00
Luis Ángel San Martín
9643274b39
Enable manga
in the search engine
2021-01-16 14:26:37 +01:00
Luis Ángel San Martín
97c7723b17
Add support for setting issues as manga/normal in the comics view
2021-01-16 14:25:47 +01:00
Luis Ángel San Martín
3ab05c6777
Add a new boolean field for tagging comics as manga
2021-01-16 14:23:59 +01:00
Luis Ángel San Martín
76a307d0d8
Remove comments
2021-01-14 19:11:25 +01:00
Luis Ángel San Martín
6bb64c5467
Import non-gui global header
2021-01-14 18:42:51 +01:00
Luis Ángel San Martín
82eb5c0a8b
Add fallback for qt < 5.15
2021-01-14 15:51:20 +01:00
Luis Ángel San Martín
f03ad848cb
Add support for true
and false
literals to be used with bool fields
...
The lexer itself should be responsible for parsing those values but it will require a bigger refactoring.
2021-01-14 15:32:20 +01:00
Luis Ángel San Martín
f803b54f2e
Add support for boolean folder fields
2021-01-14 12:25:24 +01:00
Luis Ángel San Martín
5343d24f26
Run folder search filtering in the background
...
It uses the same approach used by the comics search filter
2021-01-14 11:37:17 +01:00
Luis Ángel San Martín
ccc382df7d
Use ComicQueryResultProcesor
2021-01-14 09:17:18 +01:00
Luis Ángel San Martín
dbdc7bd965
Add a class for processing search queries and create the comics model data
2021-01-14 09:10:58 +01:00
Luis Ángel San Martín
7b36100458
Use QString::fromStdString
...
Just to keep things consistent in the whole round trip conversion
2021-01-14 08:51:08 +01:00
Luis Ángel San Martín
260f538de3
Use an explicit constructor for TreeNode
...
List initialization ended using movable constructors which surprisingly caused data troubles in release mode, at least in VC2019 compiler. The tree being messed up caused crashes while SQL was generated.
I have no explanation for it.
2021-01-14 08:49:48 +01:00
Luis Ángel San Martín
f09c5955d8
Remove space and atWord tokens
...
`atWord` wasn't used at all and spaces should be eaten by the lexer
And added `unspecified` token
2021-01-14 08:39:16 +01:00
Luis Ángel San Martín
ddb140d430
Remove misplaced code
2021-01-12 18:57:25 +01:00
Luis Ángel San Martín
a777aa3fe8
Replace lexertl with a custom lexeter implementation
...
QueryLexeter does not parse "atWord" because I couldn't find what it is used for.
2021-01-12 18:56:59 +01:00
Luis Ángel San Martín
5037f3ac92
Fix data base removal in FolderModel
2021-01-12 18:41:57 +01:00
Luis Ángel San Martín
6438c9210f
Move query execution and model setup to the right scope
2021-01-12 18:41:09 +01:00
Luis Ángel San Martín
255e51da86
Fix binding values to search query
...
This was broken while doing a rebase
2021-01-08 16:59:17 +01:00
Iain Benson
8efb9912ee
Use concatenation, rather than ostringstream
2021-01-08 15:56:16 +01:00
Luis Ángel San Martín
4990093e3d
Remove c++17 dependency
2021-01-08 15:56:16 +01:00
Luis Ángel San Martín
2d3888b4b4
Fix scopes
2021-01-08 15:56:13 +01:00
Luis Ángel San Martín
7ccb338455
Apply clang-format
2021-01-08 15:51:59 +01:00
Iain Benson
9a660350d2
Add some documentation and attribution to the query parser
2021-01-08 15:51:59 +01:00
Iain Benson
30529dca43
Some small tidy ups
2021-01-08 15:51:56 +01:00
Iain Benson
673ee1f067
Use the query parser in the comic and folder model
2021-01-08 15:41:29 +01:00
Iain Benson
5fa7da1e46
Add folder into the query parser
2021-01-08 15:41:29 +01:00
Iain Benson
4a50d438d0
Add query parser class
2021-01-08 15:41:28 +01:00
Luis Ángel San Martín
b64ea19e8b
Use an invalid QVariant to set to NULL a value in the DB
...
nullptr causes troubles in some platforms/compiles
2020-08-25 19:45:05 +02:00
Luis Ángel San Martín
c84fc20419
Reset last time opened when setting a comic as unread
2020-08-25 19:00:21 +02:00
Felix Kauselmann
4b3042def4
Fix object leaks in database code
...
Qt's database and query model requires that both the queries and the database
objects are out of scope before a database connection can safely be removed.
Solution: Properly encapsulate databases and queries in "{ }" and use a string
to cache the connection name for out-of-scope removal.
2020-08-25 17:34:46 +02:00
Felix Kauselmann
b9acd13120
Fix code format errors due to changes in default coding style. ( #150 )
2020-07-24 21:17:49 +02:00
Luis Ángel San Martín
4126fc71c3
Remove unused variables
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
f29724e404
Annotate overridden methods
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
268bebbddd
Use nullptr instead of 0
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
bb334cfd50
Use auto to avoid duplicating the type name
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
e3ec56aa43
Format code using clang-format
2019-05-30 19:46:37 +02:00
François Gannaz
11c99efa30
Library: explicit braces to avoid ambiguous 'else' (hidden in macro)
2019-04-01 11:25:16 +02:00
François Gannaz
62db328ab5
Library: explicit braces to avoid ambiguous 'else'
2019-04-01 11:25:16 +02:00
François Gannaz
6093e003e9
Library: add missing 'default' to non-exhaustive 'switch'
2019-04-01 11:25:16 +02:00
François Gannaz
b77eaf6d9c
Library: reorder initialization of FolderModel
2019-04-01 11:25:16 +02:00
François Gannaz
9c3720ceb9
Library: fix misleading indentation
2019-04-01 11:25:16 +02:00
François Gannaz
fb97cfa1dc
Library: explicit {} on ambiguous 'if if else'
2019-04-01 11:25:16 +02:00
François Gannaz
2189e19a91
Library: fix misleading indentation
2019-04-01 11:25:16 +02:00
Felix Kauselmann
d5a11fb16b
Add .gitattributes rules for text and binary handling
2018-07-30 15:04:04 +02:00
Felix Kauselmann
1ccb40624c
Remove potential memleak in folder model code
2018-05-26 11:32:59 +02:00
Luis Ángel San Martín
450997762e
Current comic view only makes sense for folders and reading lists.
2018-05-22 18:45:12 +02:00
Luis Ángel San Martín
23823725ac
Fix how we consider a comic as being read.
...
Basically is this: it has been opened and not set as READ.
2018-05-20 14:41:55 +02:00
Luis Ángel San Martín
52c76d5482
Create unique database connections per thread and remove them using the database connection name from the QSqlDatabase instance being used.
2018-04-24 20:53:24 +02:00
Luis Ángel San Martín
f6d389ff35
Add current/next comic view to GridView.
2018-04-23 19:22:51 +02:00
Luis Ángel San Martín
d7c633cf3f
Fix data base management + include cover thumbnails scan to calculate coverSizeRatio.
2018-03-12 21:21:30 +01:00
Luis Ángel San Martín
ffd9631b72
Add original cover size to the comic_info table.
2018-03-11 15:29:01 +01:00
Luis Ángel San Martín
69395398e1
Partial support for storing the cover information in the DB. Work in progress.
2018-03-11 14:43:07 +01:00
Luis Ángel San Martín
e8c6f60c13
Merge
2017-11-26 07:39:08 +01:00
Luis Ángel San Martín
5c268217d3
Fix read flag calculation on progress read updated from the server.
2017-11-19 10:03:40 +01:00
Luis Ángel San Martín
9ed1f0f306
Merge
2017-08-28 18:52:24 +02:00
Luis Ángel San Martín
f149f314e0
Merge
2017-08-26 16:54:10 +02:00
Luis Ángel San Martín
8b20014cc8
Fixed data base info retrieving in ReadingListModel.
2017-08-26 16:17:54 +02:00
Luis Ángel San Martín
f5fda9b530
Fixed db Fixed data base info retrieving in FolderModel.
2017-08-26 16:17:17 +02:00
Luis Ángel San Martín
6de499e566
Fixed db Fixed data base info retrieving in ComicModel.
2017-08-26 16:16:54 +02:00
Luis Ángel San Martín
d6898e9a4e
Fixed data base info retrieving through DBHelper, value(QString)
should never be used because it is really slow. All items sorting should be done at db level or using std::sort.
2017-08-26 16:16:11 +02:00
Luis Ángel San Martín
d20277736d
Added model classes for reading lists and labels.
2017-05-26 17:24:56 +02:00
Luis Ángel San Martín
30982be0a9
Updated the comic model for getting the reading comics properly sorted. //TODO This should be using the method in the DBHelper.
2017-03-28 18:43:15 +02:00
Luis Ángel San Martín
3a5415c335
Add new field to the comic info table in the DB and updated the migration process.
2017-03-28 18:39:59 +02:00
Luis Ángel San Martín
dfb6082294
merged
2017-02-18 08:26:53 +01:00
Luis Ángel San Martín
27f9bff91b
Added tooltip to folder items in the folders' treeview, it will show the complete name of the folder, usefull when the name is clipped by the parent view, plus the number of children in that folder. Only the number of subfolders can be known when the tooltip is decorated
2017-01-13 20:05:56 +01:00
Felix Kauselmann
2edfe534bd
Refactoring: fix mixed indentation and add curly braces in comic.cpp
2016-10-17 22:01:23 +02:00
Luis Ángel San Martín
94251d3045
Fixed how Favorites are loaded by using the right sorting.
2016-08-23 22:03:20 +02:00
Luis Ángel San Martín
581592909d
merged develop
2016-04-19 23:19:39 +02:00
Luis Ángel San Martín
64b77586fc
Implemented logic for comic info interactive items (read, fav, rating)
2016-04-18 23:21:54 +02:00
Luis Ángel San Martín
bcc51241b3
Added support for knowing if a comic is in favorites or not.
2016-04-17 11:20:14 +02:00
Luis Ángel San Martín
4b8462459a
fixed compilation warnings in YACReaderLibrary.pro, at least using vc++ compiler
2016-03-26 11:31:25 +01:00
Luis Ángel San Martín
011176bebb
merged master
2016-03-25 17:15:14 +01:00
Luis Ángel San Martín
71d9254446
fixed resorting comics by drag&drop in tags and reading lists
2016-03-25 14:15:49 +01:00
Luis Ángel San Martín
8179092d56
added a border to selected/mouseHover elements in the grid view
2016-03-25 11:30:31 +01:00
Luis Ángel San Martín
88056c819f
updating folders' children info for every insert/delete in the db causes big performance issues, so that info is going to be updated explicitly
2016-01-25 18:45:50 +01:00
Luis Ángel San Martín
e23f6b0bc3
store the hash of the first comic in a folder, this is more useful than storing the id
2016-01-24 19:14:16 +01:00
Luis Ángel San Martín
3cda11eec7
fixed db creation
2016-01-24 18:47:09 +01:00
Luis Ángel San Martín
35b87a9f59
added missing method declaration
2016-01-24 12:56:54 +01:00
Luis Ángel San Martín
cf79dbad91
update the folder table properly in 8.6 version
2016-01-24 10:52:55 +01:00
Luis Ángel San Martín
b0060795b5
added new method for adding constraints to an existing table
2016-01-24 10:52:12 +01:00
Luis Ángel San Martín
37d177e65a
removed extra comma
2016-01-24 10:45:07 +01:00
Luis Ángel San Martín
b8031268d0
resort db tables creation
2016-01-24 10:36:19 +01:00
Luis Ángel San Martín
e130698ee9
prepare db update for future 8.6 version
2016-01-24 10:34:54 +01:00
Luis Ángel San Martín
aba3d0f1f6
disabled qDebug() output in the whole server project
2015-12-13 21:12:28 +01:00
Luis Ángel San Martín
a99dab4fbe
removed some qdebug outputs
2015-12-13 18:57:22 +01:00
Luis Ángel San Martín
e1de588e40
fixed compilation of YACReaderLibrary and YACReaderLibraryServer, removing all the dependecies on QtWidgets from non gui code
2015-12-12 12:10:37 +01:00
Luis Ángel San Martín
92b0c1d9f4
added .pro file for the headless version of YACReader and a specific main file for the project
2015-12-12 11:25:38 +01:00