Merge branch 'master' into feature/recording-stage-one

This commit is contained in:
Hyunjin Song
2023-07-02 12:35:45 +09:00
457 changed files with 3389 additions and 2473 deletions

View File

@@ -2,17 +2,22 @@
Checks: >
bugprone-macro-parentheses,
bugprone-macro-repeated-side-effects,
modernize-avoid-c-arrays,
modernize-loop-convert,
modernize-redundant-void-arg,
modernize-use-auto,
modernize-use-bool-literals,
modernize-use-emplace,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-override,
modernize-use-using,
performance-trivially-destructible,
readability-braces-around-statements,
readability-const-return-type,
readability-identifier-naming,
readability-misleading-indentation,
readability-simplify-boolean-expr,
readability-braces-around-statements
readability-simplify-boolean-expr
WarningsAsErrors: ''
HeaderFilterRegex: '' # don't show errors from headers
AnalyzeTemporaryDtors: false

View File

@@ -225,8 +225,8 @@ jobs:
--triplet=${{ matrix.arch }}-windows `
--host-triplet=${{ matrix.arch }}-windows `
--recurse `
fftw3 fluidsynth[sndfile] libsamplerate libsndfile libstk lilv lv2 `
portaudio sdl2
fftw3 fltk fluidsynth[sndfile] libsamplerate libsndfile libstk `
lilv lv2 portaudio sdl2
- name: Set up build environment
uses: ilammy/msvc-dev-cmd@d8610e2b41c6d0f0c3b4c46dad8df0fd826c68e1
with:

View File

@@ -21,7 +21,7 @@ jobs:
run: tests/scripted/check-namespace
shellcheck:
runs-on: ubuntu-latest
container: koalaman/shellcheck-alpine:v0.4.6
container: koalaman/shellcheck-alpine:v0.9.0
steps:
- name: Check out
uses: actions/checkout@v3

3
.gitmodules vendored
View File

@@ -49,3 +49,6 @@
[submodule "plugins/LadspaEffect/cmt/cmt"]
path = plugins/LadspaEffect/cmt/cmt
url = https://github.com/lmms/cmt
[submodule "src/3rdparty/hiir/hiir"]
path = src/3rdparty/hiir/hiir
url = https://github.com/LostRobotMusic/hiir

View File

@@ -1,4 +1,4 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.8)
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
PROJECT(lmms)
@@ -486,6 +486,13 @@ ENDIF(WANT_JACK)
FIND_PACKAGE(FFTW COMPONENTS fftw3f REQUIRED)
# check for FLTK
set(FLTK_SKIP_OPENGL TRUE)
set(FLTK_SKIP_FORMS TRUE)
set(FLTK_SKIP_IMAGES TRUE)
set(FLTK_SKIP_MATH TRUE)
if(MINGW_PREFIX)
set(FLTK_SKIP_FLUID TRUE)
endif()
FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
SET(STATUS_ZYN "OK")
@@ -495,7 +502,7 @@ ENDIF()
# check for Fluidsynth
IF(WANT_SF2)
find_package(FluidSynth 1.0.7)
find_package(FluidSynth 1.1.0)
if(FluidSynth_FOUND)
SET(LMMS_HAVE_FLUIDSYNTH TRUE)
SET(STATUS_FLUIDSYNTH "OK")

View File

@@ -6,8 +6,6 @@
[![Join the chat at Discord](https://img.shields.io/badge/chat-on%20discord-7289DA.svg)](https://discord.gg/3sc5su7)
[![Localise on transifex](https://img.shields.io/badge/localise-on_transifex-green.svg)](https://www.transifex.com/lmms/lmms/)
**New PRs may be affected by ongoing reorganization ([#5592](https://github.com/LMMS/lmms/issues/5592)). Please be prepared to rebase your PR as necessary.**
What is LMMS?
--------------

View File

@@ -6,9 +6,6 @@
set -e
# STK rawwaves directory
STK_RAWWAVE=$(brew --prefix stk)/share/stk/rawwaves
# Place to create ".app" bundle
APP="@CMAKE_BINARY_DIR@/@PROJECT_NAME_UCASE@.app"
@@ -29,11 +26,9 @@ command cp "@CMAKE_BINARY_DIR@/Info.plist" "@CMAKE_INSTALL_PREFIX@/"
mkdir -p "$APP/Contents/MacOS"
mkdir -p "$APP/Contents/Frameworks"
mkdir -p "$APP/Contents/Resources"
mkdir -p "$APP/Contents/share/stk/rawwaves"
cd "@CMAKE_INSTALL_PREFIX@"
cp -R ./* "$APP/Contents"
cp "@CMAKE_SOURCE_DIR@/cmake/apple/"*.icns "$APP/Contents/Resources/"
cp "$STK_RAWWAVE"/*.raw "$APP/Contents/share/stk/rawwaves" > /dev/null 2>&1
# Make all libraries writable for macdeployqt
cd "$APP"

View File

@@ -36,6 +36,16 @@ IF(LMMS_BUILD_WIN32 OR LMMS_INSTALL_DEPENDENCIES)
)
ENDIF()
# Install STK rawwaves
if(LMMS_HAVE_STK AND (LMMS_BUILD_WIN32 OR LMMS_BUILD_APPLE))
if(STK_RAWWAVE_ROOT)
file(GLOB RAWWAVES "${STK_RAWWAVE_ROOT}/*.raw")
install(FILES ${RAWWAVES} DESTINATION "${DATA_DIR}/stk/rawwaves")
else()
message(WARNING "Can't find STK rawwave root!")
endif()
endif()
IF(LMMS_BUILD_APPLE)
INSTALL(CODE "EXECUTE_PROCESS(COMMAND chmod u+x ${CMAKE_BINARY_DIR}/install_apple.sh)")
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_BINARY_DIR}/install_apple.sh)")

View File

@@ -149,6 +149,7 @@ fi
# Patch the desktop file
sed -i 's/.*Exec=.*/Exec=lmms.real/' "$DESKTOPFILE"
echo "X-AppImage-Version=@VERSION@" >> "$DESKTOPFILE"
# Fix linking for soft-linked plugins
for file in "${APPDIR}usr/lib/lmms/"*.so; do
@@ -201,6 +202,9 @@ fi
rm -f "${APPDIR}/AppRun"
ln -sr "${APPDIR}/usr/bin/lmms" "${APPDIR}/AppRun"
# Add icon
ln -srf "${APPDIR}/lmms.png" "${APPDIR}/.DirIcon"
# Create AppImage
echo -e "\nFinishing the AppImage..."
run_and_log "$APPIMAGETOOL" "${APPDIR}" "@APPIMAGE_FILE@"

View File

@@ -24,7 +24,7 @@
# - Windows does not support bash completion
# - macOS support should eventually be added for Homebrew (TODO)
IF(WIN32)
MESSAGE(STATUS "Bash competion is not supported on this platform.")
MESSAGE(STATUS "Bash completion is not supported on this platform.")
ELSEIF(APPLE)
MESSAGE(STATUS "Bash completion is not yet implemented for this platform.")
ELSE()

View File

@@ -18,7 +18,7 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# Files which confirm a successful clone
SET(VALID_CRUMBS "CMakeLists.txt;Makefile;Makefile.in;Makefile.am;configure.ac;configure.py;autogen.sh;.gitignore;LICENSE;Home.md")
SET(VALID_CRUMBS "CMakeLists.txt;Makefile;Makefile.in;Makefile.am;configure.ac;configure.py;autogen.sh;.gitignore;LICENSE;Home.md;license.txt")
OPTION(NO_SHALLOW_CLONE "Disable shallow cloning of submodules" OFF)

View File

@@ -26,6 +26,13 @@ else()
endif()
endif()
# find STK rawwave path
find_path(STK_RAWWAVE_ROOT
NAMES silence.raw sinewave.raw
HINTS "${STK_INCLUDE_DIR}/.."
PATH_SUFFIXES share/stk/rawwaves share/libstk/rawwaves
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(STK
REQUIRED_VARS STK_LIBRARY STK_INCLUDE_DIR

View File

@@ -33,6 +33,7 @@ SET(LMMS_PLUGIN_LIST
Compressor
CrossoverEQ
Delay
Dispersion
DualFilter
DynamicsProcessor
Eq
@@ -100,7 +101,6 @@ ENDIF()
IF(MSVC)
SET(MSVC_INCOMPATIBLE_PLUGINS
LadspaEffect
ZynAddSubFx
)
message(WARNING "Compiling with MSVC. The following plugins are not available: ${MSVC_INCOMPATIBLE_PLUGINS}")
LIST(REMOVE_ITEM PLUGIN_LIST ${MSVC_INCOMPATIBLE_PLUGINS})

View File

@@ -3,6 +3,13 @@ IF(GIT_FOUND AND NOT FORCE_VERSION)
SET(MAJOR_VERSION 0)
SET(MINOR_VERSION 0)
SET(PATCH_VERSION 0)
# If this is a GitHub Actions pull request build, get the pull request
# number from the environment and add it to the build metadata
if("$ENV{GITHUB_REF}" MATCHES "refs/pull/([0-9]+)/merge")
list(APPEND BUILD_METADATA "pr${CMAKE_MATCH_1}")
endif()
# Look for git tag information (e.g. Tagged: "v1.0.0", Untagged: "v1.0.0-123-a1b2c3d")
# Untagged format: [latest tag]-[number of commits]-[latest commit hash]
EXECUTE_PROCESS(
@@ -30,28 +37,43 @@ IF(GIT_FOUND AND NOT FORCE_VERSION)
ENDIF()
# 1 dash total: Dash in latest tag, no additional commits => pre-release
IF(TAG_LIST_LENGTH EQUAL 2)
# Get the pre-release stage
LIST(GET TAG_LIST 1 VERSION_STAGE)
SET(FORCE_VERSION "${FORCE_VERSION}-${VERSION_STAGE}")
list(APPEND PRERELEASE_DATA "${VERSION_STAGE}")
# 2 dashes: Assume untagged with no dashes in latest tag name => stable + commits
ELSEIF(TAG_LIST_LENGTH EQUAL 3)
# Get the number of commits and latest commit hash
LIST(GET TAG_LIST 1 EXTRA_COMMITS)
LIST(GET TAG_LIST 2 COMMIT_HASH)
# Bump the patch version
list(APPEND PRERELEASE_DATA "${EXTRA_COMMITS}")
list(APPEND BUILD_METADATA "${COMMIT_HASH}")
# Bump the patch version, since a pre-release (as specified by the extra
# commits) compares lower than the main version alone
MATH(EXPR PATCH_VERSION "${PATCH_VERSION}+1")
# Set the version to MAJOR.MINOR.PATCH-EXTRA_COMMITS+COMMIT_HASH
SET(FORCE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
SET(FORCE_VERSION "${FORCE_VERSION}-${EXTRA_COMMITS}+${COMMIT_HASH}")
# Reassemble the main version using the new patch version
set(FORCE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
# 3 dashes: Assume untagged with 1 dash in latest tag name => pre-release + commits
ELSEIF(TAG_LIST_LENGTH EQUAL 4)
# Get pre-release stage, number of commits, and latest commit hash
# Get the pre-release stage, number of commits, and latest commit hash
LIST(GET TAG_LIST 1 VERSION_STAGE)
LIST(GET TAG_LIST 2 EXTRA_COMMITS)
LIST(GET TAG_LIST 3 COMMIT_HASH)
# Set the version to MAJOR.MINOR.PATCH-VERSION_STAGE.EXTRA_COMMITS+COMMIT_HASH
SET(FORCE_VERSION "${FORCE_VERSION}-${VERSION_STAGE}")
SET(FORCE_VERSION "${FORCE_VERSION}.${EXTRA_COMMITS}+${COMMIT_HASH}")
list(APPEND PRERELEASE_DATA "${VERSION_STAGE}")
list(APPEND PRERELEASE_DATA "${EXTRA_COMMITS}")
list(APPEND BUILD_METADATA "${COMMIT_HASH}")
ENDIF()
# If there is any pre-release data, append it after a hyphen
if(PRERELEASE_DATA)
string(REPLACE ";" "." PRERELEASE_DATA "${PRERELEASE_DATA}")
set(FORCE_VERSION "${FORCE_VERSION}-${PRERELEASE_DATA}")
endif()
# If there is any build metadata, append it after a plus
if(BUILD_METADATA)
string(REPLACE ";" "." BUILD_METADATA "${BUILD_METADATA}")
set(FORCE_VERSION "${FORCE_VERSION}+${BUILD_METADATA}")
endif()
ENDIF()
IF(FORCE_VERSION STREQUAL "internal")

View File

@@ -73,12 +73,6 @@ SET(CPACK_NSIS_MUI_ICON "${CPACK_NSIS_MUI_ICON}" PARENT_SCOPE)
CONFIGURE_FILE("lmms.rc.in" "${CMAKE_BINARY_DIR}/lmms.rc")
CONFIGURE_FILE("zynaddsubfx.rc.in" "${CMAKE_BINARY_DIR}/plugins/ZynAddSubFx/zynaddsubfx.rc")
IF(LMMS_HAVE_STK)
FILE(GLOB RAWWAVES "${MINGW_PREFIX}/share/stk/rawwaves/*.raw")
LIST(SORT RAWWAVES)
INSTALL(FILES ${RAWWAVES} DESTINATION "${DATA_DIR}/stk/rawwaves")
ENDIF()
INSTALL(FILES "lmms.exe.manifest" DESTINATION .)
INSTALL(FILES "lmms.VisualElementsManifest.xml" DESTINATION .)
INSTALL(DIRECTORY "assets" DESTINATION .)

View File

@@ -29,9 +29,14 @@ FOREACH(_ts_file ${lmms_LOCALES})
ADD_CUSTOM_TARGET(${_ts_target}
COMMAND "${QT_LUPDATE_EXECUTABLE}" -locations none -no-obsolete -I ${CMAKE_SOURCE_DIR}/include/ ${LMMS_SRCS} ${LMMS_UIS} ${CMAKE_SOURCE_DIR}/plugins -ts "\"${_ts_file}\""
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
ADD_CUSTOM_TARGET(${_qm_target}
add_custom_command(
OUTPUT "${_qm_file}"
COMMAND "${QT_LRELEASE_EXECUTABLE}" "${_ts_file}" -qm "${_qm_file}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
MAIN_DEPENDENCY "${_ts_file}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
VERBATIM
)
add_custom_target("${_qm_target}" DEPENDS "${_qm_file}")
LIST(APPEND ts_targets "${_ts_target}")
LIST(APPEND qm_targets "${_qm_target}")
LIST(APPEND QM_FILES "${_qm_file}")

View File

@@ -70,7 +70,7 @@ QToolTip {
color: #4afd85;
}
lmms--gui--TextFloat {
lmms--gui--TextFloat, lmms--gui--SimpleTextFloat {
border-radius: 4px;
background: qlineargradient(spread:reflect, x1:0.5, y1:0.5, x2:0.5, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(50, 50, 50, 220));
opacity: 175;

View File

@@ -100,7 +100,7 @@ QToolTip {
color: #d1d8e4;
}
lmms--gui--TextFloat {
lmms--gui--TextFloat, lmms--gui--SimpleTextFloat {
background: #040506;
color: #d1d8e4;
}

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef ABOUT_DIALOG_H
#define ABOUT_DIALOG_H
#ifndef LMMS_GUI_ABOUT_DIALOG_H
#define LMMS_GUI_ABOUT_DIALOG_H
#include <QDialog>
@@ -42,5 +41,4 @@ public:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_ABOUT_DIALOG_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef ACTION_GROUP_H
#define ACTION_GROUP_H
#ifndef LMMS_GUI_ACTION_GROUP_H
#define LMMS_GUI_ACTION_GROUP_H
#include <QActionGroup>
@@ -59,4 +58,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_ACTION_GROUP_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_ALSA_H
#define AUDIO_ALSA_H
#ifndef LMMS_AUDIO_ALSA_H
#define LMMS_AUDIO_ALSA_H
#include "lmmsconfig.h"
@@ -108,4 +108,4 @@ private:
#endif // LMMS_HAVE_ALSA
#endif
#endif // LMMS_AUDIO_ALSA_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_ALSA_SETUP_WIDGET_H
#define AUDIO_ALSA_SETUP_WIDGET_H
#ifndef LMMS_GUI_AUDIO_ALSA_SETUP_WIDGET_H
#define LMMS_GUI_AUDIO_ALSA_SETUP_WIDGET_H
#include "lmmsconfig.h"
@@ -66,4 +66,4 @@ private:
#endif // LMMS_HAVE_ALSA
#endif
#endif // LMMS_GUI_AUDIO_ALSA_SETUP_WIDGET_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_DEVICE_H
#define AUDIO_DEVICE_H
#ifndef LMMS_AUDIO_DEVICE_H
#define LMMS_AUDIO_DEVICE_H
#include <QMutex>
#include <samplerate.h>
@@ -160,4 +160,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_DEVICE_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_DEVICE_SETUP_WIDGET_H
#define AUDIO_DEVICE_SETUP_WIDGET_H
#ifndef LMMS_GUI_AUDIO_DEVICE_SETUP_WIDGET_H
#define LMMS_GUI_AUDIO_DEVICE_SETUP_WIDGET_H
#include "TabWidget.h"
@@ -45,4 +45,4 @@ public:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_AUDIO_DEVICE_SETUP_WIDGET_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_DUMMY_H
#define AUDIO_DUMMY_H
#ifndef LMMS_AUDIO_DUMMY_H
#define LMMS_AUDIO_DUMMY_H
#include "AudioDevice.h"
#include "AudioDeviceSetupWidget.h"
@@ -116,4 +116,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_DUMMY_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_ENGINE_H
#define AUDIO_ENGINE_H
#ifndef LMMS_AUDIO_ENGINE_H
#define LMMS_AUDIO_ENGINE_H
#include <QMutex>
@@ -487,4 +487,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_ENGINE_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_ENGINE_PROFILER_H
#define AUDIO_ENGINE_PROFILER_H
#ifndef LMMS_AUDIO_ENGINE_PROFILER_H
#define LMMS_AUDIO_ENGINE_PROFILER_H
#include <QFile>
@@ -62,4 +62,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_ENGINE_PROFILER_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_ENGINE_WORKER_THREAD_H
#define AUDIO_ENGINE_WORKER_THREAD_H
#ifndef LMMS_AUDIO_ENGINE_WORKER_THREAD_H
#define LMMS_AUDIO_ENGINE_WORKER_THREAD_H
#include <QThread>
@@ -121,4 +121,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_ENGINE_WORKER_THREAD_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUDIO_FILE_DEVICE_H
#define AUDIO_FILE_DEVICE_H
#ifndef LMMS_AUDIO_FILE_DEVICE_H
#define LMMS_AUDIO_FILE_DEVICE_H
#include <QFile>
@@ -73,4 +73,4 @@ using AudioFileDeviceInstantiaton
} // namespace lmms
#endif
#endif // LMMS_AUDIO_FILE_DEVICE_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_FILE_FLAC_H
#define AUDIO_FILE_FLAC_H
#ifndef LMMS_AUDIO_FILE_FLAC_H
#define LMMS_AUDIO_FILE_FLAC_H
#include "lmmsconfig.h"
@@ -33,7 +33,7 @@
namespace lmms
{
class AudioFileFlac: public AudioFileDevice
class AudioFileFlac : public AudioFileDevice
{
public:
AudioFileFlac(OutputSettings const& outputSettings,
@@ -77,4 +77,4 @@ private:
} // namespace lmms
#endif //AUDIO_FILE_FLAC_H
#endif // LMMS_AUDIO_FILE_FLAC_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUDIO_FILE_MP3_H
#define AUDIO_FILE_MP3_H
#ifndef LMMS_AUDIO_FILE_MP3_H
#define LMMS_AUDIO_FILE_MP3_H
#include "lmmsconfig.h"
@@ -75,4 +75,4 @@ private:
#endif // LMMS_HAVE_MP3LAME
#endif
#endif // LMMS_AUDIO_FILE_MP3_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUDIO_FILE_OGG_H
#define AUDIO_FILE_OGG_H
#ifndef LMMS_AUDIO_FILE_OGG_H
#define LMMS_AUDIO_FILE_OGG_H
#include "lmmsconfig.h"
@@ -113,4 +113,4 @@ private:
#endif // LMMS_HAVE_OGGVORBIS
#endif
#endif // LMMS_AUDIO_FILE_OGG_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUDIO_FILE_WAVE_H
#define AUDIO_FILE_WAVE_H
#ifndef LMMS_AUDIO_FILE_WAVE_H
#define LMMS_AUDIO_FILE_WAVE_H
#include "lmmsconfig.h"
#include "AudioFileDevice.h"
@@ -71,4 +71,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_FILE_WAVE_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_JACK_H
#define AUDIO_JACK_H
#ifndef LMMS_AUDIO_JACK_H
#define LMMS_AUDIO_JACK_H
#include "lmmsconfig.h"
@@ -144,4 +144,4 @@ signals:
#endif // LMMS_HAVE_JACK
#endif
#endif // LMMS_AUDIO_JACK_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_OSS_H
#define AUDIO_OSS_H
#ifndef LMMS_AUDIO_OSS_H
#define LMMS_AUDIO_OSS_H
#include "lmmsconfig.h"
@@ -92,4 +92,4 @@ private:
#endif // LMMS_HAVE_OSS
#endif
#endif // LMMS_AUDIO_OSS_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_PORT_H
#define AUDIO_PORT_H
#ifndef LMMS_AUDIO_PORT_H
#define LMMS_AUDIO_PORT_H
#include <memory>
#include <QString>
@@ -138,4 +138,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_PORT_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_PORTAUDIO_H
#define AUDIO_PORTAUDIO_H
#ifndef LMMS_AUDIO_PORTAUDIO_H
#define LMMS_AUDIO_PORTAUDIO_H
#include <QObject>
@@ -163,4 +163,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_PORTAUDIO_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_PULSEAUDIO_H
#define AUDIO_PULSEAUDIO_H
#ifndef LMMS_AUDIO_PULSEAUDIO_H
#define LMMS_AUDIO_PULSEAUDIO_H
#include "lmmsconfig.h"
@@ -104,4 +104,4 @@ private:
#endif // LMMS_HAVE_PULSEAUDIO
#endif
#endif // LMMS_AUDIO_PULSEAUDIO_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUDIO_SAMPLE_RECORDER_H
#define AUDIO_SAMPLE_RECORDER_H
#ifndef LMMS_AUDIO_SAMPLE_RECORDER_H
#define LMMS_AUDIO_SAMPLE_RECORDER_H
#include <QList>
#include <QPair>
@@ -59,4 +59,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUDIO_SAMPLE_RECORDER_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_SDL_H
#define AUDIO_SDL_H
#ifndef LMMS_AUDIO_SDL_H
#define LMMS_AUDIO_SDL_H
#include "lmmsconfig.h"
@@ -115,4 +115,4 @@ private:
#endif // LMMS_HAVE_SDL
#endif
#endif // LMMS_AUDIO_SDL_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef _AUDIO_SNDIO_H
#define _AUDIO_SNDIO_H
#ifndef LMMS_AUDIO_SNDIO_H
#define LMMS_AUDIO_SNDIO_H
#include "lmmsconfig.h"
@@ -87,6 +87,6 @@ private:
} // namespace lmms
#endif // LMMS_HAVE_SNDIO
#endif // LMMS_HAVE_SNDIO
#endif // _AUDIO_SNDIO_H
#endif // LMMS_AUDIO_SNDIO_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUDIO_SOUNDIO_H
#define AUDIO_SOUNDIO_H
#ifndef LMMS_AUDIO_SOUNDIO_H
#define LMMS_AUDIO_SOUNDIO_H
#include <QObject>
@@ -145,4 +145,4 @@ private:
#endif // LMMS_HAVE_SOUNDIO
#endif
#endif // LMMS_AUDIO_SOUNDIO_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef AUTOMATABLE_BUTTON_H
#define AUTOMATABLE_BUTTON_H
#ifndef LMMS_GUI_AUTOMATABLE_BUTTON_H
#define LMMS_GUI_AUTOMATABLE_BUTTON_H
#include <QPushButton>
@@ -109,4 +108,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_AUTOMATABLE_BUTTON_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUTOMATABLE_MODEL_H
#define AUTOMATABLE_MODEL_H
#ifndef LMMS_AUTOMATABLE_MODEL_H
#define LMMS_AUTOMATABLE_MODEL_H
#include <QMap>
#include <QMutex>
@@ -507,5 +507,4 @@ using AutomatedValueMap = QMap<AutomatableModel*, float>;
} // namespace lmms
#endif
#endif // LMMS_AUTOMATABLE_MODEL_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUTOMATABLE_MODEL_VIEW_H
#define AUTOMATABLE_MODEL_VIEW_H
#ifndef LMMS_GUI_AUTOMATABLE_MODEL_VIEW_H
#define LMMS_GUI_AUTOMATABLE_MODEL_VIEW_H
#include "ModelView.h"
#include "AutomatableModel.h"
@@ -137,5 +137,4 @@ using BoolModelView = TypedModelView<BoolModel>;
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_AUTOMATABLE_MODEL_VIEW_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef AUTOMATABLE_SLIDER_H
#define AUTOMATABLE_SLIDER_H
#ifndef LMMS_GUI_AUTOMATABLE_SLIDER_H
#define LMMS_GUI_AUTOMATABLE_SLIDER_H
#include <QSlider>
@@ -77,4 +76,4 @@ using sliderModel = IntModel;
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_AUTOMATABLE_SLIDER_H

View File

@@ -24,8 +24,8 @@
*
*/
#ifndef AUTOMATION_CLIP_H
#define AUTOMATION_CLIP_H
#ifndef LMMS_AUTOMATION_CLIP_H
#define LMMS_AUTOMATION_CLIP_H
#include <QMap>
#include <QPointer>
@@ -154,7 +154,7 @@ public:
float valueAt( const TimePos & _time ) const;
float *valuesAfter( const TimePos & _time ) const;
const QString name() const;
QString name() const;
// settings-management
void saveSettings( QDomDocument & _doc, QDomElement & _parent ) override;
@@ -260,4 +260,4 @@ inline int POS(AutomationClip::TimemapIterator it)
} // namespace lmms
#endif
#endif // LMMS_AUTOMATION_CLIP_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef AUTOMATION_CLIP_VIEW_H
#define AUTOMATION_CLIP_VIEW_H
#ifndef LMMS_GUI_AUTOMATION_CLIP_VIEW_H
#define LMMS_GUI_AUTOMATION_CLIP_VIEW_H
#include <QStaticText>
@@ -85,4 +85,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_AUTOMATION_CLIP_VIEW_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUTOMATION_EDITOR_H
#define AUTOMATION_EDITOR_H
#ifndef LMMS_GUI_AUTOMATION_EDITOR_H
#define LMMS_GUI_AUTOMATION_EDITOR_H
#include <QWidget>
@@ -304,4 +304,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_AUTOMATION_EDITOR_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUTOMATION_NODE_H
#define AUTOMATION_NODE_H
#ifndef LMMS_AUTOMATION_NODE_H
#define LMMS_AUTOMATION_NODE_H
namespace lmms
{
@@ -156,4 +156,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUTOMATION_NODE_H

View File

@@ -24,8 +24,8 @@
*
*/
#ifndef AUTOMATION_TRACK_H
#define AUTOMATION_TRACK_H
#ifndef LMMS_AUTOMATION_TRACK_H
#define LMMS_AUTOMATION_TRACK_H
#include "Track.h"
@@ -62,4 +62,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_AUTOMATION_TRACK_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef AUTOMATION_TRACK_VIEW_H
#define AUTOMATION_TRACK_VIEW_H
#ifndef LMMS_GUI_AUTOMATION_TRACK_VIEW_H
#define LMMS_GUI_AUTOMATION_TRACK_VIEW_H
#include "TrackView.h"
@@ -52,4 +52,4 @@ public:
} // namespace lmms
#endif
#endif // LMMS_GUI_AUTOMATION_TRACK_VIEW_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef BANDLIMITEDWAVE_H
#define BANDLIMITEDWAVE_H
#ifndef LMMS_BANDLIMITEDWAVE_H
#define LMMS_BANDLIMITEDWAVE_H
class QDataStream;
class QString;
@@ -149,7 +149,8 @@ public:
return sr;
/* lookup = lookup << 1;
/*
lookup = lookup << 1;
tlen = tlen << 1;
t += 1;
const sample_t s3 = s_waveforms[ _wave ].sampleAt( t, lookup );
@@ -159,7 +160,7 @@ public:
const float ip2 = ( ( tlen - _wavelen ) / tlen - 0.5 ) * 2.0;
return linearInterpolate( s12, s34, ip2 );
*/
*/
};
@@ -174,4 +175,4 @@ public:
} // namespace lmms
#endif
#endif // LMMS_BANDLIMITEDWAVE_H

View File

@@ -28,9 +28,8 @@
*
*/
#ifndef BASIC_FILTERS_H
#define BASIC_FILTERS_H
#ifndef LMMS_BASIC_FILTERS_H
#define LMMS_BASIC_FILTERS_H
#ifndef __USE_XOPEN
#define __USE_XOPEN
@@ -918,4 +917,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_BASIC_FILTERS_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef BUFFER_MANAGER_H
#define BUFFER_MANAGER_H
#ifndef LMMS_BUFFER_MANAGER_H
#define LMMS_BUFFER_MANAGER_H
#include "lmms_export.h"
#include "lmms_basics.h"
@@ -54,4 +54,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_BUFFER_MANAGER_H

View File

@@ -23,9 +23,8 @@
*
*/
#ifndef CPULOAD_WIDGET_H
#define CPULOAD_WIDGET_H
#ifndef LMMS_GUI_CPU_LOAD_WIDGET_H
#define LMMS_GUI_CPU_LOAD_WIDGET_H
#include <QTimer>
#include <QPixmap>
@@ -70,4 +69,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_CPU_LOAD_WIDGET_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef CAPTION_MENU_H
#define CAPTION_MENU_H
#ifndef LMMS_GUI_CAPTION_MENU_H
#define LMMS_GUI_CAPTION_MENU_H
#include <QMenu>
@@ -47,4 +46,4 @@ public:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_CAPTION_MENU_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef TRACK_CONTENT_OBJECT_H
#define TRACK_CONTENT_OBJECT_H
#ifndef LMMS_CLIP_H
#define LMMS_CLIP_H
#include <QColor>
@@ -194,4 +194,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_CLIP_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef TRACK_CONTENT_OBJECT_VIEW_H
#define TRACK_CONTENT_OBJECT_VIEW_H
#ifndef LMMS_GUI_CLIP_VIEW_H
#define LMMS_GUI_CLIP_VIEW_H
#include <QVector>
@@ -252,4 +252,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_CLIP_VIEW_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef CLIPBOARD_H
#define CLIPBOARD_H
#ifndef LMMS_CLIPBOARD_H
#define LMMS_CLIPBOARD_H
#include <QMap>
#include <QDomElement>
@@ -68,4 +68,4 @@ namespace lmms::Clipboard
} // namespace lmms::Clipboard
#endif
#endif // LMMS_CLIPBOARD_H

View File

@@ -21,8 +21,8 @@
*
*/
#ifndef COLOR_CHOOSER_H
#define COLOR_CHOOSER_H
#ifndef LMMS_GUI_COLOR_CHOOSER_H
#define LMMS_GUI_COLOR_CHOOSER_H
#include <QApplication>
#include <QColor>
@@ -34,7 +34,7 @@ namespace lmms::gui
{
class ColorChooser: public QColorDialog
class ColorChooser : public QColorDialog
{
public:
ColorChooser(const QColor &initial, QWidget *parent): QColorDialog(initial, parent) {};
@@ -68,5 +68,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_COLOR_CHOOSER_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef COMBOBOX_H
#define COMBOBOX_H
#ifndef LMMS_GUI_COMBOBOX_H
#define LMMS_GUI_COMBOBOX_H
#include <QMenu>
#include <QWidget>
@@ -83,4 +82,4 @@ private slots:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_COMBOBOX_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef COMBOBOX_MODEL_H
#define COMBOBOX_MODEL_H
#ifndef LMMS_COMBOBOX_MODEL_H
#define LMMS_COMBOBOX_MODEL_H
#include <memory>
#include <utility>
@@ -95,4 +95,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_COMBOBOX_MODEL_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef CONFIG_MGR_H
#define CONFIG_MGR_H
#ifndef LMMS_CONFIG_MANAGER_H
#define LMMS_CONFIG_MANAGER_H
#include "lmmsconfig.h"
@@ -314,4 +313,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_CONFIG_MANAGER_H

View File

@@ -70,8 +70,8 @@
**
****************************************************************************/
#ifndef CONTROLLAYOUT_H
#define CONTROLLAYOUT_H
#ifndef LMMS_GUI_CONTROL_LAYOUT_H
#define LMMS_GUI_CONTROL_LAYOUT_H
#include <QLayout>
#include <QMultiMap>
@@ -141,4 +141,4 @@ private:
} // namespace lmms::gui
#endif // CONTROLLAYOUT_H
#endif // LMMS_GUI_CONTROL_LAYOUT_H

View File

@@ -23,9 +23,8 @@
*
*/
#ifndef CONTROLLER_H
#define CONTROLLER_H
#ifndef LMMS_CONTROLLER_H
#define LMMS_CONTROLLER_H
#include "lmms_export.h"
#include "Engine.h"
@@ -184,5 +183,4 @@ signals:
} // namespace lmms
#endif
#endif // LMMS_CONTROLLER_H

View File

@@ -26,9 +26,8 @@
*
*/
#ifndef CONTROLLER_CONNECTION_H
#define CONTROLLER_CONNECTION_H
#ifndef LMMS_CONTROLLER_CONNECTION_H
#define LMMS_CONTROLLER_CONNECTION_H
#include <QObject>
#include <QVector>
@@ -128,5 +127,4 @@ signals:
} // namespace lmms
#endif
#endif // LMMS_CONTROLLER_CONNECTION_H

View File

@@ -23,9 +23,8 @@
*
*/
#ifndef CONTROLLER_CONNECTION_DIALOG_H
#define CONTROLLER_CONNECTION_DIALOG_H
#ifndef LMMS_GUI_CONTROLLER_CONNECTION_DIALOG_H
#define LMMS_GUI_CONTROLLER_CONNECTION_DIALOG_H
#include <QDialog>
#include <QSortFilterProxyModel>
@@ -111,4 +110,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_CONTROLLER_CONNECTION_DIALOG_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef CONTROLLER_DIALOG_H
#define CONTROLLER_DIALOG_H
#ifndef LMMS_GUI_CONTROLLER_DIALOG_H
#define LMMS_GUI_CONTROLLER_DIALOG_H
#include <QWidget>
@@ -61,4 +61,4 @@ protected:
} // namespace lmms
#endif
#endif // LMMS_GUI_CONTROLLER_DIALOG_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef CONTROLLER_RACK_VIEW_H
#define CONTROLLER_RACK_VIEW_H
#ifndef LMMS_GUI_CONTROLLER_RACK_VIEW_H
#define LMMS_GUI_CONTROLLER_RACK_VIEW_H
#include <QWidget>
#include <QCloseEvent>
@@ -92,4 +92,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_CONTROLLER_RACK_VIEW_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef CONTROLLER_VIEW_H
#define CONTROLLER_VIEW_H
#ifndef LMMS_GUI_CONTROLLER_VIEW_H
#define LMMS_GUI_CONTROLLER_VIEW_H
#include <QFrame>
@@ -88,4 +88,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_CONTROLLER_VIEW_H

View File

@@ -22,10 +22,8 @@
*
*/
#ifndef CONTROLS_H
#define CONTROLS_H
#ifndef LMMS_GUI_CONTROLS_H
#define LMMS_GUI_CONTROLS_H
// headers only required for covariance
#include "AutomatableModel.h"
@@ -146,4 +144,4 @@ public:
} // namespace lmms
#endif // CONTROLS_H
#endif // LMMS_GUI_CONTROLS_H

View File

@@ -1,6 +1,29 @@
/* Text customizable knob */
#ifndef CUSTOM_TEXT_KNOB_H
#define CUSTOM_TEXT_KNOB_H
/*
* CustomTextKnob.h
*
* Copyright (c) 2020 Ibuki Sugiyama <main/at/fuwa.dev>
*
* This file is part of LMMS - https://lmms.io
*
* 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 (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#ifndef LMMS_GUI_CUSTOM_TEXT_KNOB_H
#define LMMS_GUI_CUSTOM_TEXT_KNOB_H
#include "Knob.h"
@@ -34,4 +57,4 @@ protected:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_CUSTOM_TEXT_KNOB_H

View File

@@ -23,9 +23,8 @@
*
*/
#ifndef DATA_FILE_H
#define DATA_FILE_H
#ifndef LMMS_DATA_FILE_H
#define LMMS_DATA_FILE_H
#include <map>
#include <QDomDocument>
@@ -143,14 +142,6 @@ private:
void loadData( const QByteArray & _data, const QString & _sourceFile );
struct LMMS_EXPORT typeDescStruct
{
Type m_type;
QString m_name;
} ;
static typeDescStruct s_types[TypeCount];
QString m_fileName; //!< The origin file name or "" if this DataFile didn't originate from a file
QDomElement m_content;
QDomElement m_head;
@@ -162,4 +153,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_DATA_FILE_H

View File

@@ -22,10 +22,9 @@
* Boston, MA 02110-1301 USA.
*
*/
#ifndef DELAY_H
#define DELAY_H
#ifndef LMMS_DELAY_H
#define LMMS_DELAY_H
#include "lmms_basics.h"
#include "lmms_math.h"
@@ -365,4 +364,4 @@ using StereoAllpassDelay = AllpassDelay<2>;
} // namespace lmms
#endif
#endif // LMMS_DELAY_H

View File

@@ -24,8 +24,8 @@
*
*/
#ifndef DEPRECATIONHELPER_H
#define DEPRECATIONHELPER_H
#ifndef LMMS_DEPRECATIONHELPER_H
#define LMMS_DEPRECATIONHELPER_H
#include <QFontMetrics>
#include <QWheelEvent>
@@ -66,4 +66,4 @@ inline QPoint position(QWheelEvent *wheelEvent)
} // namespace lmms
#endif // DEPRECATIONHELPER_H
#endif // LMMS_DEPRECATIONHELPER_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef DETUNING_HELPER_H
#define DETUNING_HELPER_H
#ifndef LMMS_DETUNING_HELPER_H
#define LMMS_DETUNING_HELPER_H
#include "InlineAutomation.h"
#include "MemoryManager.h"
@@ -64,4 +64,4 @@ public:
} // namespace lmms
#endif
#endif // LMMS_DETUNING_HELPER_H

View File

@@ -23,9 +23,8 @@
*
*/
#ifndef DRUMSYNTH_H
#define DRUMSYNTH_H
#ifndef LMMS_DRUM_SYNTH_H
#define LMMS_DRUM_SYNTH_H
#include <stdint.h>
#include "lmms_basics.h"
@@ -57,4 +56,4 @@ class DrumSynth {
} // namespace lmms
#endif // DRUMSYNTH_H
#endif // LMMS_DRUM_SYNTH_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef DSP_EFFECT_LIBRARY_H
#define DSP_EFFECT_LIBRARY_H
#ifndef LMMS_DSPEFFECTLIBRARY_H
#define LMMS_DSPEFFECTLIBRARY_H
#include "lmms_math.h"
#include "lmms_constants.h"
@@ -331,5 +330,4 @@ namespace lmms::DspEffectLibrary
} // namespace lmms::DspEffectLibrary
#endif
#endif // LMMS_DSPEFFECTLIBRARY_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef DUMMY_EFFECT_H
#define DUMMY_EFFECT_H
#ifndef LMMS_DUMMY_EFFECT_H
#define LMMS_DUMMY_EFFECT_H
#include <QDomElement>
@@ -149,4 +149,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_DUMMY_EFFECT_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef DUMMY_INSTRUMENT_H
#define DUMMY_INSTRUMENT_H
#ifndef LMMS_DUMMY_INSTRUMENT_H
#define LMMS_DUMMY_INSTRUMENT_H
#include "Instrument.h"
#include "InstrumentView.h"
@@ -77,4 +77,4 @@ public:
} // namespace lmms
#endif
#endif // LMMS_DUMMY_INSTRUMENT_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef DUMMY_PLUGIN_H
#define DUMMY_PLUGIN_H
#ifndef LMMS_DUMMY_PLUGIN_H
#define LMMS_DUMMY_PLUGIN_H
#include "Plugin.h"
#include "PluginView.h"
@@ -68,4 +68,4 @@ protected:
} // namespace lmms
#endif
#endif // LMMS_DUMMY_PLUGIN_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef EDITOR_COMMON_H
#define EDITOR_COMMON_H
#ifndef LMMS_GUI_EDITOR_H
#define LMMS_GUI_EDITOR_H
#include <QMainWindow>
#include <QToolBar>
@@ -113,4 +113,4 @@ protected:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_EDITOR_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef EFFECT_H
#define EFFECT_H
#ifndef LMMS_EFFECT_H
#define LMMS_EFFECT_H
#include "Plugin.h"
#include "Engine.h"
@@ -241,4 +241,4 @@ using EffectKeyList = Effect::Descriptor::SubPluginFeatures::KeyList;
} // namespace lmms
#endif
#endif // LMMS_EFFECT_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef EFFECT_CHAIN_H
#define EFFECT_CHAIN_H
#ifndef LMMS_EFFECT_CHAIN_H
#define LMMS_EFFECT_CHAIN_H
#include "Model.h"
#include "SerializingObject.h"
@@ -85,5 +85,4 @@ signals:
} // namespace lmms
#endif
#endif // LMMS_EFFECT_CHAIN_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef EFFECT_CONTROL_DIALOG_H
#define EFFECT_CONTROL_DIALOG_H
#ifndef LMMS_GUI_EFFECT_CONTROL_DIALOG_H
#define LMMS_GUI_EFFECT_CONTROL_DIALOG_H
#include <QWidget>
@@ -64,4 +64,4 @@ protected:
} // namespace lmms
#endif
#endif // LMMS_GUI_EFFECT_CONTROL_DIALOG_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef EFFECT_CONTROLS_H
#define EFFECT_CONTROLS_H
#ifndef LMMS_EFFECT_CONTROLS_H
#define LMMS_EFFECT_CONTROLS_H
#include "Model.h"
#include "JournallingObject.h"
@@ -82,4 +82,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_EFFECT_CONTROLS_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef EFFECT_RACK_VIEW_H
#define EFFECT_RACK_VIEW_H
#ifndef LMMS_GUI_EFFECT_RACK_VIEW_H
#define LMMS_GUI_EFFECT_RACK_VIEW_H
#include <QWidget>
@@ -88,4 +88,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_EFFECT_RACK_VIEW_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef EFFECT_SELECT_DIALOG_H
#define EFFECT_SELECT_DIALOG_H
#ifndef LMMS_GUI_EFFECT_SELECT_DIALOG_H
#define LMMS_GUI_EFFECT_SELECT_DIALOG_H
#include <QDialog>
#include <QSortFilterProxyModel>
@@ -70,5 +70,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_EFFECT_SELECT_DIALOG_H

View File

@@ -23,13 +23,14 @@
*
*/
#ifndef EFFECT_VIEW_H
#define EFFECT_VIEW_H
#ifndef LMMS_GUI_EFFECT_VIEW_H
#define LMMS_GUI_EFFECT_VIEW_H
#include "AutomatableModel.h"
#include "PluginView.h"
#include "Effect.h"
class QGraphicsOpacityEffect;
class QGroupBox;
class QLabel;
class QPushButton;
@@ -61,6 +62,11 @@ public:
}
static constexpr int DEFAULT_WIDTH = 215;
static constexpr int DEFAULT_HEIGHT = 60;
void mouseMoveEvent(QMouseEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
public slots:
void editControls();
@@ -90,10 +96,13 @@ private:
Knob * m_gate;
QMdiSubWindow * m_subWindow;
EffectControlDialog * m_controlView;
bool m_dragging;
QGraphicsOpacityEffect* m_opacityEffect;
} ;
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_EFFECT_VIEW_H

View File

@@ -22,14 +22,12 @@
*
*/
#ifndef ENGINE_H
#define ENGINE_H
#ifndef LMMS_ENGINE_H
#define LMMS_ENGINE_H
#include <QString>
#include <QObject>
#include "lmmsconfig.h"
#include "lmms_export.h"
#include "lmms_basics.h"
@@ -157,5 +155,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_ENGINE_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef ENVELOPE_AND_LFO_PARAMETERS_H
#define ENVELOPE_AND_LFO_PARAMETERS_H
#ifndef LMMS_ENVELOPE_AND_LFO_PARAMETERS_H
#define LMMS_ENVELOPE_AND_LFO_PARAMETERS_H
#include <QVector>
@@ -190,4 +190,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_ENVELOPE_AND_LFO_PARAMETERS_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef ENVELOPE_AND_LFO_VIEW_H
#define ENVELOPE_AND_LFO_VIEW_H
#ifndef LMMS_GUI_ENVELOPE_AND_LFO_VIEW_H
#define LMMS_GUI_ENVELOPE_AND_LFO_VIEW_H
#include <QWidget>
@@ -104,4 +104,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_ENVELOPE_AND_LFO_VIEW_H

View File

@@ -23,8 +23,8 @@
*
*/
#ifndef EXPORT_FILTER_H
#define EXPORT_FILTER_H
#ifndef LMMS_EXPORT_FILTER_H
#define LMMS_EXPORT_FILTER_H
#include <QFile>
@@ -69,4 +69,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_EXPORT_FILTER_H

View File

@@ -23,9 +23,8 @@
*
*/
#ifndef EXPORT_PROJECT_DIALOG_H
#define EXPORT_PROJECT_DIALOG_H
#ifndef LMMS_GUI_EXPORT_PROJECT_DIALOG_H
#define LMMS_GUI_EXPORT_PROJECT_DIALOG_H
#include <QDialog>
#include <memory>
@@ -70,5 +69,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_EXPORT_PROJECT_DIALOG_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef FADE_BUTTON_H
#define FADE_BUTTON_H
#ifndef LMMS_GUI_FADE_BUTTON_H
#define LMMS_GUI_FADE_BUTTON_H
#include <QAbstractButton>
#include <QColor>
@@ -77,4 +76,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_FADE_BUTTON_H

View File

@@ -44,9 +44,8 @@
*
*/
#ifndef FADER_H
#define FADER_H
#ifndef LMMS_GUI_FADER_H
#define LMMS_GUI_FADER_H
#include <QElapsedTimer>
#include <QPixmap>
@@ -55,10 +54,11 @@
#include "AutomatableModelView.h"
namespace lmms::gui
{
class TextFloat;
class SimpleTextFloat;
class LMMS_EXPORT Fader : public QWidget, public FloatModelView
@@ -164,7 +164,7 @@ private:
int m_moveStartPoint;
float m_startValue;
static TextFloat * s_textFloat;
static SimpleTextFloat * s_textFloat;
QColor m_peakGreen;
QColor m_peakRed;
@@ -174,5 +174,4 @@ private:
} // namespace lmms::gui
#endif
#endif // LMMS_GUI_FADER_H

View File

@@ -22,8 +22,8 @@
*
*/
#ifndef FIFO_BUFFER_H
#define FIFO_BUFFER_H
#ifndef LMMS_FIFO_BUFFER_H
#define LMMS_FIFO_BUFFER_H
#include <QSemaphore>
@@ -94,4 +94,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_FIFO_BUFFER_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef FILE_BROWSER_H
#define FILE_BROWSER_H
#ifndef LMMS_GUI_FILE_BROWSER_H
#define LMMS_GUI_FILE_BROWSER_H
#include <QCheckBox>
#include <QDir>
@@ -298,4 +297,4 @@ private:
} // namespace lmms
#endif
#endif // LMMS_GUI_FILE_BROWSER_H

View File

@@ -22,9 +22,8 @@
*
*/
#ifndef FILEDIALOG_H
#define FILEDIALOG_H
#ifndef LMMS_GUI_FILE_DIALOG_H
#define LMMS_GUI_FILE_DIALOG_H
#include <QFileDialog>
@@ -57,4 +56,4 @@ public:
} // namespace lmms::gui
#endif // FILEDIALOG_H
#endif // LMMS_GUI_FILE_DIALOG_H

Some files were not shown because too many files have changed in this diff Show More