Commit graph

13 commits

Author SHA1 Message Date
Chris Cochrun
6377182ab3 add enum Role
This will make it easier to ensure we are always using the appropriate
data type in the DataChanged signal since we won't need to hand pass
i32s around and instead define them once in the function get_role.
2023-03-31 15:21:28 -05:00
Chris Cochrun
0f0f16e069 fix activate
slide_model.rs activate function now properly tells of the data that
was changed so that ListViews that use it as a model will reset their
data properly on changes.

The important parts were to ensure we are using the right indexes for
top_left and bottom_right. Then also ensure the roles are correct, but
I think I had that already, just went with the implementation that
CXX-Qt used in their examples.
2023-03-31 14:47:44 -05:00
Chris Cochrun
0a9c17cdde add activate function properly
While the previous function technically worked, the connections
weren't setup properly. Also the row_count function wasn't running
because it requires a QModelIndex parameter. Added a simple count
function to make sure we know how many slides there are in QML.
2023-03-31 13:13:20 -05:00
Chris Cochrun
b8bfa4b108 adding a proper Cxx type for slides 2023-03-31 09:56:22 -05:00
Chris Cochrun
609d2af90b idk attempt to add ffmpeg? 2023-03-30 15:31:43 -05:00
Chris Cochrun
469837ca8e add a bit of iter 2023-03-30 13:25:00 -05:00
Chris Cochrun
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
Chris Cochrun
7e8694eca2 mapping slide_model.rs to serviceItems better 2023-03-29 15:10:04 -05:00
Chris Cochrun
fc1eb193dd image_count > slide_count
This is a better name for this field as it encapsulates that the
slides are not just images
2023-03-29 14:29:29 -05:00
Chris Cochrun
7180c02876 model adds slides more properly 2023-03-29 13:50:12 -05:00
Chris Cochrun
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
Chris Cochrun
236503e877 adjusting settings and slide_model.rs
These are trying to get more code written in Rust rather than c++. Not
there yet, but I need to sync these to another machine.
2023-03-28 06:15:11 -05:00
Chris Cochrun
ec95ba0d89 add slide_model.rs
This file will eventually be the model of slides to be used in the app.
2023-03-24 16:36:05 -05:00