Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/199/head
Michele Calgaro 2 months ago
parent 755d46927c
commit 397b7afa8e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

8
.gitignore vendored

@ -181,8 +181,8 @@ Makefile
/examples/xml/outliner/outliner
/examples/xml/tagreader/tagreader
/examples/xml/tagreader-with-features/tagreader-with-features
/include/ntqconfig.h
/include/ntqmodules.h
/include/tqconfig.h
/include/tqmodules.h
/listvieweditor.h
/mkspecs/default
/plugins/designer/
@ -191,7 +191,7 @@ Makefile
/plugins/sqldrivers/
/plugins/styles/
/qmake/tqmake
/src/tools/qconfig.cpp
/src/tools/tqconfig.cpp
/tools/assistant/finddialog.cpp
/tools/assistant/finddialog.h
/tools/assistant/helpdialog.cpp
@ -294,7 +294,7 @@ Makefile
/tools/linguist/tutorial/tt2/tt2
/tools/linguist/tutorial/tt3/tt3
/tools/msg2tqm/msg2tqm
/tools/qconfig/qconfig
/tools/tqconfig/tqconfig
/tools/qembed/tqembed
/tools/qtconfig/mainwindowbase.cpp
/tools/qtconfig/mainwindowbase.h

102
configure vendored

@ -48,10 +48,10 @@ PLATFORM_X11=no
PLATFORM_MAC=no
PLATFORM_QNX=no
if [ -f $relpath/src/kernel/qapplication_mac.cpp ] && [ -d /System/Library/Frameworks/Carbon.framework ]; then
if [ -f $relpath/src/kernel/tqapplication_mac.cpp ] && [ -d /System/Library/Frameworks/Carbon.framework ]; then
# Qt/Mac
# ~ the Carbon SDK exists
# ~ src/kernel/qapplication_mac.cpp is present
# ~ src/kernel/tqapplication_mac.cpp is present
# ~ this is the internal edition and Qt/Mac sources exist
PLATFORM_MAC=maybe
fi
@ -337,7 +337,7 @@ while [ "$#" -gt 0 ]; do
sysshare)
QT_INSTALL_SHARE="$VAL"
;;
qconfig)
tqconfig)
CFG_QCONFIG="$VAL"
;;
bindir)
@ -853,7 +853,7 @@ while [ "$#" -gt 0 ]; do
done
#-------------------------------------------------------------------------------
# post initialize QT_INSTALL_* variables, and generate qconfig.cpp
# post initialize QT_INSTALL_* variables, and generate tqconfig.cpp
#-------------------------------------------------------------------------------
# default $outpath
@ -877,9 +877,9 @@ done
# default PREFIX/share
[ -z "$QT_INSTALL_SHARE" ] && QT_INSTALL_SHARE=$QT_INSTALL_PREFIX/share
# generate qconfig.cpp
# generate tqconfig.cpp
[ -d $outpath/src/tools ] || mkdir -p $outpath/src/tools
cat > $outpath/src/tools/qconfig.cpp.new <<EOF
cat > $outpath/src/tools/tqconfig.cpp.new <<EOF
/* Install paths from configure */
#include "tqglobal.h"
@ -907,13 +907,13 @@ const char *tqInstallPathSysconf() { return QT_INSTALL_SYSCONF + 11; }
const char *tqInstallPathShare() { return QT_INSTALL_SHARE + 11; }
EOF
# avoid unecessary rebuilds by copying only if qconfig.cpp has changed
if cmp -s $outpath/src/tools/qconfig.cpp $outpath/src/tools/qconfig.cpp.new; then
rm -f $outpath/src/tools/qconfig.cpp.new
# avoid unecessary rebuilds by copying only if tqconfig.cpp has changed
if cmp -s $outpath/src/tools/tqconfig.cpp $outpath/src/tools/tqconfig.cpp.new; then
rm -f $outpath/src/tools/tqconfig.cpp.new
else
[ -f $outpath/src/tools/qconfig.cpp ] && chmod +w $outpath/src/tools/qconfig.cpp
mv $outpath/src/tools/qconfig.cpp.new $outpath/src/tools/qconfig.cpp
chmod -w $outpath/src/tools/qconfig.cpp
[ -f $outpath/src/tools/tqconfig.cpp ] && chmod +w $outpath/src/tools/tqconfig.cpp
mv $outpath/src/tools/tqconfig.cpp.new $outpath/src/tools/tqconfig.cpp
chmod -w $outpath/src/tools/tqconfig.cpp
fi
@ -928,18 +928,18 @@ WHICH=$unixtests/which.test
### skip this if the user just needs help...
if [ "$OPT_HELP" != "yes" ]; then
# create the include and include/qmake directory (for ntqconfig.h and ntqmodules.h)
# create the include and include/qmake directory (for tqconfig.h and tqmodules.h)
[ -d $outpath/include/qmake ] || mkdir -p $outpath/include/qmake
# create temporary ntqconfig.h for compiling qmake
# create temporary tqconfig.h for compiling qmake
# when building qmake, we use #defines for the install paths,
# however they are real functions in the library
cat >>$outpath/include/qmake/ntqconfig.h <<EOF
cat >>$outpath/include/qmake/tqconfig.h <<EOF
/* All features enabled while building qmake */
EOF
# create temporary ntqmodules.h for compiling qmake
cat >>$outpath/include/qmake/ntqmodules.h <<EOF
# create temporary tqmodules.h for compiling qmake
cat >>$outpath/include/qmake/tqmodules.h <<EOF
/* All modules enabled while building qmake */
EOF
@ -2164,9 +2164,9 @@ if true; then ###[ '!' -f "$outpath/bin/tqmake" ];
(cd $outpath/qmake; $MAKE || (echo "qmake failed to build. Aborting." && exit 2)) || exit 2
fi
# clean up temporary ntqconfig.h and ntqmodules.h
rm -f $outpath/include/qmake/ntqconfig.h
rm -f $outpath/include/qmake/ntqmodules.h
# clean up temporary tqconfig.h and tqmodules.h
rm -f $outpath/include/qmake/tqconfig.h
rm -f $outpath/include/qmake/tqmodules.h
rmdir $outpath/include/qmake
@ -2276,7 +2276,7 @@ minimal|small|medium|large|full)
;;
*)
# not known to be sufficient for anything
if [ '!' -f $relpath/src/tools/qconfig-$CFG_QCONFIG.h ]; then
if [ '!' -f $relpath/src/tools/tqconfig-$CFG_QCONFIG.h ]; then
echo >&2 "No such configuration: $CFG_QCONFIG"
OPT_HELP=yes
fi
@ -2525,27 +2525,27 @@ if [ "$CFG_EXCEPTION_SUPPORT" = "no" ]; then
fi
#-------------------------------------------------------------------------------
# part of configuration information goes into ntqmodules.h
# part of configuration information goes into tqmodules.h
#-------------------------------------------------------------------------------
rm -f $outpath/include/ntqmodules.h.new
cat >$outpath/include/ntqmodules.h.new << EOF
rm -f $outpath/include/tqmodules.h.new
cat >$outpath/include/tqmodules.h.new << EOF
/* These modules are present in this configuration of TQt */
EOF
for MODULE in $MODULES; do
if [ -d "$relpath/src/$MODULE" ]; then
M=`echo $MODULE | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
echo "#define TQT_MODULE_$M" >>$outpath/include/ntqmodules.h.new
echo "#define TQT_MODULE_$M" >>$outpath/include/tqmodules.h.new
fi
done
# avoid unecessary rebuilds by copying only if ntqmodules.h has changed
if cmp -s $outpath/include/ntqmodules.h $outpath/include/ntqmodules.h.new; then
rm -f $outpath/include/ntqmodules.h.new
# avoid unecessary rebuilds by copying only if tqmodules.h has changed
if cmp -s $outpath/include/tqmodules.h $outpath/include/tqmodules.h.new; then
rm -f $outpath/include/tqmodules.h.new
else
[ -f $outpath/include/ntqmodules.h ] && chmod +w $outpath/include/ntqmodules.h
mv -f $outpath/include/ntqmodules.h.new $outpath/include/ntqmodules.h
chmod -w $outpath/include/ntqmodules.h
[ -f $outpath/include/tqmodules.h ] && chmod +w $outpath/include/tqmodules.h
mv -f $outpath/include/tqmodules.h.new $outpath/include/tqmodules.h
chmod -w $outpath/include/tqmodules.h
fi
#-------------------------------------------------------------------------------
@ -2710,20 +2710,20 @@ TQT_BUILD_KEY="$CFG_USER_BUILD_KEY $UNAME_MACHINE $UNAME_SYSTEM $COMPILER $BUILD
TQT_BUILD_KEY=`echo $TQT_BUILD_KEY | sed -e "s, *, ,g" -e "s,^ *,," -e "s, *$,,"`
#-------------------------------------------------------------------------------
# part of configuration information goes into ntqconfig.h
# part of configuration information goes into tqconfig.h
#-------------------------------------------------------------------------------
case "$CFG_QCONFIG" in
full)
echo "/* Everything */" >$outpath/include/ntqconfig.h.new
echo "/* Everything */" >$outpath/include/tqconfig.h.new
;;
*)
QCONFIGFILE=qconfig-$CFG_QCONFIG.h
echo "/* Copied from $QCONFIGFILE */" >$outpath/include/ntqconfig.h.new
cat $relpath/src/tools/$QCONFIGFILE >>$outpath/include/ntqconfig.h.new
QCONFIGFILE=tqconfig-$CFG_QCONFIG.h
echo "/* Copied from $QCONFIGFILE */" >$outpath/include/tqconfig.h.new
cat $relpath/src/tools/$QCONFIGFILE >>$outpath/include/tqconfig.h.new
;;
esac
cat >> $outpath/include/ntqconfig.h.new <<EOF
cat >> $outpath/include/tqconfig.h.new <<EOF
/* License information */
#define TQT_PRODUCT_LICENSEE "$Licensee"
@ -2737,7 +2737,7 @@ cat >> $outpath/include/ntqconfig.h.new <<EOF
#define TQ_LITTLE_ENDIAN 1234
EOF
if [ "$CFG_ENDIAN" = "auto" ]; then
cat >> $outpath/include/ntqconfig.h.new << EOF
cat >> $outpath/include/tqconfig.h.new << EOF
#if defined(__BIG_ENDIAN__)
# define TQ_BYTE_ORDER TQ_BIG_ENDIAN
#elif defined(__LITTLE_ENDIAN__)
@ -2747,23 +2747,23 @@ cat >> $outpath/include/ntqconfig.h.new << EOF
#endif
EOF
else
echo "#define TQ_BYTE_ORDER $CFG_ENDIAN" >> $outpath/include/ntqconfig.h.new
echo "#define TQ_BYTE_ORDER $CFG_ENDIAN" >> $outpath/include/tqconfig.h.new
fi
cat >> $outpath/include/ntqconfig.h.new << EOF
cat >> $outpath/include/tqconfig.h.new << EOF
/* Compile time features */
EOF
[ '!' -z "$LicenseKey" ] && echo "#define QT_PRODUCT_LICENSEKEY \"$LicenseKey\"" >>$outpath/include/ntqconfig.h.new
[ '!' -z "$LicenseKey" ] && echo "#define QT_PRODUCT_LICENSEKEY \"$LicenseKey\"" >>$outpath/include/tqconfig.h.new
if [ "$CFG_LARGEFILE" = "yes" ]; then
echo "#define QT_LARGEFILE_SUPPORT 64" >>$outpath/include/ntqconfig.h.new
echo "#define QT_LARGEFILE_SUPPORT 64" >>$outpath/include/tqconfig.h.new
fi
$unixtests/ptrsize.test $XQMAKESPEC $OPT_VERBOSE $relpath $outpath
echo "#define TQT_POINTER_SIZE $?" >>$outpath/include/ntqconfig.h.new
echo "#define TQT_POINTER_SIZE $?" >>$outpath/include/tqconfig.h.new
if [ ! -z "$QT_MAC_VERSION" ]; then
echo "#define QT_MACOSX_VERSION ${QT_MAC_VERSION} /*from config.tests*/" >>$outpath/include/ntqconfig.h.new
echo "#define QT_MACOSX_VERSION ${QT_MAC_VERSION} /*from config.tests*/" >>$outpath/include/tqconfig.h.new
fi
## find excluded styles and add this to $QCONFIG_FLAGS
@ -2798,7 +2798,7 @@ done
if [ -n "$QCONFIG_FLAGS" ]; then
for cfg in $QCONFIG_FLAGS; do
cat >>$outpath/include/ntqconfig.h.new << EOF
cat >>$outpath/include/tqconfig.h.new << EOF
#ifndef $cfg
# define $cfg
#endif
@ -2807,13 +2807,13 @@ EOF
done
fi
# avoid unecessary rebuilds by copying only if ntqconfig.h has changed
if cmp -s $outpath/include/ntqconfig.h $outpath/include/ntqconfig.h.new; then
rm -f $outpath/include/ntqconfig.h.new
# avoid unecessary rebuilds by copying only if tqconfig.h has changed
if cmp -s $outpath/include/tqconfig.h $outpath/include/tqconfig.h.new; then
rm -f $outpath/include/tqconfig.h.new
else
[ -f $outpath/include/ntqconfig.h ] && chmod +w $outpath/include/ntqconfig.h
mv $outpath/include/ntqconfig.h.new $outpath/include/ntqconfig.h
chmod -w $outpath/include/ntqconfig.h
[ -f $outpath/include/tqconfig.h ] && chmod +w $outpath/include/tqconfig.h
mv $outpath/include/tqconfig.h.new $outpath/include/tqconfig.h
chmod -w $outpath/include/tqconfig.h
fi

@ -49,7 +49,7 @@ modern application window tends to use. (See also \link tutorial2.html
Tutorial #2\endlink.)
It also illustrates some aspects of \l TQWhatsThis (for simple help) and a
typical \c main() using \l QApplication.
typical \c main() using \l TQApplication.
Finally, it shows a typical print function based on \l TQPrinter.
@ -77,11 +77,11 @@ Now we'll look at \c main.cpp in detail.
\quotefile application/main.cpp
\skipto argc
\printline argc
\printline QApplication
\printline TQApplication
With the above line, we create a QApplication object with the usual
With the above line, we create a TQApplication object with the usual
constructor and let it
parse \e argc and \e argv. QApplication itself takes care of X11-specific
parse \e argc and \e argv. TQApplication itself takes care of X11-specific
command-line options like \e -geometry, so the program will automatically
behave the way X clients are expected to.
@ -96,13 +96,13 @@ system caption to "Document 1", and \e show() it.
\printline connect
When the application's last window is closed, it should quit. Both
the signal and the slot are predefined members of QApplication.
the signal and the slot are predefined members of TQApplication.
\printline exec
Having completed the application's initialization, we start the main
event loop (the GUI), and eventually return the error code
that QApplication returns when it leaves the event loop.
that TQApplication returns when it leaves the event loop.
\printline }

@ -107,7 +107,7 @@
<area shape="rect" coords="287,36,386,64" href="tqobject.html">
<area shape="rect" coords="288,60,396,78" href="tqaccel.html">
<area shape="rect" coords="291,78,395,97" href="tqaction.html">
<area shape="rect" coords="291,97,401,113" href="ntqapplication.html">
<area shape="rect" coords="291,97,401,113" href="tqapplication.html">
<area shape="rect" coords="294,115,395,133" href="tqcanvas.html">
<area shape="rect" coords="292,132,395,150" href="tqclipboard.html">
<area shape="rect" coords="292,150,397,166" href="tqdns.html">

@ -195,8 +195,8 @@ application's main() function:
int main( int argc, char ** argv )
{
QApplication::setStyle( new CustomStyle() );
// do the usual routine on creating your QApplication object etc.
TQApplication::setStyle( new CustomStyle() );
// do the usual routine on creating your TQApplication object etc.
}
\endcode

@ -100,7 +100,7 @@ Qt searches in the following directories for plugin categories:
\endlist
Application specific plugin paths can be added using
QApplication::addLibraryPath(). The build-directory of TQt is hardcoded
TQApplication::addLibraryPath(). The build-directory of TQt is hardcoded
in the TQt library and can be changed as a part of the installation
process (see the \l distributor-example.html Distributor example).

@ -140,14 +140,14 @@ information on the clipboard:
\code
void MyWidget::copy()
{
QApplication::clipboard()->setData(
TQApplication::clipboard()->setData(
new TQTextDrag(myHighlightedText()) );
}
void MyWidget::paste()
{
TQString text;
if ( TQTextDrag::decode(QApplication::clipboard()->data(), text) )
if ( TQTextDrag::decode(TQApplication::clipboard()->data(), text) )
insertText( text );
}
\endcode
@ -336,12 +336,12 @@ feedback as the drag progresses, to start timers, to scroll the
window, or whatever is appropriate (don't forget to stop the scrolling
and timers in a dragLeaveEvent() though).
The QApplication object (available as the \c tqApp global) also
The TQApplication object (available as the \c tqApp global) also
provides some drag and drop related functions:
\l{QApplication::setStartDragTime()},
\l{QApplication::setStartDragDistance()}, and their corresponding
getters, \l{QApplication::startDragTime()} and
\l{QApplication::startDragDistance()}.
\l{TQApplication::setStartDragTime()},
\l{TQApplication::setStartDragDistance()}, and their corresponding
getters, \l{TQApplication::startDragTime()} and
\l{TQApplication::startDragDistance()}.
\section1 Inter-operating with Other Applications

@ -41,12 +41,12 @@
\title The Feature Definition File
By modifying the configured \c ntqconfig.h file from src/tools, you
By modifying the configured \c tqconfig.h file from src/tools, you
can define a subset of the full TQt functionality that you wish to
be available in your installation. The -qconfig option to
be available in your installation. The -tqconfig option to
configure is used to select the configuration.
The \c ntqconfig.h definition file simply defines macros to disable
The \c tqconfig.h definition file simply defines macros to disable
features. Some features are dependent on other features and these
dependencies are expressed in \c tqfeatures.h.

@ -247,20 +247,20 @@ void <a name="f387"></a>AnalogClock::drawClock( <a href="tqpainter.html">TQPaint
*****************************************************************************/
#include "aclock.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
AnalogClock *clock = new AnalogClock;
if ( argc == 2 &amp;&amp; strcmp( argv[1], "-transparent" ) == 0 )
<a name="x1213"></a> clock-&gt;<a href="tqwidget.html#setAutoMask">setAutoMask</a>( TRUE );
<a name="x1212"></a> clock-&gt;<a href="tqwidget.html#resize">resize</a>( 100, 100 );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( clock );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( clock );
<a name="x1214"></a> clock-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Analog Clock");
<a name="x1215"></a> clock-&gt;<a href="tqwidget.html#show">show</a>();
int result = a.<a href="ntqapplication.html#exec">exec</a>();
int result = a.<a href="tqapplication.html#exec">exec</a>();
delete clock;
return result;
}

@ -108,7 +108,7 @@ protected:
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
<a name="f263"></a>ABMainWindow::ABMainWindow()
@ -140,7 +140,7 @@ void <a name="f264"></a>ABMainWindow::setupMenuBar()
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileprint.xpm" ), "Print...", this, TQ_SLOT( filePrint() ), CTRL + Key_P );
file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Close", this, TQ_SLOT( closeWindow() ), CTRL + Key_W );
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL + Key_Q );
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT( <a href="tqapplication.html#quit">quit</a>() ), CTRL + Key_Q );
}
void <a name="f265"></a>ABMainWindow::setupFileTools()
@ -633,21 +633,21 @@ void <a name="f287"></a>ABCentralWidget::findEntries()
**
*****************************************************************************/
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include "mainwindow.h"
int main( int argc, char ** argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
ABMainWindow *mw = new ABMainWindow();
mw-&gt;<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Addressbook" );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( mw );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( mw );
<a name="x611"></a> mw-&gt;<a href="tqwidget.html#show">show</a>();
<a name="x609"></a><a name="x608"></a> a.<a href="tqobject.html#connect">connect</a>( &amp;a, TQ_SIGNAL( <a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>() ), &amp;a, TQ_SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
int result = a.<a href="ntqapplication.html#exec">exec</a>();
<a name="x609"></a><a name="x608"></a> a.<a href="tqobject.html#connect">connect</a>( &amp;a, TQ_SIGNAL( <a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>() ), &amp;a, TQ_SLOT( <a href="tqapplication.html#quit">quit</a>() ) );
int result = a.<a href="tqapplication.html#exec">exec</a>();
delete mw;
return result;
}

@ -40,7 +40,7 @@ body { background: #ffffff; color: black; }
<tr bgcolor=#f0f0f0><td><b><a href="tqaccessibleobject.html">TQAccessibleObject</a></b><td>Implements parts of the TQAccessibleInterface for TQObjects
<tr bgcolor=#f0f0f0><td><b><a href="tqaction.html">TQAction</a></b><td>Abstract user interface action that can appear both in menus and tool bars
<tr bgcolor=#f0f0f0><td><b><a href="tqactiongroup.html">TQActionGroup</a></b><td>Groups actions together
<tr bgcolor=#f0f0f0><td><b><a href="ntqapplication.html">TQApplication</a></b><td>Manages the GUI application's control flow and main settings
<tr bgcolor=#f0f0f0><td><b><a href="tqapplication.html">TQApplication</a></b><td>Manages the GUI application's control flow and main settings
<tr bgcolor=#f0f0f0><td><b><a href="tqasciicache.html">TQAsciiCache</a></b><td>Template class that provides a cache based on char* keys
<tr bgcolor=#f0f0f0><td><b><a href="tqasciicacheiterator.html">TQAsciiCacheIterator</a></b><td>Iterator for TQAsciiCache collections
<tr bgcolor=#f0f0f0><td><b><a href="tqasciidict.html">TQAsciiDict</a></b><td>Template class that provides a dictionary based on char* keys

@ -38,7 +38,7 @@ a statusbar, etc.
<p><table width="100%">
<tr bgcolor=#f0f0f0><td><b><a href="tqaction.html">TQAction</a></b><td>Abstract user interface action that can appear both in menus and tool bars
<tr bgcolor=#f0f0f0><td><b><a href="tqactiongroup.html">TQActionGroup</a></b><td>Groups actions together
<tr bgcolor=#f0f0f0><td><b><a href="ntqapplication.html">TQApplication</a></b><td>Manages the GUI application's control flow and main settings
<tr bgcolor=#f0f0f0><td><b><a href="tqapplication.html">TQApplication</a></b><td>Manages the GUI application's control flow and main settings
<tr bgcolor=#f0f0f0><td><b><a href="tqdockarea.html">TQDockArea</a></b><td>Manages and lays out TQDockWindows
<tr bgcolor=#f0f0f0><td><b><a href="tqdockwindow.html">TQDockWindow</a></b><td>Widget which can be docked inside a TQDockArea or floated as a top level window on the desktop
<tr bgcolor=#f0f0f0><td><b><a href="tqeventloop.html">TQEventLoop</a></b><td>Manages the event queue

@ -99,7 +99,7 @@ void ArchiveDialog::search()
"Please type a search string.",
TQMessageBox::Ok, TQMessageBox::NoButton);
} else {
<a name="x474"></a> TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>(TQCursor(TQt::WaitCursor));
<a name="x474"></a> TQApplication::<a href="tqapplication.html#setOverrideCursor">setOverrideCursor</a>(TQCursor(TQt::WaitCursor));
articleSearcher.setHost("lists.trolltech.com");
@ -138,7 +138,7 @@ void ArchiveDialog::searchDone( bool error )
}
}
<a name="x473"></a> TQApplication::<a href="ntqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>();
<a name="x473"></a> TQApplication::<a href="tqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>();
}
</pre>
@ -155,18 +155,18 @@ void ArchiveDialog::searchDone( bool error )
*****************************************************************************/
#include "archivedialog.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
int main(int argc, char **argv)
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
ArchiveDialog ad;
ad.show();
<a name="x489"></a><a name="x487"></a> TQObject::<a href="tqobject.html#connect">connect</a>( &amp;a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()),
<a name="x488"></a> &amp;a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
<a name="x489"></a><a name="x487"></a> TQObject::<a href="tqobject.html#connect">connect</a>( &amp;a, TQ_SIGNAL(<a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>()),
<a name="x488"></a> &amp;a, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) );
<a name="x486"></a> return a.<a href="ntqapplication.html#exec">exec</a>();
<a name="x486"></a> return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -171,17 +171,17 @@ void Biff::<a href="tqwidget.html#paintEvent">paintEvent</a>( <a href="tqpaintev
**
*****************************************************************************/
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include "biff.h"
int main( int argc, char ** argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
Biff b;
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;b );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;b );
b.<a href="tqwidget.html#show">show</a>();
return a.<a href="ntqapplication.html#exec">exec</a>();
return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -46,7 +46,7 @@ keep track of the cells that are actually in use.
**
*****************************************************************************/
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqtable-h.html">tqtable.h</a>&gt;
// Table size
@ -93,12 +93,12 @@ private:
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqapplication.html">TQApplication</a> app( argc, argv );
MyTable table( numRows, numCols );
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;table );
app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;table );
<a name="x1292"></a> table.<a href="tqwidget.html#show">show</a>();
return app.<a href="ntqapplication.html#exec">exec</a>();
return app.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -211,19 +211,19 @@ void <a name="f262"></a>ButtonsGroups::slotChangeGrp3State()
*****************************************************************************/
#include "buttongroups.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
ButtonsGroups buttonsgroups;
buttonsgroups.<a href="tqwidget.html#resize">resize</a>( 500, 250 );
buttonsgroups.<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Buttongroups" );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;buttonsgroups );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;buttonsgroups );
buttonsgroups.<a href="tqwidget.html#show">show</a>();
return a.<a href="ntqapplication.html#exec">exec</a>();
return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -249,7 +249,7 @@ private:
#include "setdataform.h"
#include &lt;<a href="tqaction-h.html">tqaction.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqcombobox-h.html">tqcombobox.h</a>&gt;
#include &lt;<a href="tqfile-h.html">tqfile.h</a>&gt;
#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
@ -613,7 +613,7 @@ void <a name="f604"></a>ChartForm::fileQuit()
{
if ( okToClear() ) {
saveOptions();
<a name="x2875"></a> tqApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
<a name="x2875"></a> tqApp-&gt;<a href="tqapplication.html#exit">exit</a>( 0 );
}
}
@ -778,26 +778,26 @@ void <a name="f614"></a>ChartForm::helpAboutTQt()
<p> <hr>
<p> Main:
<p> <pre>#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
<p> <pre>#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include "chartform.h"
int main( int argc, char *argv[] )
{
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqstring.html">TQString</a> filename;
<a name="x2900"></a> if ( app.<a href="ntqapplication.html#argc">argc</a>() &gt; 1 ) {
<a name="x2901"></a> filename = app.<a href="ntqapplication.html#argv">argv</a>()[1];
<a name="x2900"></a> if ( app.<a href="tqapplication.html#argc">argc</a>() &gt; 1 ) {
<a name="x2901"></a> filename = app.<a href="tqapplication.html#argv">argv</a>()[1];
<a name="x2904"></a> if ( !filename.<a href="tqstring.html#endsWith">endsWith</a>( ".cht" ) )
filename = TQString::null;
}
ChartForm *cf = new ChartForm( filename );
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( cf );
app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( cf );
cf-&gt;<a href="tqwidget.html#show">show</a>();
return app.<a href="ntqapplication.html#exec">exec</a>();
return app.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -137,7 +137,7 @@ private:
#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="tqmessagebox-h.html">tqmessagebox.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqprinter-h.html">tqprinter.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
@ -445,7 +445,7 @@ static TQImage *logoimg;
file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Print...", this, TQ_SLOT(print()), CTRL+Key_P);
file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("E&amp;xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q);
file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("E&amp;xit", tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()), CTRL+Key_Q);
menu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;File", file);
<a href="tqpopupmenu.html">TQPopupMenu</a>* edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menu );
@ -535,9 +535,9 @@ void <a name="f627"></a>Main::newView()
{
// Open a new view... have it delete when closed.
Main *m = new Main(canvas, 0, 0, WDestructiveClose);
tqApp-&gt;<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(m);
tqApp-&gt;<a href="tqapplication.html#setMainWidget">setMainWidget</a>(m);
m-&gt;<a href="tqwidget.html#show">show</a>();
tqApp-&gt;<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(0);
tqApp-&gt;<a href="tqapplication.html#setMainWidget">setMainWidget</a>(0);
}
void <a name="f628"></a>Main::clear()
@ -878,7 +878,7 @@ void <a name="f654"></a>Main::addRectangle()
<p> <pre>#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="tqmessagebox-h.html">tqmessagebox.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqimage-h.html">tqimage.h</a>&gt;
#include "canvas.h"
@ -890,7 +890,7 @@ extern TQString logo_fn;
int main(int argc, char** argv)
{
<a href="ntqapplication.html">TQApplication</a> app(argc,argv);
<a href="tqapplication.html">TQApplication</a> app(argc,argv);
if ( argc &gt; 1 )
butterfly_fn = argv[1];
@ -907,15 +907,15 @@ int main(int argc, char** argv)
Main m(canvas);
<a name="x2969"></a> m.<a href="tqwidget.html#resize">resize</a>(m.<a href="tqwidget.html#sizeHint">sizeHint</a>());
m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Canvas");
<a name="x2970"></a><a name="x2958"></a> if ( TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width() &gt; m.<a href="tqwidget.html#width">width</a>() + 10
<a name="x2964"></a> &amp;&amp; TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height() &gt; m.<a href="tqwidget.html#height">height</a>() +30 )
<a name="x2970"></a><a name="x2958"></a> if ( TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;width() &gt; m.<a href="tqwidget.html#width">width</a>() + 10
<a name="x2964"></a> &amp;&amp; TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;height() &gt; m.<a href="tqwidget.html#height">height</a>() +30 )
m.<a href="tqwidget.html#show">show</a>();
else
<a name="x2968"></a> m.<a href="tqwidget.html#showMaximized">showMaximized</a>();
TQObject::<a href="tqobject.html#connect">connect</a>( tqApp, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
TQObject::<a href="tqobject.html#connect">connect</a>( tqApp, TQ_SIGNAL(<a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) );
return app.<a href="ntqapplication.html#exec">exec</a>();
return app.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -37,7 +37,7 @@ body { background: #ffffff; color: black; }
#include "setdataform.h"
#include &lt;<a href="tqaction-h.html">tqaction.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqcombobox-h.html">tqcombobox.h</a>&gt;
#include &lt;<a href="tqfile-h.html">tqfile.h</a>&gt;
#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
@ -401,7 +401,7 @@ void <a name="f156"></a>ChartForm::fileQuit()
{
if ( okToClear() ) {
saveOptions();
<a name="x2875"></a> tqApp-&gt;<a href="ntqapplication.html#exit">exit</a>( 0 );
<a name="x2875"></a> tqApp-&gt;<a href="tqapplication.html#exit">exit</a>( 0 );
}
}

@ -64,28 +64,28 @@ void Element::setValuePattern( int valuePattern )
double Element::proX( int index ) const
{
<a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
<a href="tqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
return m_propoints[2 * index];
}
double Element::proY( int index ) const
{
<a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
<a href="tqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
return m_propoints[(2 * index) + 1];
}
void Element::setProX( int index, double value )
{
<a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
<a href="tqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
m_propoints[2 * index] = value;
}
void Element::setProY( int index, double value )
{
<a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
<a href="tqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
m_propoints[(2 * index) + 1] = value;
}

@ -31,26 +31,26 @@ body { background: #ffffff; color: black; }
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>chart/main.cpp Example File</h1>
<pre>#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
<pre>#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include "chartform.h"
int main( int argc, char *argv[] )
{
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqstring.html">TQString</a> filename;
<a name="x2900"></a> if ( app.<a href="ntqapplication.html#argc">argc</a>() &gt; 1 ) {
<a name="x2901"></a> filename = app.<a href="ntqapplication.html#argv">argv</a>()[1];
<a name="x2900"></a> if ( app.<a href="tqapplication.html#argc">argc</a>() &gt; 1 ) {
<a name="x2901"></a> filename = app.<a href="tqapplication.html#argv">argv</a>()[1];
<a name="x2904"></a> if ( !filename.<a href="tqstring.html#endsWith">endsWith</a>( ".cht" ) )
filename = TQString::null;
}
ChartForm *cf = new ChartForm( filename );
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( cf );
app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( cf );
cf-&gt;<a href="tqwidget.html#show">show</a>();
return app.<a href="ntqapplication.html#exec">exec</a>();
return app.<a href="tqapplication.html#exec">exec</a>();
}
</pre><!-- eof -->
<p><address><hr><div align=center>

@ -254,19 +254,19 @@ void <a name="f250"></a>CheckLists::copy2to3()
*****************************************************************************/
#include "checklists.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
CheckLists checklists;
checklists.<a href="tqwidget.html#resize">resize</a>( 650, 350 );
checklists.<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - CheckLists" );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;checklists );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;checklists );
checklists.<a href="tqwidget.html#show">show</a>();
return a.<a href="ntqapplication.html#exec">exec</a>();
return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -96,7 +96,7 @@ body { background: #ffffff; color: black; }
<area shape="rect" coords="287,36,386,64" href="tqobject.html">
<area shape="rect" coords="288,60,396,78" href="tqaccel.html">
<area shape="rect" coords="291,78,395,97" href="tqaction.html">
<area shape="rect" coords="291,97,401,113" href="ntqapplication.html">
<area shape="rect" coords="291,97,401,113" href="tqapplication.html">
<area shape="rect" coords="294,115,395,133" href="tqcanvas.html">
<area shape="rect" coords="292,132,395,150" href="tqclipboard.html">
<area shape="rect" coords="292,150,397,166" href="tqdns.html">

@ -103,7 +103,7 @@ classes, see <a href="mainclasses.html">TQt's Main Classes</a>.
<td><a href="tqtabletevent.html">TQTabletEvent</a>
<tr>
<td align="right">
<td><a href="ntqapplication.html">TQApplication</a>
<td><a href="tqapplication.html">TQApplication</a>
<td align="right">
<td><a href="tqdockwindow.html">TQDockWindow</a>
<td align="right">

@ -56,7 +56,7 @@ specified. You can send single lines to the server.
#include &lt;<a href="tqsocket-h.html">tqsocket.h</a>&gt;
#include &lt;<a href="tqserversocket-h.html">tqserversocket.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqvbox-h.html">tqvbox.h</a>&gt;
#include &lt;<a href="tqtextview-h.html">tqtextview.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
@ -126,7 +126,7 @@ public:
<a href="tqserversocket.html">TQServerSocket</a>( 4242, 1, parent )
{
if ( !ok() ) {
<a href="ntqapplication.html#qWarning">tqWarning</a>("Failed to bind to port 4242");
<a href="tqapplication.html#qWarning">tqWarning</a>("Failed to bind to port 4242");
exit(1);
}
}
@ -170,7 +170,7 @@ public:
connect( server, TQ_SIGNAL(newConnect(ClientSocket*)),
TQ_SLOT(newConnect(ClientSocket*)) );
connect( quit, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), tqApp,
TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) );
}
~ServerInfo()
@ -199,11 +199,11 @@ private:
int main( int argc, char** argv )
{
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqapplication.html">TQApplication</a> app( argc, argv );
ServerInfo info;
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;info );
app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;info );
info.<a href="tqwidget.html#show">show</a>();
return app.<a href="ntqapplication.html#exec">exec</a>();
return app.<a href="tqapplication.html#exec">exec</a>();
}
#include "server.moc"
@ -222,7 +222,7 @@ int main( int argc, char** argv )
*****************************************************************************/
#include &lt;<a href="tqsocket-h.html">tqsocket.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqvbox-h.html">tqvbox.h</a>&gt;
#include &lt;<a href="tqhbox-h.html">tqhbox.h</a>&gt;
#include &lt;<a href="tqtextview-h.html">tqtextview.h</a>&gt;
@ -248,7 +248,7 @@ public:
<a name="x792"></a> connect( send, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), TQ_SLOT(sendToServer()) );
connect( close, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), TQ_SLOT(closeConnection()) );
connect( quit, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
connect( quit, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) );
// create the socket and connect various of its signals
socket = new <a href="tqsocket.html">TQSocket</a>( this );
@ -329,11 +329,11 @@ private:
int main( int argc, char** argv )
{
<a href="ntqapplication.html">TQApplication</a> app( argc, argv );
<a href="tqapplication.html">TQApplication</a> app( argc, argv );
Client client( argc&lt;2 ? "localhost" : argv[1], 4242 );
app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;client );
app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;client );
client.<a href="tqwidget.html#show">show</a>();
return app.<a href="ntqapplication.html#exec">exec</a>();
return app.<a href="tqapplication.html#exec">exec</a>();
}
#include "client.moc"

@ -47,7 +47,7 @@ This example shows how to set a mouse cursor for a widget.
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
#include &lt;<a href="tqbitmap-h.html">tqbitmap.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqlayout-h.html">tqlayout.h</a>&gt;
#include &lt;<a href="tqcursor-h.html">tqcursor.h</a>&gt;
@ -177,12 +177,12 @@ CursorView::CursorView() // construct view
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv ); // application object
<a href="tqapplication.html">TQApplication</a> a( argc, argv ); // application object
CursorView v; // cursor view
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;v );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;v );
v.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Cursors");
v.<a href="tqwidget.html#show">show</a>();
return a.<a href="ntqapplication.html#exec">exec</a>();
return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -754,7 +754,7 @@ CardLayout::~CardLayout()
#include "border.h"
#include "card.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
#include &lt;<a href="tqcolor-h.html">tqcolor.h</a>&gt;
#include &lt;<a href="tqgroupbox-h.html">tqgroupbox.h</a>&gt;
@ -764,7 +764,7 @@ CardLayout::~CardLayout()
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqwidget.html">TQWidget</a> *f = new <a href="tqwidget.html">TQWidget</a>;
<a href="tqboxlayout.html">TQBoxLayout</a> *gm = new <a href="tqvboxlayout.html">TQVBoxLayout</a>( f, 5 );
@ -828,11 +828,11 @@ int main( int argc, char **argv )
s-&gt;<a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
s-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter | TQt::AlignHCenter );
gm-&gt;<a href="tqboxlayout.html#addWidget">addWidget</a>( s );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( f );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( f );
f-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Custom Layout");
f-&gt;<a href="tqwidget.html#show">show</a>();
int result = a.<a href="ntqapplication.html#exec">exec</a>();
int result = a.<a href="tqapplication.html#exec">exec</a>();
delete f;
return result;
}

@ -178,7 +178,7 @@ application's main() function:
int main( int argc, char ** argv )
{
TQApplication::<a href="ntqapplication.html#setStyle">setStyle</a>( new CustomStyle() );
TQApplication::<a href="tqapplication.html#setStyle">setStyle</a>( new CustomStyle() );
// do the usual routine on creating your TQApplication object etc.
}
</pre>

@ -193,18 +193,18 @@ void <a name="f374"></a>DigitalClock::showTime()
*****************************************************************************/
#include "dclock.h"
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
int main( int argc, char **argv )
{
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
<a href="tqapplication.html">TQApplication</a> a( argc, argv );
DigitalClock *clock = new DigitalClock;
clock-&gt;<a href="tqwidget.html#resize">resize</a>( 170, 80 );
a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( clock );
a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( clock );
clock-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Digital Clock");
clock-&gt;<a href="tqwidget.html#show">show</a>();
return a.<a href="ntqapplication.html#exec">exec</a>();
return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>

@ -58,16 +58,16 @@ option is only valid for the X11 version of TQt.
<a name="2"></a><p> TQt includes three global functions for writing out warning and debug
text.
<ul>
<li> <a href="ntqapplication.html#qDebug">tqDebug()</a> for writing debug output for testing etc.
<li> <a href="ntqapplication.html#qWarning">tqWarning()</a> for writing warning output when program
<li> <a href="tqapplication.html#qDebug">tqDebug()</a> for writing debug output for testing etc.
<li> <a href="tqapplication.html#qWarning">tqWarning()</a> for writing warning output when program
errors occur.
<li> <a href="ntqapplication.html#qFatal">tqFatal()</a> for writing fatal error messages
<li> <a href="tqapplication.html#qFatal">tqFatal()</a> for writing fatal error messages
and exiting.
</ul>
<p> The TQt implementation of these functions prints the text to the <tt>stderr</tt>
output under Unix/X11 and to the debugger under Windows. You can
take over these functions by installing a message handler;
<a href="ntqapplication.html#qInstallMsgHandler">qInstallMsgHandler()</a>.
<a href="tqapplication.html#qInstallMsgHandler">qInstallMsgHandler()</a>.
<p> The debugging functions <a href="tqobject.html#dumpObjectTree">TQObject::dumpObjectTree</a>() and <a href="tqobject.html#dumpObjectInfo">TQObject::dumpObjectInfo</a>() are often useful when an application looks
or acts strangely. More useful if you use object names than not, but
often useful even without names.
@ -77,10 +77,10 @@ often useful even without names.
<tt>#define</tt>s.
<p> Two important macros are:
<ul>
<li> <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT(b)</a> where b is a boolean
<li> <a href="tqapplication.html#Q_ASSERT">Q_ASSERT(b)</a> where b is a boolean
expression, writes the warning: "ASSERT: 'b' in file file.cpp (234)"
if b is FALSE.
<li> <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR(p)</a> where p is a pointer.
<li> <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR(p)</a> where p is a pointer.
Writes the warning "In file file.cpp, line 234: Out of memory" if p is
0.
</ul>
@ -88,9 +88,9 @@ Writes the warning "In file file.cpp, line 234: Out of memory" if p is
<pre>
char *alloc( int size )
{
<a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>( size &gt; 0 );
<a href="tqapplication.html#Q_ASSERT">Q_ASSERT</a>( size &gt; 0 );
char *p = new char[size];
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( p );