Commit Graph
179 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 c48d2038d4 reimplemented saving keyboard shortcuts
Fixes #1412
2021-04-12 12:04:13 +10:00
itsmattkc 391cf81e34 move 'first show' variable outside of ifdef 2021-04-11 12:11:47 +10:00
itsmattkc 8f21d05baa more robust panel closing 2021-04-08 23:44:39 +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 898ea25e89 finished merge of viewer and footage 2021-04-06 13:08:56 +10:00
itsmattkc 9be014c0b6 refactored so sequence is again a derivative of viewer 2021-04-05 14:41:59 +10:00
itsmattkc b99a236c1c mainwindow: auto-focus project when opened 2021-04-05 13:02:06 +10:00
itsmattkc 29dca59933 fixed issue where autorecovery would show even after startup 2021-04-01 20:06:32 +11:00
itsmattkc 0ee98a47ea project: implemented autorecovery core
Not done yet, but nearly.
2021-04-01 13:10:43 +11:00
itsmattkc 62ff7bed69 correctly map root folder to source model 2021-03-31 11:55:00 +11:00
itsmattkc a4812891d2 only show nouveau warning once 2021-03-16 13:09:21 +11:00
itsmattkc e44918c70a delete exclusive dependencies when deleting items from project explorer 2021-03-16 12:59:58 +11:00
itsmattkc fd6319b837 fixed regression from switching folder from outputs to inputs 2021-03-14 21:51:47 +11:00
itsmattkc 500fb58d49 arranged items so they are inputs of folder rather than outputs 2021-03-12 12:22:19 +11:00
itsmattkc 72dd80c90c ensure nodeview is unset when project closes 2021-02-24 22:15:12 +11:00
itsmattkc a122e34029 nodeview: set graph by active project rather than active sequence 2021-02-22 09:58:38 +11:00
itsmattkc b21271534f added UI for editing video parameters in nodes 2021-02-20 13:27:56 +11:00
itsmattkc d7c5ac4b44 implement entire project in nodes
Project items are now represented directly in nodes opening up more versatility and possibilities. This is the first iteration of this and will be buggy. Need to test thoroughly.
2021-02-15 21:31:57 +11:00
itsmattkc 29eccf8e84 add opening sequence to the import undo command 2021-01-29 18:11:01 +11:00
itsmattkc ad4b83a098 new undo system
Also enables undoing when working with node input arrays
2021-01-29 16:10:34 +11:00
itsmattkc f7883bd02c began some rewrites to timeline drawing 2021-01-14 10:30:20 +11:00
itsmattkc e12013e2fb don't use shared ptrs for project items 2020-12-16 10:28:43 +11:00
itsmattkc f8ceefff6c don't use shared ptr on projects
Really unnecessary
2020-11-27 14:24:02 +11:00
itsmattkc 7cc64927b8 mainwindow: when maximizing panels, fallback to focused panel if hovered panel is null
Fixes #1403
2020-11-25 09:04:15 +11:00
itsmattkc 63bc054b34 correctly mark plural 2020-11-22 13:00:55 +11:00
Alexandre Prokoudine 9920f06b09 Mark Window menu for translation 2020-11-20 02:39:12 +03:00
itsmattkc 75d4cd899b use hardcoded namespace
The macro defined namespaces confused the hell out of lupdate and more or less broke translations permanently. Looks like the only way we can do it is to have a hardcoded namespace, which goes against my instinct, but honestly how likely is it that we'll change the namespace anyway (I guess forks might want to do it, but that's their problem ;) )
2020-11-17 20:24:42 +11:00
itsmattkc d241090a9f finally updated the copyright year 2020-11-17 20:13:22 +11:00
itsmattkc b9724e3910 attempted to implement localization loading 2020-11-17 16:04:09 +11:00
Simran Spiller 21f6717187 Add missing includes 2020-11-16 12:34:39 +01:00
itsmattkc 9a1917d160 used different approach for populating open recent menu
Fixes #1243
2020-11-16 10:23:23 +11:00
itsmattkc bc60c74562 finalized very, very basic OTIO support
Ironed out various project and footage loading issues, and a single
cache invalidation issue.
2020-10-23 01:26:17 +11:00
itsmattkc 917738d1de Merge branch 'master' into otio 2020-10-22 20:26:16 +11:00
itsmattkc 5b69137edf timeruler: add context menu
Should have more stuff in it, this is a basic implementation
2020-10-12 00:19:01 +11:00
itsmattkc ab6501d215 panels: restored block selection signal 2020-10-04 15:20:34 +11:00
itsmattkc 4204910796 nodes: link edges to IDs rather than objects
Allows code to know whether the connected parameters has been removed or
not.
2020-10-02 16:04:50 +10:00
itsmattkc 2fb7066155 nodes: allow stalling graph signals until an operation is over 2020-10-02 13:25:49 +10:00
itsmattkc b9359ce50d nodeparamview/viewer: improved gizmo selection system 2020-09-30 00:32:40 +10:00
itsmattkc 610f4c54fe various: began heavy rework of curve view to link closely with param view 2020-09-29 00:42:16 +10:00
itsmattkc 4d811fe47f mainwindow: link export OTIO menu item to correct function 2020-09-25 16:59:37 +10:00
itsmattkc bb6d5505f5 otio: began early functionality to export to OTIO 2020-09-25 16:32:18 +10:00
itsmattkc 9c57899ae2 mainwindow: auto-close footage in footage viewer when closing parent project 2020-09-19 12:07:52 +10:00
itsmattkc 9b9af17a73 mainmenu: add send feedback option 2020-09-16 14:11:29 +10:00
itsmattkc 00d84cfda0 mainmenu: added project properties keyboard shortcut
It just seemed like the right thing to do.
2020-08-07 01:24:31 +10:00
itsmattkc 2afa5a42c7 ui: optimized widget signals for selecting clips/nodes
Decent performance optimization when working with the UI.
2020-08-01 02:12:20 +10:00
itsmattkc 73769d9e85 mainmenu: set snapping menu item's checked value on startup
Since this action handles the key press, if it's checked value is not equal
to the real value, it will be a no-op first before it "syncs" with the
real value.
2020-07-22 10:33:06 +10:00
Thomas Wilshaw f4da255b35 Attempt to fix CI build errors. 2020-07-17 17:35:29 +01:00
itsmattkc 8e75432304 project/timeline: save timeline tracklist state in project file 2020-07-08 19:19:32 +10:00