Commit Graph
1124 Commits
Author SHA1 Message Date
itsmattkc e141b486ae viewer: fixed issues with audio-only nodes in the viewer 2021-04-13 12:17:38 +10:00
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 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 0afaf0a03d handmovableview: set interactive to false when dragging
Fixes #1536
2021-04-12 10:06:37 +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 a87adbd801 fixed precache task
Fixes #1558
2021-04-11 18:57:21 +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 c687460f89 added null checks to timeline snapping and seekablewidget seeking 2021-04-10 09:24:16 +10:00
itsmattkc 831bac70c5 viewer: don't trigger context menu if no node is connected 2021-04-08 23:33:55 +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 52ccaa15d3 timeline: clear ghosts on delete
Fixes #1556
2021-04-08 19:08:29 +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 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
itsmattkc 2791e8d738 timeline: null check when updating timebase
Fixes crash on close
2021-04-08 10:45:01 +10:00
itsmattkc f61bb67ff0 timeline: prevent nesting sequence with itself 2021-04-08 10:44:44 +10:00
itsmattkc 2dc27de37c ensure frame rate and sample rate changes ripple through widgets 2021-04-08 10:44:32 +10:00
itsmattkc ea29ffef96 minor refactoring and signalling panel subtitle by node change
Fixes issue where Footage Viewer subtitle wouldn't update when
dropping footage in.
2021-04-08 10:42:13 +10:00
itsmattkc 2597eea08b Merge branch 'master' into footage-viewer-merge 2021-04-08 09:49:57 +10:00
itsmattkc 02b21a22aa slider: start listening to mouse input only after positioning 2021-04-08 09:49:21 +10:00
itsmattkc eef19ca0ff streamlined viewable-based lengths 2021-04-08 09:46:31 +10:00
itsmattkc 603aa3c138 added comment 2021-04-08 08:00:25 +10:00
itsmattkc d495815550 audio: use sample rate rather than timebase now they aren't interchangeable 2021-04-08 07:59:56 +10:00
itsmattkc bb32048c65 use frame rate and timebase less interchangeably 2021-04-07 13:08:25 +10:00
itsmattkc 898ea25e89 finished merge of viewer and footage 2021-04-06 13:08:56 +10:00
itsmattkc 4066fcba90 began merging footage and viewer 2021-04-05 16:41:37 +10:00
itsmattkc da4a93f1a5 timeline: minor enhancement, probably fixes nothing 2021-04-05 15:54:13 +10:00
itsmattkc 6e7c8088b7 viewer: ensure instances are actually removed from list 2021-04-05 15:04:48 +10:00
itsmattkc 9be014c0b6 refactored so sequence is again a derivative of viewer 2021-04-05 14:41:59 +10:00
Simran ce2e51fc2a QPainter::matrix is obsolete, use transform() instead 2021-04-01 18:00:12 +02:00
itsmattkc 2ea152479e nodeview: override icon pixmap retrieval 2021-04-01 23:45:28 +11:00
itsmattkc 2adb6447a1 slider: improved dragging behavior when min/max are set 2021-04-01 17:08:18 +11:00
itsmattkc 62ff7bed69 correctly map root folder to source model 2021-03-31 11:55:00 +11:00
itsmattkc a4ba2ee019 slider: fixed crash 2021-03-25 22:47:50 +11:00
itsmattkc 2d420decf0 Merge branch 'master' of https://github.com/olive-editor/olive 2021-03-24 10:26:19 +11:00
itsmattkc d03da1817f timeline: null check on block track
If a block has no track, it's probably not on the timeline and can be safely
ignored.
2021-03-24 10:25:52 +11:00
Thomas Wilshaw 0f2c44866a Remove unneeded invokeMethod. 2021-03-23 23:17:47 +00:00
itsmattkc 9e4d42da26 ci: reference windeployqt directly 2021-03-23 23:44:01 +11:00
itsmattkc dccea63d97 nodeview: initialize edge item's from/to references
Fixes #1526
2021-03-23 22:28:21 +11:00
itsmattkc c444213a85 nodeparamview: null check for input UI
Fixes #1523
2021-03-23 08:38:18 +11:00
itsmattkc 4cb14ae1e0 ensure dependency position is set when using add tool 2021-03-22 12:08:43 +11:00
itsmattkc 5b04d84bfb null check for texture in paint function
Fixes #1515
2021-03-21 12:50:35 +11:00
itsmattkc 0a17e0fbe2 nodeview: do something when clips are selected 2021-03-20 10:10:09 +11:00
itsmattkc d90580cc52 nodeparamview: truncate title bar whenever necessary 2021-03-18 19:47:01 +11:00
itsmattkc b98a321cb9 nodeparamview: added tooltip to label
This is so it can be truncated at some point but I haven't
figured out the best way to do that yet.
2021-03-18 19:36:41 +11:00
itsmattkc 843db76e75 nodeview: show label and type if label is set
Might not keep this, but we should have something to make the
node types clear when labelled.
2021-03-18 19:36:03 +11:00