Skip to content

Commit

Permalink
Merge branch 'syncleader' into synclock-05-explicitload
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Jun 16, 2021
2 parents 2b526e8 + 9e85796 commit 35d217c
Show file tree
Hide file tree
Showing 104 changed files with 1,529 additions and 722 deletions.
17 changes: 8 additions & 9 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ SpacesBeforeTrailingComments: 1
# StatementMacros don't require a trailing semicolon.
# Trailing semicolons should be omitted after these macros
# when compiling with -Wpedantic to avoid warnings.
# TODO: Enable if Clang 8 is available, Ubuntu 18.04 uses Clang 6
#StatementMacros:
# - Q_DECLARE_FLAGS
# - Q_DECLARE_METATYPE
# - Q_DECLARE_OPERATORS_FOR_FLAGS
# - Q_OBJECT
# - Q_PROPERTY
# - Q_UNUSED
# - QT_REQUIRE_VERSION
StatementMacros:
- Q_DECLARE_FLAGS
- Q_DECLARE_METATYPE
- Q_DECLARE_OPERATORS_FOR_FLAGS
- Q_OBJECT
- Q_PROPERTY
- Q_UNUSED
- QT_REQUIRE_VERSION
---
Language: JavaScript
# Don't format .js files yet
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ jobs:
# Possibly related: actions/checkout#290
run: git fetch origin --force --tags

- name: "Set up cmake"
uses: jwlawson/actions-setup-cmake@v1.4
- name: "[macOS] Set up cmake"
uses: jwlawson/actions-setup-cmake@v1.9
# Ubuntu 20.04 should use the CMake version from the repos, and Visual
# Studio on Windows comes with its own CMake version anyway.
if: runner.os == 'macOS'
with:
# This should always match the mininum required version in
# our CMakeLists.txt
Expand Down
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2349,12 +2349,19 @@ if(COREAUDIO)
target_include_directories(mixxx-lib SYSTEM PUBLIC lib/apple)
endif()


