diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/sound-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/sound-example.html')
-rw-r--r-- | doc/html/sound-example.html | 60 |
1 files changed, 30 insertions, 30 deletions
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 <<a href="qmainwindow-h.html">qmainwindow.h</a>> +#include "ntqsound.h" +#include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> -class SoundPlayer : public <a href="qmainwindow.html">TQMainWindow</a> { +class SoundPlayer : public <a href="ntqmainwindow.html">TQMainWindow</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: SoundPlayer(); @@ -66,8 +66,8 @@ public slots: void doPlay1234(); private: - <a href="qsound.html">TQSound</a> bucket3; - <a href="qsound.html">TQSound</a> bucket4; + <a href="ntqsound.html">TQSound</a> bucket3; + <a href="ntqsound.html">TQSound</a> bucket4; }; #endif @@ -92,12 +92,12 @@ private: // #include "sound.h" -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qmessagebox-h.html">qmessagebox.h</a>> -#include <<a href="qmenubar-h.html">qmenubar.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> +#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> <a name="f581"></a>SoundPlayer::SoundPlayer() : - <a href="qmainwindow.html">TQMainWindow</a>(), + <a href="ntqmainwindow.html">TQMainWindow</a>(), 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. // -<a name="x2812"></a> TQMessageBox::<a href="qmessagebox.html#warning">warning</a>(this,"No Sound", +<a name="x2812"></a> TQMessageBox::<a href="ntqmessagebox.html#warning">warning</a>(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"); } - <a href="qpopupmenu.html">TQPopupMenu</a> *file = new <a href="qpopupmenu.html">TQPopupMenu</a>; -<a name="x2810"></a> file-><a href="qmenudata.html#insertItem">insertItem</a>("Play &1", this, SLOT(doPlay1()), CTRL+Key_1); - file-><a href="qmenudata.html#insertItem">insertItem</a>("Play &2", this, SLOT(doPlay2()), CTRL+Key_2); - file-><a href="qmenudata.html#insertItem">insertItem</a>("Play from bucket &3", this, SLOT(doPlay3()), CTRL+Key_3); - file-><a href="qmenudata.html#insertItem">insertItem</a>("Play from bucket &4", this, SLOT(doPlay4()), CTRL+Key_4); -<a name="x2811"></a> file-><a href="qmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="qmenudata.html#insertItem">insertItem</a>("Play 3 and 4 together", this, SLOT(doPlay34())); - file-><a href="qmenudata.html#insertItem">insertItem</a>("Play all together", this, SLOT(doPlay1234())); - file-><a href="qmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="qmenudata.html#insertItem">insertItem</a>("E&xit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>())); - <a href="qmainwindow.html#menuBar">menuBar</a>()->insertItem("&File", file); + <a href="ntqpopupmenu.html">TQPopupMenu</a> *file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>; +<a name="x2810"></a> file-><a href="ntqmenudata.html#insertItem">insertItem</a>("Play &1", this, SLOT(doPlay1()), CTRL+Key_1); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>("Play &2", this, SLOT(doPlay2()), CTRL+Key_2); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>("Play from bucket &3", this, SLOT(doPlay3()), CTRL+Key_3); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>("Play from bucket &4", this, SLOT(doPlay4()), CTRL+Key_4); +<a name="x2811"></a> file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>("Play 3 and 4 together", this, SLOT(doPlay34())); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>("Play all together", this, SLOT(doPlay1234())); + file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>("E&xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>())); + <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem("&File", file); } void <a name="f582"></a>SoundPlayer::doPlay1() { -<a name="x2813"></a> TQSound::<a href="qsound.html#play">play</a>("sounds/1.wav"); +<a name="x2813"></a> TQSound::<a href="ntqsound.html#play">play</a>("sounds/1.wav"); } void <a name="f583"></a>SoundPlayer::doPlay2() { - TQSound::<a href="qsound.html#play">play</a>("sounds/2.wav"); + TQSound::<a href="ntqsound.html#play">play</a>("sounds/2.wav"); } void <a name="f584"></a>SoundPlayer::doPlay3() @@ -162,20 +162,20 @@ void <a name="f586"></a>SoundPlayer::doPlay34() void <a name="f587"></a>SoundPlayer::doPlay1234() { // Some sound platforms will only play one sound at a time - TQSound::<a href="qsound.html#play">play</a>("sounds/1.wav"); - TQSound::<a href="qsound.html#play">play</a>("sounds/2.wav"); + TQSound::<a href="ntqsound.html#play">play</a>("sounds/1.wav"); + TQSound::<a href="ntqsound.html#play">play</a>("sounds/2.wav"); bucket3.play(); bucket4.play(); } int main(int argc, char** argv) { - <a href="qapplication.html">TQApplication</a> app(argc,argv); + <a href="ntqapplication.html">TQApplication</a> app(argc,argv); SoundPlayer sp; - app.<a href="qapplication.html#setMainWidget">setMainWidget</a>(&sp); - sp.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Sounds"); - sp.<a href="qwidget.html#show">show</a>(); - return app.<a href="qapplication.html#exec">exec</a>(); + app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(&sp); + sp.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Sounds"); + sp.<a href="ntqwidget.html#show">show</a>(); + return app.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |