Chris Cochrun
2311af3b46
initial adding of song_model.rs
2023-04-16 15:09:45 -05:00
Chris Cochrun
9d05a7e655
using video_model.rs and presentation_model.rs
...
These are hopefully a better alternative than the cpp counterparts
after some more time
2023-04-16 15:09:09 -05:00
Chris Cochrun
020e812bce
some tweaks to the models in rust
2023-04-15 14:37:53 -05:00
Chris Cochrun
ab168af16f
remove unnecessary include
2023-04-15 14:37:43 -05:00
Chris Cochrun
c5a94f6d4d
update todo.org
2023-04-15 14:37:37 -05:00
Chris Cochrun
343e1ed0bc
bug: fixed service_item_id changes
...
Recorded a dest_count of the destination_index slides in order to
appropriately change the right service_item_id's.
2023-04-15 06:43:30 -05:00
Chris Cochrun
e11e454062
bug: fixed slides moving in both directions
...
Slides move fine, but the service_item_id is still wrong when moving
an item down.
2023-04-15 06:05:13 -05:00
Chris Cochrun
a8552f272d
grrrrr
2023-04-14 17:08:37 -05:00
Chris Cochrun
21e34a1c94
attempting to switch to a rotate method of moving slides
2023-04-14 14:27:50 -05:00
Chris Cochrun
f2b1fdd4a6
updating TODO.org
2023-04-14 08:56:45 -05:00
Chris Cochrun
0db19df3ea
some tweaks to try and get the slides to move properly...not right
2023-04-14 08:54:00 -05:00
Chris Cochrun
2c68aa8706
some metadata changes
2023-04-14 08:53:52 -05:00
Chris Cochrun
2bed897262
idk what I did.. someone help..
2023-04-13 15:20:23 -05:00
Chris Cochrun
ac5bd950c7
removing annoying debug info
2023-04-13 15:20:09 -05:00
Chris Cochrun
cf20d1aeb7
getting closer to working move function
2023-04-13 15:09:27 -05:00
Chris Cochrun
cf20c94c17
cleaner version by using filters
2023-04-13 09:38:21 -05:00
Chris Cochrun
a2cd7294af
bug: break instead of return
2023-04-13 09:37:58 -05:00
Chris Cochrun
9da9859411
using filter iterator functions instead of if else blocks
2023-04-13 09:19:49 -05:00
Chris Cochrun
ade09bb4e8
user iterater instead of hand made loop
2023-04-13 05:29:22 -05:00
Chris Cochrun
d9dbefcbe5
setup move_item_from_service in slide_model
...
I'll need to keep working on this but a basic sorta working function
of moving the order of items in the Rust model is here.
2023-04-12 19:01:50 -05:00
Chris Cochrun
85285b7d02
add newItem function to interface with QML
...
In order to make sure QML can properly interact with Rust I'll use a
function in the proxy model to interact with the actual model
underneath in Rust.
2023-04-12 19:00:31 -05:00
Chris Cochrun
b2a87b76b6
removing unnecessary functions
2023-04-11 16:47:51 -05:00
Chris Cochrun
65d3506743
updates
2023-04-11 15:19:04 -05:00
Chris Cochrun
5470a5c0a7
removing slides properly
...
By reversing order I'm removing the slides correctly now.
2023-04-11 15:18:38 -05:00
Chris Cochrun
28d6564648
change mailto address
2023-04-11 11:35:00 -05:00
Chris Cochrun
37424ce709
update todo
2023-04-11 11:30:01 -05:00
Chris Cochrun
3f87d540e1
incorrectly remove slides
2023-04-11 09:39:02 -05:00
Chris Cochrun
99655f4a56
update to ffmpeg_6-full
2023-04-11 06:22:50 -05:00
Chris Cochrun
438af89034
skeleton for the service_item_model.rs file
2023-04-11 06:22:50 -05:00
Chris Cochrun
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
Chris Cochrun
7a36b70a6d
remove come cruft
2023-04-11 06:22:50 -05:00
Chris Cochrun
56981a95c6
nix build works! 🎉
...
Finally got nix build to work and thus even make the app installable
again now that I've switched to a mostly rust backend. I needed to add
cargoSetupHook and rustPlatform to the buildInputs.
2023-04-11 06:22:43 -05:00
Chris Cochrun
04928cc5e6
updating flake
2023-04-07 16:46:31 -05:00
Chris Cochrun
f5c4261726
add: update_title in image_model.rs
2023-04-07 07:18:37 -05:00
Chris Cochrun
79696b34bf
updating Cargo.nix
2023-04-07 06:37:19 -05:00
Chris Cochrun
1bc58a03c2
switching to ffmpeg_6-full
2023-04-07 06:37:10 -05:00
Chris Cochrun
d3dbc23e60
fix Video struct missing fields
2023-04-07 06:36:39 -05:00
Chris Cochrun
4f58d6e1fd
adding basic presentation_model.rs
2023-04-06 20:44:04 -05:00
Chris Cochrun
a71ead411f
be more clear in variable names in image_model
2023-04-06 20:40:21 -05:00
Chris Cochrun
7ac29e28cd
remove empty stuff in image_model
2023-04-06 20:39:44 -05:00
Chris Cochrun
e83cc71725
be more clear in variable names
2023-04-06 20:39:06 -05:00
Chris Cochrun
b5228dd872
remove empty stuff in video_model
2023-04-06 20:38:52 -05:00
Chris Cochrun
8c2d32af6b
getting basic video_model.rs ready
2023-04-06 20:37:19 -05:00
Chris Cochrun
c1e9feb1b3
removing old testing stuff
2023-04-06 06:44:40 -05:00
Chris Cochrun
c8f1c85525
removing non needed deps
2023-04-06 06:33:20 -05:00
Chris Cochrun
b7e426edb8
tweaks to build env
2023-04-06 06:32:44 -05:00
Chris Cochrun
7a36f3f8af
introducing video struct in models.rs
2023-04-06 06:06:09 -05:00
Chris Cochrun
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
Chris Cochrun
caed6e6367
setting diesel up more
2023-04-04 15:15:29 -05:00
Chris Cochrun
37a2dbd986
diesel instead of sea-orm
...
sea-orm was getting to be bigger hassle I think and harder to compile,
diesel seems simple and effective enough.
2023-04-04 14:29:14 -05:00