# FAAD AAC audio file decoder plugin
find_package(MP4)
find_package(MP4v2)
# It is enabled by default on Linux only, because other targets have other
# solutions. It requires MP4 or MP4v2.
default_option(FAAD "FAAD AAC audio file decoder support" "UNIX;NOT APPLE;(MP4_FOUND OR MP4v2_FOUND)")
# Note, we use if() here, because the following line does not work with cmake 3.16.3
# default_option(FAAD "FAAD AAC audio file decoder support" "UNIX;NOT APPLE;(MP4_FOUND OR MP4v2_FOUND)")
if (UNIX AND NOT APPLE AND (MP4_FOUND OR MP4v2_FOUND))
option(FAAD "FAAD AAC audio file decoder support" ON)
else()
option(FAAD "FAAD AAC audio file decoder support" OFF)
endif()
if(FAAD)
if(NOT MP4_FOUND AND NOT MP4v2_FOUND)
message(FATAL_ERROR "FAAD AAC audio support requires libmp4 or libmp4v2 with development headers.")
Expand Down
2 changes: 1 addition & 1 deletion packaging/CPackDebInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endif()
message( NOTICE "Creating temporary debian folder for debhelper" )
file(COPY ${CPACK_DEBIAN_SOURCE_DIR}/packaging/debian
DESTINATION ${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME})
set(CPACK_DEBIAN_PACKAGE_BUILD_DEPENDS_EXTRA "libavcodec-dev, libavutil-dev,")
set(CPACK_DEBIAN_PACKAGE_BUILD_DEPENDS_EXTRA "libavformat-dev, ")
configure_file(${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/debian/control.in
${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/debian/control
@ONLY)
Expand Down
2 changes: 1 addition & 1 deletion packaging/CPackDebUploadPPA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ foreach(RELEASE ${CPACK_DEBIAN_DISTRIBUTION_RELEASES})
if (RELEASE STREQUAL "bionic")
set(CPACK_DEBIAN_PACKAGE_BUILD_DEPENDS_EXTRA "libmp4v2-dev,")
else()
set(CPACK_DEBIAN_PACKAGE_BUILD_DEPENDS_EXTRA "libavcodec-dev, libavutil-dev,")
set(CPACK_DEBIAN_PACKAGE_BUILD_DEPENDS_EXTRA "libavformat-dev,")
endif()

configure_file(${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/packaging/debian/control.in
Expand Down
2 changes: 1 addition & 1 deletion res/controllers/Pioneer-DDJ-200-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ DDJ200.headmix = function(channel, control, value) {
if (value) { // do nothing if button is released, i.e. value === 0
var masterMixEnabled = (engine.getValue("[Master]", "headMix") > 0);
engine.setValue("[Master]", "headMix", masterMixEnabled ? -1 : 1);
midi.sendShortMsg(0x96, 0x63, masterMixEnabled ? 0x7F : 0); // set LED
midi.sendShortMsg(0x96, 0x63, masterMixEnabled ? 0 : 0x7F); // set LED
}
};

Expand Down
16 changes: 8 additions & 8 deletions res/skins/Deere/deck_waveform.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@
<Mark>
<Control>intro_start_position</Control>
<VisibilityControl>[Skin],show_intro_outro_cues</VisibilityControl>
<Text>|&#9698;</Text>
<Align>bottom</Align>
<Text>&#9698;</Text>
<Align>bottom|right</Align>
<Color>#0000FF</Color>
<TextColor>#FFFFFF</TextColor>
</Mark>
<Mark>
<Control>intro_end_position</Control>
<VisibilityControl>[Skin],show_intro_outro_cues</VisibilityControl>
<Text>&#9698;|</Text>
<Align>bottom</Align>
<Text>&#9698;</Text>
<Align>bottom|left</Align>
<Color>#0000FF</Color>
<TextColor>#FFFFFF</TextColor>
</Mark>
Expand All @@ -107,16 +107,16 @@
<Mark>
<Control>outro_start_position</Control>
<VisibilityControl>[Skin],show_intro_outro_cues</VisibilityControl>
<Text>|&#9699;</Text>
<Align>bottom</Align>
<Text>&#9699;</Text>
<Align>bottom|right</Align>
<Color>#0000FF</Color>
<TextColor>#FFFFFF</TextColor>
</Mark>
<Mark>
<Control>outro_end_position</Control>
<VisibilityControl>[Skin],show_intro_outro_cues</VisibilityControl>
<Text>&#9699;|</Text>
<Align>bottom</Align>
<Text>&#9699;</Text>
<Align>bottom|left</Align>
<Color>#0000FF</Color>
<TextColor>#FFFFFF</TextColor>
</Mark>
Expand Down
Binary file removed res/skins/Deere/image/style_branch_closed.png
Binary file not shown.
3 changes: 3 additions & 0 deletions res/skins/Deere/image/style_branch_closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed res/skins/Deere/image/style_branch_open.png
Binary file not shown.
3 changes: 3 additions & 0 deletions res/skins/Deere/image/style_branch_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 13 additions & 116 deletions res/skins/Deere/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ WLibrary QLineEdit,
border: 1px solid #006596;
}


/* checkbox in library "Played" column */
WTrackTableView::indicator:checked {
image: url(skin:/../Deere/icon/ic_library_checkmark.svg);
Expand All @@ -274,7 +273,8 @@ WTrackTableView::indicator:unchecked {
}

/* focused BPM cell in the library "BPM" column */
#LibraryBPMButton:focus {
#LibraryBPMButton:focus
#LibraryBPMButton::indicator:focus {
outline: none;
}
/* BPM lock icon */
Expand Down Expand Up @@ -341,7 +341,7 @@ WTrackTableViewHeader {
WTrackTableViewHeader::section {
height: 1.1em;
font-weight: bold;
padding: 2px;
padding: 0.1em;
background-color: #1A1A1A;
border-top: none;
border-left: none;
Expand Down Expand Up @@ -423,12 +423,12 @@ WLibrarySidebar::item:focus {
/* triangle for closed/opened branches in treeview */
WLibrarySidebar::branch:has-children:!has-siblings:closed,
WLibrarySidebar::branch:closed:has-children:has-siblings {
border-image: none; image: url(skin:/../Deere/image/style_branch_closed.png);
border-image: none; image: url(skin:/../Deere/image/style_branch_closed.svg);
}

WLibrarySidebar::branch:open:has-children:!has-siblings,
WLibrarySidebar::branch:open:has-children:has-siblings {
border-image: none; image: url(skin:/../Deere/image/style_branch_open.png);
border-image: none; image: url(skin:/../Deere/image/style_branch_open.svg);
}

/* space left of selected child item */
Expand Down Expand Up @@ -1892,20 +1892,6 @@ do not highlight either state. */


/* common styles for WEffectSelector, QMenu, QToolTip */
QToolTip,
#MainMenu QMenu,
WLibrarySidebar QMenu,
WTrackTableViewHeader QMenu,
WLibraryTextBrowser QMenu,
WTrackMenu,
WTrackMenu QMenu,
QLineEdit QMenu,
WCueMenuPopup,
WCoverArtMenu,
WEffectSelector QAbstractScrollArea,
#fadeModeCombobox QAbstractScrollArea {
padding: 2px;
}
WEffectSelector QAbstractScrollArea,
#fadeModeCombobox QAbstractScrollArea {
font: 13px;
Expand Down Expand Up @@ -2005,22 +1991,6 @@ WEffectSelector QAbstractScrollArea,
margin-bottom: 0px;
padding-bottom: 0px;
}
/* Checkbox preceeding menu items (Options, ) */
#MainMenu QMenu::indicator {
/* Make it big: the highlighted background of the hovered box
should be as tall as the text highlight */
width: 1em;
height: 1em;
/* In all other menus the checkboxes are compiled from a css
border and a SVG checkmark icon individually per state
(i.e. indeterminate, checked:selected, checked:disabled)

In the menu bar we only need to display two states
* checked / checked:selected
* unchecked / unchecked:selected
and we want identical appearance on both Wind'ohs and Linux
(avoid rendering issues) thus we use complete SVG checkboxes. */
}
#MainMenu QMenu::indicator:checked,
#MainMenu QMenu::indicator:checked:selected {
image: url(skin:/../Deere/icon/ic_mainmenu_checkbox_checked.svg);
Expand All @@ -2035,18 +2005,12 @@ WEffectSelector QAbstractScrollArea,
border: 1px solid #888;
border-radius: 2px;
}
#MainMenu QMenu::separator {
height: 0px;
margin: 0.25em;
}
#MainMenu QMenu::right-arrow {
#MainMenu QMenu::right-arrow,
WTrackMenu::right-arrow,
WTrackMenu QMenu::right-arrow {
width: 0.7em;
height: 0.7em;
}

#MainMenu QMenu::indicator {
width: 1em;
height: 1em;
image: url(skin:/../Deere/icon/ic_chevron_right_48px.svg);
}


