itsmattkc
029b826f90
slider: change ctrl and shift modifiers
...
Ctrl now does * 0.01 and shift does * 100.
2021-05-08 09:39:21 +10:00
itsmattkc
dedc189ebf
sliders: make certain set functions slots
2021-05-05 18:58:51 +10:00
itsmattkc
77d4b18a60
updated copyright year for 2021 [skip ci]
2021-04-17 18:56:50 +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
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
51064f44f5
slider: use cursor-less drag when no multipliers are active
2021-04-13 23:47:58 +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
Thomas Wilshaw
2820f45bca
Fix shadowed variable
2021-04-12 10:57:57 +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
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
Thomas Wilshaw
f560beef60
Increase ladder width if displaying timeciode
2021-04-08 11:41:42 +01:00
Thomas Wilshaw
76f8c12a96
Initilise timbase when creating nodeparamviewitem
2021-04-08 11:26:37 +01:00
Thomas Wilshaw
c62389e632
Fix Linux build issue
2021-04-08 11:26:36 +01:00
Thomas Wilshaw
7c123c56c3
Get rational slider mostly working with new slider changes
2021-04-08 11:26:35 +01:00
Thomas Wilshaw
b636b77fbe
Cleanup unused variable
2021-04-08 11:26:34 +01:00
Thomas Wilshaw
191a8bb6ff
Use QVariant::fromValue().
2021-04-08 11:26:33 +01:00
Thomas Wilshaw
f381d3ddea
Add extra documentation
2021-04-08 11:26:33 +01:00
Thomas Wilshaw
fae7ead021
Add a lock on changing the display type
2021-04-08 11:26:32 +01:00
Thomas Wilshaw
3b2cf9d0a7
Overload set default to allow rationals.
2021-04-08 11:26:32 +01:00
Thomas Wilshaw
50c4586fe0
Cleanup
2021-04-08 11:26:31 +01:00
Thomas Wilshaw
3bc26f6ce0
Finish implementation
2021-04-08 11:26:31 +01:00
Thomas Wilshaw
b12518af9e
Initial implementation.
2021-04-08 11:26:30 +01:00
itsmattkc
02b21a22aa
slider: start listening to mouse input only after positioning
2021-04-08 09:49:21 +10:00
itsmattkc
2adb6447a1
slider: improved dragging behavior when min/max are set
2021-04-01 17:08:18 +11:00
itsmattkc
a4ba2ee019
slider: fixed crash
2021-03-25 22:47:50 +11:00
Thomas Wilshaw
0f2c44866a
Remove unneeded invokeMethod.
2021-03-23 23:17:47 +00:00
itsmattkc
0c73a4bd59
made slider value/string conversions abstract
2021-03-15 18:29:03 +11:00
itsmattkc
acb8c6865a
implemented offsets into sliders
2021-03-15 18:23:00 +11:00
itsmattkc
c6a2349ad6
improved slider ladders
2021-03-15 13:43:04 +11:00
itsmattkc
d1a3e22eaa
fixed linux compilation issues
2021-01-31 10:39:14 +11:00
itsmattkc
4e5db91c17
keyframeviewbase: cleaned up code and show tooltip values in input's desired format
2021-01-25 11:05:09 +11:00
itsmattkc
516a5246c6
improved decibel handling in floatslider
2021-01-22 15:40:52 +11: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
e2010dde83
made formal QtUtils class
2020-11-17 09:42:36 +11:00
itsmattkc
3103359cd6
slider: fixed crash when clicking another mouse button while dragging
2020-09-18 23:49:40 +10:00
itsmattkc
4d6003bb55
slider: update label color
...
Dark blue on dark gray was a little unreadable.
2020-07-12 13:54:31 +10:00
itsmattkc
fd8116a9de
slider: use ctrl to switch axes
2020-06-19 02:36:09 +10:00
itsmattkc
115e62f140
slider: further behavior improvements
...
Ladders appears offset on sliders with multipliers. Ladder also appears
on initial press (but still shows line edit if mouse wasn't moved)
2020-06-18 18:58:49 +10:00
itsmattkc
1f3e0db64b
Merge branch 'master' of https://github.com/olive-editor/olive
2020-06-18 18:15:51 +10:00
itsmattkc
e8c8fedcdb
slider: stop ladder drag timer on release
2020-06-18 17:50:28 +10:00
itsmattkc
e47c985baa
slider: if a ladder appears, signal the label that the drag has finished
2020-06-18 16:30:36 +10:00
itsmattkc
c5dd406ff1
slider: improved ladder usability
2020-06-18 14:11:50 +10:00
itsmattkc
dc86e18eb6
slider: remove old debug info
2020-06-16 15:17:01 +10:00
itsmattkc
89b3fa33f8
slider: update behavior for usability and qt 5.15
2020-06-16 14:52:53 +10:00