summaryrefslogtreecommitdiffstats
path: root/doc/html/biff-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/biff-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/biff-example.html')
-rw-r--r--doc/html/biff-example.html84
1 files changed, 42 insertions, 42 deletions
diff --git a/doc/html/biff-example.html b/doc/html/biff-example.html
index 5a5570a0d..8756b4385 100644
--- a/doc/html/biff-example.html
+++ b/doc/html/biff-example.html
@@ -50,16 +50,16 @@ mail; it looks exactly like xbiff but is much shorter.
#ifndef BIFF_H
#define BIFF_H
-#include &lt;<a href="qwidget-h.html">qwidget.h</a>&gt;
-#include &lt;<a href="qdatetime-h.html">qdatetime.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">qpixmap.h</a>&gt;
+#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
+#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
-class Biff : public <a href="qwidget.html">TQWidget</a>
+class Biff : public <a href="ntqwidget.html">TQWidget</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- Biff( <a href="qwidget.html">TQWidget</a> *parent=0, const char *name=0 );
+ Biff( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
protected:
void timerEvent( <a href="qtimerevent.html">TQTimerEvent</a> * );
@@ -67,10 +67,10 @@ protected:
void mousePressEvent( <a href="qmouseevent.html">TQMouseEvent</a> * );
private:
- <a href="qdatetime.html">TQDateTime</a> lastModified;
- <a href="qpixmap.html">TQPixmap</a> hasNewMail;
- <a href="qpixmap.html">TQPixmap</a> noNewMail;
- <a href="qstring.html">TQString</a> mailbox;
+ <a href="ntqdatetime.html">TQDateTime</a> lastModified;
+ <a href="ntqpixmap.html">TQPixmap</a> hasNewMail;
+ <a href="ntqpixmap.html">TQPixmap</a> noNewMail;
+ <a href="ntqstring.html">TQString</a> mailbox;
bool gotMail;
};
@@ -93,9 +93,9 @@ how two images (<em>hasmail_bmp_data</em> and <em>nomail_bmp_data</em>, both fro
*****************************************************************************/
#include "biff.h"
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
-#include &lt;<a href="qfileinfo-h.html">qfileinfo.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">qpainter.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="qfileinfo-h.html">ntqfileinfo.h</a>&gt;
+#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;unistd.h&gt;
#include &lt;stdlib.h&gt;
@@ -103,60 +103,60 @@ how two images (<em>hasmail_bmp_data</em> and <em>nomail_bmp_data</em>, both fro
#include "bmp.cpp"
-<a name="f527"></a>Biff::Biff( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="qwidget.html">TQWidget</a>( parent, name, WShowModal | WType_Dialog )
+<a name="f527"></a>Biff::Biff( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
+ : <a href="ntqwidget.html">TQWidget</a>( parent, name, WShowModal | WType_Dialog )
{
- <a href="qfileinfo.html">TQFileInfo</a> fi = TQString(getenv( "MAIL" ));
-<a name="x1955"></a> if ( !fi.<a href="qfileinfo.html#exists">exists</a>() ) {
- <a href="qstring.html">TQString</a> s( "/var/spool/mail/" );
+ <a href="ntqfileinfo.html">TQFileInfo</a> fi = TQString(getenv( "MAIL" ));
+<a name="x1955"></a> if ( !fi.<a href="ntqfileinfo.html#exists">exists</a>() ) {
+ <a href="ntqstring.html">TQString</a> s( "/var/spool/mail/" );
s += getlogin();
-<a name="x1958"></a> fi.<a href="qfileinfo.html#setFile">setFile</a>( s );
+<a name="x1958"></a> fi.<a href="ntqfileinfo.html#setFile">setFile</a>( s );
}
- if ( fi.<a href="qfileinfo.html#exists">exists</a>() ) {
-<a name="x1954"></a> mailbox = fi.<a href="qfileinfo.html#absFilePath">absFilePath</a>();
- <a href="qobject.html#startTimer">startTimer</a>( 1000 );
+ if ( fi.<a href="ntqfileinfo.html#exists">exists</a>() ) {
+<a name="x1954"></a> mailbox = fi.<a href="ntqfileinfo.html#absFilePath">absFilePath</a>();
+ <a href="ntqobject.html#startTimer">startTimer</a>( 1000 );
}
- <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( 48, 48 );
- <a href="qwidget.html#setMaximumSize">setMaximumSize</a>( 48, 48 );
- <a href="qwidget.html#resize">resize</a>( 48, 48 );
+ <a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 48, 48 );
+ <a href="ntqwidget.html#setMaximumSize">setMaximumSize</a>( 48, 48 );
+ <a href="ntqwidget.html#resize">resize</a>( 48, 48 );
hasNewMail.loadFromData( hasmail_bmp_data, hasmail_bmp_len );
noNewMail.loadFromData( nomail_bmp_data, nomail_bmp_len );
gotMail = FALSE;
-<a name="x1956"></a> lastModified = fi.<a href="qfileinfo.html#lastModified">lastModified</a>();
+<a name="x1956"></a> lastModified = fi.<a href="ntqfileinfo.html#lastModified">lastModified</a>();
}
-<a name="x1959"></a>void Biff::<a href="qobject.html#timerEvent">timerEvent</a>( <a href="qtimerevent.html">TQTimerEvent</a> * )
+<a name="x1959"></a>void Biff::<a href="ntqobject.html#timerEvent">timerEvent</a>( <a href="qtimerevent.html">TQTimerEvent</a> * )
{
- <a href="qfileinfo.html">TQFileInfo</a> fi( mailbox );
- bool newState = ( fi.<a href="qfileinfo.html#lastModified">lastModified</a>() != lastModified &amp;&amp;
-<a name="x1957"></a> fi.<a href="qfileinfo.html#lastModified">lastModified</a>() &gt; fi.<a href="qfileinfo.html#lastRead">lastRead</a>() );
+ <a href="ntqfileinfo.html">TQFileInfo</a> fi( mailbox );
+ bool newState = ( fi.<a href="ntqfileinfo.html#lastModified">lastModified</a>() != lastModified &amp;&amp;
+<a name="x1957"></a> fi.<a href="ntqfileinfo.html#lastModified">lastModified</a>() &gt; fi.<a href="ntqfileinfo.html#lastRead">lastRead</a>() );
if ( newState != gotMail ) {
if ( gotMail )
- lastModified = fi.<a href="qfileinfo.html#lastModified">lastModified</a>();
+ lastModified = fi.<a href="ntqfileinfo.html#lastModified">lastModified</a>();
gotMail = newState;
- <a href="qwidget.html#repaint">repaint</a>( FALSE );
+ <a href="ntqwidget.html#repaint">repaint</a>( FALSE );
}
}
-void Biff::<a href="qwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
+void Biff::<a href="ntqwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> * )
{
if ( gotMail )
- <a href="qimage.html#bitBlt">bitBlt</a>( this, 0, 0, &amp;hasNewMail );
+ <a href="ntqimage.html#bitBlt">bitBlt</a>( this, 0, 0, &amp;hasNewMail );
else
- <a href="qimage.html#bitBlt">bitBlt</a>( this, 0, 0, &amp;noNewMail );
+ <a href="ntqimage.html#bitBlt">bitBlt</a>( this, 0, 0, &amp;noNewMail );
}
-<a name="x1960"></a>void Biff::<a href="qwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * )
+<a name="x1960"></a>void Biff::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * )
{
- <a href="qfileinfo.html">TQFileInfo</a> fi( mailbox );
- lastModified = fi.<a href="qfileinfo.html#lastModified">lastModified</a>();
+ <a href="ntqfileinfo.html">TQFileInfo</a> fi( mailbox );
+ lastModified = fi.<a href="ntqfileinfo.html#lastModified">lastModified</a>();
}
</pre>
@@ -172,17 +172,17 @@ void Biff::<a href="qwidget.html#paintEvent">paintEvent</a>( <a href="qpainteven
**
*****************************************************************************/
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include "biff.h"
int main( int argc, char ** argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
Biff b;
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;b );
- b.<a href="qwidget.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;b );
+ b.<a href="ntqwidget.html#show">show</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>