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

* Removed remaining references to 'helvetica' fonts.
This commit is contained in:
Fred Gleason
2019-10-07 18:17:59 -04:00
parent e7812d3c85
commit bbdf522fe2
22 changed files with 141 additions and 461 deletions

View File

@@ -50,15 +50,13 @@ all:
lrelease-qt4 rdhpi.pro
lib_LTLIBRARIES = librdhpi.la
dist_librdhpi_la_SOURCES = rdhpicardselector.cpp rdhpicardselector.h\
rdhpiinformation.cpp rdhpiinformation.h\
dist_librdhpi_la_SOURCES = rdhpiinformation.cpp rdhpiinformation.h\
rdhpiplaystream.cpp rdhpiplaystream.h\
rdhpirecordstream.cpp rdhpirecordstream.h\
rdhpisoundcard.cpp rdhpisoundcard.h\
rdhpisoundselector.cpp rdhpisoundselector.h
nodist_librdhpi_la_SOURCES = moc_rdhpicardselector.cpp\
moc_rdhpiplaystream.cpp\
nodist_librdhpi_la_SOURCES = moc_rdhpiplaystream.cpp\
moc_rdhpirecordstream.cpp\
moc_rdhpisoundcard.cpp\
moc_rdhpisoundselector.cpp

View File

@@ -24,14 +24,12 @@
# purely for the sake of i18n support.
#
SOURCES += rdhpicardselector.cpp
SOURCES += rdhpiinformation.cpp
SOURCES += rdhpiplaystream.cpp
SOURCES += rdhpirecordstream.cpp
SOURCES += rdhpisoundcard.cpp
SOURCES += rdhpisoundselector.cpp
HEADERS += rdhpicardselector.h
HEADERS += rdhpiinformation.h
HEADERS += rdhpiplaystream.h
HEADERS += rdhpirecordstream.h

View File

@@ -1,172 +0,0 @@
// rdhpicardselector.cpp
//
// Audio card selector widget for Rivendell
//
// (C) Copyright 2002-2016 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
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#include <qdialog.h>
#include <qstring.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qlineedit.h>
#include <q3textedit.h>
#include <qlabel.h>
#include <qpainter.h>
#include <qevent.h>
#include <qmessagebox.h>
#include <q3buttongroup.h>
#include <rdhpisoundcard.h>
#include <rdhpicardselector.h>
RDHPICardSelector::RDHPICardSelector(QWidget *parent)
: QWidget(parent)
{
QFont font;
yoffset=0;
//
// Generate Font
//
font=QFont("Helvetica",12,QFont::Bold);
font.setPixelSize(12);
//
// Title
//
card_title=new QLabel(this);
card_title->setGeometry(0,0,geometry().width(),19);
card_title->setFont(font);
card_title->setAlignment(Qt::AlignHCenter);
card_title->hide();
//
// Card
//
card_card_box=new QSpinBox(this);
card_card_box->setGeometry(60,yoffset,50,19);
card_card_box->setSpecialValueText("None");
card_card_box->setMinValue(-1);
card_card_box->setMaxValue(HPI_MAX_ADAPTERS-1);
card_card_box->setValue(-1);
connect(card_card_box,SIGNAL(valueChanged(int)),this,SLOT(cardData(int)));
card_card_label=new QLabel(card_card_box,"Card:",this);
card_card_label->setGeometry(0,yoffset+2,55,19);
card_card_label->setAlignment(Qt::AlignRight|Qt::TextShowMnemonic);
//
// Port
//
card_port_box=new QSpinBox(this);
card_port_box->setGeometry(60,yoffset+22,50,19);
card_port_box->setMinValue(0);
card_port_box->setMaxValue(HPI_MAX_NODES-1);
card_port_box->setDisabled(true);
connect(card_port_box,SIGNAL(valueChanged(int)),this,SLOT(portData(int)));
card_port_label=new QLabel(card_port_box,"Port:",this);
card_port_label->setGeometry(0,yoffset+24,55,19);
card_port_label->setAlignment(Qt::AlignRight|Qt::TextShowMnemonic);
}
RDHPICardSelector::~RDHPICardSelector()
{
delete card_title;
delete card_card_box;
delete card_port_box;
}
QSize RDHPICardSelector::sizeHint() const
{
return QSize(110,43+yoffset);
}
QSizePolicy RDHPICardSelector::sizePolicy() const
{
return QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
}
QString RDHPICardSelector::title() const
{
return card_title->text();
}
void RDHPICardSelector::setTitle(QString title)
{
card_title->setText(title);
if(title.isEmpty()) {
yoffset=0;
card_title->hide();
}
else {
yoffset=22;
card_title->show();
}
card_card_box->setGeometry(60,yoffset,50,19);
card_card_label->setGeometry(0,yoffset+2,55,19);
card_port_box->setGeometry(60,yoffset+22,50,19);
card_port_label->setGeometry(0,yoffset+24,55,19);
}
int RDHPICardSelector::card() const
{
return card_card_box->value();
}
void RDHPICardSelector::setCard(int card)
{
card_card_box->setValue(card);
}
int RDHPICardSelector::port() const
{
return card_port_box->value();
}
void RDHPICardSelector::setPort(int port)
{
card_port_box->setValue(port);
}
void RDHPICardSelector::cardData(int card)
{
if(card>=0) {
card_port_box->setEnabled(true);
}
else {
card_port_box->setDisabled(true);
}
emit cardChanged(card);
}
void RDHPICardSelector::portData(int port)
{
emit portChanged(port);
}

View File

@@ -1,62 +0,0 @@
// rdhpicardselector.h
//
// Audio Card Selector Widget
//
// (C) Copyright 2002-2007,2016 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
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef RDHPICARDSELECTOR_H
#define RDHPICARDSELECTOR_H
#include <qwidget.h>
#include <qspinbox.h>
#include <qlabel.h>
class RDHPICardSelector : public QWidget
{
Q_OBJECT
public:
RDHPICardSelector(QWidget *parent=0);
~RDHPICardSelector();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
QString title() const;
void setTitle(QString title);
int card() const;
void setCard(int card);
int port() const;
void setPort(int port);
signals:
void cardChanged(int card);
void portChanged(int port);
private slots:
void cardData(int);
void portData(int);
private:
QLabel *card_card_label;
QSpinBox *card_card_box;
QLabel *card_port_label;
QSpinBox *card_port_box;
QLabel *card_title;
int yoffset;
};
#endif // RDHPICARDSELECTOR_H