Commit Graph
2529 Commits
Author SHA1 Message Date
Simran fca485bd69 Fix plural handling for translations (#1424)
* .arg() doesn't handle plurals, replace %1 with %n and pass number to tr(), but only if there is an accompanying word for that we want singular/plural translations and only for whole numbers.

* Qt's translation methods only accept integers and we don't know what grammatical number form would be correct for floating-point numbers in different languages anyway.

* Add optional 2nd argument to SliderBase::SetFormat() to activate deferred plural handling:
  SetFormat(QT_TRANSLATE_N_NOOP("olive::SliderBase", "%n unit(s)"), true)

* Generate en_US.ts with lupdate's -pluralonly option. Only source strings that require plural handling need to be translated (as long as the source language is American English).
2021-04-13 00:58:46 +02:00
itsmattkc c03c197412 added ability to open viewers on any viewer node or derivative
Fixes #1362

Also fixes some other bugs that impeded this from working.
2021-04-12 22:58:34 +10:00
itsmattkc 17f40cf91f preferencesdialog: reimplemented default sequence settings
I'm not sure why this was removed, it's a pretty important thing
to be able to configure, but anyway it's back now.
2021-04-12 22:50:34 +10:00
itsmattkc 2c47462f8f add hidden options to our CLI parser to ignore Qt's parameters
Fixes #1511
2021-04-12 17:01:29 +10:00
itsmattkc 893adc3d72 implemented value node
Also implements changes necessary to support an input data type
that changes. Much of that foundation was built in
`nodearchchanges`, but hadn't been finalized. This commit
finalizes and provides a reference implementation/test with the
"Value" node.

Fixes #1443
2021-04-12 16:37:26 +10:00
itsmattkc 6d0e188393 renderer: don't process video footage if rendering audio
Fixes #1530
2021-04-12 15:28:33 +10:00
itsmattkc c48d2038d4 reimplemented saving keyboard shortcuts
Fixes #1412
2021-04-12 12:04:13 +10:00
itsmattkc 7701e9331f block: reimplemented reversing 2021-04-12 11:05:45 +10:00
itsmattkc da9cdbd29e block: disable connecting and keyframing speed parameter
We're going to replace keyframing this with a time remap node
because that will be much simpler to implement.

Fixes #1192.
Fixes #1204.
2021-04-12 10:35:02 +10:00
itsmattkc 0afaf0a03d handmovableview: set interactive to false when dragging
Fixes #1536
2021-04-12 10:06:37 +10:00
itsmattkc 46ee99264d footage: fixed crash with audio-only files 2021-04-12 09:48:08 +10:00
itsmattkc 82d2a253d9 preferences: revised audio tab
Cleaned up and improved the audio tab.

Fixes #1546. Kind of. There doesn't seem to be much need for a
sample rate selection for our current high-level audio system.
If we implement higher end audio backends in the future (e.g.
ASIO, JACK), those can be given a sample rate setting.
2021-04-11 20:20:01 +10:00
itsmattkc 8c18b58bbb nodeparamview: pick up move event
Fixes #1547
2021-04-11 19:58:37 +10:00
itsmattkc 515d459d36 nodeparamview: make keyframes on every key track by default
Fixes #1437
2021-04-11 19:38:29 +10:00
itsmattkc afedea7342 restore old node positioning code
New code didn't work.
2021-04-11 18:57:42 +10:00
itsmattkc a87adbd801 fixed precache task
Fixes #1558
2021-04-11 18:57:21 +10:00
itsmattkc 6c30f8cf46 nodes: implemented infrastructure for caching any node
Not accessible through UI yet, but ported Footage node to it
(previously we used a hack to ensure Footage textures were
cached, now it's a formal infrastructure).
2021-04-11 18:56:39 +10:00
itsmattkc 210eb86cd2 nodes: fixed hashing issues 2021-04-11 18:54:22 +10:00
itsmattkc f9b60538fc project: removed footage comparison code that had been stubbed anyway 2021-04-11 18:52:12 +10:00
itsmattkc e89e348f6e nodegraph: delete nodes bottom to top when clearing 2021-04-11 12:59:25 +10:00
itsmattkc a54b42fea4 nodeview: attach nodes to cursor as an undo command 2021-04-11 12:52:46 +10:00
itsmattkc bd052ff4c8 timeline: null checks around any timestamp transform to audio timebase 2021-04-11 12:26:58 +10:00
itsmattkc 700b56d43f node: limit bounding rect when detecting node collisions
Hopefully prevents the possibility of an infinite loop.
2021-04-11 12:20:50 +10:00
itsmattkc 391cf81e34 move 'first show' variable outside of ifdef 2021-04-11 12:11:47 +10:00
itsmattkc 72669761a7 project: fix bug importing folders 2021-04-10 13:22:42 +10:00
itsmattkc b161ff710d project: fix bug disconnecting folders 2021-04-10 13:22:26 +10:00
itsmattkc 792b3b7a44 explicitly state character encoding in crash reports 2021-04-10 13:22:05 +10:00
itsmattkc b22c2f48ff Merge branch 'otio_improvments' of https://github.com/ThomasWilshaw/olive into ThomasWilshaw-otio_improvments 2021-04-10 11:07:51 +10:00
itsmattkc d7557f8e74 Merge branch 'otio_transition' of https://github.com/ThomasWilshaw/olive into ThomasWilshaw-otio_transition 2021-04-10 10:55:49 +10:00
itsmattkc c687460f89 added null checks to timeline snapping and seekablewidget seeking 2021-04-10 09:24:16 +10:00
itsmattkc 94282f3ac6 don't use modal dialog for project saving
Fixes #1554, however in the future, we could probably make this
even better.
2021-04-09 10:16:45 +10:00
itsmattkc 1dc23dae94 precachetask: remove assert and connect correctly 2021-04-09 08:48:57 +10:00
itsmattkc 0cb8da3de1 use WindowModal on all crash handler messageboxes
Improves appearance on macOS.
2021-04-09 08:47:09 +10:00
itsmattkc 8f21d05baa more robust panel closing 2021-04-08 23:44:39 +10:00
itsmattkc 12b190346d cache: clear tasks if wait is enabled 2021-04-08 23:38:44 +10:00
itsmattkc 831bac70c5 viewer: don't trigger context menu if no node is connected 2021-04-08 23:33:55 +10:00
itsmattkc e037db2f77 autocacher: re-copy list before waiting 2021-04-08 22:57:09 +10:00
itsmattkc 11548b3a74 added missing semicolon 2021-04-08 22:38:42 +10:00
itsmattkc 4021a7166d viewer: keep track of which screens have full screen viewers on them
Fixes #1307
2021-04-08 22:37:38 +10:00
itsmattkc ec3ee9e964 fix symbol discovery on macOS 2021-04-08 20:00:28 +10:00
itsmattkc 19c22ff49a Merge branch 'master' of https://github.com/olive-editor/olive 2021-04-08 19:08:58 +10:00
itsmattkc 52ccaa15d3 timeline: clear ghosts on delete
Fixes #1556
2021-04-08 19:08:29 +10:00
Simran 58c2092153 Add missing Q_OBJECT macro to CropDistortNode 2021-04-08 11:08:19 +02:00
itsmattkc f03052ee74 remove superfluous semicolon 2021-04-08 19:05:52 +10:00
itsmattkc db3644e2f8 actually commit override color get function 2021-04-08 19:05:39 +10:00
itsmattkc 5b0332260f revise operation cache blocking system
Fixes #1553
2021-04-08 19:05:12 +10:00
itsmattkc abe28f81bf makeCurrent when destroying ManagedDisplayWidgets
Fixes #1555
2021-04-08 18:59:04 +10:00
itsmattkc ba0eb2335b copy color when duplicating node 2021-04-08 18:03:59 +10:00
itsmattkc ff9e9eb90b fixed qt assert when importing files 2021-04-08 12:42:09 +10:00
itsmattkc cb75e37e77 moved several files around
Mostly moved classes that became node derivatives into the node/ folder.
2021-04-08 12:15:59 +10:00