WarmUpTill
b786831f3b
Remove unnecessary return value check
2021-10-23 13:53:56 -07:00
WarmUpTill
32e2a5f44c
Add git tag to version info
2021-10-19 13:02:15 -07:00
WarmUpTill
39a8c34fa6
Add description for the "min neighbors" parameter
2021-10-09 08:08:15 -07:00
WarmUpTill
ead51e2f13
Fix minNeighbors parameter not loading correctly
2021-10-09 08:08:15 -07:00
WarmUpTill
3b465e1fdc
Fix crash while loading haar cascade
2021-10-03 12:30:45 -07:00
WarmUpTill
08933a3683
Add transition condition
2021-10-03 07:51:09 -07:00
WarmUpTill
9be00ba3ca
Rework to use transition selection widget
2021-10-03 07:51:09 -07:00
WarmUpTill
cce15529fe
Adjust return type
2021-10-03 07:51:09 -07:00
WarmUpTill
588f90f0b1
Add transition selection widget
2021-10-03 07:51:09 -07:00
WarmUpTill
d3220c40dc
Add any transition selection in populate function
2021-10-03 07:51:09 -07:00
WarmUpTill
79c659b4fa
Reduce logging
2021-10-03 01:38:08 -07:00
WarmUpTill
292adb990d
Add option to throttle object and pattern recognition
2021-10-03 01:38:08 -07:00
WarmUpTill
b7a0f6c5d0
Add object detection option
2021-10-03 01:38:08 -07:00
WarmUpTill
b3f1aff03c
Add file selection widget
...
Rework the following macro conditions and actions to use this widget:
- file action
- run action
- file condition
2021-10-03 01:38:08 -07:00
WarmUpTill
3d1c613f1c
Add pattern match using openCV
2021-10-03 01:38:08 -07:00
WarmUpTill
34527b08a9
Fix crash in getSourceSettings()
2021-10-02 14:14:57 -07:00
WarmUpTill
d7ec7c6e40
Limit key press to OBS by default on MacOS
2021-09-30 10:42:57 -07:00
WarmUpTill
e98ee64974
Set canSimulateKeyPresses to false on Macos (not implemented)
2021-09-30 10:42:57 -07:00
WarmUpTill
7c6428b27e
Include press duration option and option to limit key press to OBS
2021-09-30 10:42:57 -07:00
WarmUpTill
aca9b84fc6
Fix rapid scene switch restarting certain transitions ( #313 )
...
When using certain transition types repeated scene switches to the same target scene will restart a transition that is already in progress.
This can be avoided by using obs_frontend_get_current_scene() instead of switcher->currentScene during the check if the target scene is already active.
obs_frontend_get_current_scene() will already point to the new scene, even if the transition is still in progess, while switcher->currentScene will only be updated once a transition is finished.
2021-09-26 14:04:01 +02:00
WarmUpTill
d397f5e406
Add transition action
2021-09-19 05:15:49 -07:00
WarmUpTill
97cbcd7e61
Add condition "scene has not changed"
2021-09-18 10:21:54 -07:00
WarmUpTill
a0dd1cf3ef
Remove unused variable
2021-09-16 10:27:32 -07:00
Joao Eriberto Mota Filho
3c8f5088d3
Fix word "unknown"
2021-09-13 10:58:39 -07:00
WarmUpTill
76fa1f8942
Add backward compatibility check to support OBS 25
2021-09-12 10:20:59 -07:00
WarmUpTill
db4214c918
Remove dependency to <util/util.hpp>
2021-09-12 03:11:21 -07:00
WarmUpTill
f024199e2d
Add backwards compatibility check
2021-09-12 03:11:21 -07:00
WarmUpTill
bee75336d0
Add option to for macro condition scene to trigger on any scene change
2021-09-10 15:14:09 -07:00
WarmUpTill
96b472776a
Remove unused variable
2021-09-10 15:14:09 -07:00
WarmUpTill
fb457f723a
Add macro action scene swap
2021-09-10 14:21:29 -07:00
WarmUpTill
eee3e05c10
Add action to switch preview scene
2021-09-02 10:06:54 -07:00
WarmUpTill
ccc147a1b3
Fix empty paths not saving on file tab
2021-08-27 23:40:00 +02:00
WarmUpTill
45a149f6df
Also save window geo when using ESC or the close button
2021-08-27 09:10:50 -07:00
WarmUpTill
076be21d40
Validate window position before setting it
2021-08-27 09:10:50 -07:00
WarmUpTill
ab5bdb32f5
Highlight newly added macro segments
2021-08-27 08:43:28 -07:00
WarmUpTill
8cfed048cc
Create copy of previous macro segment when inserting new segment
2021-08-27 08:43:28 -07:00
WarmUpTill
c842595214
Add "size" section to scene item transform info
2021-08-27 08:43:08 -07:00
WarmUpTill
8fa3e8b038
Fix crash on clicking "Get settings" if source or filter is null
2021-08-27 08:43:08 -07:00
WarmUpTill
174c17edea
Escape settings when pressing "Get settings" and regex is active
2021-08-27 08:43:08 -07:00
WarmUpTill
9d8fadda80
Remove unused include
2021-08-27 08:43:08 -07:00
WarmUpTill
58028d3c3d
Add macro condition "scene transform"
2021-08-27 08:43:08 -07:00
WarmUpTill
3dcabe543f
Add matchJson(), escapeRegex() move TransformState functions to utility
2021-08-27 08:43:08 -07:00
WarmUpTill
1a7ebc5569
Fix warning
2021-08-19 12:56:34 -07:00
WarmUpTill
2af0735a2f
Expand date condition functionality
...
The date condition now supports the condition types "after", "before"
and specifying a time range.
2021-08-12 11:01:45 -07:00
WarmUpTill
556943c293
Fix writing current scene to file
2021-08-11 12:49:07 -07:00
WarmUpTill
e3004184c4
Format json strings of user input and source settings
...
Source settings and user specified settings might use different json
formatting and thus not match even though the json contents match.
It might not be possible to do the formatting for regex strings so
revert to the originally specified settings string if it cannot.
2021-08-09 11:39:48 -07:00
WarmUpTill
7b2c2e91db
Rename function
2021-08-09 11:39:48 -07:00
WarmUpTill
06ea7bf1d9
Fix crash when deleting macro with wait action
...
Note that this might still not be completely race free but should
improve the situation a lot.
2021-08-09 11:39:20 -07:00
WarmUpTill
1474509cb9
Fix extended sequence abort when using non-instant transitions
2021-07-30 00:47:40 +02:00
WarmUpTill
87aa8d3b40
Remove code used for backwards compatibility
2021-07-29 15:16:29 -07:00
WarmUpTill
d3e8b76fa6
Do not apply MouseWheelWidgetAdjustmentGuard to QScrollBars
...
Without this change, it will be annoying to interact with expanded
QComboBoxes and there should be no danger of accidentally modifying
macro settings by interacting with QScrollBars
2021-07-29 15:16:19 -07:00
WarmUpTill
99c9b1a4a2
Fix macro video condition save
...
Logic, collapsed state and time constraint were not saved for video
condition.
2021-07-24 23:47:24 -07:00
WarmUpTill
c964ed04d3
Clean up includes
2021-07-22 09:40:31 -07:00
WarmUpTill
810235e0b7
Clean up duplicate code
2021-07-22 09:40:31 -07:00
WarmUpTill
e2b3563810
Rename files
2021-07-22 09:40:31 -07:00
WarmUpTill
76c5ec480b
Add MacroSegment and MacroSegmentEdit to remove duplicate code
2021-07-22 09:40:31 -07:00
WarmUpTill
84e4b740a8
Prevent accidental edits of actions and conditions when scrolling
2021-07-22 09:40:31 -07:00
WarmUpTill
95409dfa26
Add option to expand or collapse all macro actions or conditions
2021-07-22 09:40:31 -07:00
WarmUpTill
058af0d3bb
Move GetShortDesc() and GetId() to MacroSegment class
2021-07-22 09:40:31 -07:00
WarmUpTill
fd789b476b
Persist collapse / expand state
2021-07-22 09:40:31 -07:00
WarmUpTill
3fc82df278
Handle macro control signals
2021-07-22 09:40:31 -07:00
WarmUpTill
d541356fd3
Add macro control widget
2021-07-22 09:40:31 -07:00
WarmUpTill
7200668158
Add option to show frame
2021-07-19 12:13:29 -07:00
WarmUpTill
7cf7fd6112
Show current cursor position
2021-07-19 12:13:29 -07:00
WarmUpTill
41821cbeb2
Add macro condition that triggers if cursor position changed
...
Extend condition previously named "region"
2021-07-19 12:13:29 -07:00
WarmUpTill
9537579235
Rename macro condition "region" to "cursor"
2021-07-19 12:13:29 -07:00
WarmUpTill
6c8556c66c
Rework cmake and readme ( #264 )
...
* Add missing include
* Rework CMakeLists.txt to support out of tree builds
* Update build instructions
* Fix windows build issue and copy locale on Linux
* Update build instructions
* Add downloads section
2021-07-17 17:17:03 +02:00
WarmUpTill
a467dffd05
Fix crash on Fedora
2021-07-13 13:14:43 -07:00
WarmUpTill
497dbd89d4
Fix warning
2021-07-13 13:14:43 -07:00
WarmUpTill
0fdbce25a1
Clean up minor UI inconsistencies
2021-07-13 13:14:43 -07:00
WarmUpTill
7e3e621ae5
Log long condition checks
2021-07-03 09:12:30 -07:00
WarmUpTill
9dfbd266fc
Set timeout for libcurl call
2021-07-03 09:12:30 -07:00
WarmUpTill
8d02f63c36
Adjust scene order condition to support current scene
2021-07-03 08:47:08 -07:00
WarmUpTill
f31c54fd72
Adjust scene condition to use SceneSelection
2021-07-03 08:47:08 -07:00
WarmUpTill
7719087065
Add TODO
2021-07-03 08:47:08 -07:00
WarmUpTill
0b175a41d1
Adjust scene transform action to support current scene
2021-07-03 08:47:08 -07:00
WarmUpTill
0824abc4f5
Adjust scene order action to support current scene
2021-07-03 08:47:08 -07:00
WarmUpTill
efef29603b
Display all scene items when selecting "current scene"
2021-07-03 08:47:08 -07:00
WarmUpTill
034a1b0c93
Set current scene in handleSceneChange() and reuse it
2021-07-03 08:47:08 -07:00
WarmUpTill
86fefe1e9e
Adjust scene visibility action to support current scene
2021-07-03 08:47:08 -07:00
WarmUpTill
0bc15b4c2d
Add support for "current scene" to populateSceneSelection()
2021-07-03 08:47:08 -07:00
WarmUpTill
7cfa956b80
Move GetSceneGroupByName functions to scene-group.hpp
2021-07-03 08:47:08 -07:00
WarmUpTill
9670a01e1a
Add scene selection class and widget
2021-07-03 08:47:08 -07:00
WarmUpTill
371f6daf5a
Add macro condition "date"
2021-06-26 10:23:18 -07:00
WarmUpTill
1c141abd06
Fix plugin state action values being empty
2021-06-26 10:23:09 -07:00
WarmUpTill
13788c2dfa
Fix warning
2021-06-26 10:23:09 -07:00
WarmUpTill
daf36365a8
Only use hardcoded libcurl paths as fallback
2021-06-26 10:23:09 -07:00
WarmUpTill
cea4df90b1
Check for invalid transition settings
2021-06-21 11:01:25 -07:00
WarmUpTill
80b824e0a7
Fix Macro slots not being connected properly
...
Problem was introduced when adding header info.
To avoid the issue in future forward signals of the main plugin window
via condition and action edit widgets instead of relying on parent()
being the main window.
2021-06-20 11:05:29 -07:00
WarmUpTill
0bfdc3890b
Add macro action "file"
2021-06-19 12:30:47 -07:00
WarmUpTill
cc067de021
Expand macro action plugin-state to support changing no-match behaviour
2021-06-19 11:29:35 -07:00
WarmUpTill
57c0734ba6
Display more information about macros in collapsed state
2021-06-19 06:58:06 -07:00
WarmUpTill
913682e128
Add support for arguments for macro action "run"
2021-06-19 05:23:10 -07:00
WarmUpTill
92711c5798
Make cleaning of user input optional
2021-06-19 05:23:10 -07:00
WarmUpTill
80334088d0
Add option to only trigger window condition if foreground window changed
2021-06-19 05:22:50 -07:00
WarmUpTill
bdd9d12257
Add setPreconditions()
...
The idea is to avoid repeated calls to the same functions which lead to
the same outcome, but just calling them once in the precondition checks.
For now move repeated calls of GetCurrentWindowTitle() and ignoreWindow
checks to this function.
2021-06-19 05:22:50 -07:00
WarmUpTill
decee4647b
Add macro action 'scene_transform'
2021-06-18 11:15:15 -07:00
WarmUpTill
4991e74a72
Format json string before showing it to user
2021-06-18 11:15:15 -07:00
WarmUpTill
baa158bb33
Add helper fromatJsonString()
...
obs_data_get_json() will now dump the json data in JSON_COMPACT format
which makes it rather difficult to read.
2021-06-18 11:15:15 -07:00
WarmUpTill
0975ffabfa
Adjust log
2021-06-18 11:15:15 -07:00
WarmUpTill
beec7d5939
Move getSceneItemsWithName() to utility
2021-06-18 11:15:15 -07:00
WarmUpTill
1bf2a154e2
Add macro condition "replay_buffer"
2021-06-18 11:15:03 -07:00
WarmUpTill
aa691cf51c
Remove outdated comment
2021-06-18 11:15:03 -07:00
WarmUpTill
8fc12bee99
Initialize hotkeys to OBS_INVALID_HOTKEY_ID
2021-06-18 11:15:03 -07:00
WarmUpTill
5e8a0f92ee
Add note regarding planned removal of tabs
2021-06-18 11:14:47 -07:00
WarmUpTill
86029e8e0e
Add macro condition "Hotkey"
2021-06-15 13:44:33 -07:00
WarmUpTill
a86d6f1f76
Fix macro refs pointing to wrong entry when reordering
2021-06-15 06:16:04 -07:00
WarmUpTill
8ef798c70c
Add macro condition "scene item order"
2021-06-15 06:15:37 -07:00
WarmUpTill
efc8726054
Add macro action "scene item order"
2021-06-15 06:15:37 -07:00
WarmUpTill
7b72abb100
Move populateSceneItemSelection() to utility
2021-06-15 06:15:37 -07:00
WarmUpTill
311ee5d0a0
Add macro condition "timer" (previously known as "interval")
2021-06-15 06:15:25 -07:00
WarmUpTill
5e4258968a
Allow matching of empty files
2021-06-14 01:39:27 -07:00
WarmUpTill
ae4e861f7f
Add macro action "hotkey" ( #226 )
2021-06-14 01:21:23 +02:00
WarmUpTill
d692444687
Add / extend macro filter condition / action
2021-06-13 15:14:57 -07:00
WarmUpTill
6976c98fd8
Fix regex value not saving / loading
2021-06-13 15:14:57 -07:00
WarmUpTill
75f8d0cb07
Move filter / source functions to utility
2021-06-13 15:14:57 -07:00
WarmUpTill
a7e03245bd
Add macro condition "Macro" (previously "Count")
...
The macro condition "Macro" contains the condition type previously named
"Count" and also add the options to check the condition state of other
macros.
This allows nesting of macro conditions.
For example the following can now be configured using this new option:
"If (scene 1 or scene 2 or scene 3 is active) for at least x amount of
time"
2021-06-13 10:25:48 -07:00
WarmUpTill
056e7ef737
Rename files
2021-06-13 10:25:48 -07:00
WarmUpTill
675c23d7cc
Place extended sequence widget in scroll area
...
The previously fixed size only allowed extending the sequence depending
on the available screen space
2021-06-13 10:25:31 -07:00
WarmUpTill
c4b66ef7f6
Fix warnings
2021-06-13 10:25:31 -07:00
WarmUpTill
5cae1bca41
Add macro condition "virtual camera"
2021-06-13 10:25:20 -07:00
WarmUpTill
407d338b8b
Add macro action "virtual camera"
2021-06-13 10:25:20 -07:00
WarmUpTill
edd9f18de0
Add scene trigger to control virtual camera ( #162 )
2021-06-13 19:25:02 +02:00
WarmUpTill
c9769a799d
Abort macro if wait was aborted by manual scene change
2021-06-09 12:51:19 -07:00
WarmUpTill
047ca93486
Clean up
2021-06-06 19:05:55 +02:00
WarmUpTill
bd00a3f97e
Remove preprocessing / todo
2021-06-04 08:31:28 -07:00
WarmUpTill
72f67705ed
Collapse time restriction to clock symbol if no restriction is set
2021-06-03 10:19:19 -07:00
WarmUpTill
38161f63a3
Add helper getDataFilePath()
...
Used to get absolute file path to files in the plugin's data directory
2021-06-03 10:19:19 -07:00
WarmUpTill
b9f6e47a49
Add backwads compatability check to load() of DurationConstraint
2021-06-03 10:19:19 -07:00
WarmUpTill
326cc0c46f
Add generic time constraint to macro conditions
...
Almost every macro condition can benefit from having the option to
specify a time constraint.
Instead of adding it to each condition separately add it to all
conditions with the option of excluding it when registering a new
condition type.
2021-06-03 10:19:19 -07:00
WarmUpTill
d9997d374d
Add option to un-/pause macros using hotkeys
2021-05-30 11:05:44 -07:00
WarmUpTill
c18d799f4a
Remove comment
2021-05-30 11:05:12 -07:00
WarmUpTill
fdb72629db
Do not trigger resize if section is collapsed
2021-05-30 11:05:12 -07:00
WarmUpTill
7fda5e3820
Fix empty selection not showing correctly for visibility and filter
2021-05-30 11:05:12 -07:00
WarmUpTill
78966e456a
Fix empty selection not showing correctly
2021-05-29 15:51:22 -07:00
WarmUpTill
49a042039e
Add ability to set source settings to macro action "source"
2021-05-29 06:48:18 -07:00
WarmUpTill
adb266927f
Move getSourceSettings() to utility
2021-05-29 06:48:18 -07:00
WarmUpTill
703f24b8fc
Remove unused include
2021-05-29 06:48:18 -07:00
WarmUpTill
de6120c401
Save and load source settings
2021-05-29 06:48:18 -07:00
WarmUpTill
b1f7a255d5
Use same collapse threshold for actions and sources
...
Actions and conditions are no longer in fixed positions and instead
divided by a separator.
2021-05-29 06:47:16 -07:00
WarmUpTill
d112e92d33
Add scenes with filters to source selection for filter action
2021-05-29 06:47:16 -07:00
WarmUpTill
5c4dd6dae1
Set "select <xyz>" to disabled and sort selection alphabetically
2021-05-29 06:47:16 -07:00
WarmUpTill
546a83ee07
Add macro action "plugin-state"
2021-05-28 10:23:35 -07:00
WarmUpTill
09ab29b4ba
Trigger resize of widget
2021-05-28 10:23:24 -07:00
WarmUpTill
86d4e59dc2
Adjust to section widget rework
2021-05-28 10:23:24 -07:00
WarmUpTill
aa7714210a
Rework section widget to support dynamically sized content
2021-05-28 10:23:24 -07:00
WarmUpTill
2454ea8fa5
Add macro condition "source"
2021-05-28 10:23:24 -07:00
WarmUpTill
a5edbc8b88
Reset macro counters when stopping the plugin
2021-05-27 12:05:44 -07:00
WarmUpTill
ec6cffcd6a
Rename MacroActionPause and add action to reset macro counter
2021-05-27 12:05:44 -07:00
WarmUpTill
89849a0792
Rename files
2021-05-27 12:05:44 -07:00
WarmUpTill
48e6bcbb7a
Fix conditions and actions referencing macros not loading correctly
...
The reason is that while loading the required macro might not have been
loaded resulting in the pointer to the macro never being set correctly
in the loading phase.
2021-05-27 12:05:44 -07:00
WarmUpTill
6893d9539e
Add MacroSelection widget
2021-05-27 12:05:44 -07:00
WarmUpTill
4a84bede37
Add macro condition "count"
2021-05-27 12:05:44 -07:00
WarmUpTill
77642c54d8
Add macro count member
...
Used to indicate the number of times the actions were executed.
2021-05-27 12:05:44 -07:00
WarmUpTill
e517fa7b39
Sort source selection alphabetically
2021-05-27 12:05:32 -07:00
WarmUpTill
9301713c49
Add option to not scene change msg via network tab
2021-05-25 10:18:36 -07:00
WarmUpTill
66285a0d3d
Add option to synchronize preview scene via network tab
2021-05-25 10:18:36 -07:00
WarmUpTill
e83a9e8d94
Clean up
...
No need to pass switcher as parameter
2021-05-25 10:18:36 -07:00
WarmUpTill
881e197cb2
Fix visibility of scene items in groups not changing
...
Also allow groups to be selected as target for visibility action
2021-05-24 07:30:24 -07:00
WarmUpTill
e7f031641f
Add warning for macro action source
2021-05-24 07:29:56 -07:00
WarmUpTill
198a5dc1ec
Move AskBackup()
2021-05-24 07:29:56 -07:00
WarmUpTill
5496c256c0
Move functions not required in advanced-scene-switcher.hpp
...
Create header for platform specific functions.
Move some UI helper functions to utility.hpp.
2021-05-24 07:29:56 -07:00
WarmUpTill
a93cec2bb9
Fix typo
2021-05-24 07:29:56 -07:00
WarmUpTill
32101627a6
Remove unused settings value
2021-05-23 17:52:15 -07:00
WarmUpTill
c2d2a27d44
Use more const refs where applicable
2021-05-23 17:52:15 -07:00
WarmUpTill
5eb8378612
Run condition check for paused macros
...
Otherwise conditions might behave in unexpected ways when resuming.
For example, audio could immediately match after unpause, when it
matched before it was paused due to timers not being updated.
2021-05-23 12:15:04 -07:00
WarmUpTill
961ea655fd
Macro pause ( #201 )
...
* Add option to pause individual macros
* Add macro action to pause and unpause macros
2021-05-23 08:54:59 +02:00
WarmUpTill
c1704f2164
Fix rapid scene switches by random tab
...
Wait scene was not set while waiting for scene changes on the random
tab.
If wait scene was ever set by other means (sequence) the scene switcher
would immediately wake up as the wait scene is not the expected value.
2021-05-22 10:49:31 -07:00
WarmUpTill
e4b060976b
Add macro action "media"
2021-05-22 10:48:52 -07:00
WarmUpTill
186198bfd4
Reduce macro logging in non-verbose mode
2021-05-22 12:14:56 +02:00
WarmUpTill
283025f1a8
Add helper function to convert to new id format
2021-05-22 03:07:09 -07:00
WarmUpTill
5b4ddfa669
Adjust logging to use new ids
2021-05-22 03:07:09 -07:00
WarmUpTill
572b974b82
Switch to using string as ids for actions and conditions
...
Using int is an id was getting messy with more and more conditions and
actions beeing added.
It also made the order of conditions and actions in the respective
comboboxes unchangable as there was a 1 to 1 relation of index and id.
2021-05-22 03:07:09 -07:00
WarmUpTill
72bd905e7c
Improve logging for macros
2021-05-20 11:36:08 -07:00
WarmUpTill
51680adc20
Add macro condition "interval"
2021-05-19 11:47:32 -07:00
WarmUpTill
6a998934d0
Add macro action "source"
2021-05-18 11:12:22 -07:00
WarmUpTill
b80c16a446
Add macro action filter
2021-05-17 13:16:13 -07:00
WarmUpTill
f4d11dd6e6
Add filter helper functions
2021-05-17 13:16:13 -07:00
WarmUpTill
4248b86705
Add macro action to control scene item visibility
2021-05-17 12:20:54 -07:00
WarmUpTill
305ce96ad0
Adjust includes to new file name
2021-05-17 12:20:54 -07:00
WarmUpTill
74dfd9af30
Rename
2021-05-17 12:20:54 -07:00
WarmUpTill
2a73583793
Fix fullscreen and implement maximized checks
2021-05-17 11:08:26 -07:00
WarmUpTill
8f16d05a28
Fix potential crash in audio macro action
...
UpdateEntryData() could be called from ActionChanged() leading to a
potential double lock of switcher->m when triggerin other slots of this
widget
2021-05-16 13:00:06 -07:00
WarmUpTill
2ce0b35921
Add volume to control to audio action
2021-05-15 09:51:20 -07:00
WarmUpTill
33d2def126
Explicitly cast enum class to int
2021-05-15 09:05:43 -07:00
WarmUpTill
c44b0a2ac2
Remove unused verbose parameter
2021-05-15 09:05:43 -07:00
WarmUpTill
3abeb936b3
Fix random order of various macro entries
2021-05-15 01:03:07 -07:00
WarmUpTill
cef513f775
Adjust plugin state macro condition id
2021-05-14 14:03:04 -07:00
WarmUpTill
a66961eac1
Add macro condition "idle"
2021-05-14 14:03:04 -07:00
WarmUpTill
92c8767e1a
Move plugin state condition to end
2021-05-14 09:44:49 -07:00
WarmUpTill
5b12468a46
Add macro condition process
2021-05-14 09:44:49 -07:00
WarmUpTill
675021c284
Add Macro tab ( #170 )
...
* add action switch scene
* add window condition
* Add macro action wait
* Add macro condition region
* Add audio macro condition
* Add file based macro condition
* Add macro condition media
* Add video macro condition
* Add macro action audio
* Add macro action streaming
* Add macro action recording
* Add replay buffer macro action
* Add stream macro condition
* Add macro condition recording
* Add macro condition plugin state
* Add macro action to run an arbitrary command
2021-05-14 16:37:01 +02:00
WarmUpTill
6bf122d0e8
Add support for transition duration in switchScene() ( #178 )
2021-05-12 19:50:50 +02:00
WarmUpTill
717d41a527
Adjust default setting values of transition tab
2021-05-04 11:32:45 -07:00
WarmUpTill
ad5587e084
Fix transition overrides not restoring duration
2021-05-04 11:32:45 -07:00
WarmUpTill
f37f384b5a
Move DisplayMessage() to utility.hpp
2021-05-04 11:32:45 -07:00
WarmUpTill
dad36689c4
Move AdvSSScreenshotObj to separate files
2021-05-04 11:32:45 -07:00
WarmUpTill
0bd7d004ad
Reduce includes of platform specific files
...
This is done to avoid build issues in future.
For example previously the class "Duration" class caused build issues on
the MacOS platform due to a name conflict.
2021-05-04 11:32:45 -07:00
WarmUpTill
f8c589c7a2
Only send scene switch msg if scene was switched
...
This change is to avoid spamming the connected clients with scene change
messages which might not even do anything as the scene change already
took place.
Additionally it allows scene switch messages to be sent by just calling
the switchScene() function.
2021-05-04 11:32:45 -07:00
WarmUpTill
e714df7ad0
Use Duration class and DurationSelection widget
2021-05-04 11:32:45 -07:00
WarmUpTill
6277da1bbd
Add Duration class and DurationSelection widget
2021-05-04 11:32:45 -07:00
WarmUpTill
1bef309264
Only try to change transition overrides if needed
2021-05-04 11:32:45 -07:00
WarmUpTill
2e1d660e17
Clean up loading of transition tab settings
2021-05-04 11:32:45 -07:00
WarmUpTill
3f492f468a
Move compareIgnoringLineEnding() to utility.hpp
2021-05-04 11:32:45 -07:00
WarmUpTill
c86bba84b3
Add scene-group.hpp include to switch-generic
...
This is to allow easier use of generic scene switch structs and widgets
in other areas. (Macro tab)
2021-05-04 11:32:45 -07:00
WarmUpTill
c468b0698b
Move definition of SwitchTargetType
2021-05-04 11:32:45 -07:00
WarmUpTill
2af82fe22a
Fix ignoring match of checkSwitchInfoFromFile() if checkFileContent() does not match
2021-05-04 11:32:45 -07:00
WarmUpTill
5d720219bf
Clean up transition tab save and load
2021-05-04 11:32:45 -07:00
WarmUpTill
484e1aa191
Remove unnused function
2021-05-04 11:32:45 -07:00
WarmUpTill
0fdfe757b4
Reset tab order if config is invalid
2021-05-04 11:32:45 -07:00
WarmUpTill
bc5a04651f
Remove unnecessary indirection
2021-05-04 11:32:45 -07:00
WarmUpTill
d9dfc1913d
Fix previous scene not working for some sequences
...
If a duration for a transition is used that is longer than the scene
switcher check interval it could happen that the "incorrect" previous
scene could be chosen for uninterruptible scene sequences, as at the
time the sequence check was preformed the "previous scene" variable
was not yet updated as the transition was still ongoing.
2021-05-04 11:32:45 -07:00
WarmUpTill
1310d0b3f3
Add comment
2021-05-04 11:32:45 -07:00
WarmUpTill
139df8a641
Adjust function signature
...
Don't pass bool by reference if not necessary.
2021-05-04 11:32:45 -07:00
WarmUpTill
acf1ae63aa
Drop support for old settings format
2021-05-04 11:32:45 -07:00
WarmUpTill
041a9e7f19
Add option to set transition duration ( #171 )
2021-05-01 00:20:25 +02:00
WarmUpTill
45fa4dac8f
Add option "has changed" to video tab ( #168 )
2021-04-22 20:51:35 +02:00
WarmUpTill
e4bf5fa749
Add option to use transition overrides for transition changes ( #164 )
...
* Adjust switchScene() signature to support adjustActiveTransitionType and verbose parameters and only change the transition type if adjustActiveTransitionType, otherwise rely on transition overrides
* Add new adjustActiveTransitionType checkbox
* save and load adjustActiveTransitionType
* Add check to either enable transition type change or use of transition
overrides
* Add locale
* Adjust layout and locale
2021-04-10 19:58:17 +02:00
WarmUpTill
866480cde6
Fix crash on Linux if no ewmh is available ( #159 )
2021-04-07 21:03:54 +02:00
WarmUpTill
10e1c7b3a3
Resolve asio network crashes on macOS ( #157 )
...
* Reenable network tab functionality for macOS
* Set asio to b73dc1d and websocketpp to c6d7e29
2021-04-03 22:02:42 +02:00
WarmUpTill
beb482bd5a
Disable Network tab functionality on macOS ( #155 )
...
The asio library ran into issues when the obs-websocket plugin was also running leading to a crash in the obs-websocket's listen() calls.
As the use obs-websocket plugin is more widespread than the use of the advanced scene switcher the network tab functionality will be disabled for macOS for the time being.
2021-04-03 18:52:16 +02:00
WarmUpTill
73ce88e2f0
Add option to save window size and position ( #154 )
2021-04-03 11:55:42 +02:00
WarmUpTill
dfccc4b16d
Add network tab ( #149 )
...
The network tab allows you to open a web-socket or connect to web-socket to synchronize the active scene between two or more instances of OBS.
The functionality is mostly based on https://github.com/Palakis/obs-websocket .
An OBS instance running a server will send its currently active scene to all connected clients on scene change.
By default all scene switches will trigger a message to be sent to all clients, but you also have the option to limit sending these messages only when an automated scene change is triggered by the advanced scene switcher.
2021-03-24 20:51:22 +01:00
WarmUpTill
b0ef1fee71
Fix window check always testing for focus ( #152 )
2021-03-22 23:06:44 +01:00
WarmUpTill
1ef8ce4b4a
Resolve Qt runtime warning by renaming function. ( #151 )
2021-03-22 22:31:29 +01:00
WarmUpTill
2a87334d38
Init noMatchDelay to zero. ( #148 )
...
A non-zero value might be confusing for users which set up the plugin
for the first time.
2021-03-21 14:44:42 +01:00
WarmUpTill
1a4724ff21
Fix audio tab not supporting mono audio output. ( #145 )
2021-03-19 20:01:15 +01:00
WarmUpTill
8823c05aeb
Fix scene groups not being selected when using more than one entry on the Random tab. ( #143 )
2021-03-18 21:22:33 +01:00
WarmUpTill
2d0a52f8d1
Enable use of Scene Groups for Random tab ( #141 )
2021-03-17 20:00:06 +01:00
WarmUpTill
1273446ce5
Add option to configure default transition delay. ( #140 )
2021-03-17 18:21:42 +01:00
WarmUpTill
7526cbe1a3
Add option to check volume of 'inactive' audio sources. ( #137 )
2021-03-12 18:48:06 +01:00
WarmUpTill
e4bb034303
Add video tab ( #131 )
...
This tab will allow switching scenes based on the video output of sources.
2021-03-05 14:08:17 +01:00
WarmUpTill
34f07bfb07
Clean up extended sequence ( #134 )
...
* Update original switch widget status if changed in extend edit
* Clean up
* Add more comments
* Clean up unecessary code.
Sleep no longer happens inside the sequence switch check so we don't
need to stop / start the switcher after importing new entries or deleting
existing entries.
2021-02-28 15:38:33 +01:00
WarmUpTill
ee74d39424
Fixes and Minor rework ( #132 )
...
* Fix warning in scene trigger log functions.
* Use GetWeakSourceName() when saving scene trigger sources.
* Fix prioFuncsValid().
2021-02-26 19:21:02 +01:00
WarmUpTill
33667a1f23
Fix crash on advancing to unset scene for extended sequence ( #130 )
2021-02-24 18:53:52 +01:00
WarmUpTill
7947ad2608
Add option to extend scene sequences ( #121 )
...
Extending a scene sequence allows for more complex switching setups, but should also simplify some setups.
Sequences like "A -> B -> A -> C", which previously were only possible by creating a copy of A, can now be specified in a single entry.
To extend a sequence either select the sequence you want to modify and click the extend sequence button or simply double click the entry.
2021-02-24 18:19:23 +01:00
WarmUpTill
920c188213
Add scene trigger for starting and stopping the scene switcher ( #129 )
2021-02-23 21:00:25 +01:00
WarmUpTill
28fbff1adc
Allow specifying transition when reading scenes from file. ( #128 )
...
The transition can be specified on the second line of the file.
For example:
Scene 1
Slide
2021-02-21 20:17:32 +01:00
WarmUpTill
326617aad7
Fix checkSwitchInfoFromFile ignoring file switch puase ( #127 )
2021-02-21 20:16:51 +01:00
WarmUpTill
499ba7dd21
Update the UI's status element if the status changed externally ( #126 )
2021-02-20 18:58:07 +01:00
WarmUpTill
f4902933ab
Fix getCurrentScene() returning garbage if scene group has type random ( #125 )
2021-02-20 18:08:47 +01:00
WarmUpTill
9aa0b31bff
Add scene trigger to unmute source ( #124 )
2021-02-20 18:08:35 +01:00
WarmUpTill
6d5086b971
Add option to select 'current transition' ( #123 )
...
* move addSelectionEntry to AdvSceneSwitcher class and allow select entry to be 'selectable'
Can be useful for implementing 'current transition' as an option or just allowing to select 'None' for screen region ignore
* Add option to select 'current transition'
2021-02-19 19:03:38 +01:00
WarmUpTill
74c0cd1736
Adjust sleep log message and comment for sceneChangedDuringWait() ( #120 )
2021-02-13 19:14:28 +01:00
WarmUpTill
a74a952b1d
Fix log messages containing two '[adv-ss]' tags ( #118 )
2021-02-07 18:41:47 +01:00
WarmUpTill
5bbfef81e0
Improve scene trigger handling ( #117 )
2021-02-06 18:23:57 +01:00
WarmUpTill
c31d1cd975
Delay setting of default scene transitions ( #116 )
2021-02-06 18:23:41 +01:00
WarmUpTill
81d91a9139
resovle name conflict ( #115 )
2021-02-04 07:24:52 +01:00
WarmUpTill
a354daa71d
Fix regex matching for window tab ( #113 )
...
Regex matches could never match if full-screen or maximized was selected due to only checking for direct matches during these checks.
2021-02-03 20:46:25 +01:00
WarmUpTill
a84a205608
Minor style changes ( #114 )
...
* use GetWeakSourceName() where possible
* add getCurrentScene() to scene group
* silence OBS warning log and fix typo in audio switch
* extract showing initial status of widgets to function in generic switch
2021-02-03 20:27:25 +01:00
WarmUpTill
a5f0eb8da8
Add option to automatically start scene switcher on recording / streaming start ( #112 )
2021-02-03 20:02:07 +01:00
WarmUpTill
35151ea134
Add scene trigger tab ( #110 )
2021-02-03 19:50:37 +01:00
Kevin Nash
1510a2c2fa
Specify scenes to exclude from Region triggers ( #111 )
...
Adds an option to exclude a region triggered scene switch if you're
currently in the specified Scene.
2021-02-03 19:49:18 +01:00
WarmUpTill
8e8cb4bf3e
use exportWindowTitle on export of settings
2021-01-27 19:05:46 +01:00
WarmUpTill
27ae5107cd
Add help messages if tab is empty ( #107 )
2021-01-24 16:04:40 +01:00
WarmUpTill
69d452f978
allow selection of previous scene for exe,file,region,window and scene group for idle switches ( #106 )
2021-01-23 23:21:59 +01:00
WarmUpTill
fe9457427f
add linger variable instead of sleeping inside sequence match ( #105 )
...
This solves issues with the busy loop detection and adds the possibility of other switching methods to delay the scene switch
2021-01-23 20:32:32 +01:00
WarmUpTill
d989c2b570
Add scene groups and rework save and load ( #103 )
2021-01-23 17:39:35 +01:00
WarmUpTill
1f4679433e
ask for backup of settings if a new version detected ( #104 )
2021-01-23 17:08:17 +01:00
WarmUpTill
b42de8d5c8
fix crash on settings import ( #102 )
...
This crash could happen if the scene switcher was currently stuck waiting in a scene sequence causing while the import of new settings took place potentially invalidating the settings of the sequence after wakeup.
2021-01-20 19:01:56 +01:00
WarmUpTill
0950d93828
allow selection of target for auto stop of recoding or streaming
2021-01-18 01:20:56 +01:00
WarmUpTill
5156c66b26
add warning if translation cannot be found ( #99 )
...
* add warning if translation cannot be found
* extract displaying message boxes to separate function
2021-01-09 14:27:51 +01:00
WarmUpTill
346240473a
use maximum peak value during switch interval for audio match ( #98 )
...
This change should in theory improve the situation, so "pauses" - like they happen in human speech - in the range less than the configured scene switcher check interval will still result in a match, if there was at least a short moment where the configured volume threshold was reached.
Also extract attaching of the volmeter to an audio source to a separate function
2021-01-09 09:10:15 +01:00
WarmUpTill
17c4fefb37
add fallback option if multiple audio matches are active ( #95 )
2021-01-07 18:59:06 +01:00
WarmUpTill
2b90493ae9
add switch cooldown option ( #97 )
...
* add switch cooldown functionality
* slightly adjust sequence check for cooldown
* add UI implementation for cooldown feature
2021-01-07 18:58:35 +01:00
WarmUpTill
4e971f59a9
add option to allow scene sequence to be interrupted ( #93 )
2021-01-02 14:32:18 +01:00
WarmUpTill
2f0b900745
fix invalid audio matches
2020-12-31 16:59:52 +01:00
WarmUpTill
e78383d3ed
clean up build and build instructions ( #92 )
...
* fix build issue with atomic bool initialization
* clean up cmake
* fix warning
* add missing '\' to linux instructions
2020-12-31 15:45:08 +01:00
WarmUpTill
281e9325dd
update locale ( #91 )
...
* add german locale
* adjust description of ignore window functionality
* adjust order of readWriteSceneFile
* allow translation of 'previous scene'
2020-12-31 14:59:05 +01:00
WarmUpTill
caa2833272
allow pause individual switching methods ( #90 )
...
* allow pausing individual switching methods
* clean up pause tab
* allow import of old pauseScenes and pauseWindows
2020-12-31 14:24:09 +01:00
WarmUpTill
fae50024ea
rename mediaSources
2020-12-28 17:38:34 +01:00
WarmUpTill
a05e38d3cb
fix typos
2020-12-28 17:28:57 +01:00
WarmUpTill
d20cdac5e4
add duration and 'below' condition type options to audio tab ( #85 )
2020-12-28 17:06:30 +01:00
WarmUpTill
e377be3999
Minor UI changes ( #89 )
...
* automatically scroll to new entry
* fix remote file check always matching
* sort combobox entries alphabetically (meida / processes / audio)
* fix some visual issues on non-default OBS themes
2020-12-28 17:03:55 +01:00
WarmUpTill
80e2b3dd14
fix new time matching if QTime is not initialized
2020-12-28 17:02:32 +01:00
shugen002
8ba78b12c1
I18n Support ( #72 )
...
* adapt UI for i18n
* add placeWidgets() helper function to ease translation
* add hint about Transition Matrix plugin on Transition tab
* translate
* rework UI of file tab
* write status of plugin to scene info file
2020-12-21 11:24:04 +01:00
WarmUpTill
07b95cb8ae
do not sleep less than 1ms ( #82 )
2020-12-13 17:26:59 +01:00
WarmUpTill
faca5f8863
add option to only match if file content changed ( #80 )
2020-12-12 16:31:07 +01:00
WarmUpTill
084c263260
always match checkRandom() if random tab only has one entry
2020-12-10 20:14:07 +01:00
WarmUpTill
a1c592f1ec
format
2020-12-10 20:14:07 +01:00
WarmUpTill
41f34f8f40
remove runtime of check() functions from interval sleep
2020-12-10 20:14:07 +01:00
WarmUpTill
9711390aac
add no match delay option ( #78 )
2020-12-06 14:10:17 +01:00
WarmUpTill
25f28b9796
Add media state played to end ( #58 )
2020-12-06 14:09:21 +01:00
WarmUpTill
a1484f9621
fix warning
2020-12-06 14:03:04 +01:00
WarmUpTill
b54506c5ee
add 'OBS' entry to GetWindowList() on Windows( #76 )
2020-11-28 16:23:17 +01:00
WarmUpTill
4af7540497
hide guide frames when switching to a different tab ( #75 )
2020-11-28 12:36:58 +01:00
Guillaume Turchini
ba15e6812f
Add a log when auto stopping stream / record ( #74 )
...
* Add a log when auto stopping stream / record
I had a hard time deciphering why the stream stopped automatically for someone when using the plugin as the logs contained nothing indicating an error or an action from the plugin.
He activated the checkbox to auto stop stream when a scene is activated (which I didn't know) so the plugin was doing exactly what asked.
I think adding a log is a good idea for an action as important as stopping the stream.
I added the same for starting stream for the same reasons.
2020-11-27 17:34:17 +01:00
WarmUpTill
22a90c7d64
fix crash on deleting last screen region entry when guide frame was active ( #70 )
2020-11-24 22:57:52 +01:00
WarmUpTill
f6c3c65e26
resolve potential deadlocks ( #66 )
...
A deadlock could occur if the save callback is called just before the frontend set functions are used.
Thus unlock() is necessary before setting current scene or transition.
(e.g. if start recording is activated just before using the above functions, as this apparently triggers a save() call)
2020-11-21 01:40:24 +01:00
shugen002
16c4a2d5a9
Adjust UI And Improve ( #63 )
2020-11-20 19:10:06 +01:00
WarmUpTill
45a880d8f8
Add version info log ( #61 )
...
add generated version info log on startup of the plugin using the "GetGitRevisionDescription" cmake module from https://github.com/rpavlik/cmake-modules
2020-11-15 20:34:11 +01:00
WarmUpTill
e5c1e81d81
clean up and silence warnings
2020-11-14 18:45:25 +01:00
WarmUpTill
2ae97cd90e
Merge branch 'master' of https://github.com/WarmUpTill/SceneSwitcher
2020-11-14 17:11:21 +01:00
WarmUpTill
e5fffa0b82
log if sequence is canceled if verbose
2020-11-10 18:31:42 +01:00
WarmUpTill
a0119426d6
remove dead code
2020-11-10 18:31:42 +01:00
WarmUpTill
45e5738d2c
do not hold main lock in callback handling
2020-11-10 18:31:42 +01:00
WarmUpTill
cdd1259f12
style changes
2020-11-09 22:20:58 +01:00
WarmUpTill
e026bd7420
fix crash on first startup on fresh install of OBS
2020-11-07 18:56:08 +01:00
WarmUpTill
8eb99a3fde
fix comment
2020-11-02 19:06:51 +01:00
WarmUpTill
bf30a058ee
fix crash on deleting scene sequences
...
This crash could occur when a scene sequence was currently in progress and the entries were changed while in the 'wait for ...' state.
2020-11-02 19:05:19 +01:00
WarmUpTill
0c6a7b140e
add comment about use of 'matched'
2020-11-02 19:00:50 +01:00
WarmUpTill
d279b35086
fix crash on importing scene sequence
...
This crash could occur when a scene sequence was currently in progress and the entries were changed while in the 'wait for ...' state.
2020-11-02 18:38:26 +01:00
WarmUpTill
8e26148255
fix media states being retriggered multiple times ( #54 )
2020-11-01 18:53:48 +01:00
WarmUpTill
1a3ed0d09c
add clang format check to CI and adjust formatting ( #55 )
2020-11-01 12:39:14 +01:00
WarmUpTill
214821b69f
UI rework ( #44 )
...
* rework general tab UI
* rework audio tab UI
* rework media tab UI
* rework time tab UI
* rework random tab UI
* rework window tab UI
* rework sreen region tab UI
* rework sequence tab UI
* rework transition tab UI
* adjust log messages to new format
* fix include path and warning
* highlight widgets to guide users (can be disabled)
* add helper frame for screen region tab
* rename main SceneSwitcher widget to AdvSceneSwitcher to resolve naming conflicts with the frontend tools on certain platforms (e.g. Debian 10)
* add media state 'any'
* adjust media switch handling to support vlc source
2020-10-31 16:25:44 +01:00
WarmUpTill
7edb6eb6c1
add handling of window title of metro apps
2020-10-24 15:23:08 +02:00
WarmUpTill
8aed15f3a8
allow WS_EX_TOOLWINDOW as valid windows to match 'Task Switching'
2020-10-22 19:44:23 +02:00
WarmUpTill
1e6a022787
improve hotkey handling ( #49 )
2020-10-12 20:55:51 +02:00
WarmUpTill
fb1eac5268
fix crash on exit when on autoStart scene ( #47 )
2020-10-10 01:56:08 +02:00
WarmUpTill
787b664d29
Add vlc source to media tab ( #42 )
2020-09-30 19:07:40 +02:00
WarmUpTill
dd63ff846c
Refactor, fixes and maximized option for title tab ( #40 )
...
* move definitions of switcher structs to separate files
* remove useless comment
* cleanup and silence warnings
* add generic switch
* removed delay on main thread startup as it served no purpose
* clean up ultility.hpp
* do not save switchStr to file as it could cause issues when scenes are renamed
* rename sceneRoundTrip to sceneSequence
* add option to switch if window is maximized to title tab
2020-09-25 21:42:58 +02:00
WarmUpTill
8d023ee385
Add audio tab ( #36 )
...
* add volumemeter widget
* add audio tab UI
* add checkAudioSwitch functionality
* use constexpr instead of preprocessing
2020-09-21 00:52:42 +02:00
WarmUpTill
3fd3801e56
load libcurl at runtime ( #33 )
...
* load libcurl at runtime
* add warning to file tab if curl cant be loaded
2020-09-13 09:13:09 +02:00
WarmUpTill
21a788b48b
Improve time tab ( #34 )
...
* add support for weekdays and allow reordering on time tab
* add option to use time relative to streaming/recording start on time tab
2020-09-13 00:03:38 +02:00
WarmUpTill
a5c8d776f3
only try auto start streaming/recording once on scene chagne
2020-08-24 20:55:54 +02:00
WarmUpTill
95261ce9bb
add first draft of auto start of recording / streaming
2020-08-16 19:48:54 +02:00
WarmUpTill
255d10e603
fix auto fill not wokring for modified entries on time tab
2020-08-09 20:48:49 +02:00
WarmUpTill
ab3e93ab84
add fallback to old format for sequence import
2020-08-02 20:22:13 +02:00
WarmUpTill
3b5f88c14f
do not sort sequence and region on add
2020-08-02 19:38:32 +02:00
WarmUpTill
2f33b6bdc3
fix data loss for sequence delay
2020-08-02 19:37:37 +02:00
WarmUpTill
3c1e240722
add option to set startup behavior
2020-08-02 18:45:44 +02:00
WarmUpTill
91831a1075
fix autoStop not being persisted
2020-08-02 18:00:50 +02:00
WarmUpTill
ccc824abc1
fix loading of old delay values
2020-08-02 17:46:36 +02:00
WarmUpTill
6f39d4648b
add included 'thread' and 'QAction' for Linux and macOS build
2020-08-01 20:34:12 +02:00
WarmUpTill
910b1dde99
set sceneRoundTripDelayUnits
2020-08-01 16:19:57 +02:00
WarmUpTill
e462d7f420
fix sequence not stopping when manually switching scene
2020-08-01 16:11:54 +02:00
WarmUpTill
0cdd8bf1d0
move UI init of tabs to respective source files
2020-08-01 11:14:54 +02:00
WarmUpTill
f8ad8c31be
scene sequence adjustments
...
use double internally instead of two ints
rework save / load to file to reuse existing functionality
add option to select between seconds / minutes / hours
2020-08-01 10:12:32 +02:00
WarmUpTill
f8b505fa4e
silence warnings
2020-07-31 22:05:55 +02:00
WarmUpTill
1516263d2a
save and load tab order
2020-07-31 21:58:17 +02:00
WarmUpTill
cd54cc17c0
fix switch priority falling back to default values on startup
2020-07-09 19:57:55 +02:00
WarmUpTill
098159dc0f
increase window size on mac
...
currently the general tab will be compressed to an almost unusable level due to the differences in Windows and Macintosh styles
2020-06-30 20:11:44 +02:00
WarmUpTill
a4418996f4
disable mediaTime selection if restriction is set to none
2020-06-19 19:52:43 +02:00
WarmUpTill
340cb559ee
add option to override transitionOverrides
2020-06-17 22:16:47 +02:00
WarmUpTill
eeefd8279f
allow reordering of file/media/sequence/region
2020-06-16 20:25:25 +02:00
WarmUpTill
e62dc91cd7
fix linux/mac build error
2020-06-15 21:46:58 +02:00
WarmUpTill
d3ab9e01c5
add support for remote file using libcurl
2020-06-15 21:19:34 +02:00
WarmUpTill
2a92df4f3c
add draft of remote file support
2020-06-14 20:35:02 +02:00
WarmUpTill
560044bbbf
implement export/import of settings
2020-06-14 15:22:34 +02:00
WarmUpTill
4bd8cdf5a0
move auto start/stop to gernal.cpp
2020-06-14 14:17:03 +02:00
WarmUpTill
c17cbb66d9
write to OBS log if verbose logging is enabled
2020-06-14 14:14:00 +02:00
WarmUpTill
bf70bd7c60
move saving and loading to separate files
2020-06-13 21:56:26 +02:00
WarmUpTill
6810ba71e8
remove using namespace std
2020-06-12 21:40:06 +02:00
WarmUpTill
3151a7542f
return true in isFullscreen() if window maximized
2020-06-11 16:25:17 +02:00
Myned
7bfde0a39b
Add regex matching to fullscreen check
2020-06-10 04:06:04 -04:00
Myned
7347be370e
Fix type error
...
Pushed a little too soon
2020-06-09 17:14:22 -04:00
Myned
66d847c047
Fix ignored switches not directly matching last window
2020-06-09 17:10:14 -04:00
Myned
c9f1f9624b
Use actual window titles and fix fullscreen check on macOS
...
Fallback to window owner if title does not exist
Remove duplicate entries from list
2020-06-09 07:49:39 -04:00
Myned
8e4a8b7e9d
Use QString::fromStdString() instead of c_str()
2020-06-09 07:10:30 -04:00
Myned
e693794549
Add sorting of window lists for UI
2020-06-09 07:09:08 -04:00
Myned
7a924438bc
Add .clang-format and apply to src/ files
2020-06-08 14:58:44 -04:00
Myned
9f7ca3e4c7
Merge remote-tracking branch 'WarmUpTill/master'
2020-06-07 14:15:08 -04:00
WarmUpTill
2f77d99161
Undo "Revert "do not use QThread::create""
...
This reverts commit 4b86849356 .
2020-06-07 14:15:01 -04:00
WarmUpTill
acd2e2863a
adjust win isFullscreen() to use GetMonitorInfo()
...
only tested on a single monitor setup but should work on secondary monitors also as MONITOR_DEFAULTTONEAREST is set
2020-06-07 13:25:51 +02:00
WarmUpTill
513fe0728c
initialize SwitcherThread to nullptr
2020-06-07 10:43:52 +02:00
Myned
cba39633aa
Add ability to reorder Window and Executable switches with arrows
2020-06-06 23:23:02 -04:00
WarmUpTill
4b86849356
Revert "do not use QThread::create"
...
This reverts commit 98c3131017 .
2020-06-06 22:38:22 -04:00
Myned
8fd263f44a
Merge remote-tracking branch 'WarmUpTill/master'
2020-06-06 18:40:17 -04:00
Myned
5590e97f4f
Fix fullscreen check only returning true if window is focused on Windows
...
by @WarmUpTill
2020-06-06 18:39:57 -04:00
WarmUpTill
98c3131017
do not use QThread::create
...
there might still be versions of QT in use which do not yet have this functionality (see Linux build fail of f03fca8 )
2020-06-06 18:51:26 +02:00
WarmUpTill
f03fca85aa
add thread priority option (using QThread)
2020-06-06 17:05:49 +02:00
WarmUpTill
7fef29dafb
fix media delete button deleting wrong entry
...
the mediaSwitches UI is sorted alphabetically while the switches data strucutre is not
the previous implementation of the delete function was just using the index of the currently selected row to delete this index of the switches data structure
the new implementation will try to find the correct entry and delete it
2020-06-06 08:59:03 +02:00
WarmUpTill
9f03264672
fix memory leak in check for media switch
2020-06-04 20:35:36 +02:00
WarmUpTill
5082f5944e
prune media switches if invalid
2020-06-03 19:56:18 +02:00
WarmUpTill
b981a446b6
fix for times switch not saving when using previous scene
2020-06-03 19:55:06 +02:00
WarmUpTill
5ab8199e03
add log on start / stop of switcher thread
2020-06-02 20:53:26 +02:00
WarmUpTill
e6a3f98ab7
use source_id to identify meida sources
2020-06-02 20:45:46 +02:00
WarmUpTill
5e60cefd1c
update current selection on media tab when selecting a different row
2020-06-02 19:34:15 +02:00
Myned
fabb7406bd
Merge remote-tracking branch 'WarmUpTill/master'
2020-06-02 00:48:01 -04:00
Myned
78ed7415f5
Fix allocation error
2020-06-02 00:39:14 -04:00
Myned
d6380b865e
Fix some windows (Steam) not being found on Linux
...
Reverts part of commit e61905d02f
Fallback to WM_NAME if _NET_WM_NAME does not exist
Also fixes some BadWindow errors that were due to some apps like Steam only populating WM_NAME, and only for certain windows (tooltips count as windows due to the odd way the GUI works on Linux, so they don't have either property)
2020-06-02 00:38:35 -04:00
WarmUpTill
2e475b8059
add first draft of thread priority
2020-06-01 14:54:08 +02:00
WarmUpTill
99b5c16406
add Time scene switching
2020-05-31 12:43:34 +02:00
Myned
55d8303ecf
Fix isFullscreen() logic error for Linux
...
Not sure why this arose in the first place
2020-05-26 02:44:12 -04:00
Myned
23201100fa
Fix macOS build error (again)
...
Adds to f0cf5a5c19
Forgot to remove vestigial code
2020-05-23 00:34:40 -04:00
Myned
3959e41e88
Add clearing of passed window list like with other platforms
2020-05-23 00:27:19 -04:00
Myned
f0cf5a5c19
Fix Windows and macOS build errors
...
Adds to e4b640903d and de5b6f8eb4
2020-05-23 00:25:30 -04:00
Myned
87da123c19
Change default focus value to true
2020-05-23 00:00:04 -04:00
Myned
a7a8adb91b
Remove whitespace
2020-05-21 00:54:49 -04:00
Myned
e61905d02f
Change window title property on Linux to align with freedesktop spec
...
Freedesktop recommends using _NET_WM_NAME instead of WM_NAME, and on KDE, for example, the difference between them is including the application name for some windows (e.g. "freedesktop - Google Search - Vivaldi" compared to "freedesktop - Google Search")
2020-05-21 00:53:47 -04:00
Myned
f00c244bfa
Change wording slightly
2020-05-21 00:52:41 -04:00
Myned
463b54f1fb
Remove sorting when adding switches
2020-05-21 00:52:11 -04:00
Myned
70894f9302
Add regex matching to reverted isInFocus() for Windows
...
Reverts part of a4de8c0c59
2020-05-21 00:42:58 -04:00
Myned
de5b6f8eb4
Fix fullscreen check only returning true if window is focused on Linux
2020-05-21 00:40:37 -04:00
Myned
e4b640903d
Add ability to choose focus state to window title switcher
2020-05-21 00:34:22 -04:00
Myned
a4de8c0c59
Change isInFocus() check to be OS-agnostic
...
isInFocus() can utilize the platform-dependent GetCurrentWindowTitle() instead of re-implementing the same functionality.
Tested on Linux and macOS without issues
2020-05-18 00:11:07 -04:00
Myned
ac051a42a8
Remove unnecessary spaces
2020-05-18 00:06:19 -04:00
Myned
d5052c94ca
Add direct matching to window, executable, and ignored switches
...
Reverts part of commit 5f87a61177
Direct matching occurs in the same loop as regex in order to allow the list order to function as indicated in the UI
2020-05-17 13:44:50 -04:00
Myned
a2543f1b85
Add ability to use existing window ignore for executable switching
...
Also cleaned up some logic
2020-05-17 00:24:24 -04:00
Myned
5f87a61177
Remove direct match from window switcher and reorganize
...
Direct matching before regex has the potential to interfere with some usecases. For example, if a user wants to enter regex syntax such as `shell[1]`, a direct match would return a window matching `shell[1]` exactly instead of `shell1`. Granted, the odds of the two conflicting each other are slim, but the core logic shouldn't prevent a user from utilizing regex to its full potential. One can always escape reserved characters if they want to match it directly. I have also added a warning and link to https://regexr.com in the UI should this be accepted.
The rest of what has changed is simply to align with the executable switcher's matching, namely the use of `QRegularExpression` to drop the need for a try/catch block and moving the check for fullscreen to the if statement in order to remove the possibility of a race condition.
2020-05-17 00:18:28 -04:00
Myned
451bb6518c
Revert "Move forms/advanced-scene-switcher.ui to src/headers/"
...
This reverts commit 318502d8d0 .
2020-05-16 23:42:26 -04:00
Myned
318502d8d0
Move forms/advanced-scene-switcher.ui to src/headers/
...
Out-of-tree building (at least) fails without this file in this location, and builds successfully without it under forms
2020-05-14 19:11:04 -04:00
Myned
3654f39247
Fix scene not switching with multiple executables
2020-05-14 18:56:39 -04:00
Myned
b45b38cf6a
Add ability to use regex for executable switching
...
Previously, only exact matches to a window title would switch scenes
2020-05-14 18:56:39 -04:00
WarmUpTill
228a18eb77
fix media switch not saving when using previous scene as target
2020-04-27 20:51:58 +02:00
WarmUpTill
4ed12db12b
add support for previous scene on media tab
2020-04-27 20:20:50 +02:00
Exeldro
38bd59c1fd
add media
2020-04-25 13:55:53 +02:00
WarmUpTill
115a90196c
fix deadlock when rapidly switching scenes
2020-04-12 21:26:45 +02:00
WarmUpTill
5e92a7bcdf
use std::shuffle instead of std::random_shuffle
2020-04-12 21:25:11 +02:00
WarmUpTill
922cf95119
support both in- and out-of-tree builds
2020-04-12 21:23:30 +02:00
WarmUpTill
05540b61a1
add separate hotkey (fix for out of tree builds)
2020-02-16 20:47:55 +01:00
WarmUpTill
218ad13160
add separate hotkeys for start and stop
2020-02-16 20:35:12 +01:00
Cephas Reis
7665bf8872
Platform-specific commits. Basically fixes for the directories.
2019-02-09 01:35:46 -06:00
c3r1c3
14d78100c1
Most files: Move files into subdirectories
...
Almost all the files have been moved into folders and subfolders to keep everything organized and clean.
2019-02-09 01:35:46 -06:00