@@ -24,7 +24,7 @@ Item {
property bool bottomInfoShown: false
property string settingsPath: " "
property string propertiesPath: " "
property var surface
property var flavor
property alias buttonArea1State: buttonArea1 .showHideState
property alias buttonArea2State: buttonArea2 .showHideState
@@ -63,6 +63,11 @@ Item {
MappingProperty { id: beatgridEditMode; path: propertiesPath + " .edit_mode" ; onValueChanged: { updateButtonArea (); } }
AppProperty { id: isTrackLocked; path: " app.traktor.decks." + (focusDeckId+ 1 ) + " .track.grid.lock_bpm" }
AppProperty { id: isTrackTick; path: " app.traktor.decks." + (focusDeckId+ 1 ) + " .track.grid.enable_tick" }
/* #ifdef ENABLE_STEP_SEQUENCER */
AppProperty { id: isSequencerOn; path: " app.traktor.decks." + (focusDeckId+ 1 ) + " .remix.sequencer.on" }
readonly property bool showStepSequencer: isSequencerOn .value && (screen .flavor != ScreenFlavor .S5 )
onShowStepSequencerChanged: { updateButtonArea (); }
/* #endif */
// --------------------------------------------------------------------------------------------------------------------
@@ -157,8 +162,6 @@ Item {
isInEditMode: beatgridEditMode .value == 3
sizeState: (bottomInfoShown) ? " large" : " small"
showPerformanceFooter: (screen .surface != S5Screen .S5 )
isRemixDeck: ( ( deckView .upperDeckState == " Remix Deck" ) || (deckView .lowerDeckState == " Remix Deck" ) ) && ( screen .focusDeckContentState != " Stem Deck" )
isStemDeck: ( ( deckView .upperDeckState == " Stem Deck" ) || (deckView .lowerDeckState == " Stem Deck" ) ) && ( screen .focusDeckContentState != " Remix Deck" )
}
@@ -206,12 +209,6 @@ Item {
}
// --------------------------------------------------------------------------------------------------------------------
/* #ifdef ENABLE_STEP_SEQUENCER
property bool load_focus_text: (screen.focusDeckContentState == "Sequencer")
#endif */
/* #ifndef ENABLE_STEP_SEQUENCER */
property bool load_focus_text: false
/* #endif */
// left overlay
SideOverlays .ButtonArea {
@@ -223,8 +220,13 @@ Item {
anchors .left : parent .left
anchors .leftMargin : - 6 // hides left glow & border
scrollPosition: (deckView .isUpperDeck ) ? upperRemixDeckRowShift - 1 : lowerRemixDeckRowShift - 1
topButtonText: load_focus_text ? " LOAD" : (beatgridEditMode .value ) ? " LOCK" : " BPM"
bottomButtonText: load_focus_text ? " LOAD" : (beatgridEditMode .value ) ? " TICK" : ((focusDeckContentState == " Remix Deck" ) ? " QUANTIZE" : " KEY" )
topButtonText: beatgridEditMode .value ? " LOCK" : " BPM"
/* #ifdef ENABLE_STEP_SEQUENCER */
bottomButtonText: beatgridEditMode .value ? " TICK" : (focusDeckContentState == " Remix Deck" ? (showStepSequencer ? " SWING" : " QUANTIZE" ) : " KEY" )
/* #endif */
/* #ifndef ENABLE_STEP_SEQUENCER
bottomButtonText: beatgridEditMode.value ? "TICK" : (focusDeckContentState == "Remix Deck" ? "QUANTIZE" : "KEY")
#endif */
isTopHighlighted: (beatgridEditMode .value && isTrackLocked .value )
isBottomHighlighted: (beatgridEditMode .value && isTrackTick .value )
}
@@ -234,8 +236,14 @@ Item {
id: buttonArea2
state: " hide"
showHideState: showButtonArea .value ? " show" : " hide"
topButtonText: load_focus_text ? " FOCUS +" : (screenState .state == " BrowserView" ) ? " PREP +" : ((beatgridEditMode .value ) ? " TAP" : " VIEW" )
bottomButtonText: load_focus_text ? " FOCUS -" : (screenState .state == " BrowserView" ) ? " TO PREP" : ((beatgridEditMode .value ) ? " RST" : " ZOOM" )
/* #ifdef ENABLE_STEP_SEQUENCER */
topButtonText: screenState .state == " BrowserView" ? " PREP +" : (beatgridEditMode .value ? " TAP" : (focusDeckContentState == " Remix Deck" && showStepSequencer ? " 1-8" : " VIEW" ))
bottomButtonText: screenState .state == " BrowserView" ? " TO PREP" : (beatgridEditMode .value ? " RST" : (focusDeckContentState == " Remix Deck" && showStepSequencer ? " 9-16" : " ZOOM" ))
/* #endif */
/* #ifndef ENABLE_STEP_SEQUENCER
topButtonText: screenState.state == "BrowserView" ? "PREP +" : (beatgridEditMode.value ? "TAP" : "VIEW")
bottomButtonText: screenState.state == "BrowserView" ? "TO PREP" : (beatgridEditMode.value ? "RST" : "ZOOM")
#endif */
textAngle: 90
anchors .right : parent .right
anchors .rightMargin : - 6 // hides right glow & border
@@ -263,13 +271,12 @@ Item {
buttonArea1 .visible = true
buttonArea1 .contentState = " TextArea"
/* #ifdef ENABLE_STEP_SEQUENCER */
buttonArea2 .contentState = showStepSequencer ? " TextArea" : " ScrollBar"
/* #endif */
/* #ifndef ENABLE_STEP_SEQUENCER
buttonArea2.contentState = "ScrollBar"
}
else if (load_focus_text)
{
buttonArea1 .visible = true
buttonArea1 .contentState = " TextArea"
buttonArea2 .contentState = " TextArea"
#endif */
}
} else if (screenState .state == " BrowserView" ) {
buttonArea1 .visible = false
@@ -281,14 +288,14 @@ Item {
{
if (screen .focusDeckContentState == " Remix Deck" ) {
buttonArea1 .contentState = " TextArea"
/* #ifdef ENABLE_STEP_SEQUENCER */
buttonArea2 .contentState = showStepSequencer ? " TextArea" : " ScrollBar"
/* #endif */
/* #ifndef ENABLE_STEP_SEQUENCER
buttonArea2.contentState = "ScrollBar"
#endif */
deckView .remixUpperDeckRowShift = 1 + ((upperRemixDeckRowShift - 1 ) * 2 )
deckView .remixLowerDeckRowShift = 1 + ((lowerRemixDeckRowShift - 1 ) * 2 )
}
else if (load_focus_text)
{
buttonArea1 .contentState = " TextArea"
buttonArea2 .contentState = " TextArea"
}
}
}