From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/sound-example.html | 60 ++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'doc/html/sound-example.html') diff --git a/doc/html/sound-example.html b/doc/html/sound-example.html index 8fe39cee6..c2ba5b421 100644 --- a/doc/html/sound-example.html +++ b/doc/html/sound-example.html @@ -49,10 +49,10 @@ if your machine is set up to play audio. #ifndef PLAY_H #define PLAY_H -#include "qsound.h" -#include <qmainwindow.h> +#include "ntqsound.h" +#include <ntqmainwindow.h> -class SoundPlayer : public TQMainWindow { +class SoundPlayer : public TQMainWindow { Q_OBJECT public: SoundPlayer(); @@ -66,8 +66,8 @@ public slots: void doPlay1234(); private: - TQSound bucket3; - TQSound bucket4; + TQSound bucket3; + TQSound bucket4; }; #endif @@ -92,12 +92,12 @@ private: // #include "sound.h" -#include <qapplication.h> -#include <qmessagebox.h> -#include <qmenubar.h> +#include <ntqapplication.h> +#include <ntqmessagebox.h> +#include <ntqmenubar.h> SoundPlayer::SoundPlayer() : - TQMainWindow(), + TQMainWindow(), bucket3("sounds/3.wav"), bucket4("sounds/4.wav") { @@ -105,7 +105,7 @@ private: // Bail out. Programs in which sound is not critical // could just silently (hehe) ignore the lack of a server. // - TQMessageBox::warning(this,"No Sound", + TQMessageBox::warning(this,"No Sound", "<p><b>Sorry, you are not running the Network Audio System.</b>" "<p>If you have the `au' command, run it in the background before this program. " "The latest release of the Network Audio System can be obtained from:" @@ -119,27 +119,27 @@ private: "<p>After installing NAS, you will then need to reconfigure TQt with NAS sound support"); } - TQPopupMenu *file = new TQPopupMenu; - file->insertItem("Play &1", this, SLOT(doPlay1()), CTRL+Key_1); - file->insertItem("Play &2", this, SLOT(doPlay2()), CTRL+Key_2); - file->insertItem("Play from bucket &3", this, SLOT(doPlay3()), CTRL+Key_3); - file->insertItem("Play from bucket &4", this, SLOT(doPlay4()), CTRL+Key_4); - file->insertSeparator(); - file->insertItem("Play 3 and 4 together", this, SLOT(doPlay34())); - file->insertItem("Play all together", this, SLOT(doPlay1234())); - file->insertSeparator(); - file->insertItem("E&xit", qApp, SLOT(quit())); - menuBar()->insertItem("&File", file); + TQPopupMenu *file = new TQPopupMenu; + file->insertItem("Play &1", this, SLOT(doPlay1()), CTRL+Key_1); + file->insertItem("Play &2", this, SLOT(doPlay2()), CTRL+Key_2); + file->insertItem("Play from bucket &3", this, SLOT(doPlay3()), CTRL+Key_3); + file->insertItem("Play from bucket &4", this, SLOT(doPlay4()), CTRL+Key_4); + file->insertSeparator(); + file->insertItem("Play 3 and 4 together", this, SLOT(doPlay34())); + file->insertItem("Play all together", this, SLOT(doPlay1234())); + file->insertSeparator(); + file->insertItem("E&xit", qApp, SLOT(quit())); + menuBar()->insertItem("&File", file); } void SoundPlayer::doPlay1() { - TQSound::play("sounds/1.wav"); + TQSound::play("sounds/1.wav"); } void SoundPlayer::doPlay2() { - TQSound::play("sounds/2.wav"); + TQSound::play("sounds/2.wav"); } void SoundPlayer::doPlay3() @@ -162,20 +162,20 @@ void SoundPlayer::doPlay34() void SoundPlayer::doPlay1234() { // Some sound platforms will only play one sound at a time - TQSound::play("sounds/1.wav"); - TQSound::play("sounds/2.wav"); + TQSound::play("sounds/1.wav"); + TQSound::play("sounds/2.wav"); bucket3.play(); bucket4.play(); } int main(int argc, char** argv) { - TQApplication app(argc,argv); + TQApplication app(argc,argv); SoundPlayer sp; - app.setMainWidget(&sp); - sp.setCaption("TQt Example - Sounds"); - sp.show(); - return app.exec(); + app.setMainWidget(&sp); + sp.setCaption("TQt Example - Sounds"); + sp.show(); + return app.exec(); } -- cgit v1.2.1