Commit graph

76 commits

Author SHA1 Message Date
f8ac7feea0 adding the removal of items work on the slides
This isn't finished yet, but the core is there. I have yet to fully
remove slides after a service_item is removed.
2023-04-11 06:22:50 -05:00
fc2d0492fa the image_model.rs is working
The basic functions are all working properly. Now the model works by
using diesel to connect the sql database and retrieve all the items
and organize them. Then it'll ensure any additions and deletions are
correct and happen first on the database before adding them to the
model.

There is still a C++ proxyModel inbetween QML and Rust, but
this proxyModel interfaces with the Rust model instead of the C++
SqlTableModel.
2023-04-06 05:49:28 -05:00
060341adb7 video_thumbnail works to be set in rust
Since every slide is asking for their own, we don't need to loop
through all slides, we just use the index to put the thumbnail into
the right slides and emit data changed.
2023-04-01 07:02:42 -05:00
0efccdfa54 fix insert_item_from_service 2023-04-01 06:51:07 -05:00
23bc1435ea remove old debug info 2023-03-31 09:54:47 -05:00
6f185e6f6e slide_model.rs functions like get_item and activate
These functions aren't perfect, but this code all makes them
essentially work so that we can call from QML
2023-03-30 09:33:51 -05:00
90c1825b10 a compiling and sorta working model
This model, built in Rust, works in that functions are getting called
and the right pieces are mapped into the model. I've yet to connect
things up to see if QML is talking to the model just yet.
2023-03-28 15:05:36 -05:00
0caadfc5c8 slide_obj.rs working
This commit finally has a working basic slide_obj implemented in Rust!
There are likely still some things that need to be tweaked and
massaged in order for things to translate back and forth from QML to
Rust.

The key was to make the old SlideObject written in C++ to act as a
bridge between QML and Rust. QML can't seem to understand CXX-QT's
QMap_QString_QVariant type as a QVariantMap and thus didn't translate
the Javascript object properly. Having the call first go into a C++
class translated it and then was trivial to pass into Rust.
2023-03-24 11:31:18 -05:00
310c71e18c removing podofo 2023-03-20 11:36:53 -05:00
caa2e31d99 add looping for slides
This add looping primarily for videos but I've added in the groundwork
for looping through any kind of slide. This obviously will be
implemented differently for each type of slide, but this way the
groundwork is done already.
2023-03-06 15:06:18 -06:00
caded1027c removing cruft 2023-03-06 13:33:04 -06:00
c80d208a3c removing cruft 2023-03-06 13:32:42 -06:00
0ce4964be0 fixing typo 2023-03-06 13:32:21 -06:00
6c33e52ea3 a working multi delete in libraries 2023-03-05 06:51:47 -06:00
e3ea443f1d simpler 2023-03-02 16:51:30 -06:00
5259cedff8 adding some debug info 2023-03-02 16:32:58 -06:00
5cc531f046 adding a way to get modelIndex from songProxyModel 2023-03-02 05:56:21 -06:00
aba253559c commenting 2023-02-28 17:37:32 -06:00
f472529de9 fix bug adding serviceItem shifts slides to wrong item 2023-02-28 17:36:33 -06:00
1b080e9822 removing a lot of noise in debugging 2023-02-28 06:21:57 -06:00
d6a92ee3cb switching to a more model based adding of items to serviceListModel 2023-02-24 16:01:11 -06:00
903cee065b removing junk 2023-02-24 15:38:06 -06:00
a80cad73eb adding a getLyricList function to songProxyModel 2023-02-24 15:02:05 -06:00
d633a25ebe adding idx to all models 2023-02-24 14:53:05 -06:00
787b0eea42 no selectionModel in c++ 2023-02-23 14:54:43 -06:00
27b3d1d9d1 in progress selection model 2023-02-21 09:56:37 -06:00
0086ed3d5a fixing empty files not loading the application 2023-02-20 11:21:04 -06:00
d97467ee63 Revert "fix dumb logic"
This reverts commit 7da3b3c8c9.
2023-02-19 21:14:48 -06:00
7da3b3c8c9 fix dumb logic 2023-02-19 21:12:46 -06:00
4bb48c8f06 adding loading validation to ensure run without a proper file 2023-02-19 21:10:50 -06:00
c9f6fc4d1b ok I added some proxy models to all sql models, but they aint done.. 2023-02-17 16:14:50 -06:00
cc501873c1 videosProxyModel working 2023-02-17 15:33:50 -06:00
85318706fc refactoring for proxy models 2023-02-17 13:12:55 -06:00
57ffdc3ff0 adding proxy models and search to all sql models 2023-02-17 10:09:41 -06:00
45fbbde792 making songModel a pointer 2023-02-17 09:44:15 -06:00
13c8704bdc adding a proxyModel 2023-02-17 09:38:20 -06:00
1c1140915e fixing setData in slideModel 2023-02-17 09:38:08 -06:00
7d3fbd35ab adding debug info 2023-02-17 09:37:44 -06:00
0ba6f9a2a9 move serviceItemId changes to end of function 2023-02-15 06:14:24 -06:00
93f60ddf3b removing subtitles by default 2023-02-14 21:55:33 -06:00
b48e96a282 fixed moving down of slide items, need to still fix serviceItemID changes 2023-02-09 14:59:25 -06:00
056cf91983 adding space for error handling in moving slides after serviceitem moves 2023-02-09 14:25:52 -06:00
837607c892 adding loop to slideobject 2023-02-09 12:44:50 -06:00
014a38a4f9 the addition of a thumbnailer that works for videos
the previewSlideDelegate now uses the thumbnails instead
2023-02-08 14:16:26 -06:00
1b55be29e5 trying to use mpv as a thumbnailing utility 2023-02-07 15:25:51 -06:00
fb9d551f6b setup for adding thumbnails from videos 2023-02-07 10:55:23 -06:00
6366dc2d88 an attempt at creating a thumbnailer 2023-02-06 15:01:18 -06:00
441ec22542 adding a signal/slot for clearing all items 2023-01-27 16:44:46 -06:00
1b8e8202a1 fixing typo 2023-01-27 16:26:07 -06:00
1b0f638df1 adding incrementSeriviceItemId to insert of slides 2023-01-27 16:14:15 -06:00