2019-10-02 Fred Gleason <fredg@paravelsystems.com>

* Refactored rdairplay(1) to use the 'RDDialog' and 'RDWidget'
	base classes.
This commit is contained in:
Fred Gleason
2019-10-02 16:08:48 -04:00
parent 8ca15c773d
commit 44a0941df9
45 changed files with 465 additions and 711 deletions

View File

@@ -2,7 +2,7 @@
//
// The button log widget for RDAirPlay
//
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -18,20 +18,11 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#include <qtimer.h>
#include <qpixmap.h>
#include <qpainter.h>
#include <rdapplication.h>
#include <rdlistviewitem.h>
#include "button_log.h"
#include "colors.h"
#include "globals.h"
ButtonLog::ButtonLog(RDLogPlay *log,RDCae *cae,int id,RDAirPlayConf *conf,
bool allow_pause,QWidget *parent)
: QWidget(parent)
: RDWidget(parent)
{
log_id=id;
log_log=log;
@@ -41,9 +32,6 @@ ButtonLog::ButtonLog(RDLogPlay *log,RDCae *cae,int id,RDAirPlayConf *conf,
log_time_mode=RDAirPlayConf::TwentyFourHour;
log_pause_enabled=allow_pause;
QFont font=QFont("Helvetica",14,QFont::Bold);
font.setPixelSize(14);
//
// Set Mappings
//