Commit graph

128 commits

Author SHA1 Message Date
Chris Cochrun
fec6382384 cleanup 2023-11-15 09:59:02 -06:00
Chris Cochrun
219e2312c7 reveal presentations now move forward using signals
Rather than the logic in qml, I've moved it to rust and am using
signals to tell the ui to change.
2023-11-15 09:48:29 -06:00
Chris Cochrun
e30066b101 revealJS presentations work sorta
I still have lots of bugs, but the groundwork is there. At least a
proof of concept.
2023-11-14 21:39:30 -06:00
Chris Cochrun
0654a9fb9d using a webengineview here to be able to possibly capture screenshot
Want to figure out if I can inject html2canvas to capture a screenshot
of the webengineview offscreen and thus generate thumbnails of the
different slides in a RevealJS presentation.
2023-10-28 14:32:22 -05:00
Chris Cochrun
e999f3e22b Including comment about what Index and ID are for 2023-10-28 06:15:51 -05:00
Chris Cochrun
96d5bdac73 update to make song_editor ready 2023-10-09 13:53:09 -05:00
Chris Cochrun
e1a6e65295 adding song_editor and trying to embed song_model to it 2023-10-06 08:35:02 -05:00
Chris Cochrun
19e3c71ff2 small ui tweaks and fixes 2023-10-06 08:34:02 -05:00
Chris Cochrun
8619902644 using the C++ proxy function to get item from Rust Model
QMAP_QSTRING_QVARIANT doesn't automatically convert to a QVariantMap
in QML. So we have to run it through C++ to make things work right.
2023-09-08 14:55:48 -05:00
Chris Cochrun
b74e85bfe6 🎉 FINALLY! Extra window in any wayland compositor
This required switching from a QML Window to a QQuickView in C++. I
want to try to eventually subclass that in Rust, but for now it works.

I'll have to still tinker with this to find out how to specifically
set the screen in certain environments, but for now the user will need
to move the window on their own.
2023-05-19 13:01:15 -05:00
Chris Cochrun
3a3c4f9c5c maintenance: cleanup of switching to editMode 2023-05-17 10:11:06 -05:00
Chris Cochrun
c33b5af588 basic implementation of having reveal.js slides working
There is still a lot of work needed to be done here, but the basics
are laid out.
2023-05-01 06:20:45 -05:00
Chris Cochrun
16bb72c663 bug: making activeServiceItem text work 2023-04-19 15:09:30 -05:00
Chris Cochrun
1dc08d212c adding better footer information and styling 2023-04-19 09:42:13 -05:00
Chris Cochrun
061bf5acb8 bug: triggering presenting on preview switching 2023-04-18 11:00:10 -05:00
Chris Cochrun
c1e9feb1b3 removing old testing stuff 2023-04-06 06:44:40 -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
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
9938241ebb use correct ids and models 2023-03-31 09:55:52 -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
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
17082bcc67 fix slideModel not activating after slideChanged 2023-03-24 15:17:06 -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
175b327c5c refocus the presentation item
This command sets the keyboard focus to the presentation item which
controls when slides are changed. It ensures that after every action
you can use the arrow keys to switch the slides.
2023-03-20 11:38:07 -05:00
Chris Cochrun
009c759ed3 smaller SplitHandle 2023-03-05 21:39:58 -06:00
Chris Cochrun
2c539e7618 switching to newer qt quick window 2023-03-03 16:56:13 -06:00
Chris Cochrun
5fe5a5b621 switching all layouts to newer layouts 2023-03-03 16:47:49 -06:00
Chris Cochrun
24243602ca making SplitView handles easier to target and providing highlighted
feedback
2023-03-02 16:51:48 -06:00
Chris Cochrun
0086ed3d5a fixing empty files not loading the application 2023-02-20 11:21:04 -06:00
Chris Cochrun
cc501873c1 videosProxyModel working 2023-02-17 15:33:50 -06:00
Chris Cochrun
85318706fc refactoring for proxy models 2023-02-17 13:12:55 -06:00
Chris Cochrun
ca399bb8cd some changes to the gridview and presentation previewer 2023-01-31 13:54:44 -06:00
Chris Cochrun
97430e38a6 removing unnecessary stuff and changing slides properly 2023-01-22 14:36:43 -06:00
Chris Cochrun
1ed76ff3e3 better working changing slides and serviceItems 2023-01-20 15:38:11 -06:00
Chris Cochrun
f535bc1500 a lot of tweaks to make changing slides work 2023-01-20 13:38:40 -06:00
Chris Cochrun
453c67f237 changed all serviceItemModel to singleton ServiceItemModel 2023-01-20 07:06:25 -06:00
Chris Cochrun
d6da3b546c better debugging: all print statements are now console.log 2023-01-17 05:52:34 -06:00
Chris Cochrun
8442913576 more ui setup for viewing all slides in item 2023-01-13 21:13:14 -06:00
Chris Cochrun
c989d143b7 adding a draggingslidenumber variable for inserting into model 2023-01-13 09:23:20 -06:00
Chris Cochrun
29348d59e7 the sizes of things were wrong with a bad env variable 2023-01-13 05:49:15 -06:00
Chris Cochrun
daa7e9e192 making some sizing differences to be using Kirigami.Units 2023-01-11 13:44:34 -06:00
Chris Cochrun
8b4c348279 a lot of setup and testing work for rust 2022-12-13 09:33:47 -06:00
Chris Cochrun
37c7038f6f fixing bug drag highlight doesn't disappear after canceling drag 2022-11-30 11:25:12 -06:00
Chris Cochrun
8da2a39a16 adding a lot of basic stuff for installation as a real app 2022-10-21 14:58:33 -05:00
Chris Cochrun
5083865626 adjusting small ui changes 2022-10-21 10:38:50 -05:00
Chris Cochrun
60a64e14aa ensure library is only visible when "opened" 2022-10-18 13:40:35 -05:00
Chris Cochrun
798c682df9 adding a loading of last saved file for jumping right back in 2022-10-17 10:15:22 -05:00
Chris Cochrun
2d276a3c1f attempting to add some more blur to servicelist 2022-10-13 16:30:20 -05:00
Chris Cochrun
3b0403fed6 ensuring focus and making nextSlideAction not crash 2022-10-06 06:34:30 -05:00
Chris Cochrun
a3be06639b ui components to control looping on the fly 2022-10-06 03:33:56 -05:00