Commit Graph
69 Commits
Author SHA1 Message Date
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
itsmattkc 41fc50f412 slider: initialize dragged diff to 0
Fixes undefined behavior on first drag of a slider.
2020-06-16 02:51:35 +10:00
itsmattkc 4c548bc6a5 slider: implemented value ladder
Allows finer control over value changes.
2020-06-14 03:56:18 +10:00
itsmattkc 14ac1ada6e various: adding files missing in last commit
Oddly some files didn't commit previously. This commit adds those.
2020-05-27 03:24:37 +10:00
itsmattkc d653070a9d slider: reviewed and conformed code 2020-05-09 18:53:00 +10:00
Thomas Wilshaw cb1127936a Implement Alt Click to default on sliders
The following sliders now have Alt Click functionality:
 - Nodes (What it's initialy set too or 0 if not)
 - Export Dialog Dimensions~ (Defaults to Sequence width/height)
 - Export Compression Settings~
    - Advanced (0)
 - Speed/Duration
    - Speed (100%)
    - Duration (clip length)
 - Stream Properties Image sequence
    - Start Index (1)
    - End Index (sequence length)

Sliders with no default value set ignore an Alt
Click.

Added SliderBase::SetDefaultValue() which sets the
default value of a slider.

Added ValueReset() to SliderBase signals which is
called if a slider is Alt Clicked on. Only updates
if default_value_ is not Null.
2020-05-07 22:14:37 +01:00
itsmattkc 0f306550bf slider: use custom dragging code on mac
The slider dragging implementation used for other platforms caused issues on
macOS. We now have a custom Mac implementation that doesn't cause problems, and
is arguably better than the other implementation anyway.
2020-05-07 03:04:40 +10:00
itsmattkc db117e0780 mathnode: increased decimal places
Also includes general improvements to the slider widget such as an optional
"autotrim" function to cut off trailing zeroes, a "format" string that's easier
to internationalize, and general tidiness.
2020-04-22 17:49:32 +10:00
itsmattkc 1aa87cbda6 various: encapsulate all code in the olive namespace to avoid name collisions
Large-scale code cleanup. Also adds a license to the top of all files that were
missing it.
2020-04-06 15:29:53 +10:00
itsmattkc abb4c440fb core: added signalling for timecode display changes
Allows targeted application-wide UI updates for when the user changes the
timecode display so that the response is immediate.
2020-03-18 14:09:31 +11:00
itsmattkc 94f1d997ad slider: don't use prefix and suffix in text entry
UX improvement, ensures the text entry doesn't include anything that the slider
can't resolve back into a value.
2020-02-21 00:11:54 +11:00
itsmattkc 17c1493aa7 all time-based panels are now derived from a common base class
Cuts down on a lot of duplicate code between
TimelineWidget/ViewerWidget/CurveWidget/NodeParamView
and TimelinePanel/ViewerPanel/CurvePanel/ParamPanel since they all use similar
time functions.
2020-02-01 19:39:43 +11:00