Expand Down Expand Up @@ -2117,101 +2081,40 @@ WEffectSelector::indicator:unchecked,
border: 0px solid transparent;
}

WLibrarySidebar QMenu::separator,
WTrackMenu::separator,
WTrackMenu QMenu::separator,
QLineEdit QMenu::separator {
height: 0px;
margin: 4px;
}
#MainMenu QMenu::separator,
WLibrarySidebar QMenu::separator,
WTrackTableViewHeader QMenu::separator,
WTrackMenu::separator,
WTrackMenu QMenu::separator,
WLibraryTextBrowser QMenu::separator,
QLineEdit QMenu::separator {
border-top: 1px solid #0a0a0a;
}

/* All menus that have at least one item with a checkbox*/
WLibrarySidebar QMenu::item,
WTrackTableViewHeader QMenu::item,
#CratesMenu::item {
/* padding-right reserves space for the submenu expand arrow
padding-left should be bigger than the menu icon width +
icon margin-left/-right */
padding: 5px 12px 5px 26px;
}

WTrackMenu::item,
WTrackMenu QMenu::item,
/* This catches context menus of
- property cells in the tracks table
- WCueMenuPopup cue label editor
- WBeatSpinBox
- AutoDJ transition QSpinBox*/
QLineEdit QMenu::item,
WCoverArtMenu::item,
/* for the sake of completeness: html root view of Crates, Rec etc. */
WLibraryTextBrowser QMenu::item {
padding: 5px 12px 5px 12px;
}

