Commit Graph
4709 Commits
Author SHA1 Message Date
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 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
itsmattkc 0d315d668a Revert "node: set ignore node when positioning and shifting recursively"
This reverts commit 6481304206.
2021-04-14 23:10:08 +10:00
itsmattkc 6b7412aff6 audiovisualwaveform: removed templates
I'm not sure if this will make any difference performance-wise,
but we don't need them anymore so yeah.
2021-04-14 15:27:34 +10: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 8e1ac7c1a0 audiovisualwaveform: minor refactoring
Improves code readability.
2021-04-14 13:47:46 +10:00
itsmattkc b425754fef audiovisualwaveform: don't draw empty sample 2021-04-14 13:47:33 +10:00
itsmattkc c49e5ef1b3 footage: don't disable audio cache 2021-04-14 13:46:53 +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 6481304206 node: set ignore node when positioning and shifting recursively 2021-04-14 10:13:45 +10:00
itsmattkc 51064f44f5 slider: use cursor-less drag when no multipliers are active 2021-04-13 23:47:58 +10:00
itsmattkc afed4f48d4 removed unused qfloat16 includes
Should lower our Qt minimum version requirement to 5.6
2021-04-13 23:43:56 +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 157da658a5 renderer: prevent cache saving/loading with empty path 2021-04-13 15:53:33 +10:00
itsmattkc 09009e01fc viewer: reimplement still support in a more robust way 2021-04-13 15:47:04 +10:00
itsmattkc 2798737c19 import: don't check for image sequences if there are no video params 2021-04-13 15:45:47 +10:00
itsmattkc 885cabbdfa previewautocacher: remove unnecessary lines
These are node inputs now so they'll be copied automatically.
2021-04-13 15:43:32 +10:00
itsmattkc 040f065483 footage: set viewer preferences before setting filename 2021-04-13 15:42:32 +10:00
itsmattkc 76eb117a45 viewer: return null params if not in array
Suppresses warning about input array sizes.
2021-04-13 15:40:27 +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 7b4e7099f5 audioplayback: break loop on failure to read segment
Fixes #1564
2021-04-13 13:29:31 +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 2ff04f2045 nodes: allow inserting inputs at arbitrary indexes 2021-04-13 13:06:52 +10:00
itsmattkc e141b486ae viewer: fixed issues with audio-only nodes in the viewer 2021-04-13 12:17:38 +10:00
itsmattkc 63c41146c7 renderer: disable mid-render cache when rendering audio
Fixes #1563
2021-04-13 10:17:37 +10:00
Simran 69769aed54 Remove UPDATE_TS option, not used anymore since b9724e39 [skip ci] 2021-04-13 01:45:05 +02: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 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