// qjackctlAboutForm.cpp // /**************************************************************************** Copyright (C) 2003-2007, rncbc aka Rui Nuno Capela. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *****************************************************************************/ #include "qjackctlAbout.h" #include "qjackctlAboutForm.h" #include //---------------------------------------------------------------------------- // qjackctlAboutForm -- UI wrapper form. // Constructor. qjackctlAboutForm::qjackctlAboutForm ( QWidget *pParent, Qt::WindowFlags wflags ) : QDialog(pParent, wflags) { // Setup UI struct... m_ui.setupUi(this); // Stuff the about box... QString sText = "


\n"; sText += "" + tr(QJACKCTL_SUBTITLE) + "
\n"; sText += "
\n"; sText += tr("Version") + ": " QJACKCTL_VERSION "
\n"; sText += tr("Build") + ": " __DATE__ " " __TIME__ "
\n"; #ifdef CONFIG_DEBUG sText += ""; sText += tr("Debugging option enabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_SYSTEM_TRAY sText += ""; sText += tr("System tray disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_JACK_TRANSPORT sText += ""; sText += tr("Transport status control disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_JACK_REALTIME sText += ""; sText += tr("Realtime status disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_JACK_XRUN_DELAY sText += ""; sText += tr("XRUN delay status disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_JACK_MAX_DELAY sText += ""; sText += tr("Maximum delay status disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_JACK_MIDI sText += ""; sText += tr("JACK MIDI support disabled."); sText += "
\n"; sText += "
"; #endif #ifndef CONFIG_ALSA_SEQ #if !defined(WIN32) sText += ""; sText += tr("ALSA/MIDI sequencer support disabled."); sText += "
\n"; sText += "
"; #endif #endif sText += "
\n"; sText += tr("Website") + ": " QJACKCTL_WEBSITE "
\n"; sText += "
\n"; sText += ""; sText += QJACKCTL_COPYRIGHT "
\n"; sText += "
\n"; sText += tr("This program is free software; you can redistribute it and/or modify it") + "
\n"; sText += tr("under the terms of the GNU General Public License version 2 or later."); sText += "
"; sText += "

\n"; m_ui.AboutTextView->setText(sText); // UI connections... QObject::connect(m_ui.AboutQtButton, SIGNAL(clicked()), SLOT(aboutQt())); QObject::connect(m_ui.ClosePushButton, SIGNAL(clicked()), SLOT(close())); } // Destructor. qjackctlAboutForm::~qjackctlAboutForm (void) { } // About Qt request. void qjackctlAboutForm::aboutQt() { QMessageBox::aboutQt(this); } // end of qjackctlAboutForm.cpp