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

* Refactored the layout in rdairplay(1) to achieve cleaner
	separation of global and per-log UI elements.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-26 11:26:44 -04:00
parent 8cd0e7dbdf
commit d0aa89aa75
16 changed files with 446 additions and 216 deletions

View File

@@ -43,7 +43,9 @@ PieCounter::PieCounter(int count_length,QWidget *parent)
onair_on_palette=palette();
onair_on_palette.setColor(QPalette::Background,PIE_ONAIR_COLOR);
onair_off_palette=palette();
onair_on_palette.setColor(QPalette::Background,QColor("#D0D0D0"));
setPalette(onair_on_palette);
setAutoFillBackground(true);
pie_time_label=new QLabel(":00",this);
@@ -236,6 +238,8 @@ void PieCounter::paintEvent(QPaintEvent *e)
int talk_angle=(int)
(-5760.0*((double)pie_talk_end-(double)pie_talk_start)/(double)pie_length);
QPainter *p=new QPainter(&pix);
p->setRenderHint(QPainter::Antialiasing,true);
p->setRenderHint(QPainter::SmoothPixmapTransform,true);
double ring_angle = ((pie_length < (pie_count_length) ? pie_length : pie_count_length) -
((pie_time > pie_count_length) ? pie_count_length : pie_time));
if (pie_count_length)