2021-07-06 Fred Gleason <fredg@paravelsystems.com>

* Modified the buttons in the Sound Panel widget in rdairplay(1) to
	display channel labels when playing.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-07-06 12:07:14 -04:00
parent aa5238acf2
commit 6da2004233
5 changed files with 55 additions and 19 deletions

View File

@@ -1057,6 +1057,35 @@ QString RDAirPlayConf::channelText(RDAirPlayConf::Channel chan)
}
QString RDAirPlayConf::soundPanelChannelName(int mport)
{
return portLabel(RDAirPlayConf::soundPanelChannel(mport));
}
RDAirPlayConf::Channel RDAirPlayConf::soundPanelChannel(int mport)
{
switch(mport-1) {
case 0:
return RDAirPlayConf::SoundPanel1Channel;
case 1:
return RDAirPlayConf::SoundPanel2Channel;
case 2:
return RDAirPlayConf::SoundPanel3Channel;
case 3:
return RDAirPlayConf::SoundPanel4Channel;
case 4:
return RDAirPlayConf::SoundPanel5Channel;
}
return RDAirPlayConf::CueChannel;
}
QString RDAirPlayConf::logModeText(RDAirPlayConf::OpMode mode)
{
QString ret=QObject::tr("Unknown");