Skip to content

Commit

Permalink
show channel numbers if --ctrlmidich is used (#241, #95)
Browse files Browse the repository at this point in the history
  • Loading branch information
corrados committed Jun 6, 2020
1 parent ab92abf commit 3307365
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

- avoid showing IP address if no name in the musician profile is given (#316)

- show channel numbers if --ctrlmidich is used (#241, #95)

- bug fix: on MacOS declare an activity to ensure the process doesn't get throttled
by OS level Nap, Sleep, and Thread Priority systems, coded by AronVietti (#23)






3.5.5 (2020-05-26)

- added banjo/mandolin instrument icons created by atsampson (#283)
Expand Down
11 changes: 11 additions & 0 deletions src/clientdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
CClientDlg::CClientDlg ( CClient* pNCliP,
CSettings* pNSetP,
const QString& strConnOnStartupAddress,
const int iCtrlMIDIChannel,
const bool bNewShowComplRegConnList,
const bool bShowAnalyzerConsole,
QWidget* parent,
Expand All @@ -37,6 +38,7 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
pClient ( pNCliP ),
pSettings ( pNSetP ),
bConnectDlgWasShown ( false ),
bMIDICtrlUsed ( iCtrlMIDIChannel != INVALID_MIDI_CH ),
ClientSettingsDlg ( pNCliP, parent, Qt::Window ),
ChatDlg ( parent, Qt::Window ),
ConnectDlg ( pNCliP, bNewShowComplRegConnList, parent, Qt::Dialog ),
Expand Down Expand Up @@ -812,6 +814,15 @@ void CClientDlg::OnLicenceRequired ( ELicenceType eLicenceType )

void CClientDlg::OnConClientListMesReceived ( CVector<CChannelInfo> vecChanInfo )
{
// show channel numbers if --ctrlmidich is used (#241, #95)
if ( bMIDICtrlUsed )
{
for ( int i = 0; i < vecChanInfo.Size(); i++ )
{
vecChanInfo[i].strName.prepend ( QString().setNum ( vecChanInfo[i].iChanID ) + ":" );
}
}

// update mixer board with the additional client infos
MainMixerBoard->ApplyNewConClientList ( vecChanInfo );
}
Expand Down
2 changes: 2 additions & 0 deletions src/clientdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class CClientDlg : public QDialog, private Ui_CClientDlgBase
CClientDlg ( CClient* pNCliP,
CSettings* pNSetP,
const QString& strConnOnStartupAddress,
const int iCtrlMIDIChannel,
const bool bNewShowComplRegConnList,
const bool bShowAnalyzerConsole,
QWidget* parent = nullptr,
Expand All @@ -96,6 +97,7 @@ class CClientDlg : public QDialog, private Ui_CClientDlgBase

bool bConnected;
bool bConnectDlgWasShown;
bool bMIDICtrlUsed;
QTimer TimerSigMet;
QTimer TimerBuffersLED;
QTimer TimerStatus;
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ int main ( int argc, char** argv )
CClientDlg ClientDlg ( &Client,
&Settings,
strConnOnStartupAddress,
iCtrlMIDIChannel,
bShowComplRegConnList,
bShowAnalyzerConsole,
nullptr,
Expand Down

0 comments on commit 3307365

Please sign in to comment.