Commit graph

13 commits

Author SHA1 Message Date
Nicolas Mailloux
54633f1dc9 bookID fix in bookOptionsDialog 2022-07-15 23:58:05 -04:00
Nicolas Mailloux
03c2732aff Implement local book info dialog 2022-07-12 12:34:36 -04:00
Nicolas Mailloux
80bdeb32ed localLibraryWidget: Implement book options dialog (WIP)
This dialog will open if user keeps touch input active on a button from `bookBtnArray` for >= 500 ms.
'Pin' and 'More info' operations are currently not implemented.
2022-07-06 14:24:23 -04:00
Nicolas Mailloux
3be9608a10 Implement 'Generating database' toast; various improvements 2022-06-30 09:52:48 -04:00
Nicolas Mailloux
ebcfd349f2 Home screen: Implement two-row recent books 2022-06-29 11:42:05 -04:00
Nicolas Mailloux
8eea1d0df5 Local library: Bugfixes 2022-06-27 18:14:20 -04:00
Nicolas Mailloux
8708246065 Local library: Allow opening books which have spaces in filenames
This commit also fixes a segmentation fault that would be caused when deleting libraryWidget (Gutenberg) that first appeared in 4a104522f5.

TODO: Handle what happens when there are no books in the library
TODO: Re-generate database upon exiting USBMS session or books download (libraryWidget)
TODO: Adjust various icon width/height variables depending on the device
2022-06-27 02:40:34 -04:00
Nicolas Mailloux
2521834d06 Local library: Segfault bugfixes 2022-06-26 13:21:43 -04:00
Nicolas Mailloux
6192927b98 Local library: Switch to QVector for widget arrays; improvements
Thanks to @shermp for the help provided on QVectors, which I now use here instead of C-style arrays which could only have a fixed size.
2022-06-26 11:51:52 -04:00
Nicolas Mailloux
2014500317 Local library: Functional improvements 2022-06-25 23:22:38 -04:00
Nicolas Mailloux
4a104522f5 Local library: Basic setup working
A local books database is maintained at `/data/onboard/.inkbox/LocalLibrary.db`. It contains compressed JSON read by the GUI.

URGENT TODO: Fix `*** Error in '/mnt/onboard/.adds/inkbox/inkbox-bin': double free or corruption (out): 0x00648708 ***` error whenever we try to delete localLibraryWidget
2022-06-25 20:12:50 -04:00
Nicolas Mailloux
7c79bd4843 Local library: Basic list working 2022-06-23 15:34:40 -04:00
Nicolas Mailloux
97bc34530c Local library: First steps 2022-06-23 11:10:38 -04:00