another merge fixes, still not working correctly
This commit is contained in:
parent
fc4816aec1
commit
7f037f21e2
2 changed files with 8 additions and 24 deletions
|
@ -183,9 +183,6 @@ CChannelFader::CChannelFader ( QWidget* pNW )
|
|||
|
||||
QObject::connect ( pcbSolo, &QCheckBox::stateChanged,
|
||||
this, &CChannelFader::soloStateChanged );
|
||||
|
||||
QObject::connect ( pcbGroup, &QCheckBox::stateChanged,
|
||||
this, &CChannelFader::OnSelectStateChanged );
|
||||
}
|
||||
|
||||
void CChannelFader::SetGUIDesign ( const EGUIDesign eNewDesign )
|
||||
|
@ -340,7 +337,6 @@ void CChannelFader::Reset()
|
|||
|
||||
bOtherChannelIsSolo = false;
|
||||
bIsMyOwnFader = false;
|
||||
bIsSelected = false;
|
||||
}
|
||||
|
||||
void CChannelFader::SetFaderLevel ( const int iLevel )
|
||||
|
@ -626,12 +622,6 @@ double CChannelFader::CalcFaderGain ( const int value )
|
|||
}
|
||||
}
|
||||
|
||||
void CChannelFader::OnSelectStateChanged ( int value )
|
||||
{
|
||||
// call selecting function
|
||||
SetSelected ( static_cast<Qt::CheckState> ( value ) == Qt::Checked );
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* CAudioMixerBoard *
|
||||
|
@ -1041,12 +1031,10 @@ void CAudioMixerBoard::UpdateGainValue ( const int iChannelIdx,
|
|||
// if this fader is selected, all other selected must be updated as well
|
||||
if ( vecpChanFader[iChannelIdx]->IsSelect() )
|
||||
{
|
||||
for ( int i = MAX_NUM_CHANNELS - 1; i >= 0; i-- )
|
||||
for ( int i = 0; i < MAX_NUM_CHANNELS; i++ )
|
||||
{
|
||||
// update rest of faders selected
|
||||
if ( vecpChanFader[i]->IsSelect() )
|
||||
{
|
||||
if ( i != iChannelIdx )
|
||||
if ( vecpChanFader[i]->IsVisible() && vecpChanFader[i]->IsSelect() && ( i != iChannelIdx ) )
|
||||
{
|
||||
// temporaly unselect so it does not repeat this again and again...
|
||||
vecpChanFader[i]->SetFaderIsSelect ( false );
|
||||
|
@ -1060,7 +1048,6 @@ void CAudioMixerBoard::UpdateGainValue ( const int iChannelIdx,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CAudioMixerBoard::UpdatePanValue ( const int iChannelIdx,
|
||||
const double dValue )
|
||||
|
|
|
@ -83,7 +83,6 @@ protected:
|
|||
void SendFaderLevelToServer ( const int iLevel );
|
||||
void SendPanValueToServer ( const int iPan );
|
||||
void SetupFaderTag ( const ESkillLevel eSkillLevel );
|
||||
void SetSelected ( const bool bState ) { bIsSelected = bState; }
|
||||
|
||||
QFrame* pFrame;
|
||||
|
||||
|
@ -110,14 +109,12 @@ protected:
|
|||
|
||||
bool bOtherChannelIsSolo;
|
||||
bool bIsMyOwnFader;
|
||||
bool bIsSelected;
|
||||
int iPreviousFaderLevel;
|
||||
|
||||
public slots:
|
||||
void OnLevelValueChanged ( int value ) { SendFaderLevelToServer ( value ); }
|
||||
void OnPanValueChanged ( int value ) { SendPanValueToServer ( value ); }
|
||||
void OnMuteStateChanged ( int value );
|
||||
void OnSelectStateChanged ( int value );
|
||||
|
||||
signals:
|
||||
void gainValueChanged ( double value, bool bIsMyOwnFader, int iDiffLevel );
|
||||
|
|
Loading…
Reference in a new issue