Commit graph

8 commits

Author SHA1 Message Date
Chris Cochrun
89c270e6a0 fix pdfs not working with rust model right 2023-04-03 06:12:20 -05:00
Chris Cochrun
be988e9ade use correct index for SlideChanged signal 2023-03-31 09:55:24 -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
c02f9509ff debug info in slide_obj.rs 2023-03-24 15:16:47 -05:00
Chris Cochrun
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
Chris Cochrun
1fefe5dca3 basic slide_obj.rs
This very basic slide object implemented in rust will possibly suffice
as our first attempt at doing this in rust.
2023-03-23 16:55:04 -05:00
Chris Cochrun
2b5a699000 add next & previous fn
These functions allow us to change the slide to the next and previous slides
2023-03-23 15:58:20 -05:00
Chris Cochrun
b32d35c385 adding a slide_obj in rust
This object is still unfinished, but it will later serve as our main
object to connect to for the slides that are shown on screen. All of
this needed some heavy tweaking and I still need to learn more about
rust, but the beginnings are there and it will be worth it to have the
safety and speed that rust provides
2023-03-21 10:34:54 -05:00