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

* Added an 'RDDialog' class.
	* Added an 'RDWidget' class.
	* Refactored rdadmin(1) to use 'RDDialog' and 'RDWidget' base
	classes.
This commit is contained in:
Fred Gleason
2019-10-01 11:17:23 -04:00
parent bfee1c8440
commit f18dacf408
170 changed files with 2949 additions and 3121 deletions

View File

@@ -2,7 +2,7 @@
//
// Display help for audio ports (edit_audios.*)
//
// (C) Copyright 2006-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2006-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
@@ -20,33 +20,25 @@
#include <qpushbutton.h>
#include <help_audios.h>
#include "help_audios.h"
HelpAudioPorts::HelpAudioPorts(QWidget *parent)
: QDialog(parent)
: RDDialog(parent)
{
setModal(true);
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
setMinimumSize(sizeHint());
setMaximumSize(sizeHint());
setWindowTitle("RDAdmin - "+tr("Audio Ports Help"));
//
// Create Fonts
//
QFont button_font=QFont("Helvetica",14,QFont::Bold);
button_font.setPixelSize(14);
// Help Text
help_edit=new Q3TextEdit(this,"help_edit");
help_edit->
setGeometry(10,10,sizeHint().width()-20,sizeHint().height()-70);
setGeometry(10,10,sizeHint().width()-20,sizeHint().height()-80);
help_edit->setTextFormat(Qt::RichText);
help_edit->setReadOnly(true);
// FIXME: add context sensitive help for other options on the Audio Port screen.
@@ -69,7 +61,7 @@ HelpAudioPorts::HelpAudioPorts(QWidget *parent)
//
QPushButton *button=new QPushButton(this);
button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,80,50);
button->setFont(button_font);
button->setFont(buttonFont());
button->setText(tr("&Close"));
connect(button,SIGNAL(clicked()),this,SLOT(closeData()));
}