Commit Graph
1176 Commits
Author SHA1 Message Date
itsmattkc 77d4b18a60 updated copyright year for 2021 [skip ci] 2021-04-17 18:56:50 +10:00
itsmattkc 22b2d08baf rational: implement NaN mode
Also clarify code where 0 is used as a rational.
2021-04-17 15:04:03 +10:00
itsmattkc b98bda47cf Merge branch 'master' of https://github.com/olive-editor/olive 2021-04-17 12:56:27 +10:00
itsmattkc 824b87c9d4 timeline: fix double re-do
Fixes crash on timeline insert.
2021-04-17 12:50:42 +10:00
itsmattkc 9328539373 slider: reworked sliderbase and derivatives
Mostly cleaning up code, SliderBase was fairly messy.
2021-04-17 12:49:21 +10:00
itsmattkc f1d325629a audiowaveformview: limit to audio length
Fixes potential infinite loop.
2021-04-17 11:19:46 +10:00
itsmattkc 6f4d631db3 Merge pull request #1579 from ThomasWilshaw/Fix#1577_DblClkHandTool
TimelineWidget: catch hand tool double click
2021-04-17 08:42:13 +10:00
itsmattkc c97147bfca Merge pull request #1573 from ThomasWilshaw/Fix#1571_Fullscreen_crash
viewer: Safely delete full screen widget
2021-04-17 08:39:46 +10:00
Thomas Wilshaw 1b4fd56803 timelinewidget: Catch any nullptr, not just kHand 2021-04-16 20:27:44 +01:00
Thomas Wilshaw 8142df7a04 viewer: Don't hide the widget before deleting 2021-04-16 20:15:10 +01:00
itsmattkc 61efd37744 Merge branch 'rational_slider' of https://github.com/ThomasWilshaw/olive into ThomasWilshaw-rational_slider 2021-04-16 14:15:58 +10:00
itsmattkc ce0290c762 scopebase: handle texture creation/destruction better 2021-04-16 12:06:58 +10:00
Thomas Wilshaw 837ab00ec5 TimelineWidget: catch hand tool double click
The hand tool does not inherit from TimelineTool (it is a special
program
wide tool) so tools_[olive::Tool::kHand] is a nullptr. Therefore when
ViewMouseDoubleClicked is called we check if the hand tool is
selected and
simply return if it is.

Fixes #1577
2021-04-15 20:17:29 +01:00
Thomas Wilshaw 600c9bbe6b viewer: Safely delete full screen widget
Hide the full screen widget and then use deleteLater() rather than
delete.

Fixes #1571
2021-04-14 17:38:45 +01:00
Thomas Wilshaw 579a409078 Properly remove a/b display type 2021-04-14 13:24:18 +01:00
Thomas Wilshaw 139adbdb31 Cleanup for merge. 2021-04-14 12:48:44 +01:00
ThomasWilshaw da275efdf2 Merge branch 'master' into rational_slider 2021-04-14 12:08:58 +01:00
itsmattkc 3ffb2fde1c audiomonitor: use mipmapped waveform
Since we have these now, may as well use them. This should
improve general playback performance since the audio monitor
will be able to iterate far fewer
2021-04-14 15:25:38 +10:00
itsmattkc 46fb53ff24 audiowaveformview: use new mipmapped waveform system
Fixes #1427
2021-04-14 13:48:18 +10:00
itsmattkc 87e315c493 viewer: stop restart timer on pause
Fixes #1569
2021-04-14 13:45:35 +10:00
itsmattkc e0a94ca776 viewer: don't assume still if no texture connected 2021-04-14 11:53:23 +10:00
itsmattkc 429442c0ea viewer: restart audio if validated during playback
Fixes #1566
2021-04-14 11:20:02 +10:00
itsmattkc 51064f44f5 slider: use cursor-less drag when no multipliers are active 2021-04-13 23:47:58 +10:00
itsmattkc 7107afaf99 audiovisualwaveform: mipmap waveforms 2021-04-13 23:43:44 +10:00
itsmattkc 3590a84945 nodeparamview: don't set properties if the root of an array 2021-04-13 22:41:01 +10:00
itsmattkc 09009e01fc viewer: reimplement still support in a more robust way 2021-04-13 15:47:04 +10:00
itsmattkc 46e00c0099 viewer: store video/audio length outside of cache 2021-04-13 15:39:45 +10:00
itsmattkc f9c145b4d4 viewer: default to black background
Fixes theme background no null frame in full screen.
2021-04-13 15:37:22 +10:00
itsmattkc e54854b78a fixed issue where timecodes in UI weren't updated correctly 2021-04-13 13:22:46 +10:00
itsmattkc 31b543c421 videoparamedit: fixed parameter mask bug 2021-04-13 13:07:12 +10:00
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
Thomas Wilshaw 2820f45bca Fix shadowed variable 2021-04-12 10:57:57 +01:00
ThomasWilshaw ecce4d1ae2 Merge branch 'master' into rational_slider 2021-04-12 10:42:26 +01:00
Thomas Wilshaw 48f841db9c Remove unused signals and slots 2021-04-12 10:40:49 +01:00
Thomas Wilshaw 6a4f292ae2 Use customContextMenu for changing the display type 2021-04-12 10:35:44 +01:00
Thomas Wilshaw a297dd0e53 Add width hint to slider ladder for custom display widths 2021-04-12 10:23:56 +01:00
Thomas Wilshaw b9ebc6be18 Fix the easy comments. 2021-04-12 10:14:18 +01: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
Thomas Wilshaw cb0cfebf40 Fix clamping bug, 2021-04-09 11:57:49 +01:00
Thomas Wilshaw 4d8233e7ac Add display type context menu to RationalSlider 2021-04-09 10:52:07 +01:00
itsmattkc 831bac70c5 viewer: don't trigger context menu if no node is connected 2021-04-08 23:33:55 +10:00