// help_audios.cpp // // Display help for audio ports (edit_audios.*) // // (C) Copyright 2006-2019 Fred Gleason // // 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 #include "help_audios.h" HelpAudioPorts::HelpAudioPorts(QWidget *parent) : RDDialog(parent) { setModal(true); // // Fix the Window Size // setMinimumSize(sizeHint()); setMaximumSize(sizeHint()); setWindowTitle("RDAdmin - "+tr("Audio Ports Help")); // Help Text help_edit=new Q3TextEdit(this,"help_edit"); help_edit-> 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. help_edit->setText(tr("Mode - short for Channel Mode, configures the Left and Right behaviour when recording.
\ Behaviour varies depending on the number of channels to record as summarized in the table below:
\ \ \ \ \ \ \ \ \ \ \
Channels Mode Effect
Mono Normal L+R sum to mono
Mono Swap R+L sum to mono (same result as Normal)
Mono Qt::DockLeft only L -> mono
Mono Qt::DockRight only R -> mono
Stereo Normal Stereo
Stereo Swap Swapped stereo
Stereo Qt::DockLeft only L -> to L channel only, R channel is silent
Stereo Qt::DockRight only R -> to R channel only, L channel is silent
")); // // Close Button // QPushButton *button=new QPushButton(this); button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,80,50); button->setFont(buttonFont()); button->setText(tr("&Close")); connect(button,SIGNAL(clicked()),this,SLOT(closeData())); } QSize HelpAudioPorts::sizeHint() const { return QSize(600,400); } QSizePolicy HelpAudioPorts::sizePolicy() const { return QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed); } void HelpAudioPorts::closeData() { done(0); }