/* Icons in those menus (copy, paste, cut, delete) */
QLineEdit QMenu::icon,
WLibraryTextBrowser QMenu::icon,
/* - checkbox in Crate name context menu
"[ ] Auto DJ Track Source" */
WLibrarySidebar QMenu::indicator,
/* Column checkboxes in the table header menu */
WTrackTableViewHeader QMenu::indicator {
/* Qt 5.12.8: negative margin-right increases the overall item width but has no effect
on the indicator itself.
positive margin-right pushes icon to the right...
Qt 5.15.2: needs negative margin-right in order to eliminate the item's
padding-left (necessary to avoid text/icon overlap); */
margin: 0px -20px 0px 5px;
}

/* items in Crate sub menu */
WTrackMenu QMenu QCheckBox {
padding: 3px 10px 3px 5px;
border-top: 1px solid #999;
}

WLibrarySidebar QMenu::indicator,
WTrackTableViewHeader QMenu::indicator,
WTrackMenu QMenu QCheckBox::indicator {
width: 13px;
height: 13px;
border: 1px solid #555;
border-radius: 1px;
background-color: #0f0f0f;
/* remove OS focus indicator */
outline: none;
}

WTrackMenu::right-arrow,
WTrackMenu QMenu::right-arrow,
WTrackTableView::indicator {
width: 10px;
height: 10px;
}

QLineEdit QMenu::icon:selected,
WLibrarySidebar QMenu::indicator:selected,
WTrackTableViewHeader QMenu::indicator:selected,
WTrackMenu QMenu QCheckBox::indicator:selected {
border: 1px solid #999;
}
/* disabled menu item and checkbox */
/* disabled menu items and checkboxes */
#MainMenu::item:disabled,
#MainMenu QMenu::item:disabled,
WLibrarySidebar QMenu::item:disabled,
WTrackMenu::item:disabled,
WTrackMenu QMenu::item:disabled,
WTrackMenu QMenu QCheckBox:disabled,
QLineEdit QMenu::item:disabled,
WCoverArtMenu::item:disabled {
QLineEdit QMenu::item:disabled {
color: #555;
}
WTrackMenu QMenu QCheckBox::indicator:disabled {
Expand Down Expand Up @@ -2249,12 +2152,6 @@ WTrackMenu QMenu QCheckBox::indicator:disabled:unchecked {
border: 1px solid #222;
}

#MainMenu QMenu::right-arrow,
WTrackMenu::right-arrow,
WTrackMenu QMenu::right-arrow {
image: url(skin:/../Deere/icon/ic_chevron_right_48px.svg);
}

/* explicitly remove icons from unchecked items otherwise
selected, unchecked items would have a checkmark */
WLibrarySidebar QMenu::indicator:unchecked,
Expand Down
3 changes: 3 additions & 0 deletions res/skins/LateNight/classic/style/library_branch_closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
3 changes: 3 additions & 0 deletions res/skins/LateNight/classic/style/library_branch_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
3 changes: 0 additions & 3 deletions res/skins/LateNight/classic/style/menu_arrow_gold.svg

This file was deleted.

4 changes: 4 additions & 0 deletions res/skins/LateNight/palemoon/style/library_branch_closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4 changes: 4 additions & 0 deletions res/skins/LateNight/palemoon/style/library_branch_open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading

0 comments on commit 35d217c

Please sign in to comment.