Commit graph

27 commits

Author SHA1 Message Date
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
b3de8dfabf remove my_object.rs
This was a testing file while figuring out rust in qt
2023-03-29 14:29:03 -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
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
Chris Cochrun
2011a176bf adding slide_object.rs 2023-03-14 14:40:30 -05:00
Chris Cochrun
4a118271c0 tweaks for update 2023-03-14 14:40:23 -05:00
Chris Cochrun
c7b35f2b44 better debug messages in file validator 2023-02-17 15:01:38 -06:00
Chris Cochrun
3b35424a0c adding validation for files to make sure the underlying filesystem
hasn't deleted or moved files in the database
2023-02-17 13:12:23 -06:00
Chris Cochrun
be482eb512 fixing unused pieces 2023-02-17 09:37:57 -06:00
Chris Cochrun
58fb8625f4 adding settings.rs 2023-01-27 15:46:35 -06:00
Chris Cochrun
f1def0bce9 trying to wrap qsettings in rust 2023-01-27 09:58:16 -06:00
Chris Cochrun
137ba3d4f6 starting a settings module in rust 2023-01-27 09:58:06 -06:00
Chris Cochrun
50c17705f6 some tests and ideas for Rust 2023-01-23 17:10:49 -06:00
Chris Cochrun
e6d480d678 some testing of file_helper.rs 2022-12-14 13:39:50 -06:00
Chris Cochrun
8b4c348279 a lot of setup and testing work for rust 2022-12-13 09:33:47 -06:00
Chris Cochrun
748c7672be rearranging rust files 2022-12-10 06:52:19 -06:00
Chris Cochrun
b76f027455 rearranging rust files and updating crates 2022-12-10 06:52:04 -06:00
Chris Cochrun
9644631f7c adding a basic other struct in rust... well trying... 2022-12-09 16:55:54 -06:00
Chris Cochrun
8a7d6da991 adding rust to the project 2022-12-08 15:21:14 -06:00