pax_global_header 0000666 0000000 0000000 00000000064 14202503064 0014506 g ustar 00root root 0000000 0000000 52 comment=f28bcaf95b448473efbc78c9c2d0b1358b334f15
obs-scene-notes-dock-0.0.4/ 0000775 0000000 0000000 00000000000 14202503064 0015431 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/.github/ 0000775 0000000 0000000 00000000000 14202503064 0016771 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/.github/FUNDING.yml 0000664 0000000 0000000 00000000111 14202503064 0020577 0 ustar 00root root 0000000 0000000 github: exeldro
custom: "https://www.paypal.me/exeldro"
patreon: Exeldro
obs-scene-notes-dock-0.0.4/.github/workflows/ 0000775 0000000 0000000 00000000000 14202503064 0021026 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/.github/workflows/build.yml 0000664 0000000 0000000 00000034236 14202503064 0022660 0 ustar 00root root 0000000 0000000 name: build obs plugin
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
PLUGIN_NAME: scene-notes-dock
OBS_VERSION: 27.0.1
jobs:
macos64:
name: "macOS 64-bit"
runs-on: [macos-latest]
env:
QT_VERSION: '5.15.2'
MACOS_DEPS_VERSION: '2021-02-28'
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
repository: obsproject/obs-studio
ref: ${{ env.OBS_VERSION }}
submodules: 'recursive'
- name: "Checkout plugin"
uses: actions/checkout@v2.3.3
with:
path: UI/frontend-plugins/${{ env.PLUGIN_NAME }}
- name: Fetch Git Tags
run: |
cd UI/frontend-plugins/${{ env.PLUGIN_NAME }}
git fetch --prune --tags --unshallow
- name: 'Install prerequisites (Homebrew)'
shell: bash
run: |
if [ -d /usr/local/opt/openssl@1.0.2t ]; then
brew uninstall openssl@1.0.2t
brew untap local/openssl
fi
if [ -d /usr/local/opt/python@2.7.17 ]; then
brew uninstall python@2.7.17
brew untap local/python2
fi
if [ -d /usr/local/opt/speexdsp ]; then
brew unlink speexdsp
fi
brew uninstall curl php composer
brew bundle --file ./CI/scripts/macos/Brewfile
echo "NPROC=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
- name: 'Install prerequisite: Pre-built dependencies'
if: steps.deps-cache.outputs.cache-hit != 'true'
shell: bash
run: |
curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-deps-${{ env.MACOS_DEPS_VERSION }}.tar.gz
tar -xf ./macos-deps-${{ env.MACOS_DEPS_VERSION }}.tar.gz -C "/tmp"
- name: 'Install prerequisite: Pre-built dependency Qt'
if: steps.deps-qt-cache.outputs.cache-hit != 'true'
shell: bash
run: |
curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-qt-${{ env.QT_VERSION }}-${{ env.MACOS_DEPS_VERSION }}.tar.gz
tar -xf ./macos-qt-${{ env.QT_VERSION }}-${{ env.MACOS_DEPS_VERSION }}.tar.gz -C "/tmp"
xattr -r -d com.apple.quarantine /tmp/obsdeps
- name: Configure
shell: bash
run: |
echo "add_subdirectory(${{ env.PLUGIN_NAME }})" >> UI/frontend-plugins/CMakeLists.txt
mkdir ./build
cd ./build
cmake -DDISABLE_PYTHON=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 -DQTDIR="/tmp/obsdeps" -DSWIGDIR="/tmp/obsdeps" -DDepsPath="/tmp/obsdeps" -DBUILD_BROWSER=OFF -DENABLE_PIPEWIRE=OFF -DBUILD_VST=OFF -DBUILD_VIRTUALCAM=OFF -DENABLE_SCRIPTING=OFF ..
cd -
- name: Build
shell: bash
run: |
set -e
cd ./build
make -j4
cd -
- name: Relink to Qt that ships with OBS
if: success()
shell: bash
run: |
cd ./build/UI/frontend-plugins/${{ env.PLUGIN_NAME }}
install_name_tool -change /tmp/obsdeps/lib/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore ${{ env.PLUGIN_NAME }}.so
install_name_tool -change /tmp/obsdeps/lib/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui ${{ env.PLUGIN_NAME }}.so
install_name_tool -change /tmp/obsdeps/lib/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets ${{ env.PLUGIN_NAME }}.so
- name: 'Install prerequisite: Packages app'
if: success()
shell: bash
run: |
curl -L -O http://s.sudre.free.fr/Software/files/Packages.dmg
sudo hdiutil attach ./Packages.dmg
sudo installer -pkg /Volumes/Packages\ 1.2.10/Install\ Packages.pkg -target /
- name: Package
if: success()
shell: bash
run: |
cd UI/frontend-plugins/${{ env.PLUGIN_NAME }}
FILE_DATE=$(date +%Y-%m-%d)
FILE_NAME=${{ env.PLUGIN_NAME }}-$FILE_DATE-${{ github.sha }}-macos.pkg
echo "FILE_NAME=${FILE_NAME}" >> $GITHUB_ENV
packagesbuild ./CI/macos/${{ env.PLUGIN_NAME }}.pkgproj
cd -
mkdir ./nightly
mv UI/frontend-plugins/${{ env.PLUGIN_NAME }}/${{ env.PLUGIN_NAME }}.pkg ./nightly/${FILE_NAME}
- name: Publish
if: success()
uses: actions/upload-artifact@v2.2.0
with:
name: '${{ env.FILE_NAME }}'
path: ./nightly/*.pkg
ubuntu64:
name: 'Linux/Ubuntu 64-bit'
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
repository: obsproject/obs-studio
ref: ${{ env.OBS_VERSION }}
submodules: 'recursive'
- name: "Checkout plugin"
uses: actions/checkout@v2.3.3
with:
path: UI/frontend-plugins/${{ env.PLUGIN_NAME }}
- name: Add plugin to obs cmake
shell: bash
run: echo "add_subdirectory(${{ env.PLUGIN_NAME }})" >> UI/frontend-plugins/CMakeLists.txt
- name: Fetch Git Tags
run: git fetch --prune --tags --unshallow
- name: Install prerequisites (Apt)
shell: bash
run: |
sudo dpkg --add-architecture amd64
sudo apt-get -qq update
sudo apt-get install -y \
build-essential \
checkinstall \
cmake \
libasound2-dev \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libcurl4-openssl-dev \
libfdk-aac-dev \
libfontconfig-dev \
libfreetype6-dev \
libgl1-mesa-dev \
libjack-jackd2-dev \
libjansson-dev \
libluajit-5.1-dev \
libpulse-dev \
libqt5x11extras5-dev \
libsndio-dev \
libspeexdsp-dev \
libswresample-dev \
libswscale-dev \
libudev-dev \
libv4l-dev \
libva-dev \
libvlc-dev \
libx11-dev \
libx11-xcb-dev \
libx264-dev \
libxcb-randr0-dev \
libxcb-shm0-dev \
libxcb-xfixes0-dev \
libxcb-xinerama0-dev \
libxcomposite-dev \
libxinerama-dev \
libmbedtls-dev \
pkg-config \
python3-dev \
qtbase5-dev \
qtbase5-private-dev \
libqt5svg5-dev \
swig \
linux-generic
- name: 'Configure'
shell: bash
run: |
mkdir ./build
cd ./build
cmake -DUNIX_STRUCTURE=0 -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/obs-studio-portable" -DBUILD_CAPTIONS=OFF -DWITH_RTMPS=OFF -DBUILD_BROWSER=OFF -DBUILD_VIRTUALCAM=OFF -DBUILD_VST=OFF -DENABLE_PIPEWIRE=OFF -DENABLE_SCRIPTING=OFF ..
- name: 'Build'
shell: bash
working-directory: ${{ github.workspace }}/build
run: make -j4
- name: 'Package'
shell: bash
run: |
FILE_DATE=$(date +%Y-%m-%d)
FILE_NAME=${{ env.PLUGIN_NAME }}-$FILE_DATE-${{ github.sha }}-linux64.tar.gz
echo "FILE_NAME=${FILE_NAME}" >> $GITHUB_ENV
mkdir -p ./${{ env.PLUGIN_NAME }}/bin/64bit/
mv ./build/UI/frontend-plugins/${{ env.PLUGIN_NAME }}/${{ env.PLUGIN_NAME }}.so ./${{ env.PLUGIN_NAME }}/bin/64bit/${{ env.PLUGIN_NAME }}.so
mv ./UI/frontend-plugins/${{ env.PLUGIN_NAME }}/data ./${{ env.PLUGIN_NAME }}/data
tar -cvzf "${FILE_NAME}" ${{ env.PLUGIN_NAME }}
- name: 'Publish'
uses: actions/upload-artifact@v2.2.0
with:
name: '${{ env.FILE_NAME }}'
path: '*.tar.gz'
windows:
name: Windows
runs-on: [windows-latest]
env:
QT_VERSION: '5.15.2'
CMAKE_GENERATOR: "Visual Studio 17 2022"
CMAKE_SYSTEM_VERSION: "10.0.18363.657"
WINDOWS_DEPS_VERSION: '2019'
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Checkout obs
uses: actions/checkout@v2.3.3
with:
repository: obsproject/obs-studio
ref: ${{ env.OBS_VERSION }}
submodules: 'recursive'
- name: Checkout plugin
uses: actions/checkout@v2.3.3
with:
path: UI/frontend-plugins/${{ env.PLUGIN_NAME}}
- name: Add plugin to obs cmake
shell: cmd
run: echo add_subdirectory(${{ env.PLUGIN_NAME }}) >> UI/frontend-plugins/CMakeLists.txt
- name: Fetch Git Tags
run: git fetch --prune --tags --unshallow
- name: 'Restore QT dependency from cache'
id: qt-cache
uses: actions/cache@v2.1.2
env:
CACHE_NAME: 'qt-cache'
with:
path: ${{ github.workspace }}/cmbuild/QT
key: ${{ runner.os }}-pr-${{ env.CACHE_NAME }}-${{ env.QT_VERSION }}
- name: 'Restore pre-built dependencies from cache'
id: deps-cache
uses: actions/cache@v2.1.2
env:
CACHE_NAME: 'deps-cache'
with:
path: ${{ github.workspace }}/cmbuild/deps
key: ${{ runner.os }}-pr-${{ env.CACHE_NAME }}-${{ env.WINDOWS_DEPS_VERSION }}
- name: 'Install prerequisite: QT'
if: steps.qt-cache.outputs.cache-hit != 'true'
run: |
curl -kLO https://cdn-fastly.obsproject.com/downloads/Qt_${{ env.QT_VERSION }}.7z -f --retry 5 -C -
7z x Qt_${{ env.QT_VERSION }}.7z -o"${{ github.workspace }}/cmbuild/QT"
- name: 'Install prerequisite: Pre-built dependencies'
if: steps.deps-cache.outputs.cache-hit != 'true'
run: |
curl -kLO https://cdn-fastly.obsproject.com/downloads/dependencies${{ env.WINDOWS_DEPS_VERSION }}.zip -f --retry 5 -C -
7z x dependencies${{ env.WINDOWS_DEPS_VERSION }}.zip -o"${{ github.workspace }}/cmbuild/deps"
- name: Configure
run: |
mkdir ./package
mkdir ./build32
cd ./build32
cmake -G"${{ env.CMAKE_GENERATOR }}" -A"Win32" -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DBUILD_BROWSER=false -DBUILD_VST=false -DBUILD_VIRTUALCAM=false -DBUILD_CAPTIONS=false -DCOMPILE_D3D12_HOOK=false -DENABLE_SCRIPTING=false -DDepsPath="${{ github.workspace }}/cmbuild/deps/win32" -DQTDIR="${{ github.workspace }}/cmbuild/QT/${{ env.QT_VERSION }}/msvc2019" -DCOPIED_DEPENDENCIES=FALSE -DCOPY_DEPENDENCIES=TRUE ..
cd ..
mkdir ./build64
cd ./build64
cmake -G"${{ env.CMAKE_GENERATOR }}" -A"x64" -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DBUILD_BROWSER=false -DBUILD_VST=false -DBUILD_VIRTUALCAM=false -DBUILD_CAPTIONS=false -DCOMPILE_D3D12_HOOK=false -DENABLE_SCRIPTING=false -DDepsPath="${{ github.workspace }}/cmbuild/deps/win64" -DQTDIR="${{ github.workspace }}/cmbuild/QT/${{ env.QT_VERSION }}/msvc2019_64" -DCOPIED_DEPENDENCIES=FALSE -DCOPY_DEPENDENCIES=TRUE ..
- name: 'Build 32'
run: msbuild /m /p:Configuration=RelWithDebInfo .\build32\obs-studio.sln
- name: 'Build 64'
run: msbuild /m /p:Configuration=RelWithDebInfo .\build64\obs-studio.sln
- name: Package
if: success()
run: |
$env:FILE_DATE=(Get-Date -UFormat "%F")
$env:FILE_NAME="${{ env.PLUGIN_NAME }}-${env:FILE_DATE}-${{ github.sha }}-windows"
echo "FILE_NAME=${env:FILE_NAME}" >> ${env:GITHUB_ENV}
robocopy .\build32\rundir\RelWithDebInfo\obs-plugins\32bit\ .\package\obs-plugins\32bit ${{ env.PLUGIN_NAME }}.* /E /XF .gitignore
robocopy .\build64\rundir\RelWithDebInfo\obs-plugins\64bit\ .\package\obs-plugins\64bit ${{ env.PLUGIN_NAME }}.* /E /XF .gitignore
robocopy .\build64\rundir\RelWithDebInfo\data\obs-plugins\${{ env.PLUGIN_NAME }}\ .\package\data\obs-plugins\${{ env.PLUGIN_NAME }}\ /E /XF .gitignore
exit 0
- name: Create Code Signing Certificate
if: success() && github.event_name != 'pull_request'
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Code Sign 32
if: success() && github.event_name != 'pull_request'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x86/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.CERTIFICATE_PASS }}' /t http://timestamp.comodoca.com/authenticode .\package\obs-plugins\32bit\${{ env.PLUGIN_NAME }}.dll
- name: Code Sign 64
if: success() && github.event_name != 'pull_request'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x64/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.CERTIFICATE_PASS }}' /t http://timestamp.comodoca.com/authenticode .\package\obs-plugins\64bit\${{ env.PLUGIN_NAME }}.dll
- name: Publish zip
if: success()
uses: actions/upload-artifact@v2.2.0
with:
name: '${{ env.FILE_NAME }}'
path: package/*
- name: "Package Installer (Prereqs)"
run: |
curl "-kL" "https://github.com/Xaymar/msvc-redist-helper/releases/download/0.1/msvc-redist-helper-64.exe" "-f" "--retry" "5" "-o" "msvc-redist-helper.exe"
curl "-kL" "https://files.jrsoftware.org/is/6/innosetup-6.0.3.exe" "-f" "--retry" "5" "-o" "inno.exe"
.\inno.exe /VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART
- name: "Package Installer (Compile)"
run: |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build64\UI\frontend-plugins\${{ env.PLUGIN_NAME }}\installer.iss"
- name: Code Sign Installer
if: success() && github.event_name != 'pull_request'
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x64/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.CERTIFICATE_PASS }}' /t http://timestamp.comodoca.com/authenticode .\package\${{ env.PLUGIN_NAME }}-installer.exe
- name: Publish installer
if: success()
uses: actions/upload-artifact@v2.2.0
with:
name: '${{ env.FILE_NAME }}-installer'
path: package/*.exe
obs-scene-notes-dock-0.0.4/CI/ 0000775 0000000 0000000 00000000000 14202503064 0015724 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/CI/macos/ 0000775 0000000 0000000 00000000000 14202503064 0017026 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/CI/macos/scene-notes-dock.pkgproj 0000664 0000000 0000000 00000047314 14202503064 0023576 0 ustar 00root root 0000000 0000000
PROJECT
PACKAGE_FILES
DEFAULT_INSTALL_LOCATION
/
HIERARCHY
CHILDREN
CHILDREN
CHILDREN
CHILDREN
CHILDREN
CHILDREN
CHILDREN
CHILDREN
GID
80
PATH
../../../../../build/UI/frontend-plugins/scene-notes-dock/scene-notes-dock.so
PATH_TYPE
3
PERMISSIONS
493
TYPE
3
UID
0
GID
80
PATH
bin
PATH_TYPE
0
PERMISSIONS
493
TYPE
2
UID
0
CHILDREN
GID
80
PATH
../../data
PATH_TYPE
1
PERMISSIONS
493
TYPE
3
UID
0
GID
80
PATH
scene-notes-dock
PATH_TYPE
0
PERMISSIONS
493
TYPE
2
UID
0
GID
80
PATH
plugins
PATH_TYPE
0
PERMISSIONS
493
TYPE
2
UID
0
GID
80
PATH
obs-studio
PATH_TYPE
0
PERMISSIONS
493
TYPE
2
UID
0
GID
80
PATH
Application Support
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Automator
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Documentation
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Extensions
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Filesystems
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Frameworks
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Input Methods
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Internet Plug-Ins
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
LaunchAgents
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
LaunchDaemons
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
PreferencePanes
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Preferences
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
80
PATH
Printers
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
PrivilegedHelperTools
PATH_TYPE
0
PERMISSIONS
1005
TYPE
1
UID
0
CHILDREN
GID
0
PATH
QuickLook
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
QuickTime
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Screen Savers
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Scripts
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Services
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
0
PATH
Widgets
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
GID
0
PATH
Library
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
CHILDREN
GID
0
PATH
Shared
PATH_TYPE
0
PERMISSIONS
1023
TYPE
1
UID
0
GID
80
PATH
Users
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
CHILDREN
GID
80
PATH
Applications
PATH_TYPE
0
PERMISSIONS
509
TYPE
1
UID
0
GID
0
PATH
/
PATH_TYPE
0
PERMISSIONS
493
TYPE
1
UID
0
PAYLOAD_TYPE
0
PRESERVE_EXTENDED_ATTRIBUTES
SHOW_INVISIBLE
SPLIT_FORKS
TREAT_MISSING_FILES_AS_WARNING
VERSION
5
PACKAGE_SCRIPTS
POSTINSTALL_PATH
PATH_TYPE
0
PREINSTALL_PATH
PATH_TYPE
0
RESOURCES
PACKAGE_SETTINGS
AUTHENTICATION
1
CONCLUSION_ACTION
0
FOLLOW_SYMBOLIC_LINKS
IDENTIFIER
com.exeldro.scene-notes-dock
LOCATION
0
NAME
OVERWRITE_PERMISSIONS
PAYLOAD_SIZE
-1
REFERENCE_PATH
RELOCATABLE
USE_HFS+_COMPRESSION
VERSION
0.0.2
PROJECT_COMMENTS
NOTES
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1M
IDQuMDEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQv
c3RyaWN0LmR0ZCI+CjxodG1sPgo8aGVhZD4KPG1ldGEgaHR0cC1l
cXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7
IGNoYXJzZXQ9VVRGLTgiPgo8bWV0YSBodHRwLWVxdWl2PSJDb250
ZW50LVN0eWxlLVR5cGUiIGNvbnRlbnQ9InRleHQvY3NzIj4KPHRp
dGxlPjwvdGl0bGU+CjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29u
dGVudD0iQ29jb2EgSFRNTCBXcml0ZXIiPgo8bWV0YSBuYW1lPSJD
b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjE0MDQuMTMiPgo8c3R5bGUg
dHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5
Pgo8L2JvZHk+CjwvaHRtbD4K
PROJECT_SETTINGS
BUILD_PATH
PATH
../..
PATH_TYPE
1
EXCLUDED_FILES
PATTERNS_ARRAY
REGULAR_EXPRESSION
STRING
.DS_Store
TYPE
0
PROTECTED
PROXY_NAME
Remove .DS_Store files
PROXY_TOOLTIP
Remove ".DS_Store" files created by the Finder.
STATE
PATTERNS_ARRAY
REGULAR_EXPRESSION
STRING
.pbdevelopment
TYPE
0
PROTECTED
PROXY_NAME
Remove .pbdevelopment files
PROXY_TOOLTIP
Remove ".pbdevelopment" files created by ProjectBuilder or Xcode.
STATE
PATTERNS_ARRAY
REGULAR_EXPRESSION
STRING
CVS
TYPE
1
REGULAR_EXPRESSION
STRING
.cvsignore
TYPE
0
REGULAR_EXPRESSION
STRING
.cvspass
TYPE
0
REGULAR_EXPRESSION
STRING
.svn
TYPE
1
REGULAR_EXPRESSION
STRING
.git
TYPE
1
REGULAR_EXPRESSION
STRING
.gitignore
TYPE
0
PROTECTED
PROXY_NAME
Remove SCM metadata
PROXY_TOOLTIP
Remove helper files and folders used by the CVS, SVN or Git Source Code Management systems.
STATE
PATTERNS_ARRAY
REGULAR_EXPRESSION
STRING
classes.nib
TYPE
0
REGULAR_EXPRESSION
STRING
designable.db
TYPE
0
REGULAR_EXPRESSION
STRING
info.nib
TYPE
0
PROTECTED
PROXY_NAME
Optimize nib files
PROXY_TOOLTIP
Remove "classes.nib", "info.nib" and "designable.nib" files within .nib bundles.
STATE
PATTERNS_ARRAY
REGULAR_EXPRESSION
STRING
Resources Disabled
TYPE
1
PROTECTED
PROXY_NAME
Remove Resources Disabled folders
PROXY_TOOLTIP
Remove "Resources Disabled" folders.
STATE
SEPARATOR
NAME
scene-notes-dock
PAYLOAD_ONLY
TYPE
1
VERSION
2
obs-scene-notes-dock-0.0.4/CMakeLists.txt 0000664 0000000 0000000 00000003667 14202503064 0020205 0 ustar 00root root 0000000 0000000 cmake_minimum_required(VERSION 3.18)
project(scene-notes-dock VERSION 0.0.4)
set(PROJECT_FULL_NAME "Scene Notes Dock")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_SOURCE_DIR}/version.h)
find_package(Qt5Widgets)
set(CMAKE_AUTOMOC ON)
set(scene-notes-dock_HEADERS
scene-notes-dock.hpp
version.h)
set(scene-notes-dock_SOURCES
scene-notes-dock.cpp)
if(WIN32)
get_filename_component(ISS_FILES_DIR "${CMAKE_BINARY_DIR}\\..\\package" ABSOLUTE)
file(TO_NATIVE_PATH "${ISS_FILES_DIR}" ISS_FILES_DIR)
get_filename_component(ISS_PACKAGE_DIR "${CMAKE_PACKAGE_PREFIX}\\.." ABSOLUTE)
file(TO_NATIVE_PATH "${ISS_PACKAGE_DIR}" ISS_PACKAGE_DIR)
get_filename_component(ISS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE)
file(TO_NATIVE_PATH "${ISS_SOURCE_DIR}" ISS_SOURCE_DIR)
configure_file("installer.iss.in"
"${PROJECT_BINARY_DIR}/installer.iss"
)
configure_file(resource.rc.in scene-notes-dock.rc)
list(APPEND scene-notes-dock_SOURCES
scene-notes-dock.rc)
endif()
if(BUILD_OUT_OF_TREE)
find_package(LibObs REQUIRED)
endif()
add_library(scene-notes-dock MODULE
${scene-notes-dock_HEADERS}
${scene-notes-dock_SOURCES})
target_link_libraries(scene-notes-dock
obs-frontend-api
Qt5::Widgets
libobs)
if(BUILD_OUT_OF_TREE)
if(NOT LIB_OUT_DIR)
set(LIB_OUT_DIR "/lib/obs-plugins")
endif()
if(NOT DATA_OUT_DIR)
set(DATA_OUT_DIR "/share/obs/obs-plugins/scene-notes-dock")
endif()
set_target_properties(scene-notes-dock PROPERTIES PREFIX "")
install(TARGETS scene-notes-dock
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIB_OUT_DIR})
install(DIRECTORY data/locale
DESTINATION ${CMAKE_INSTALL_PREFIX}/${DATA_OUT_DIR})
else()
target_include_directories(scene-notes-dock PRIVATE
"${CMAKE_SOURCE_DIR}/UI/obs-frontend-api")
set_target_properties(scene-notes-dock PROPERTIES FOLDER "plugins/exeldro")
install_obs_plugin_with_data(scene-notes-dock data)
endif()
obs-scene-notes-dock-0.0.4/LICENSE 0000664 0000000 0000000 00000043254 14202503064 0016446 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
obs-scene-notes-dock-0.0.4/README.md 0000664 0000000 0000000 00000001015 14202503064 0016705 0 ustar 00root root 0000000 0000000 # Scene Notes Dock plugin for OBS Studio
Plugin for OBS Studio to add a scene notes dock.
# Download
https://obsproject.com/forum/resources/scene-notes-dock.1398/
# Build
- Build OBS Studio: https://obsproject.com/wiki/Install-Instructions
- Check out this repository to UI/frontend-plugins/scene-notes-dock
- Add `add_subdirectory(scene-notes-dock)` to UI/frontend-plugins/CMakeLists.txt
- Rebuild OBS Studio
# Donations
https://www.paypal.me/exeldro
Thanks to the contributions of [EF Education First](https://ef.com)
obs-scene-notes-dock-0.0.4/data/ 0000775 0000000 0000000 00000000000 14202503064 0016342 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/data/locale/ 0000775 0000000 0000000 00000000000 14202503064 0017601 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/data/locale/en-US.ini 0000664 0000000 0000000 00000000743 14202503064 0021235 0 ustar 00root root 0000000 0000000 SceneNotesDock="Scene Notes Dock"
SceneNotes="Scene Notes"
Font="Font"
TextColor="Text Color"
BackgroundColor="Background Color"
ClearFormat="Clear Format"
ShowPreview="Show Preview"
Disc="Disc"
Circle="Circle"
Square="Square"
Decimal="Decimal"
LowerAlpha="Lower Alpha"
UpperAlpha="Upper Alpha"
LowerRoman="Lower Roman"
UpperRoman="Upper Roman"
IncreaseIndent="Increase Indent"
DecreaseIndent="Decrease Indent"
SceneNotesDockInsertTime="Scene Notes Dock Insert Time"
Locked="Locked"
obs-scene-notes-dock-0.0.4/data/locale/pt-BR.ini 0000664 0000000 0000000 00000001064 14202503064 0021227 0 ustar 00root root 0000000 0000000 SceneNotesDock="Dock de Notas de Cenas"
SceneNotes="Notas de Cenas"
Font="Fonte"
TextColor="Cor do Texto"
BackgroundColor="Cor de Fundo"
ClearFormat="Limpar Formatação"
ShowPreview="Mostrar Previsão"
Disc="Bolinha Cheia"
Circle="Bolinha Vazia"
Square="Quadradinho"
Decimal="Decimal"
LowerAlpha="Letra Minúscula"
UpperAlpha="Letra Maiúscula"
LowerRoman="Algarismo Romano Minúsculo"
UpperRoman="Algarismo Romano Maiúsculo"
IncreaseIndent="Aumentar Indentação"
DecreaseIndent="Diminuir Indentação"
SceneNotesDockInsertTime="Scene Notes Dock Inserir Tempo"
obs-scene-notes-dock-0.0.4/installer.iss.in 0000664 0000000 0000000 00000007723 14202503064 0020564 0 ustar 00root root 0000000 0000000 ; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "@PROJECT_FULL_NAME@"
#define MyAppVersion "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@"
#define MyAppPublisher "Exeldro"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
; app Information
AppId={{B1516539-0794-4124-97EE-FBB51FFD7E09}}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppMutex={#MyAppName}
VersionInfoVersion={#MyAppVersion}
VersionInfoCompany={#MyAppPublisher}
VersionInfoDescription={#MyAppName} Setup
; Compression
Compression=lzma2/ultra64
SolidCompression=yes
LZMAAlgorithm=1
; Other Information
DefaultDirName={code:GetDirName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputDir="@ISS_FILES_DIR@"
OutputBaseFilename=@PROJECT_NAME@-installer
DirExistsWarning=no
; Wizard Information
WizardStyle=modern
WizardResizable=yes
SetupIconFile="@PROJECT_SOURCE_DIR@/media/icon.ico"
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "@ISS_FILES_DIR@/*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "@ISS_PACKAGE_DIR@/msvc-redist-helper.exe"; DestDir: "{app}"; DestName: "msvc-redist-helper.exe"; Flags: ignoreversion dontcopy noencryption
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
[Code]
function GetDirName(Value: string): string;
var
InstallPath: string;
begin
// initialize default path, which will be returned when the following registry
// key queries fail due to missing keys or for some different reason
Result := ExpandConstant('{pf}\obs-studio');
// query the first registry value; if this succeeds, return the obtained value
if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then
Result := InstallPath
end;
/////////////////////////////////////////////////////////////////////
function GetUninstallString(): String;
var
sUnInstPath: String;
sUnInstallString: String;
begin
sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\{#emit SetupSetting("AppId")}_is1');
sUnInstallString := '';
if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then
RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString);
Result := sUnInstallString;
end;
/////////////////////////////////////////////////////////////////////
function IsUpgrade(): Boolean;
begin
Result := (GetUninstallString() <> '');
end;
/////////////////////////////////////////////////////////////////////
function UnInstallOldVersion(): Integer;
var
sUnInstallString: String;
iResultCode: Integer;
begin
// Return Values:
// 1 - uninstall string is empty
// 2 - error executing the UnInstallString
// 3 - successfully executed the UnInstallString
// default return value
Result := 0;
// get the uninstall string of the old app
sUnInstallString := GetUninstallString();
if sUnInstallString <> '' then begin
sUnInstallString := RemoveQuotes(sUnInstallString);
if Exec(sUnInstallString, '/VERYSILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then
Result := 3
else
Result := 2;
end else
Result := 1;
end;
/////////////////////////////////////////////////////////////////////
procedure CurStepChanged(CurStep: TSetupStep);
var
ResultCode: Integer;
begin
if (CurStep=ssInstall) then
begin
if (IsUpgrade()) then
begin
UnInstallOldVersion();
end;
end;
if (CurStep=ssPostInstall) then
begin
ExtractTemporaryFile('msvc-redist-helper.exe');
Exec(ExpandConstant('{tmp}\msvc-redist-helper.exe'), '2019', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
end;
obs-scene-notes-dock-0.0.4/media/ 0000775 0000000 0000000 00000000000 14202503064 0016510 5 ustar 00root root 0000000 0000000 obs-scene-notes-dock-0.0.4/media/icon.ico 0000664 0000000 0000000 00000073426 14202503064 0020150 0 ustar 00root root 0000000 0000000 h V F 00 % 2 D ( yyy???@@@@@@@@@@@@@@@@@@@@@???=== ( 0 ~~~{{{ooolll ( @ 333]]]aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaVVV888yyyvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvpppoooooooooooooooooooooooooooooooooooooooooooooooorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrsss~~~tttQQQ:::zzz ZZZKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKlll ( 0 ` $ FFF {{{
SSS...AAACCCKKKQQQJJJ}}}777777777777777777777777777777777777777777777777777777777777777777777777777:::QQQJJJQQQJJJQQQJJJ==================TTTQQQJJJQQQJJJQQQJJJssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssQQQJJJzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzQQQJJJQQQJJJQQQJJJ______________________________________________________________________________QQQJJJQQQJJJQQQJJJ~~~777777777777777777777777777777777777777777777777777777777777777777777QQQKKKQQQ///:::@@@yyy{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{rrr,,, --- GGGlllgggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg{{{ ( ( ? x 0 0 0 x obs-scene-notes-dock-0.0.4/media/logo.png 0000664 0000000 0000000 00000002103 14202503064 0020152 0 ustar 00root root 0000000 0000000 PNG
IHDR UPI sRGB gAMA a pHYs + IDATx^[N[1@QϙFZ
䱏)Brcǵp^L|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|Dׯ8N_uQ{e9:qoƘ|leRy|f"v.u8n&.5 om{Do:[n~p!>" ">" ">>ǿʞ>;]_Qڳ섈 T|Z<՞|lX0,;!">" ">" Wq'\$<>섈 T|̵p-p.AD|DAD|DC/rѸ/)MYϲ"M3>[\" ">" ">av˕#?sN"K7acRl ">"8Gq9<.F|V&%Nk/Za쌟DW+VÙ( )hf>2~D|ȽMcV&v3DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|DAD|D}Y^ IENDB` obs-scene-notes-dock-0.0.4/resource.rc.in 0000664 0000000 0000000 00000001653 14202503064 0020220 0 ustar 00root root 0000000 0000000 1 VERSIONINFO
FILEVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0
PRODUCTVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH},0
FILEFLAGSMASK 0x0L
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x0L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Exeldro"
VALUE "FileDescription", "${PROJECT_FULL_NAME}"
VALUE "FileVersion", "${PROJECT_VERSION}"
VALUE "InternalName", "${PROJECT_NAME}"
VALUE "LegalCopyright", "(C) Exeldro"
VALUE "OriginalFilename", "${PROJECT_NAME}"
VALUE "ProductName", "${PROJECT_FULL_NAME}"
VALUE "ProductVersion", "${PROJECT_VERSION}"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
obs-scene-notes-dock-0.0.4/scene-notes-dock.cpp 0000664 0000000 0000000 00000024235 14202503064 0021304 0 ustar 00root root 0000000 0000000 #include "scene-notes-dock.hpp"
#include
#include
#include
#include
#include
#include
#include
#include
#include "version.h"
#include "util/config-file.h"
OBS_DECLARE_MODULE()
OBS_MODULE_AUTHOR("Exeldro");
OBS_MODULE_USE_DEFAULT_LOCALE("scene-notes-dock", "en-US")
bool obs_module_load()
{
blog(LOG_INFO, "[Scene Notes Dock] loaded version %s", PROJECT_VERSION);
const auto main_window =
static_cast(obs_frontend_get_main_window());
obs_frontend_push_ui_translation(obs_module_get_string);
obs_frontend_add_dock(new SceneNotesDock(main_window));
obs_frontend_pop_ui_translation();
return true;
}
void obs_module_unload() {}
MODULE_EXPORT const char *obs_module_description(void)
{
return obs_module_text("Description");
}
MODULE_EXPORT const char *obs_module_name(void)
{
return obs_module_text("SceneNotesDock");
}
#define QT_UTF8(str) QString::fromUtf8(str)
#define QT_TO_UTF8(str) str.toUtf8().constData()
static void frontend_event(enum obs_frontend_event event, void *data)
{
if (event == OBS_FRONTEND_EVENT_SCENE_CHANGED ||
event == OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED ||
event == OBS_FRONTEND_EVENT_STUDIO_MODE_DISABLED ||
event == OBS_FRONTEND_EVENT_STUDIO_MODE_ENABLED) {
auto *dock = static_cast(data);
dock->LoadNotes();
}
}
void frontend_save(obs_data_t *save_data, bool saving, void *data)
{
auto *dock = static_cast(data);
if (saving) {
obs_data_array_t *hotkey_save_array =
obs_hotkey_save(dock->insertTime);
obs_data_set_array(save_data, "sceneNotesDockInsertTimeHotkey",
hotkey_save_array);
obs_data_array_release(hotkey_save_array);
} else {
obs_data_array_t *hotkey_save_array = obs_data_get_array(
save_data, "sceneNotesDockInsertTimeHotkey");
obs_hotkey_load(dock->insertTime, hotkey_save_array);
obs_data_array_release(hotkey_save_array);
}
}
static void InsertTimePressed(void *data, obs_hotkey_id id,
obs_hotkey_t *hotkey, bool pressed)
{
if (!pressed)
return;
auto dock = static_cast(data);
QMetaObject::invokeMethod(dock, "InsertTime");
}
SceneNotesDock::SceneNotesDock(QWidget *parent)
: QDockWidget(parent),
textEdit(new QTextEdit(this)),
insertTime(obs_hotkey_register_frontend(
"SceneNotesDockInsertTime",
obs_module_text("SceneNotesDockInsertTime"),
InsertTimePressed, this)),
show_preview(config_get_bool(obs_frontend_get_global_config(),
"SceneNotesDock", "ShowPreview"))
{
setFeatures(DockWidgetMovable | DockWidgetFloatable);
setWindowTitle(QT_UTF8(obs_module_text("SceneNotes")));
setObjectName("SceneNotesDock");
setFloating(true);
hide();
auto *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(textEdit);
auto *dockWidgetContents = new QWidget;
dockWidgetContents->setLayout(mainLayout);
setWidget(dockWidgetContents);
auto changeText = [this]() {
obs_source_t *scene =
show_preview && obs_frontend_preview_program_mode_active()
? obs_frontend_get_current_preview_scene()
: obs_frontend_get_current_scene();
if (!scene)
return;
if (auto *settings = obs_source_get_settings(scene)) {
const auto old_notes =
QT_UTF8(obs_data_get_string(settings, "notes"));
const auto new_notes = textEdit->toHtml();
if (old_notes != new_notes) {
obs_data_set_string(settings, "notes",
QT_TO_UTF8(new_notes));
}
obs_data_release(settings);
}
obs_source_release(scene);
};
connect(textEdit, &QTextEdit::textChanged, changeText);
textEdit->setContextMenuPolicy(Qt::CustomContextMenu);
auto contextMenu = [this]() {
auto *menu = textEdit->createStandardContextMenu();
if (!textEdit->isReadOnly()) {
menu->addSeparator();
auto setFont = [this]() {
bool success = false;
const auto font = QFontDialog::getFont(
&success, textEdit->currentFont(), this,
QT_UTF8(obs_module_text("Font")));
if (success)
textEdit->setCurrentFont(font);
};
menu->addAction(QT_UTF8(obs_module_text("Font")), this,
setFont);
auto setFontColor = [this]() {
const QColor newColor = QColorDialog::getColor(
textEdit->textColor(), this,
QT_UTF8(obs_module_text("TextColor")));
if (newColor.isValid()) {
textEdit->setTextColor(newColor);
}
};
menu->addAction(QT_UTF8(obs_module_text("TextColor")),
this, setFontColor);
auto setBackgroundColor = [this]() {
const QColor newColor = QColorDialog::getColor(
textEdit->textBackgroundColor(), this,
QT_UTF8(obs_module_text(
"BackGroundColor")));
if (newColor.isValid()) {
textEdit->setTextBackgroundColor(
newColor);
}
};
menu->addAction(
QT_UTF8(obs_module_text("BackgroundColor")),
this, setBackgroundColor);
auto listMenu =
menu->addMenu(QT_UTF8(obs_module_text("List")));
std::vector<
std::pair>
types{
{QTextListFormat::ListDisc, "Disc"},
{QTextListFormat::ListCircle, "Circle"},
{QTextListFormat::ListSquare, "Square"},
{QTextListFormat::ListDecimal,
"Decimal"},
{QTextListFormat::ListLowerAlpha,
"LowerAlpha"},
{QTextListFormat::ListUpperAlpha,
"UpperAlpha"},
{QTextListFormat::ListLowerRoman,
"LowerRoman"},
{QTextListFormat::ListUpperRoman,
"UpperRoman"},
};
for (const auto &it : types) {
auto t = it.first;
auto setListType = [this, t]() {
auto cursor = textEdit->textCursor();
auto cl = cursor.currentList();
if (!cl) {
cursor.createList(t);
} else {
auto f = cl->format();
f.setStyle(t);
cl->setFormat(f);
}
};
auto a = listMenu->addAction(
QT_UTF8(obs_module_text(it.second)),
this, setListType);
a->setCheckable(true);
auto cursor = textEdit->textCursor();
auto cl = cursor.currentList();
if (cl && cl->format().style() == it.first) {
a->setChecked(true);
}
}
listMenu->addSeparator();
auto setListIncr = [this]() {
auto cursor = textEdit->textCursor();
QTextBlockFormat blockFormat =
cursor.block().blockFormat();
blockFormat.setIndent(blockFormat.indent() + 1);
cursor.beginEditBlock();
cursor.setBlockFormat(blockFormat);
auto cl = cursor.currentList();
if (cl) {
cursor.createList(cl->format().style());
}
cursor.endEditBlock();
};
listMenu->addAction(
QT_UTF8(obs_module_text("IncreaseIndent")),
this, setListIncr);
auto setListDecr = [this]() {
auto cursor = textEdit->textCursor();
auto block = cursor.block();
QTextBlockFormat blockFormat =
block.blockFormat();
auto i = blockFormat.indent();
if (i <= 0) {
auto cl = block.textList();
if (cl) {
cursor.beginEditBlock();
const auto count = cl->count();
for (int i = 0; i < count; i++)
cl->removeItem(0);
cursor.endEditBlock();
}
return;
}
cursor.beginEditBlock();
blockFormat.setIndent(i - 1);
cursor.setBlockFormat(blockFormat);
block = cursor.block();
if (auto cl = block.textList()) {
auto p = block.previous();
auto ptll = p.textList();
if (ptll && p.blockFormat().indent() ==
block.blockFormat()
.indent()) {
auto count = cl->count();
for (int i = 0; i < count;
i++) {
auto item = cl->item(0);
if (ptll) {
ptll->add(item);
} else {
cl->remove(
item);
}
}
}
}
cursor.endEditBlock();
};
listMenu->addAction(
QT_UTF8(obs_module_text("DecreaseIndent")),
this, setListDecr);
menu->addSeparator();
auto clearFormat = [this]() {
const auto text = textEdit->toPlainText();
textEdit->setTextColor(textEdit->palette().color(
QPalette::ColorRole::Foreground));
textEdit->setTextBackgroundColor(
textEdit->palette().color(
QPalette::ColorRole::Background));
textEdit->setCurrentFont(textEdit->font());
textEdit->setPlainText(text);
};
menu->addAction(QT_UTF8(obs_module_text("ClearFormat")),
this, clearFormat);
}
menu->addSeparator();
auto a = menu->addAction(
QT_UTF8(obs_module_text("ShowPreview")), this, [this] {
show_preview = !show_preview;
config_set_bool(
obs_frontend_get_global_config(),
"SceneNotesDock", "ShowPreview",
show_preview);
LoadNotes();
});
a->setCheckable(true);
a->setChecked(show_preview);
a->setEnabled(obs_frontend_preview_program_mode_active());
a = menu->addAction(QT_UTF8(obs_module_text("Locked")), this, [this] {
textEdit->setReadOnly(!textEdit->isReadOnly());
obs_source_t *scene =
show_preview && obs_frontend_preview_program_mode_active()
? obs_frontend_get_current_preview_scene()
: obs_frontend_get_current_scene();
if (!scene)
return;
if (auto *settings = obs_source_get_settings(scene)) {
obs_data_set_bool(settings, "notes_locked",
textEdit->isReadOnly());
obs_data_release(settings);
}
obs_source_release(scene);
});
a->setCheckable(true);
a->setChecked(textEdit->isReadOnly());
menu->exec(QCursor::pos());
};
connect(textEdit, &QTextEdit::customContextMenuRequested, contextMenu);
obs_frontend_add_event_callback(frontend_event, this);
obs_frontend_add_save_callback(frontend_save, this);
}
SceneNotesDock::~SceneNotesDock()
{
obs_hotkey_unregister(insertTime);
obs_frontend_remove_save_callback(frontend_save, this);
obs_frontend_remove_event_callback(frontend_event, this);
}
void SceneNotesDock::LoadNotes()
{
obs_source_t *scene =
show_preview && obs_frontend_preview_program_mode_active()
? obs_frontend_get_current_preview_scene()
: obs_frontend_get_current_scene();
if (!scene)
return;
if (auto *settings = obs_source_get_settings(scene)) {
textEdit->setHtml(
QT_UTF8(obs_data_get_string(settings, "notes")));
textEdit->setReadOnly(
obs_data_get_bool(settings, "notes_locked"));
obs_data_release(settings);
}
obs_source_release(scene);
}
void SceneNotesDock::InsertTime()
{
time_t rawtime;
struct tm *timeinfo;
char buffer[80];
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%X ", timeinfo);
textEdit->insertPlainText(QT_UTF8(buffer));
}
obs-scene-notes-dock-0.0.4/scene-notes-dock.hpp 0000664 0000000 0000000 00000000602 14202503064 0021301 0 ustar 00root root 0000000 0000000 #pragma once
#include "obs.h"
#include
#include
#include
#include "obs.hpp"
class SceneNotesDock : public QDockWidget {
Q_OBJECT
private:
bool show_preview;
QTextEdit *textEdit;
private slots:
void InsertTime();
public:
SceneNotesDock(QWidget *parent = nullptr);
~SceneNotesDock();
void LoadNotes();
obs_hotkey_id insertTime;
};
obs-scene-notes-dock-0.0.4/version.h.in 0000664 0000000 0000000 00000000337 14202503064 0017677 0 ustar 00root root 0000000 0000000 #pragma once
#define PROJECT_VERSION "${PROJECT_VERSION}"
#define PROJECT_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}
#define PROJECT_VERSION_MINOR ${PROJECT_VERSION_MINOR}
#define PROJECT_VERSION_PATCH ${PROJECT_VERSION_PATCH}