From 397b7afa8e3f32268c4454bf4783ac2a5a799658 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 15 Oct 2024 13:05:33 +0900 Subject: Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/aclock-example.html | 8 +- doc/html/addressbook-example.html | 14 +- doc/html/annotated.html | 2 +- doc/html/application.html | 2 +- doc/html/archivesearch-example.html | 14 +- doc/html/biff-example.html | 8 +- doc/html/bigtable-example.html | 8 +- doc/html/buttongroups-example.html | 8 +- doc/html/canvas-chart-example.html | 16 +- doc/html/canvas-example.html | 20 +- doc/html/chart-chartform-cpp.html | 4 +- doc/html/chart-element-cpp.html | 8 +- doc/html/chart-main-cpp.html | 12 +- doc/html/checklists-example.html | 8 +- doc/html/classchart.html | 2 +- doc/html/classes.html | 2 +- doc/html/clientserver-example.html | 22 +- doc/html/cursor-example.html | 8 +- doc/html/customlayout-example.html | 8 +- doc/html/customstyles.html | 2 +- doc/html/dclock-example.html | 8 +- doc/html/debug.html | 22 +- doc/html/designer-manual-3.html | 16 +- doc/html/designer-manual-4.html | 6 +- doc/html/designer-manual-6.html | 18 +- doc/html/designer-manual-7.html | 12 +- doc/html/designer-manual-8.html | 8 +- doc/html/desktop-example.html | 20 +- doc/html/dirview-example.html | 12 +- doc/html/distributingtqt.html | 2 +- doc/html/distributor-example.html | 14 +- doc/html/dnd.html | 14 +- doc/html/drawdemo-example.html | 8 +- doc/html/drawlines-example.html | 8 +- doc/html/eventsandfilters.html | 6 +- doc/html/extension-dialog-example.html | 12 +- doc/html/fileiconview-example.html | 14 +- doc/html/forever-example.html | 8 +- doc/html/ftpclient-example.html | 16 +- doc/html/functions.html | 206 +- doc/html/groups.html | 2 +- doc/html/headers.html | 2 +- doc/html/hello-example.html | 10 +- doc/html/helpsystem-example.html | 8 +- doc/html/helpviewer-example.html | 20 +- doc/html/hierarchy.html | 2 +- doc/html/httpd-example.html | 12 +- doc/html/i18n-example.html | 22 +- doc/html/i18n.html | 24 +- doc/html/iconview-example.html | 18 +- doc/html/iconview-simple_dd-main-cpp.html | 6 +- doc/html/iconview-simple_dd-main-h.html | 2 +- doc/html/index | 222 +-- doc/html/layout-example.html | 10 +- doc/html/life-example.html | 12 +- doc/html/lineedits-example.html | 8 +- doc/html/linguist-manual-4.html | 32 +- doc/html/listbox-example.html | 8 +- doc/html/listboxcombo-example.html | 8 +- doc/html/listviews-example.html | 8 +- doc/html/mac-differences.html | 4 +- doc/html/mail-example.html | 4 +- doc/html/mainclasses.html | 2 +- doc/html/mdi-example.html | 14 +- doc/html/menu-example.html | 30 +- doc/html/movies-example.html | 10 +- doc/html/network.html | 12 +- doc/html/ntqapplication.html | 2000 -------------------- doc/html/opengl-x11-overlays.html | 2 +- doc/html/outliner-example.html | 8 +- doc/html/picture-example.html | 10 +- doc/html/plugins-howto.html | 10 +- doc/html/popup-example.html | 10 +- doc/html/process-example.html | 10 +- doc/html/progress-example.html | 18 +- doc/html/progressbar-example.html | 8 +- doc/html/propertydocs | 24 +- doc/html/qapplication-h.html | 542 ------ doc/html/qfd-example.html | 12 +- doc/html/qmag-example.html | 38 +- doc/html/qmake-manual-7.html | 12 +- doc/html/qt.dcf | 228 +-- doc/html/qwerty-example.html | 24 +- doc/html/rangecontrols-example.html | 8 +- doc/html/regexptester-example.html | 12 +- doc/html/richtext-example.html | 12 +- doc/html/rot-example.html | 10 +- doc/html/scribble-example.html | 16 +- doc/html/scrollview-example.html | 26 +- doc/html/session.html | 16 +- doc/html/showimg-example.html | 36 +- doc/html/simple-application-example.html | 12 +- doc/html/simple-application.html | 22 +- doc/html/simple-font-demo-example.html | 8 +- doc/html/simple_dd-example.html | 8 +- doc/html/small-table-example-example.html | 8 +- doc/html/sound-example.html | 10 +- doc/html/splitter-example.html | 8 +- doc/html/sql-overview-basicbrowsing-main-cpp.html | 4 +- doc/html/sql-overview-basicbrowsing2-main-cpp.html | 4 +- doc/html/sql-overview-basicdatamanip-main-cpp.html | 4 +- doc/html/sql-overview-connect1-main-cpp.html | 4 +- .../sql-overview-create_connections-main-cpp.html | 4 +- doc/html/sql-overview-custom1-main-cpp.html | 6 +- doc/html/sql-overview-custom1-main-h.html | 2 +- doc/html/sql-overview-delete-main-cpp.html | 4 +- doc/html/sql-overview-extract-main-cpp.html | 6 +- doc/html/sql-overview-form1-main-cpp.html | 8 +- doc/html/sql-overview-form2-main-h.html | 2 +- doc/html/sql-overview-insert-main-cpp.html | 4 +- doc/html/sql-overview-navigating-main-cpp.html | 4 +- doc/html/sql-overview-order1-main-cpp.html | 6 +- doc/html/sql-overview-order2-main-cpp.html | 6 +- doc/html/sql-overview-retrieve1-main-cpp.html | 6 +- doc/html/sql-overview-retrieve2-main-cpp.html | 6 +- doc/html/sql-overview-subclass1-main-cpp.html | 8 +- doc/html/sql-overview-subclass2-main-cpp.html | 6 +- doc/html/sql-overview-subclass2-main-h.html | 2 +- doc/html/sql-overview-subclass3-main-cpp.html | 6 +- doc/html/sql-overview-subclass3-main-h.html | 2 +- doc/html/sql-overview-subclass4-main-cpp.html | 6 +- doc/html/sql-overview-subclass4-main-h.html | 2 +- doc/html/sql-overview-subclass5-main-cpp.html | 6 +- doc/html/sql-overview-subclass5-main-h.html | 2 +- doc/html/sql-overview-table1-main-cpp.html | 8 +- doc/html/sql-overview-table2-main-cpp.html | 8 +- doc/html/sql-overview-table3-main-cpp.html | 6 +- doc/html/sql-overview-table3-main-h.html | 2 +- doc/html/sql-overview-table4-main-cpp.html | 6 +- doc/html/sql-overview-table4-main-h.html | 2 +- doc/html/sql-overview-update-main-cpp.html | 4 +- doc/html/sql.html | 58 +- doc/html/sqltable-example.html | 8 +- doc/html/statistics-example.html | 8 +- doc/html/t10-lcdrange-cpp.html | 2 +- doc/html/t10-main-cpp.html | 12 +- doc/html/t11-lcdrange-cpp.html | 2 +- doc/html/t11-main-cpp.html | 12 +- doc/html/t12-lcdrange-cpp.html | 2 +- doc/html/t12-main-cpp.html | 12 +- doc/html/t13-gamebrd-cpp.html | 4 +- doc/html/t13-lcdrange-cpp.html | 2 +- doc/html/t13-main-cpp.html | 10 +- doc/html/t14-gamebrd-cpp.html | 6 +- doc/html/t14-lcdrange-cpp.html | 2 +- doc/html/t14-main-cpp.html | 10 +- doc/html/t7-main-cpp.html | 10 +- doc/html/t8-lcdrange-cpp.html | 2 +- doc/html/t8-main-cpp.html | 10 +- doc/html/t9-lcdrange-cpp.html | 2 +- doc/html/t9-main-cpp.html | 12 +- doc/html/tabdialog-example.html | 12 +- doc/html/table-bigtable-main-cpp.html | 8 +- doc/html/table-small-table-demo-main-cpp.html | 8 +- doc/html/tagreader-with-features-example.html | 8 +- doc/html/tetrix-example.html | 6 +- doc/html/themes-example.html | 80 +- doc/html/threads.html | 18 +- doc/html/tictac-example.html | 14 +- doc/html/timers.html | 2 +- doc/html/titleindex | 6 +- doc/html/toggleaction-example.html | 8 +- doc/html/tools.html | 2 +- doc/html/tooltip-example.html | 10 +- doc/html/toplevel-example.html | 4 +- doc/html/tqaction-application-example.html | 12 +- doc/html/tqapplication-h.html | 542 ++++++ doc/html/tqapplication-members.html | 191 ++ doc/html/tqapplication.html | 2000 ++++++++++++++++++++ doc/html/tqasciicache.html | 2 +- doc/html/tqasciidict.html | 2 +- doc/html/tqcache.html | 2 +- doc/html/tqcanvasview.html | 2 +- doc/html/tqchildevent.html | 2 +- doc/html/tqclipboard.html | 6 +- doc/html/tqcloseevent.html | 8 +- doc/html/tqcolor.html | 10 +- doc/html/tqcursor.html | 6 +- doc/html/tqcustomevent.html | 8 +- doc/html/tqdatasource.html | 2 +- doc/html/tqdatetime.html | 2 +- doc/html/tqdesktopwidget.html | 4 +- doc/html/tqdialog.html | 12 +- doc/html/tqdict.html | 2 +- doc/html/tqdir-example.html | 6 +- doc/html/tqdir.html | 16 +- doc/html/tqerrormessage.html | 4 +- doc/html/tqevent.html | 10 +- doc/html/tqeventloop.html | 10 +- doc/html/tqfile.html | 4 +- doc/html/tqfileinfo.html | 4 +- doc/html/tqfont.html | 12 +- doc/html/tqfontdatabase.html | 8 +- doc/html/tqglcolormap.html | 6 +- doc/html/tqglformat.html | 12 +- doc/html/tqglobal-h.html | 14 +- doc/html/tqguardedptr.html | 2 +- doc/html/tqintcache.html | 2 +- doc/html/tqintdict.html | 2 +- doc/html/tqlistboxitem.html | 4 +- doc/html/tqmap.html | 2 +- doc/html/tqmemarray.html | 8 +- doc/html/tqmenubar.html | 2 +- doc/html/tqmessagebox-h.html | 2 +- doc/html/tqmessagebox.html | 8 +- doc/html/tqmotifstyle.html | 2 +- doc/html/tqnamespace-h.html | 6 +- doc/html/tqobject.html | 22 +- doc/html/tqpaintdevice.html | 2 +- doc/html/tqpainter.html | 20 +- doc/html/tqpalette.html | 2 +- doc/html/tqprogressdialog.html | 6 +- doc/html/tqptrdict.html | 2 +- doc/html/tqsessionmanager.html | 22 +- doc/html/tqsjiscodec.html | 2 +- doc/html/tqsocket.html | 4 +- doc/html/tqsocketnotifier.html | 2 +- doc/html/tqsplashscreen.html | 14 +- doc/html/tqsqlcursor.html | 2 +- doc/html/tqsqlquery.html | 4 +- doc/html/tqstring.html | 2 +- doc/html/tqstyle.html | 12 +- doc/html/tqtextcodec.html | 4 +- doc/html/tqthread.html | 2 +- doc/html/tqthreadstorage.html | 2 +- doc/html/tqtime.html | 2 +- doc/html/tqtimer.html | 8 +- doc/html/tqtranslator.html | 14 +- doc/html/tqvariant.html | 2 +- doc/html/tqwidget.html | 50 +- doc/html/tqwizard.html | 2 +- doc/html/tutorial1-01.html | 24 +- doc/html/tutorial1-02.html | 14 +- doc/html/tutorial1-03.html | 10 +- doc/html/tutorial1-04.html | 18 +- doc/html/tutorial1-05.html | 12 +- doc/html/tutorial1-06.html | 12 +- doc/html/tutorial1-08.html | 6 +- doc/html/tutorial1-09.html | 6 +- doc/html/tutorial1-14.html | 2 +- doc/html/tutorial2-03.html | 2 +- doc/html/tutorial2-04.html | 14 +- doc/html/tutorial2-05.html | 2 +- doc/html/whatsthis | 2 +- doc/html/wizard-example.html | 6 +- doc/html/wizard-wizard-cpp.html | 2 +- doc/html/xform-example.html | 10 +- doc/html/xml-sax-features-walkthrough.html | 8 +- doc/html/y2k.html | 2 +- 249 files changed, 4161 insertions(+), 3970 deletions(-) delete mode 100644 doc/html/ntqapplication.html delete mode 100644 doc/html/qapplication-h.html create mode 100644 doc/html/tqapplication-h.html create mode 100644 doc/html/tqapplication-members.html create mode 100644 doc/html/tqapplication.html (limited to 'doc/html') diff --git a/doc/html/aclock-example.html b/doc/html/aclock-example.html index 3f7397512..31574d780 100644 --- a/doc/html/aclock-example.html +++ b/doc/html/aclock-example.html @@ -247,20 +247,20 @@ void AnalogClock::drawClock( TQPaint *****************************************************************************/ #include "aclock.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); AnalogClock *clock = new AnalogClock; if ( argc == 2 && strcmp( argv[1], "-transparent" ) == 0 ) clock->setAutoMask( TRUE ); clock->resize( 100, 100 ); - a.setMainWidget( clock ); + a.setMainWidget( clock ); clock->setCaption("TQt Example - Analog Clock"); clock->show(); - int result = a.exec(); + int result = a.exec(); delete clock; return result; } diff --git a/doc/html/addressbook-example.html b/doc/html/addressbook-example.html index 3866fc7b5..ce4807a53 100644 --- a/doc/html/addressbook-example.html +++ b/doc/html/addressbook-example.html @@ -108,7 +108,7 @@ protected: #include <tqpopupmenu.h> #include <tqmenubar.h> #include <tqstatusbar.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqfiledialog.h> ABMainWindow::ABMainWindow() @@ -140,7 +140,7 @@ void ABMainWindow::setupMenuBar() file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, TQ_SLOT( filePrint() ), CTRL + Key_P ); file->insertSeparator(); file->insertItem( "Close", this, TQ_SLOT( closeWindow() ), CTRL + Key_W ); - file->insertItem( "Quit", tqApp, TQ_SLOT( quit() ), CTRL + Key_Q ); + file->insertItem( "Quit", tqApp, TQ_SLOT( quit() ), CTRL + Key_Q ); } void ABMainWindow::setupFileTools() @@ -633,21 +633,21 @@ void ABCentralWidget::findEntries() ** *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include "mainwindow.h" int main( int argc, char ** argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); ABMainWindow *mw = new ABMainWindow(); mw->setCaption( "TQt Example - Addressbook" ); - a.setMainWidget( mw ); + a.setMainWidget( mw ); mw->show(); - a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), &a, TQ_SLOT( quit() ) ); - int result = a.exec(); + a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), &a, TQ_SLOT( quit() ) ); + int result = a.exec(); delete mw; return result; } diff --git a/doc/html/annotated.html b/doc/html/annotated.html index fa5d1ba8a..4cd8b01cf 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -40,7 +40,7 @@ body { background: #ffffff; color: black; } TQAccessibleObjectImplements parts of the TQAccessibleInterface for TQObjects TQActionAbstract user interface action that can appear both in menus and tool bars TQActionGroupGroups actions together -TQApplicationManages the GUI application's control flow and main settings +TQApplicationManages the GUI application's control flow and main settings TQAsciiCacheTemplate class that provides a cache based on char* keys TQAsciiCacheIteratorIterator for TQAsciiCache collections TQAsciiDictTemplate class that provides a dictionary based on char* keys diff --git a/doc/html/application.html b/doc/html/application.html index e0ac6014d..1ea6126cb 100644 --- a/doc/html/application.html +++ b/doc/html/application.html @@ -38,7 +38,7 @@ a statusbar, etc.

TQActionAbstract user interface action that can appear both in menus and tool bars
TQActionGroupGroups actions together -
TQApplicationManages the GUI application's control flow and main settings +
TQApplicationManages the GUI application's control flow and main settings
TQDockAreaManages and lays out TQDockWindows
TQDockWindowWidget which can be docked inside a TQDockArea or floated as a top level window on the desktop
TQEventLoopManages the event queue diff --git a/doc/html/archivesearch-example.html b/doc/html/archivesearch-example.html index 91c263877..e4f792811 100644 --- a/doc/html/archivesearch-example.html +++ b/doc/html/archivesearch-example.html @@ -99,7 +99,7 @@ void ArchiveDialog::search() "Please type a search string.", TQMessageBox::Ok, TQMessageBox::NoButton); } else { - TQApplication::setOverrideCursor(TQCursor(TQt::WaitCursor)); + TQApplication::setOverrideCursor(TQCursor(TQt::WaitCursor)); articleSearcher.setHost("lists.trolltech.com"); @@ -138,7 +138,7 @@ void ArchiveDialog::searchDone( bool error ) } } - TQApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); } @@ -155,18 +155,18 @@ void ArchiveDialog::searchDone( bool error ) *****************************************************************************/ #include "archivedialog.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main(int argc, char **argv) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); ArchiveDialog ad; ad.show(); - TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()), - &a, TQ_SLOT(quit()) ); + TQObject::connect( &a, TQ_SIGNAL(lastWindowClosed()), + &a, TQ_SLOT(quit()) ); - return a.exec(); + return a.exec(); } diff --git a/doc/html/biff-example.html b/doc/html/biff-example.html index f4566aa11..8ff0a2884 100644 --- a/doc/html/biff-example.html +++ b/doc/html/biff-example.html @@ -171,17 +171,17 @@ void Biff::paintEvent( ntqapplication.h> +#include <tqapplication.h> #include "biff.h" int main( int argc, char ** argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); Biff b; - a.setMainWidget( &b ); + a.setMainWidget( &b ); b.show(); - return a.exec(); + return a.exec(); } diff --git a/doc/html/bigtable-example.html b/doc/html/bigtable-example.html index ef863467f..bdf714f78 100644 --- a/doc/html/bigtable-example.html +++ b/doc/html/bigtable-example.html @@ -46,7 +46,7 @@ keep track of the cells that are actually in use. ** *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqtable.h> // Table size @@ -93,12 +93,12 @@ private: int main( int argc, char **argv ) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); MyTable table( numRows, numCols ); - app.setMainWidget( &table ); + app.setMainWidget( &table ); table.show(); - return app.exec(); + return app.exec(); } diff --git a/doc/html/buttongroups-example.html b/doc/html/buttongroups-example.html index c130f24d0..2cda99aba 100644 --- a/doc/html/buttongroups-example.html +++ b/doc/html/buttongroups-example.html @@ -211,19 +211,19 @@ void ButtonsGroups::slotChangeGrp3State() *****************************************************************************/ #include "buttongroups.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); ButtonsGroups buttonsgroups; buttonsgroups.resize( 500, 250 ); buttonsgroups.setCaption( "TQt Example - Buttongroups" ); - a.setMainWidget( &buttonsgroups ); + a.setMainWidget( &buttonsgroups ); buttonsgroups.show(); - return a.exec(); + return a.exec(); } diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index 9b8be423b..fb251c48f 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -249,7 +249,7 @@ private: #include "setdataform.h" #include <tqaction.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqcombobox.h> #include <tqfile.h> #include <tqfiledialog.h> @@ -613,7 +613,7 @@ void ChartForm::fileQuit() { if ( okToClear() ) { saveOptions(); - tqApp->exit( 0 ); + tqApp->exit( 0 ); } } @@ -778,26 +778,26 @@ void ChartForm::helpAboutTQt()


Main: -

#include <ntqapplication.h>
+

#include <tqapplication.h>
 #include "chartform.h"
 
 
 int main( int argc, char *argv[] )
 {
-    TQApplication app( argc, argv );
+    TQApplication app( argc, argv );
 
     TQString filename;
-    if ( app.argc() > 1 ) {
-        filename = app.argv()[1];
+    if ( app.argc() > 1 ) {
+        filename = app.argv()[1];
         if ( !filename.endsWith( ".cht" ) )
             filename = TQString::null;
     }
 
     ChartForm *cf = new ChartForm( filename );
-    app.setMainWidget( cf );
+    app.setMainWidget( cf );
     cf->show();
 
-    return app.exec();
+    return app.exec();
 }
 
diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index 782592399..d0d4a990d 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -137,7 +137,7 @@ private: #include <tqstatusbar.h> #include <tqmessagebox.h> #include <tqmenubar.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpainter.h> #include <tqprinter.h> #include <tqlabel.h> @@ -445,7 +445,7 @@ static TQImage *logoimg; file->insertSeparator(); file->insertItem("&Print...", this, TQ_SLOT(print()), CTRL+Key_P); file->insertSeparator(); - file->insertItem("E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q); + file->insertItem("E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q); menu->insertItem("&File", file); TQPopupMenu* edit = new TQPopupMenu( menu ); @@ -535,9 +535,9 @@ void Main::newView() { // Open a new view... have it delete when closed. Main *m = new Main(canvas, 0, 0, WDestructiveClose); - tqApp->setMainWidget(m); + tqApp->setMainWidget(m); m->show(); - tqApp->setMainWidget(0); + tqApp->setMainWidget(0); } void Main::clear() @@ -878,7 +878,7 @@ void Main::addRectangle()

#include <tqstatusbar.h>
 #include <tqmessagebox.h>
 #include <tqmenubar.h>
-#include <ntqapplication.h>
+#include <tqapplication.h>
 #include <tqimage.h>
 
 #include "canvas.h"
@@ -890,7 +890,7 @@ extern TQString logo_fn;
 
 int main(int argc, char** argv)
 {
-    TQApplication app(argc,argv);
+    TQApplication app(argc,argv);
 
     if ( argc > 1 )
         butterfly_fn = argv[1];
@@ -907,15 +907,15 @@ int main(int argc, char** argv)
     Main m(canvas);
     m.resize(m.sizeHint());
     m.setCaption("TQt Example - Canvas");
-    if ( TQApplication::desktop()->width() > m.width() + 10
-        && TQApplication::desktop()->height() > m.height() +30 )
+    if ( TQApplication::desktop()->width() > m.width() + 10
+        && TQApplication::desktop()->height() > m.height() +30 )
         m.show();
     else
         m.showMaximized();
 
-    TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) );
+    TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) );
 
-    return app.exec();
+    return app.exec();
 }
 
 
diff --git a/doc/html/chart-chartform-cpp.html b/doc/html/chart-chartform-cpp.html index 5b1b18808..66618d380 100644 --- a/doc/html/chart-chartform-cpp.html +++ b/doc/html/chart-chartform-cpp.html @@ -37,7 +37,7 @@ body { background: #ffffff; color: black; } #include "setdataform.h" #include <tqaction.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqcombobox.h> #include <tqfile.h> #include <tqfiledialog.h> @@ -401,7 +401,7 @@ void ChartForm::fileQuit() { if ( okToClear() ) { saveOptions(); - tqApp->exit( 0 ); + tqApp->exit( 0 ); } } diff --git a/doc/html/chart-element-cpp.html b/doc/html/chart-element-cpp.html index 2317ac727..4fe12aa05 100644 --- a/doc/html/chart-element-cpp.html +++ b/doc/html/chart-element-cpp.html @@ -64,28 +64,28 @@ void Element::setValuePattern( int valuePattern ) double Element::proX( int index ) const { - Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); + Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); return m_propoints[2 * index]; } double Element::proY( int index ) const { - Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); + Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); return m_propoints[(2 * index) + 1]; } void Element::setProX( int index, double value ) { - Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); + Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); m_propoints[2 * index] = value; } void Element::setProY( int index, double value ) { - Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); + Q_ASSERT(index >= 0 && index < MAX_PROPOINTS); m_propoints[(2 * index) + 1] = value; } diff --git a/doc/html/chart-main-cpp.html b/doc/html/chart-main-cpp.html index c8bb01181..9b737743c 100644 --- a/doc/html/chart-main-cpp.html +++ b/doc/html/chart-main-cpp.html @@ -31,26 +31,26 @@ body { background: #ffffff; color: black; }

chart/main.cpp Example File

-
#include <ntqapplication.h>
+
#include <tqapplication.h>
 #include "chartform.h"
 
 
 int main( int argc, char *argv[] )
 {
-    TQApplication app( argc, argv );
+    TQApplication app( argc, argv );
 
     TQString filename;
-    if ( app.argc() > 1 ) {
-        filename = app.argv()[1];
+    if ( app.argc() > 1 ) {
+        filename = app.argv()[1];
         if ( !filename.endsWith( ".cht" ) )
             filename = TQString::null;
     }
 
     ChartForm *cf = new ChartForm( filename );
-    app.setMainWidget( cf );
+    app.setMainWidget( cf );
     cf->show();
 
-    return app.exec();
+    return app.exec();
 }
 


diff --git a/doc/html/checklists-example.html b/doc/html/checklists-example.html index 539c0c939..cb59c7268 100644 --- a/doc/html/checklists-example.html +++ b/doc/html/checklists-example.html @@ -254,19 +254,19 @@ void CheckLists::copy2to3() *****************************************************************************/ #include "checklists.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); CheckLists checklists; checklists.resize( 650, 350 ); checklists.setCaption( "TQt Example - CheckLists" ); - a.setMainWidget( &checklists ); + a.setMainWidget( &checklists ); checklists.show(); - return a.exec(); + return a.exec(); }
diff --git a/doc/html/classchart.html b/doc/html/classchart.html index 22578098e..d5d616ac7 100644 --- a/doc/html/classchart.html +++ b/doc/html/classchart.html @@ -96,7 +96,7 @@ body { background: #ffffff; color: black; } - + diff --git a/doc/html/classes.html b/doc/html/classes.html index eb99b5bf9..300e4815b 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -103,7 +103,7 @@ classes, see TQt's Main Classes. TQTabletEvent -TQApplication +TQApplication TQDockWindow diff --git a/doc/html/clientserver-example.html b/doc/html/clientserver-example.html index 3c68667e1..ba5e9ef9f 100644 --- a/doc/html/clientserver-example.html +++ b/doc/html/clientserver-example.html @@ -56,7 +56,7 @@ specified. You can send single lines to the server. #include <tqsocket.h> #include <tqserversocket.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqvbox.h> #include <tqtextview.h> #include <tqlabel.h> @@ -126,7 +126,7 @@ public: TQServerSocket( 4242, 1, parent ) { if ( !ok() ) { - tqWarning("Failed to bind to port 4242"); + tqWarning("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(clicked()), tqApp, - TQ_SLOT(quit()) ); + TQ_SLOT(quit()) ); } ~ServerInfo() @@ -199,11 +199,11 @@ private: int main( int argc, char** argv ) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); ServerInfo info; - app.setMainWidget( &info ); + app.setMainWidget( &info ); info.show(); - return app.exec(); + return app.exec(); } #include "server.moc" @@ -222,7 +222,7 @@ int main( int argc, char** argv ) *****************************************************************************/ #include <tqsocket.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqvbox.h> #include <tqhbox.h> #include <tqtextview.h> @@ -248,7 +248,7 @@ public: connect( send, TQ_SIGNAL(clicked()), TQ_SLOT(sendToServer()) ); connect( close, TQ_SIGNAL(clicked()), TQ_SLOT(closeConnection()) ); - connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); // create the socket and connect various of its signals socket = new TQSocket( this ); @@ -329,11 +329,11 @@ private: int main( int argc, char** argv ) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); Client client( argc<2 ? "localhost" : argv[1], 4242 ); - app.setMainWidget( &client ); + app.setMainWidget( &client ); client.show(); - return app.exec(); + return app.exec(); } #include "client.moc" diff --git a/doc/html/cursor-example.html b/doc/html/cursor-example.html index d24ea6600..17044d4eb 100644 --- a/doc/html/cursor-example.html +++ b/doc/html/cursor-example.html @@ -47,7 +47,7 @@ This example shows how to set a mouse cursor for a widget. #include <tqlabel.h> #include <tqbitmap.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqlayout.h> #include <tqcursor.h> @@ -177,12 +177,12 @@ CursorView::CursorView() // construct view int main( int argc, char **argv ) { - TQApplication a( argc, argv ); // application object + TQApplication a( argc, argv ); // application object CursorView v; // cursor view - a.setMainWidget( &v ); + a.setMainWidget( &v ); v.setCaption("TQt Example - Cursors"); v.show(); - return a.exec(); + return a.exec(); } diff --git a/doc/html/customlayout-example.html b/doc/html/customlayout-example.html index 423d5c33e..a900f2af2 100644 --- a/doc/html/customlayout-example.html +++ b/doc/html/customlayout-example.html @@ -754,7 +754,7 @@ CardLayout::~CardLayout() #include "border.h" #include "card.h" -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqlabel.h> #include <tqcolor.h> #include <tqgroupbox.h> @@ -764,7 +764,7 @@ CardLayout::~CardLayout() int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); TQWidget *f = new TQWidget; TQBoxLayout *gm = new TQVBoxLayout( f, 5 ); @@ -828,11 +828,11 @@ int main( int argc, char **argv ) s->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); s->setAlignment( TQt::AlignVCenter | TQt::AlignHCenter ); gm->addWidget( s ); - a.setMainWidget( f ); + a.setMainWidget( f ); f->setCaption("TQt Example - Custom Layout"); f->show(); - int result = a.exec(); + int result = a.exec(); delete f; return result; } diff --git a/doc/html/customstyles.html b/doc/html/customstyles.html index 2156b8cee..bab0887c8 100644 --- a/doc/html/customstyles.html +++ b/doc/html/customstyles.html @@ -178,7 +178,7 @@ application's main() function: int main( int argc, char ** argv ) { - TQApplication::setStyle( new CustomStyle() ); + TQApplication::setStyle( new CustomStyle() ); // do the usual routine on creating your TQApplication object etc. } diff --git a/doc/html/dclock-example.html b/doc/html/dclock-example.html index 80941a2ba..0cdfcda25 100644 --- a/doc/html/dclock-example.html +++ b/doc/html/dclock-example.html @@ -193,18 +193,18 @@ void DigitalClock::showTime() *****************************************************************************/ #include "dclock.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); DigitalClock *clock = new DigitalClock; clock->resize( 170, 80 ); - a.setMainWidget( clock ); + a.setMainWidget( clock ); clock->setCaption("TQt Example - Digital Clock"); clock->show(); - return a.exec(); + return a.exec(); } diff --git a/doc/html/debug.html b/doc/html/debug.html index 5d4aa007f..d8e43ae20 100644 --- a/doc/html/debug.html +++ b/doc/html/debug.html @@ -58,16 +58,16 @@ option is only valid for the X11 version of TQt.

TQt includes three global functions for writing out warning and debug text.

The TQt implementation of these functions prints the text to the stderr output under Unix/X11 and to the debugger under Windows. You can take over these functions by installing a message handler; -qInstallMsgHandler(). +qInstallMsgHandler().

The debugging functions TQObject::dumpObjectTree() and TQObject::dumpObjectInfo() 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. #defines.

Two important macros are:

@@ -88,9 +88,9 @@ Writes the warning "In file file.cpp, line 234: Out of memory" if p is
   char *alloc( int size )
   {
-      Q_ASSERT( size > 0 );
+      Q_ASSERT( size > 0 );
       char *p = new char[size];
-      TQ_CHECK_PTR( p );
+      TQ_CHECK_PTR( p );
       return p;
   }
 
@@ -107,7 +107,7 @@ TQ_CHECK_PTR: char *alloc( int size ) { char *p; - TQ_CHECK_PTR( p = new char[size] ); // WRONG! + TQ_CHECK_PTR( p = new char[size] ); // WRONG! return p; } @@ -140,12 +140,12 @@ define TQT_NO_CHECK. { #if defined(QT_CHECK_NULL) if ( p == 0 ) - tqWarning( "f: Null pointer not allowed" ); + tqWarning( "f: Null pointer not allowed" ); #endif #if defined(QT_CHECK_RANGE) if ( i < 0 ) - tqWarning( "f: The index cannot be negative" ); + tqWarning( "f: The index cannot be negative" ); #endif } diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html index 1c25ddd04..46dc87d3e 100644 --- a/doc/html/designer-manual-3.html +++ b/doc/html/designer-manual-3.html @@ -262,14 +262,14 @@ body { background: #ffffff; color: black; }

Adding Includes

-

Our form will also need some included files. Includes may be added in the declaration, or (for preference) in the implementation. Right click "Includes (in Implementation)", then click Edit. Use the dialog that pops up to enter "tqcolor.h" and "tqstring.h". Since we're going to use the clipboard we'll need access to the global clipboard object via TQApplication, so also add "ntqapplication.h" and "tqclipboard.h". We'll also be doing some drawing (e.g. the color swatches), so add "tqpainter.h" too, then close the dialog.

+

Our form will also need some included files. Includes may be added in the declaration, or (for preference) in the implementation. Right click "Includes (in Implementation)", then click Edit. Use the dialog that pops up to enter "tqcolor.h" and "tqstring.h". Since we're going to use the clipboard we'll need access to the global clipboard object via TQApplication, so also add "tqapplication.h" and "tqclipboard.h". We'll also be doing some drawing (e.g. the color swatches), so add "tqpainter.h" too, then close the dialog.

When entering include files you can include double quotes or angle brackets if you wish; if you don't use either TQt Designer will put in double quotes automatically.

You should now have added the following includes (in implementation):

Signals and Slots Connections

@@ -322,7 +322,7 @@ body { background: #ffffff; color: black; }

init()

    void MainForm::init()
     {
-        clipboard = TQApplication::clipboard();
+        clipboard = TQApplication::clipboard();
         if ( clipboard->supportsSelection() )
             clipboard->setSelectionMode( TRUE );
 
@@ -460,15 +460,15 @@ body { background: #ffffff; color: black; }
 

Creating main.cpp

Now that we've entered some of the code it would be nice to build and run the application to get a feel for the progress we've made. To do this we need to create a main() function. In TQt we typically create a small main.cpp file for the main() function. We can ask TQt Designer to create this file for us.

Click File|New to invoke the New File dialog. Click "C++ Main-File", then click OK. The Configure Main-File dialog appears, listing the all the forms in the project. We've only got one form, "MainForm", so it is already highlighted. Click OK to create a main.cpp file that loads our MainForm.

-
    #include <ntqapplication.h>
+
    #include <tqapplication.h>
     #include "mainform.h"
 
     int main( int argc, char ** argv )
     {
-        TQApplication a( argc, argv );
+        TQApplication a( argc, argv );
         MainForm *w = new MainForm;
         w->show();
-        return a.exec();
+        return a.exec();
     }
 

When TQt Designer generates a main.cpp file it includes this line:

@@ -486,7 +486,7 @@ body { background: #ffffff; color: black; }

Now, whatever the user clicks to close the application, our fileExit() slot will be called. We'll code the fileExit() slot right now:

    void MainForm::fileExit()
     {
-            TQApplication::exit( 0 );
+            TQApplication::exit( 0 );
     }
 

This ensures that our application will cleanly terminate. Later we'll revise this function to give the user the opportunity to save any unsaved data.

@@ -754,7 +754,7 @@ Captures: cap(1) cap(2) cap(3) cap(4)
    void MainForm::fileExit()
     {
         if ( okToClear() ) {
-            TQApplication::exit( 0 );
+            TQApplication::exit( 0 );
         }
     }
 
diff --git a/doc/html/designer-manual-4.html b/doc/html/designer-manual-4.html index 4cc8aafce..a13478de7 100644 --- a/doc/html/designer-manual-4.html +++ b/doc/html/designer-manual-4.html @@ -428,7 +428,7 @@ body { background: #ffffff; color: black; } { if ( okToClear() ) { saveSettings(); - TQApplication::exit( 0 ); + TQApplication::exit( 0 ); } }
@@ -489,7 +489,7 @@ body { background: #ffffff; color: black; }
  • "tqpainter.h"

  • "tqstring.h"

  • "tqcolor.h"

    -
  • "ntqapplication.h"

    +
  • "tqapplication.h"

  • "tqfiledialog.h"

  • "tqfile.h"

  • "tqregexp.h"

    @@ -513,7 +513,7 @@ body { background: #ffffff; color: black; }

    The OptionsForm has no members.

    main.cpp Members

    This file should begin with the following declarations:

    -
        #include <ntqapplication.h>
    +
        #include <tqapplication.h>
         #include "mainform.h"
     
    diff --git a/doc/html/designer-manual-6.html b/doc/html/designer-manual-6.html index ee8677c36..2ab181dcb 100644 --- a/doc/html/designer-manual-6.html +++ b/doc/html/designer-manual-6.html @@ -79,7 +79,7 @@ FORMS = settingsformbase.ui
    Creating the Test Harness

    Although we intend our dialog to be used within an application it is useful to create a test harness so that we can develop and test it stand-alone. Click File|New to invoke the 'New File' dialog, then click 'C++ Source', then click OK. In the editor window that pops up, enter the following code:

    -#include <ntqapplication.h>
    +#include <tqapplication.h>
     #include "creditformbase.h"
     
     int main( int argc, char *argv[] ) 
    @@ -135,18 +135,18 @@ int main( int argc, char *argv[] )
     

    We call setAmount() in the constructor to ensure that the correct amount is shown when the form starts based on whichever radio button we checked in TQt Designer. In setAmount() we set the amount if the standard or none radio button is checked. If the user has checked the special radio button they are free to change the amount themselves.

    To be able to test our subclass we change main.cpp to include creditform.h rather than creditformbase.h and change the instantiation of the creditForm object:

    -
        #include <ntqapplication.h>
    +
        #include <tqapplication.h>
         #include "creditform.h"
     
         int main( int argc, char *argv[] )
         {
    -        TQApplication app( argc, argv );
    +        TQApplication app( argc, argv );
     
             CreditForm creditForm;
    -        app.setMainWidget( &creditForm );
    +        app.setMainWidget( &creditForm );
             creditForm.show();
     
    -        return app.exec();
    +        return app.exec();
         }
     

    If you created the creditform.h and creditform.cpp files in TQt Designer, they are already in the project file, but if you created them manually you must also update the project file by adding these two new lines at the end:

    @@ -176,18 +176,18 @@ INCLUDEPATH += $(TQTDIR)/tools/designer/uilib

    We do not include the creditformbase.ui file since this file will be read at runtime, as we'll see shortly. We must include the tqui library since the functionality we require is not part of the standard TQt library.

    Creating main.cpp

    The main.cpp is quite standard. It will invoke the form we're going to create in TQt Designer as its main form. This form will then load and execute the dynamic dialog.

    -
        #include <ntqapplication.h>
    +
        #include <tqapplication.h>
         #include "mainform.h"
     
         int main( int argc, char *argv[] )
         {
    -        TQApplication app( argc, argv );
    +        TQApplication app( argc, argv );
     
             MainForm *mainForm = new MainForm;
    -        app.setMainWidget( mainForm );
    +        app.setMainWidget( mainForm );
             mainForm->show();
     
    -        return app.exec();
    +        return app.exec();
         }
     

    We create a new instance of our MainForm class, set it to be the main widget, show it and enter the event loop in the app.exec() call.

    diff --git a/doc/html/designer-manual-7.html b/doc/html/designer-manual-7.html index 389e96ea5..587cff348 100644 --- a/doc/html/designer-manual-7.html +++ b/doc/html/designer-manual-7.html @@ -79,15 +79,15 @@ HEADERS += vcr.h DBFILE = vcr.db

    The qt/tools/designer/examples/vcr/main.cpp file is also brief:

    -
        #include <ntqapplication.h>
    +
        #include <tqapplication.h>
         #include "vcr.h"
     
         int main( int argc, char ** argv )
         {
    -        TQApplication app( argc, argv );
    +        TQApplication app( argc, argv );
             Vcr *vcr = new Vcr;
             vcr->show();
    -        return app.exec();
    +        return app.exec();
         }
     

    Once we're satisfied that the custom widget compiles and runs we are ready to incorporate it into TQt Designer.

    @@ -222,15 +222,15 @@ DBFILE = vcr.db

    Although these two files complete the implementation of the FileChooser widget it is good practice to write a test harness to check that the widget behaves as expected before attempting to put it into a plugin.

    Testing the Implementation

    We present a rudimentary test harness which will allow us to run our custom widget. The test harness requires two files, a main.cpp to contain the FileChooser, and a .pro file to create the Makefile from. Here is qt/tools/designer/examples/filechooser/widget/main.cpp:

    -
        #include <ntqapplication.h>
    +
        #include <tqapplication.h>
         #include "filechooser.h"
     
         int main( int argc, char ** argv )
         {
    -        TQApplication a( argc, argv );
    +        TQApplication a( argc, argv );
             FileChooser *fc = new FileChooser;
             fc->show();
    -        return a.exec();
    +        return a.exec();
         }
     

    And here is qt/tools/designer/examples/filechooser/widget/filechooser.pro

    diff --git a/doc/html/designer-manual-8.html b/doc/html/designer-manual-8.html index 9c9716d8d..f22a272e6 100644 --- a/doc/html/designer-manual-8.html +++ b/doc/html/designer-manual-8.html @@ -96,19 +96,19 @@ bool createConnections()

    We call addDatabase() passing it the name of the driver we wish to use. We then set the connection information by calling the set... functions. Finally we attempt to open the connection. If we succeed we return TRUE, otherwise we output some error information and return FALSE. From qt/tools/designer/examples/book/book1/main.cpp

        int main( int argc, char *argv[] )
         {
    -        TQApplication app( argc, argv );
    +        TQApplication app( argc, argv );
     
             if ( ! createConnections() )
                 return 1;
     
             BookForm bookForm;
    -        app.setMainWidget( &bookForm );
    +        app.setMainWidget( &bookForm );
             bookForm.show();
     
    -        return app.exec();
    +        return app.exec();
         }
     
    -

    All the examples presented in this chapter call createConnections() after creating the TQApplication object in their main.cpp file and make use of the default connection. If you need to connect to multiple databases use the two-argument form of addDatabase(), passing it both the name of the driver and a unique identifier. This is explained further in the TQt SQL Module documentation.

    +

    All the examples presented in this chapter call createConnections() after creating the TQApplication object in their main.cpp file and make use of the default connection. If you need to connect to multiple databases use the two-argument form of addDatabase(), passing it both the name of the driver and a unique identifier. This is explained further in the TQt SQL Module documentation.

    You do not need to keep a reference to database connections. If you use a single database connection, this becomes the default connection and database functions will use this connection automatically. We can always get a pointer to any of our connections by calling TQSqlDatabase::database().

    If you create a main.cpp file using TQt Designer, this file will not include createConnections(). We do not include this function because it needs the username and password for the database connection, and you may prefer to handle these differently from our simple example function. As a result, applications that preview correctly in TQt Designer will not run unless you implement your own database connections function.

    Using TQDataTable

    diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html index cbdace5f6..491aaee96 100644 --- a/doc/html/desktop-example.html +++ b/doc/html/desktop-example.html @@ -51,7 +51,7 @@ any other. #include <tqimage.h> #include <tqbitmap.h> #include <tqpainter.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqdropsite.h> #include <tqdragobject.h> #include <stdio.h> @@ -84,7 +84,7 @@ static int velocity( int i ) // change velocity void poly() { - TQWidget *d = TQApplication::desktop(); + TQWidget *d = TQApplication::desktop(); d->setBackgroundColor( TQt::white ); // white desktop const int maxpoints = 5; @@ -173,7 +173,7 @@ void rotate() pm = image; // convert image to pixmap pm.setOptimization( TQPixmap::BestOptim ); // rotation will be faster - TQWidget *d = TQApplication::desktop(); // w = desktop widget + TQWidget *d = TQApplication::desktop(); // w = desktop widget for ( i=0; i<=360; i += 2 ) { TQWMatrix m; @@ -302,7 +302,7 @@ void desktopWidget( const char *s = "Trolltech" ) { DesktopWidget *t = new DesktopWidget(s); t->update(); - tqApp->exec(); + tqApp->exec(); delete t; } @@ -310,7 +310,7 @@ void desktopText( const char *s = "Trolltech" ) { const int border = 20; - TQColor c1 = tqApp->palette().inactive().background(); + TQColor c1 = tqApp->palette().inactive().background(); TQColor c2 = c1.light(104); TQColor c3 = c1.dark(106); @@ -321,8 +321,8 @@ void desktopText( const char *s = "Trolltech" ) TQRect r = p.fontMetrics().boundingRect( s ); p.end(); - int appWidth = tqApp->desktop()->width(); - int appHeight = tqApp->desktop()->height(); + int appWidth = tqApp->desktop()->width(); + int appHeight = tqApp->desktop()->height(); if ( r.width() > appWidth - border*2 ) r.setWidth( appWidth - border*2 ); if ( r.height() > appHeight - border*2 ) @@ -334,7 +334,7 @@ void desktopText( const char *s = "Trolltech" ) drawShadeText( &p, -r.x() + border, -r.y() + border, s, c2, c3 ); p.end(); - tqApp->desktop()->setBackgroundPixmap( pm ); + tqApp->desktop()->setBackgroundPixmap( pm ); } // @@ -343,12 +343,12 @@ void desktopText( const char *s = "Trolltech" ) int main( int argc, char **argv ) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); if ( argc > 1 ) { TQFont f( "charter", 96, TQFont::Black ); f.setStyleHint( TQFont::Times ); - app.setFont( f ); + app.setFont( f ); } bool validOptions = FALSE; diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html index 4d5903565..7f50fb26d 100644 --- a/doc/html/dirview-example.html +++ b/doc/html/dirview-example.html @@ -179,7 +179,7 @@ can be used in any other trees. #include <tqmime.h> #include <tqstrlist.h> #include <tqstringlist.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqheader.h> static const char* folder_closed_xpm[]={ @@ -627,7 +627,7 @@ TQString DirectoryView::fullPath(TQListViewItem* item) void DirectoryView::contentsMouseMoveEvent( TQMouseEvent* e ) { - if ( mousePressed && ( presspos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) { + if ( mousePressed && ( presspos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) { mousePressed = FALSE; TQListViewItem *item = itemAt( contentsToViewport(presspos) ); if ( item ) { @@ -703,14 +703,14 @@ const TQPixmap *FileItem::pixmap( int i ** *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqfileinfo.h> #include <tqdir.h> #include "dirview.h" int main( int argc, char ** argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); DirectoryView mw; @@ -731,10 +731,10 @@ int main( int argc, char ** argv ) mw.resize( 400, 400 ); mw.setCaption( "TQt Example - Directory Browser" ); mw.setAllColumnsShowFocus( TRUE ); - a.setMainWidget( &mw ); + a.setMainWidget( &mw ); mw.show(); - return a.exec(); + return a.exec(); }
    diff --git a/doc/html/distributingtqt.html b/doc/html/distributingtqt.html index 4be4e542a..efcd28af0 100644 --- a/doc/html/distributingtqt.html +++ b/doc/html/distributingtqt.html @@ -91,7 +91,7 @@ plugin category (e.g. styles, sqldrivers, designer, e
  • The application directory

    Application specific plugin paths can be added using -TQApplication::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 distributor-example.html Distributor example).

    Dynamic Dialogs diff --git a/doc/html/distributor-example.html b/doc/html/distributor-example.html index 090dec2fb..09b89cd1e 100644 --- a/doc/html/distributor-example.html +++ b/doc/html/distributor-example.html @@ -61,7 +61,7 @@ distributed with TQt. ** place of a destructor. *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqcursor.h> #include <tqeventloop.h> #include <tqfile.h> @@ -213,14 +213,14 @@ void Distributor::checkLibData() TQFile file( libFilename->text() ); if ( file.open( IO_ReadOnly ) ) { - TQApplication::setOverrideCursor( WaitCursor ); + TQApplication::setOverrideCursor( WaitCursor ); // instead of reading in the entire file, do the search in chunks char data[60000]; ulong offset = 0; while ( ! file.atEnd() && completed < total_steps ) { - TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); + TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); ulong len = file.readBlock( data, sizeof(data) ); if ( len < 267 ) { @@ -259,7 +259,7 @@ void Distributor::checkLibData() file.close(); - TQApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); } if ( completed == total_steps ) { @@ -366,14 +366,14 @@ void Distributor::accept() TQFile file( libFilename->text() ); if ( file.open( IO_ReadWrite ) ) { - TQApplication::setOverrideCursor( WaitCursor ); + TQApplication::setOverrideCursor( WaitCursor ); // instead of reading in the entire file, do the search in chunks char data[60000]; ulong offset = 0; while ( ! file.atEnd() && completed < total_steps ) { - TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); + TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); ulong len = file.readBlock( data, sizeof(data) ); if ( len < 267 ) { @@ -420,7 +420,7 @@ void Distributor::accept() file.close(); - TQApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); } if ( completed != total_steps ) { diff --git a/doc/html/dnd.html b/doc/html/dnd.html index 48e511348..b5bc53181 100644 --- a/doc/html/dnd.html +++ b/doc/html/dnd.html @@ -141,14 +141,14 @@ information on the clipboard:
     void MyWidget::copy()
     {
    -    TQApplication::clipboard()->setData(
    +    TQApplication::clipboard()->setData(
             new TQTextDrag(myHighlightedText()) );
     }
     
     void MyWidget::paste()
     {
         TQString text;
    -    if ( TQTextDrag::decode(TQApplication::clipboard()->data(), text) )
    +    if ( TQTextDrag::decode(TQApplication::clipboard()->data(), text) )
             insertText( text );
     }
     
    @@ -318,12 +318,12 @@ void MyWidget::dragMoveEvent(TQDragMoveEvent* event) 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 TQApplication object (available as the tqApp global) also +

    The TQApplication object (available as the tqApp global) also provides some drag and drop related functions: -TQApplication::setStartDragTime(), -TQApplication::setStartDragDistance(), and their corresponding -getters, TQApplication::startDragTime() and -TQApplication::startDragDistance(). +TQApplication::setStartDragTime(), +TQApplication::setStartDragDistance(), and their corresponding +getters, TQApplication::startDragTime() and +TQApplication::startDragDistance().

    Inter-operating with Other Applications

    On X11, the public tqpushbutton.h> #include <tqradiobutton.h> #include <tqbuttongroup.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <math.h> // @@ -342,12 +342,12 @@ void DrawView::paintEvent( TQApplication app( argc, argv ); + TQApplication app( argc, argv ); DrawView draw; - app.setMainWidget( &draw ); + app.setMainWidget( &draw ); draw.setCaption("TQt Example - Drawdemo"); draw.show(); - return app.exec(); + return app.exec(); }

  • diff --git a/doc/html/drawlines-example.html b/doc/html/drawlines-example.html index 8f13910b8..93bf8acbb 100644 --- a/doc/html/drawlines-example.html +++ b/doc/html/drawlines-example.html @@ -50,7 +50,7 @@ release the button, and watch the lines get drawn. #include <tqwidget.h> #include <tqpainter.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <stdlib.h> @@ -162,14 +162,14 @@ ConnectWidget::~ConnectWidget() int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); ConnectWidget connect; #ifndef TQT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build connect.setCaption( "TQt Example - Draw lines"); #endif - a.setMainWidget( &connect ); + a.setMainWidget( &connect ); connect.show(); - return a.exec(); + return a.exec(); }
    diff --git a/doc/html/eventsandfilters.html b/doc/html/eventsandfilters.html index f8ec0e46e..44ff1c3b1 100644 --- a/doc/html/eventsandfilters.html +++ b/doc/html/eventsandfilters.html @@ -53,7 +53,7 @@ supports mouse moves, presses, shift-presses, drags, clicks, right-presses, etc.

    Since programs need to react in varied and complex ways, TQt's event delivery mechanisms are flexible. The documentation for -TQApplication::notify() concisely tells the whole story, here we +TQApplication::notify() concisely tells the whole story, here we will explain enough for 99% of applications.

    The normal way for an event to be delivered is by calling a virtual function. For example, TQPaintEvent is delivered by calling TQWidget::paintEvent(). This virtual function is responsible for @@ -113,14 +113,14 @@ event, the event is sent to the target object itself. If one of them stops processing, the target and any later event filters don't get to see the event at all.

    It's also possible to filter all events for the entire application, -by installing an event filter on TQApplication. This is what TQToolTip does in order to see all the mouse and keyboard activity. +by installing an event filter on TQApplication. This is what TQToolTip does in order to see all the mouse and keyboard activity. This is very powerful, but it also slows down event delivery of every single event in the entire application, so it's best avoided.

    The global event filters are called before the object-specific filters.

    Finally, many applications want to create and send their own events.

    Creating an event of a built-in type is very simple: create an object -of the relevant type, and then call TQApplication::sendEvent() or TQApplication::postEvent(). +of the relevant type, and then call TQApplication::sendEvent() or TQApplication::postEvent().

    sendEvent() processes the event immediately - when sendEvent() returns, (the event filters and) the object have already processed the event. For many event classes there is a function called isAccepted() diff --git a/doc/html/extension-dialog-example.html b/doc/html/extension-dialog-example.html index 663e39138..4a7526a55 100644 --- a/doc/html/extension-dialog-example.html +++ b/doc/html/extension-dialog-example.html @@ -66,7 +66,7 @@ DBFILE = extension.db *****************************************************************************/ #include "dialogform.h" #include "extension.h" -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqcheckbox.h> #include <tqlineedit.h> @@ -101,7 +101,7 @@ void MainForm::optionsDlg() void MainForm::quit() { - TQApplication::exit( 0 ); + TQApplication::exit( 0 ); }

    @@ -142,16 +142,16 @@ void DialogForm::toggleDetails()


    Main: -

    #include <ntqapplication.h>
    +

    #include <tqapplication.h>
     #include "mainform.h"
     
     int main( int argc, char ** argv )
     {
    -    TQApplication a( argc, argv );
    +    TQApplication a( argc, argv );
         MainForm *w = new MainForm;
         w->show();
    -    a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), w, TQ_SLOT( quit() ) );
    -    return a.exec();
    +    a.connect( &a, TQ_SIGNAL( lastWindowClosed() ), w, TQ_SLOT( quit() ) );
    +    return a.exec();
     }
     
    diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index 5f23a19bb..3333452bb 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -235,7 +235,7 @@ protected: #include <tqevent.h> #include <tqpopupmenu.h> #include <tqcursor.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqwmatrix.h> #include <stdlib.h> @@ -688,7 +688,7 @@ TQtFileIconViewItem::~TQtFileIconViewItem() : TQIconView( parent, name ), viewDir( dir ), newFolderNum( 0 ) { if ( !iconFolderLockedLarge ) { - tqAddPostRoutine( cleanup ); + tqAddPostRoutine( cleanup ); TQWMatrix m; m.scale( 0.6, 0.6 ); TQPixmap iconpix( folder_locked_icon ); @@ -771,7 +771,7 @@ void TQtFileIconView::newDirectory() item->setSelected( TRUE, TRUE ); setCurrentItem( item ); repaintItem( item ); - tqApp->processEvents(); + tqApp->processEvents(); item->rename(); } setAutoArrange( TRUE ); @@ -1365,19 +1365,19 @@ void FileMainWindow::disableMkdir() #include "mainwindow.h" #include "tqfileiconview.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); FileMainWindow mw; mw.resize( 680, 480 ); - a.setMainWidget( &mw ); + a.setMainWidget( &mw ); mw.fileView()->setDirectory( "/" ); mw.show(); - return a.exec(); + return a.exec(); }
    diff --git a/doc/html/forever-example.html b/doc/html/forever-example.html index 10bfa67c0..3e8a3420c 100644 --- a/doc/html/forever-example.html +++ b/doc/html/forever-example.html @@ -93,7 +93,7 @@ private: #include <tqtimer.h> #include <tqpainter.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include <stdlib.h> // defines rand() function #include "forever.h" @@ -173,13 +173,13 @@ void Forever::updateCaption() int main( int argc, char **argv ) { - TQApplication a( argc, argv ); // create application object + TQApplication a( argc, argv ); // create application object Forever always; // create widget always.resize( 400, 250 ); // start up with size 400x250 - a.setMainWidget( &always ); // set as main widget + a.setMainWidget( &always ); // set as main widget always.setCaption("TQt Example - Forever"); always.show(); // show widget - return a.exec(); // run event loop + return a.exec(); // run event loop }
  • diff --git a/doc/html/ftpclient-example.html b/doc/html/ftpclient-example.html index 9d84ada51..0296997c1 100644 --- a/doc/html/ftpclient-example.html +++ b/doc/html/ftpclient-example.html @@ -64,7 +64,7 @@ commands. The GUI parts are done in the Designer. #include <tqmessagebox.h> #include <tqfiledialog.h> #include <tqprogressdialog.h> -#include <ntqapplication.h> +#include <tqapplication.h> #include "connectdialog.h" #include "ftpviewitem.h" @@ -233,7 +233,7 @@ void FtpMainWindow::changePathOrDownload( TQListVi void FtpMainWindow::ftp_commandStarted() { - TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) ); + TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) ); if ( ftp->currentCommand() == TQFtp::List ) { remoteView->clear(); if ( currentFtpDir != "/" ) @@ -243,7 +243,7 @@ void FtpMainWindow::ftp_commandStarted() void FtpMainWindow::ftp_commandFinished() { - TQApplication::restoreOverrideCursor(); + TQApplication::restoreOverrideCursor(); delete ftp->currentDevice(); } @@ -324,19 +324,19 @@ void FtpMainWindow::ftp_rawCommandReply( int code, const ntqapplication.h> +#include <tqapplication.h> #include "ftpmainwindow.h" int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); FtpMainWindow m; - a.setMainWidget( &m ); + a.setMainWidget( &m ); m.show(); - a.processEvents(); + a.processEvents(); m.connectToHost(); - return a.exec(); + return a.exec(); } diff --git a/doc/html/functions.html b/doc/html/functions.html index dc8392b87..efe2c6838 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -39,16 +39,16 @@ API with links to the class documentation for each function. diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html index 5cc4714a2..a9945bffd 100644 --- a/doc/html/tictac-example.html +++ b/doc/html/tictac-example.html @@ -162,7 +162,7 @@ private: *****************************************************************************/ #include "tictac.h" -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpainter.h> #include <tqdrawutil.h> #include <tqcombobox.h> @@ -478,7 +478,7 @@ void TicTacGameBoard::computerMove() newGame = new TQPushButton( "Play!", this ); connect( newGame, TQ_SIGNAL(clicked()), TQ_SLOT(newGameClicked()) ); quit = new TQPushButton( "Quit", this ); - connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQHBoxLayout * b = new TQHBoxLayout; l->addLayout( b ); b->addWidget( newGame ); @@ -541,26 +541,26 @@ void TicTacToe::newState() ** *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <stdlib.h> #include "tictac.h" int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); int n = 3; if ( argc == 2 ) // get board size n n = atoi(argv[1]); if ( n < 3 || n > 10 ) { // out of range - tqWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] ); + tqWarning( "%s: Board size must be from 3x3 to 10x10", argv[0] ); return 1; } TicTacToe ttt( n ); // create game - a.setMainWidget( &ttt ); + a.setMainWidget( &ttt ); ttt.setCaption("TQt Example - TicTac"); ttt.show(); // show widget - return a.exec(); // go + return a.exec(); // go } diff --git a/doc/html/timers.html b/doc/html/timers.html index 4bfcf5848..ce6865026 100644 --- a/doc/html/timers.html +++ b/doc/html/timers.html @@ -39,7 +39,7 @@ unique integer timer id. The timer will now "fire" every interval milliseconds, until you explicitly call TQObject::killTimer() with the timer id.

    For this mechanism to work, the application must run in an event -loop. You start an event loop with TQApplication::exec(). When a +loop. You start an event loop with TQApplication::exec(). When a timer fires, the application sends a TQTimerEvent, and the flow of control leaves the event loop until the timer event is processed. This implies that a timer cannot fire while your application is busy doing diff --git a/doc/html/titleindex b/doc/html/titleindex index 5e2f9628d..42c5f2882 100644 --- a/doc/html/titleindex +++ b/doc/html/titleindex @@ -140,8 +140,8 @@ TQAction Examples | tqaction-examples.html TQAction Member List | tqaction-members.html TQActionGroup Class | tqactiongroup.html TQActionGroup Member List | tqactiongroup-members.html -QApplication Class | ntqapplication.html -QApplication Member List | qapplication-members.html +TQApplication Class | tqapplication.html +TQApplication Member List | tqapplication-members.html TQAsciiCache Class | tqasciicache.html TQAsciiCache Member List | tqasciicache-members.html TQAsciiCacheIterator Class | tqasciicacheiterator.html @@ -1039,7 +1039,7 @@ iconview/simple_dd/main.h Example File | iconview-simple_dd-main-h.html tqaccel.h Include File | tqaccel-h.html tqaccessible.h Include File | tqaccessible-h.html tqaction.h Include File | tqaction-h.html -ntqapplication.h Include File | qapplication-h.html +tqapplication.h Include File | tqapplication-h.html tqasciicache.h Include File | tqasciicache-h.html tqasciidict.h Include File | tqasciidict-h.html tqassistantclient.h Include File | tqassistantclient-h.html diff --git a/doc/html/toggleaction-example.html b/doc/html/toggleaction-example.html index 3c1a5ce00..38c0e93a1 100644 --- a/doc/html/toggleaction-example.html +++ b/doc/html/toggleaction-example.html @@ -36,7 +36,7 @@ body { background: #ffffff; color: black; } in its incarnation as a toggle action.


    Main: -

    #include <ntqapplication.h>
    +

    #include <tqapplication.h>
     #include <tqmainwindow.h>
     #include <tqtoolbar.h>
     #include <tqaction.h>
    @@ -45,7 +45,7 @@ in its incarnation as a toggle action.
     
     int main( int argc, char **argv )
     {
    -    TQApplication app( argc, argv );
    +    TQApplication app( argc, argv );
         TQMainWindow * window = new TQMainWindow;
         window->setCaption("TQt Example - Toggleaction");
         TQToolBar * toolbar = new TQToolBar( window );
    @@ -62,9 +62,9 @@ int main( int argc, char **argv )
     
         labelonoffaction->addTo( toolbar );
     
    -    app.setMainWidget( window );
    +    app.setMainWidget( window );
         window->show();
    -    return app.exec();
    +    return app.exec();
     }
     
     
    diff --git a/doc/html/tools.html b/doc/html/tools.html index aced757fd..b0ccda8c0 100644 --- a/doc/html/tools.html +++ b/doc/html/tools.html @@ -33,7 +33,7 @@ body { background: #ffffff; color: black; }

    The non-GUI classes are general-purpose collection and string classes that may be used independently of the GUI classes. -

    In particular, these classes do not depend on TQApplication at all, +

    In particular, these classes do not depend on TQApplication at all, and so can be used in non-GUI programs.

    See also the introduction to the TQt collection classes. diff --git a/doc/html/tooltip-example.html b/doc/html/tooltip-example.html index c978d1460..a4ab7b73b 100644 --- a/doc/html/tooltip-example.html +++ b/doc/html/tooltip-example.html @@ -98,7 +98,7 @@ private: *****************************************************************************/ #include "tooltip.h" -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpainter.h> #include <stdlib.h> @@ -218,19 +218,19 @@ TQRect TellMe::tip( const TQPoint ** *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include "tooltip.h" int main( int argc, char ** argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); TellMe mw; mw.setCaption( "TQt Example - Dynamic Tool Tips" ); - a.setMainWidget( &mw ); + a.setMainWidget( &mw ); mw.show(); - return a.exec(); + return a.exec(); }

    diff --git a/doc/html/toplevel-example.html b/doc/html/toplevel-example.html index 6aaa08474..ab5d266c6 100644 --- a/doc/html/toplevel-example.html +++ b/doc/html/toplevel-example.html @@ -50,12 +50,12 @@ tooltips and What's This help. Load the options.ui file into TQt Designer for more details.

    -

        #include <ntqapplication.h>
    +
        #include <tqapplication.h>
         #include "options.h"
     
         int main( int argc, char ** argv )
         {
    -        TQApplication a( argc, argv );
    +        TQApplication a( argc, argv );
             OptionsDialog dlg;
             return dlg.exec();
         }
    diff --git a/doc/html/tqaction-application-example.html b/doc/html/tqaction-application-example.html
    index 49560af19..42968e34f 100644
    --- a/doc/html/tqaction-application-example.html
    +++ b/doc/html/tqaction-application-example.html
    @@ -115,7 +115,7 @@ private:
     #include <tqstatusbar.h>
     #include <tqmessagebox.h>
     #include <tqprinter.h>
    -#include <ntqapplication.h>
    +#include <tqapplication.h>
     #include <tqaccel.h>
     #include <tqtextstream.h>
     #include <tqpainter.h>
    @@ -189,7 +189,7 @@ private:
         fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this,
                                       "quit" );
         connect( fileQuitAction, TQ_SIGNAL( activated() ) , tqApp,
    -             TQ_SLOT( closeAllWindows() ) );
    +             TQ_SLOT( closeAllWindows() ) );
     
         // populate a tool bar with some actions
     
    @@ -412,16 +412,16 @@ void ApplicationWindow::aboutTQt()
     **
     *****************************************************************************/
     
    -#include <ntqapplication.h>
    +#include <tqapplication.h>
     #include "application.h"
     
     int main( int argc, char ** argv ) {
    -    TQApplication a( argc, argv );
    +    TQApplication a( argc, argv );
         ApplicationWindow * mw = new ApplicationWindow();
         mw->setCaption( "Document 1" );
         mw->show();
    -    a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
    -    return a.exec();
    +    a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) );
    +    return a.exec();
     }
     
    diff --git a/doc/html/tqapplication-h.html b/doc/html/tqapplication-h.html new file mode 100644 index 000000000..f3bc3b9d1 --- /dev/null +++ b/doc/html/tqapplication-h.html @@ -0,0 +1,542 @@ + + + + +tqapplication.h Include File + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    tqapplication.h

    + +

    This is the verbatim text of the tqapplication.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


    +
    +/****************************************************************************
    +** $Id: qt/tqapplication.h   3.3.8   edited Jan 16 10:54 $
    +**
    +** Definition of TQApplication class
    +**
    +** Created : 931107
    +**
    +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
    +**
    +** This file is part of the kernel module of the TQt GUI Toolkit.
    +**
    +** This file may be used under the terms of the GNU General Public
    +** License versions 2.0 or 3.0 as published by the Free Software
    +** Foundation and appearing in the file LICENSE.GPL included in the
    +** packaging of this file. Alternatively you may (at your option) use any
    +** later version of the GNU General Public License if such license has
    +** been publicly approved by Trolltech ASA (or its successors, if any)
    +** and the KDE Free TQt Foundation.
    +**
    +** Please review the following information to ensure GNU General
    +** Public Licensing requirements will be met:
    +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
    +** If you are unsure which license is appropriate for your use, please
    +** review the following information:
    +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
    +** or contact the sales department at sales@trolltech.com.
    +**
    +** This file may be used under the terms of the Q Public License as
    +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
    +** included in the packaging of this file.  Licensees holding valid TQt
    +** Commercial licenses may use this file in accordance with the TQt
    +** Commercial License Agreement provided with the Software.
    +**
    +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
    +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
    +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
    +** herein.
    +**
    +**********************************************************************/
    +
    +#ifndef TQAPPLICATION_H
    +#define TQAPPLICATION_H
    +
    +#ifndef QT_H
    +#include "tqdesktopwidget.h"
    +#include "tqasciidict.h"
    +#include "tqpalette.h"
    +#include "tqtranslator.h"
    +#include "tqstrlist.h"
    +#include "tqstringlist.h"
    +#endif // QT_H
    +
    +class TQSessionManager;
    +class TQStyle;
    +class TQTranslator;
    +class TQEventLoop;
    +
    +#ifdef TQT_THREAD_SUPPORT
    +class TQMutex;
    +#endif // TQT_THREAD_SUPPORT
    +
    +
    +class TQApplication;
    +extern TQ_EXPORT TQApplication *tqApp;		// global application object
    +
    +
    +class TQ_EXPORT TQApplication : public TQObject
    +{
    +    TQ_OBJECT
    +public:
    +    TQApplication( int &argc, char **argv );
    +    TQApplication( int &argc, char **argv, bool GUIenabled );
    +    enum Type { Tty, GuiClient, GuiServer };
    +    TQApplication( int &argc, char **argv, Type );
    +#if defined(TQ_WS_X11)
    +    TQApplication( Display* dpy, HANDLE visual = 0, HANDLE cmap = 0 );
    +    TQApplication( Display *dpy, int argc, char **argv,
    +		  HANDLE visual = 0, HANDLE cmap= 0 );
    +#endif
    +    virtual ~TQApplication();
    +
    +    int		    argc()	const;
    +    char	  **argv()	const;
    +
    +    Type type() const;
    +
    +#ifndef TQT_NO_STYLE
    +    static TQStyle  &style();
    +    static void	    setStyle( TQStyle* );
    +    static TQStyle*  setStyle( const TQString& );
    +#endif
    +#ifndef Q_QDOC
    +    enum ColorMode { NormalColors, CustomColors };
    +    static ColorMode colorMode();
    +    static void      setColorMode( TQApplication::ColorMode );
    +#endif
    +
    +    enum ColorSpec { NormalColor=0, CustomColor=1, ManyColor=2 };
    +    static int	     colorSpec();
    +    static void      setColorSpec( int );
    +#ifndef TQT_NO_CURSOR
    +    static TQCursor  *overrideCursor();
    +    static void	     setOverrideCursor( const TQCursor &, bool replace=FALSE );
    +    static void	     restoreOverrideCursor();
    +#endif
    +    static bool	     hasGlobalMouseTracking();
    +    static void	     setGlobalMouseTracking( bool enable );
    +#ifndef TQT_NO_PALETTE
    +    static TQPalette  palette( const TQWidget* = 0 );
    +    static void	     setPalette( const TQPalette &, bool informWidgets=FALSE,
    +				 const char* className = 0 );
    +#endif
    +    static TQFont     font( const TQWidget* = 0 );
    +    static void	     setFont( const TQFont &, bool informWidgets=FALSE,
    +			      const char* className = 0 );
    +    static TQFontMetrics fontMetrics();
    +
    +    TQWidget	    *mainWidget()  const;
    +    virtual void     setMainWidget( TQWidget * );
    +    virtual void     polish( TQWidget * );
    +
    +    static TQWidgetList *allWidgets();
    +    static TQWidgetList *topLevelWidgets();
    +
    +    static TQDesktopWidget   *desktop();
    +
    +    static TQWidget     *activePopupWidget();
    +    static TQWidget     *activeModalWidget();
    +#ifndef TQT_NO_CLIPBOARD
    +    static TQClipboard  *clipboard();
    +#endif
    +    TQWidget	       *focusWidget() const;
    +    TQWidget	       *activeWindow() const;
    +
    +    static TQWidget  *widgetAt( int x, int y, bool child=FALSE );
    +    static TQWidget  *widgetAt( const TQPoint &, bool child=FALSE );
    +
    +    static TQEventLoop *eventLoop();
    +
    +    int		     exec();
    +    void	     processEvents();
    +    void	     processEvents( int maxtime );
    +    void	     processOneEvent();
    +    bool	     hasPendingEvents();
    +    int		     enter_loop();
    +    void	     exit_loop();
    +    int		     loopLevel() const;
    +    static void	     exit( int retcode=0 );
    +
    +    static bool	     sendEvent( TQObject *receiver, TQEvent *event );
    +    static void	     postEvent( TQObject *receiver, TQEvent *event );
    +    static void	     sendPostedEvents( TQObject *receiver, int event_type );
    +    static void	     sendPostedEvents();
    +
    +    static void      removePostedEvents( TQObject *receiver );
    +
    +    virtual bool     notify( TQObject *, TQEvent * );
    +
    +    static bool	     startingUp();
    +    static bool	     closingDown();
    +
    +    static void	     flushX();
    +    static void flush();
    +    static void	     syncX();
    +
    +    static void	     beep();
    +
    +#ifndef TQT_NO_TRANSLATION
    +# ifndef TQT_NO_TEXTCODEC
    +    void	     setDefaultCodec( TQTextCodec * );
    +    TQTextCodec*	     defaultCodec() const;
    +# endif
    +    void	     installTranslator( TQTranslator * );
    +    void	     removeTranslator( TQTranslator * );
    +#endif
    +    enum Encoding { DefaultCodec, UnicodeUTF8 };
    +    TQString	     translate( const char * context,
    +				const char * key,
    +				const char * comment = 0,
    +				Encoding encoding = DefaultCodec ) const;
    +#ifndef TQT_NO_DIR
    +    TQString   applicationDirPath();
    +    TQString   applicationFilePath();
    +#endif
    +#ifndef TQT_NO_PALETTE
    +    // obsolete functions
    +    static void      setWinStyleHighlightColor( const TQColor &c ) {
    +	TQPalette p( palette() );
    +	p.setColor( TQColorGroup::Highlight, c );
    +	setPalette( p, TRUE);
    +    }
    +    static const TQColor &winStyleHighlightColor() {
    +	return palette().active().highlight();
    +    }
    +#endif
    +    static void      setDesktopSettingsAware( bool );
    +    static bool      desktopSettingsAware();
    +
    +    static void      setCursorFlashTime( int );
    +    static int       cursorFlashTime();
    +
    +    static void      setDoubleClickInterval( int );
    +    static int       doubleClickInterval();
    +#ifndef TQT_NO_WHEELEVENT
    +    static void      setWheelScrollLines( int );
    +    static int       wheelScrollLines();
    +#endif
    +    static void	     setGlobalStrut( const TQSize & );
    +    static TQSize     globalStrut();
    +
    +#ifndef TQT_NO_COMPONENT
    +    static void      setLibraryPaths( const TQStringList & );
    +    static TQStringList libraryPaths();
    +    static void      addLibraryPath( const TQString & );
    +    static void      removeLibraryPath( const TQString & );
    +#endif // TQT_NO_COMPONENT
    +    static void setStartDragTime( int ms );
    +    static int startDragTime();
    +    static void setStartDragDistance( int l );
    +    static int startDragDistance();
    +
    +    static void setReverseLayout( bool b );
    +    static bool reverseLayout();
    +
    +    static int horizontalAlignment( int align );
    +
    +    static bool	    isEffectEnabled( TQt::UIEffect );
    +    static void	    setEffectEnabled( TQt::UIEffect, bool enable = TRUE );
    +
    +#if defined(TQ_WS_MAC)
    +    virtual bool     macEventFilter( EventHandlerCallRef, EventRef );
    +#endif
    +#if defined(TQ_WS_WIN)
    +    virtual bool     winEventFilter( MSG * );
    +#endif
    +#if defined(TQ_WS_X11)
    +    virtual bool     x11EventFilter( XEvent * );
    +    virtual int	     x11ClientMessage( TQWidget*, XEvent*, bool passive_only);
    +    int              x11ProcessEvent( XEvent* );
    +#endif
    +
    +#if defined(Q_OS_WIN32) || defined(Q_OS_CYGWIN)
    +    static WindowsVersion winVersion();
    +#elif defined(Q_OS_MAC)
    +    static MacintoshVersion macVersion();
    +#endif
    +#if defined(TQ_WS_WIN)
    +    void	     winFocus( TQWidget *, bool );
    +    static void	     winMouseButtonUp();
    +#endif
    +
    +#ifndef TQT_NO_SESSIONMANAGER
    +    // session management
    +    bool	     isSessionRestored() const;
    +    TQString 	sessionId() const;
    +    TQString 	sessionKey() const;
    +    virtual void     commitData( TQSessionManager& sm );
    +    virtual void     saveState( TQSessionManager& sm );
    +#endif
    +#if defined(TQ_WS_X11)
    +    static void create_xim();
    +    static void close_xim();
    +    static bool x11_apply_settings();
    +#endif
    +    void	     wakeUpGuiThread();
    +#if defined(TQT_THREAD_SUPPORT)
    +    void	     lock();
    +    void	     unlock(bool wakeUpGui = TRUE);
    +    bool	     locked();
    +    bool             tryLock();
    +#endif
    +
    +signals:
    +    void	     lastWindowClosed();
    +    void	     aboutToQuit();
    +    void	     guiThreadAwake();
    +
    +public slots:
    +    void	     quit();
    +    void	     closeAllWindows();
    +    void	     aboutTQt();
    +
    +protected:
    +    void setArgs(int, char **);
    +#endif
    +
    +protected:
    +    bool event(TQEvent *);
    +
    +private:
    +    void construct( int &argc, char **argv, Type );
    +    void initialize( int, char ** );
    +    void init_precmdline();
    +    void process_cmdline( int* argcptr, char ** argv );
    +    bool internalNotify( TQObject *, TQEvent * );
    +
    +#if defined(TQ_WS_MAC)
    +    bool do_mouse_down(Point *, bool *);
    +    static TQMAC_PASCAL OSStatus globalEventProcessor(EventHandlerCallRef,  EventRef, void *);
    +    static TQMAC_PASCAL OSStatus globalAppleEventProcessor(const AppleEvent *, AppleEvent *, long);
    +    static TQMAC_PASCAL void qt_context_timer_callbk(EventLoopTimerRef, void *);
    +    static TQMAC_PASCAL void qt_select_timer_callbk(EventLoopTimerRef, void *);
    +    static bool qt_mac_apply_settings();
    +    friend class TQMacInputMethod;
    +    friend TQMAC_PASCAL OSStatus qt_window_event(EventHandlerCallRef, EventRef, void *);
    +    friend void qt_mac_update_os_settings();
    +    friend bool qt_set_socket_handler( int, int, TQObject *, bool);
    +    friend void qt_mac_destroy_widget(TQWidget *);
    +    friend void tqt_init(int *, char **, TQApplication::Type);
    +#endif
    +
    +#ifdef TQT_THREAD_SUPPORT
    +    static TQMutex   *tqt_mutex;
    +#endif // TQT_THREAD_SUPPORT
    +
    +    int		     app_argc;
    +    char	   **app_argv;
    +    bool	     quit_now;
    +    int		     quit_code;
    +    static TQStyle   *app_style;
    +    static int	     app_cspec;
    +#ifndef TQT_NO_PALETTE
    +    static TQPalette *app_pal;
    +#endif
    +    static TQFont    *app_font;
    +#ifndef TQT_NO_CURSOR
    +    static TQCursor  *app_cursor;
    +#endif
    +    static TQEventLoop* eventloop;
    +    static int	     app_tracking;
    +    static bool	     is_app_running;
    +    static bool	     is_app_closing;
    +    static bool	     app_exit_loop;
    +    static int	     loop_level;
    +    static TQWidget  *main_widget;
    +    static TQWidget  *focus_widget;
    +    static TQWidget  *active_window;
    +    static bool	     obey_desktop_settings;
    +    static int	     cursor_flash_time;
    +    static int	     mouse_double_click_time;
    +    static int	     wheel_scroll_lines;
    +    static int	     composedUnicode; // Value, meta-composed character
    +
    +    static bool	     animate_ui;
    +    static bool	     animate_menu;
    +    static bool	     animate_tooltip;
    +    static bool	     animate_combo;
    +    static bool	     fade_menu;
    +    static bool	     fade_tooltip;
    +    static bool	     animate_toolbox;
    +    static bool	     widgetCount; // Coupled with -widgetcount switch
    +    static bool	     metaComposeUnicode;
    +
    +    TQValueList<TQTranslator*> *translators;
    +#ifndef TQT_NO_SESSIONMANAGER
    +    TQSessionManager *session_manager;
    +    TQString	     session_id;
    +    static TQString* session_key;
    +    bool	     is_session_restored;
    +#endif
    +#if defined(TQ_WS_X11) && !defined (TQT_NO_STYLE )
    +    static void x11_initialize_style();
    +#endif
    +
    +    static TQSize     app_strut;
    +#ifndef TQT_NO_COMPONENT
    +    static TQStringList *app_libpaths;
    +#endif
    +    static TQAsciiDict<TQPalette> *app_palettes;
    +    static TQAsciiDict<TQFont>    *app_fonts;
    +
    +    static TQWidgetList *popupWidgets;
    +    bool	     inPopupMode() const;
    +    void	     closePopup( TQWidget *popup );
    +    void	     openPopup( TQWidget *popup );
    +    void	     setActiveWindow( TQWidget* act );
    +
    +    static bool      sendSpontaneousEvent( TQObject *receiver, TQEvent *event );
    +    static void      removePostedEvent( TQEvent * );
    +
    +    friend class TQWidget;
    +    friend class TQETWidget;
    +    friend class TQDialog;
    +    friend class TQAccelManager;
    +    friend class TQEvent;
    +    friend class TQTranslator;
    +    friend class TQEventLoop;
    +    friend TQ_EXPORT void tqt_ucm_initialize( TQApplication * );
    +#if defined(TQ_WS_WIN)
    +    friend bool qt_sendSpontaneousEvent( TQObject*, TQEvent* );
    +#endif
    +private: // Disabled copy constructor and operator=
    +#if defined(TQ_DISABLE_COPY)
    +    TQApplication( const TQApplication & );
    +    TQApplication &operator=( const TQApplication & );
    +#endif
    +};
    +
    +inline int TQApplication::argc() const
    +{
    +    return app_argc;
    +}
    +
    +inline char **TQApplication::argv() const
    +{
    +    return app_argv;
    +}
    +
    +#ifndef TQT_NO_CURSOR
    +inline TQCursor *TQApplication::overrideCursor()
    +{
    +    return app_cursor;
    +}
    +#endif
    +inline bool TQApplication::hasGlobalMouseTracking()
    +{
    +    return app_tracking > 0;
    +}
    +
    +inline TQWidget *TQApplication::mainWidget() const
    +{
    +    return main_widget;
    +}
    +
    +inline TQWidget *TQApplication::focusWidget() const
    +{
    +    return focus_widget;
    +}
    +
    +inline TQWidget *TQApplication::activeWindow() const
    +{
    +    return active_window;
    +}
    +
    +inline TQWidget *TQApplication::widgetAt( const TQPoint &p, bool child )
    +{
    +    return widgetAt( p.x(), p.y(), child );
    +}
    +
    +inline bool TQApplication::inPopupMode() const
    +{
    +    return popupWidgets != 0;
    +}
    +#ifndef TQT_NO_SESSIONMANAGER
    +inline bool TQApplication::isSessionRestored() const
    +{
    +    return is_session_restored;
    +}
    +
    +inline TQString TQApplication::sessionId() const
    +{
    +    return session_id;
    +}
    +
    +inline TQString TQApplication::sessionKey() const
    +{
    +    return session_key ? *session_key : TQString::null;
    +}
    +#endif
    +inline TQSize TQApplication::globalStrut()
    +{
    +    return app_strut;
    +}
    +
    +inline bool TQApplication::sendEvent( TQObject *receiver, TQEvent *event )
    +{  if ( event ) event->spont = FALSE; return tqApp ? tqApp->notify( receiver, event ) : FALSE; }
    +
    +inline bool TQApplication::sendSpontaneousEvent( TQObject *receiver, TQEvent *event )
    +{ if ( event ) event->spont = TRUE; return tqApp ? tqApp->notify( receiver, event ) : FALSE; }
    +
    +#ifdef TQT_NO_TRANSLATION
    +// Simple versions
    +inline TQString TQApplication::translate( const char *, const char *sourceText,
    +					const char *, Encoding encoding ) const
    +{
    +#ifndef TQT_NO_TEXTCODEC
    +    if ( encoding == UnicodeUTF8 )
    +	return TQString::fromUtf8( sourceText );
    +    else
    +#endif
    +	return TQString::fromLatin1( sourceText );
    +}
    +#endif
    +
    +inline int TQApplication::horizontalAlignment( int align )
    +{
    +    align &= AlignHorizontal_Mask;
    +    if ( align == AlignAuto ) {
    +	if ( reverseLayout() )
    +	    align = AlignRight;
    +	else
    +	    align = AlignLeft;
    +    }
    +    return align;
    +}
    +
    +#endif // TQAPPLICATION_H
    +
    +
    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqapplication-members.html b/doc/html/tqapplication-members.html new file mode 100644 index 000000000..bcb60e10c --- /dev/null +++ b/doc/html/tqapplication-members.html @@ -0,0 +1,191 @@ + + + + +TQApplication Member List + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    Complete Member List for TQApplication

    + +

    This is the complete list of member functions for +TQApplication, including inherited members. + +

    + +


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqapplication.html b/doc/html/tqapplication.html new file mode 100644 index 000000000..369c8ef6d --- /dev/null +++ b/doc/html/tqapplication.html @@ -0,0 +1,2000 @@ + + + + +TQApplication Class + + + + + + + +
    + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

    TQApplication Class Reference

    + +

    The TQApplication class manages the GUI application's control +flow and main settings. +More... +

    #include <tqapplication.h> +

    Inherits TQObject. +

    List of all member functions. +

    Public Members

    + +

    Public Slots

    + +

    Signals

    + +

    Static Public Members

    + +

    Related Functions

    + +

    Detailed Description

    + + +The TQApplication class manages the GUI application's control +flow and main settings. +

    + +

    It contains the main event loop, where all events from the window +system and other sources are processed and dispatched. It also +handles the application's initialization and finalization, and +provides session management. It also handles most system-wide and +application-wide settings. +

    For any GUI application that uses TQt, there is precisely one +TQApplication object, no matter whether the application has 0, 1, 2 +or more windows at any time. +

    The TQApplication object is accessible through the global pointer tqApp. Its main areas of responsibility are: +

      +

    • It initializes the application with the user's desktop settings +such as palette(), font() and doubleClickInterval(). It keeps track +of these properties in case the user changes the desktop globally, for +example through some kind of control panel. +

    • It performs event handling, meaning that it receives events +from the underlying window system and dispatches them to the relevant +widgets. By using sendEvent() and postEvent() you can send your own +events to widgets. +

    • It parses common command line arguments and sets its internal +state accordingly. See the constructor documentation below for more details about this. +

    • It defines the application's look and feel, which is +encapsulated in a TQStyle object. This can be changed at runtime +with setStyle(). +

    • It specifies how the application is to allocate colors. +See setColorSpec() for details. +

    • It provides localization of strings that are visible to the user +via translate(). +

    • It provides some magical objects like the desktop() and the +clipboard(). +

    • It knows about the application's windows. You can ask which +widget is at a certain position using widgetAt(), get a list of +topLevelWidgets() and closeAllWindows(), etc. +

    • It manages the application's mouse cursor handling, +see setOverrideCursor() and setGlobalMouseTracking(). +

    • On the X window system, it provides functions to flush and sync +the communication stream, see flushX() and syncX(). +

    • It provides support for sophisticated session management. This makes it possible +for applications to terminate gracefully when the user logs out, to +cancel a shutdown process if termination isn't possible and even to +preserve the entire application's state for a future session. See +isSessionRestored(), sessionId() and commitData() and saveState() +for details. +

    +

    The Application walk-through +example contains a typical complete main() that does the usual +things with TQApplication. +

    Since the TQApplication object does so much initialization, it +must be created before any other objects related to the user +interface are created. +

    Since it also deals with common command line arguments, it is +usually a good idea to create it before any interpretation or +modification of argv is done in the application itself. (Note +also that for X11, setMainWidget() may change the main widget +according to the -geometry option. To preserve this +functionality, you must set your defaults before setMainWidget() and +any overrides after.) +

    + + + + + + + + + + + +
    Groups of functions +
    System settings + +desktopSettingsAware(), +setDesktopSettingsAware(), +cursorFlashTime(), +setCursorFlashTime(), +doubleClickInterval(), +setDoubleClickInterval(), +wheelScrollLines(), +setWheelScrollLines(), +palette(), +setPalette(), +font(), +setFont(), +fontMetrics(). +
    Event handling + +exec(), +processEvents(), +enter_loop(), +exit_loop(), +exit(), +quit(). +sendEvent(), +postEvent(), +sendPostedEvents(), +removePostedEvents(), +hasPendingEvents(), +notify(), +macEventFilter(), +x11EventFilter(), +x11ProcessEvent(), +winEventFilter(). +
    GUI Styles + +style(), +setStyle(), +polish(). +
    Color usage + +colorSpec(), +setColorSpec(), +
    Text handling + +installTranslator(), +removeTranslator() +translate(). +
    Widgets + +mainWidget(), +setMainWidget(), +allWidgets(), +topLevelWidgets(), +desktop(), +activePopupWidget(), +activeModalWidget(), +clipboard(), +focusWidget(), +winFocus(), +activeWindow(), +widgetAt(). +
    Advanced cursor handling + +hasGlobalMouseTracking(), +setGlobalMouseTracking(), +overrideCursor(), +setOverrideCursor(), +restoreOverrideCursor(). +
    X Window System synchronization + +flushX(), +syncX(). +
    Session management + +isSessionRestored(), +sessionId(), +commitData(), +saveState(). +
    Threading + +lock(), unlock(), locked(), tryLock(), +wakeUpGuiThread() +
    Miscellaneous + +closeAllWindows(), +startingUp(), +closingDown(), +type(). +
    +

    Non-GUI programs: While TQt is not optimized or +designed for writing non-GUI programs, it's possible to use +some of its classes without creating a +TQApplication. This can be useful if you wish to share code between +a non-GUI server and a GUI client. + + + +

    See also Main Window and Related Classes. + +


    Member Type Documentation

    +

    TQApplication::ColorSpec

    + +
      +
    • TQApplication::NormalColor - the default color allocation policy +
    • TQApplication::CustomColor - the same as NormalColor for X11; allocates colors +to a palette on demand under Windows +
    • TQApplication::ManyColor - the right choice for applications that use thousands of +colors +

    See setColorSpec() for full details. + +

    TQApplication::Encoding

    +

    This enum type defines the 8-bit encoding of character string +arguments to translate(): +

      +
    • TQApplication::DefaultCodec - the encoding specified by +TQTextCodec::codecForTr() (Latin-1 if none has been set) +
    • TQApplication::UnicodeUTF8 - UTF-8 +

    See also TQObject::tr(), TQObject::trUtf8(), and TQString::fromUtf8(). + +

    TQApplication::Type

    + +
      +
    • TQApplication::Tty - a console application +
    • TQApplication::GuiClient - a GUI client application +
    • TQApplication::GuiServer - a GUI server application +
    +

    Member Function Documentation

    +

    TQApplication::TQApplication ( int & argc, char ** argv ) +

    +Initializes the window system and constructs an application object +with argc command line arguments in argv. +

    The global tqApp pointer refers to this application object. Only +one application object should be created. +

    This application object must be constructed before any paint devices (including widgets, pixmaps, bitmaps +etc.). +

    Note that argc and argv might be changed. TQt removes command +line arguments that it recognizes. The modified argc and argv +can also be accessed later with tqApp->argc() and tqApp->argv(). +The documentation for argv() contains a detailed description of how +to process command line arguments. +

    TQt debugging options (not available if TQt was compiled with the +TQT_NO_DEBUG flag defined): +

      +
    • -nograb, tells TQt that it must never grab the mouse or the keyboard. +
    • -dograb (only under X11), running under a debugger can cause +an implicit -nograb, use -dograb to override. +
    • -sync (only under X11), switches to synchronous mode for +debugging. +
    +

    See Debugging Techniques for a more +detailed explanation. +

    All TQt programs automatically support the following command line options: +

      +
    • -reverse causes text to be formatted for right-to-left languages +rather than in the usual left-to-right direction. +
    • -style= style, sets the application GUI style. Possible values +are motif, windows, and platinum. If you compiled TQt +with additional styles or have additional styles as plugins these +will be available to the -style command line option. +
    • -style style, is the same as listed above. +
    • -session= session, restores the application from an earlier +session. +
    • -session session, is the same as listed above. +
    • -widgetcount, prints debug message at the end about number of widgets left +undestroyed and maximum number of widgets existed at the same time +
    +

    The X11 version of TQt also supports some traditional X11 +command line options: +

      +
    • -display display, sets the X display (default is $DISPLAY). +
    • -geometry geometry, sets the client geometry of the +main widget. +
    • -fn or -font font, defines the application font. The +font should be specified using an X logical font description. +
    • -bg or -background color, sets the default background color +and an application palette (light and dark shades are calculated). +
    • -fg or -foreground color, sets the default foreground color. +
    • -btn or -button color, sets the default button color. +
    • -name name, sets the application name. +
    • -title title, sets the application title (caption). +
    • -visual TrueColor, forces the application to use a TrueColor visual +on an 8-bit display. +
    • -ncols count, limits the number of colors allocated in the +color cube on an 8-bit display, if the application is using the +TQApplication::ManyColor color specification. If count is +216 then a 6x6x6 color cube is used (i.e. 6 levels of red, 6 of green, +and 6 of blue); for other values, a cube +approximately proportional to a 2x3x1 cube is used. +
    • -cmap, causes the application to install a private color map +on an 8-bit display. +
    +

    See also argc() and argv(). + +

    TQApplication::TQApplication ( int & argc, char ** argv, bool GUIenabled ) +

    +Constructs an application object with argc command line arguments +in argv. If GUIenabled is TRUE, a GUI application is +constructed, otherwise a non-GUI (console) application is created. +

    Set GUIenabled to FALSE for programs without a graphical user +interface that should be able to run without a window system. +

    On X11, the window system is initialized if GUIenabled is TRUE. +If GUIenabled is FALSE, the application does not connect to the +X-server. +On Windows and Macintosh, currently the window system is always +initialized, regardless of the value of GUIenabled. This may change in +future versions of TQt. +

    The following example shows how to create an application that +uses a graphical interface when available. +

    +  int main( int argc, char **argv )
    +  {
    +#ifdef TQ_WS_X11
    +    bool useGUI = getenv( "DISPLAY" ) != 0;
    +#else
    +    bool useGUI = TRUE;
    +#endif
    +    TQApplication app(argc, argv, useGUI);
    +
    +    if ( useGUI ) {
    +       //start GUI version
    +       ...
    +    } else {
    +       //start non-GUI version
    +       ...
    +    }
    +    return app.exec();
    +  }
    +
    + + +

    TQApplication::TQApplication ( int & argc, char ** argv, Type type ) +

    +Constructs an application object with argc command line arguments +in argv. + +

    TQApplication::TQApplication ( Display * dpy, HANDLE visual = 0, HANDLE colormap = 0 ) +

    +Create an application, given an already open display dpy. If visual and colormap are non-zero, the application will use those as +the default Visual and Colormap contexts. +

    Warning: TQt only supports TrueColor visuals at depths higher than 8 +bits-per-pixel. +

    This is available only on X11. + +

    TQApplication::TQApplication ( Display * dpy, int argc, char ** argv, HANDLE visual = 0, HANDLE colormap = 0 ) +

    +Create an application, given an already open display dpy and using +argc command line arguments in argv. If visual and colormap are non-zero, the application will use those as +the default Visual and Colormap contexts. +

    Warning: TQt only supports TrueColor visuals at depths higher than 8 +bits-per-pixel. +

    This is available only on X11. +

    +

    TQApplication::~TQApplication () [virtual] +

    +Cleans up any window system resources that were allocated by this +application. Sets the global variable tqApp to 0. + +

    void TQApplication::aboutTQt () [slot] +

    +Displays a simple message box about TQt. The message includes the +version number of TQt being used by the application. +

    This is useful for inclusion in the Help menu of an application. +See the examples/menu/menu.cpp example. +

    This function is a convenience slot for TQMessageBox::aboutTQt(). + +

    void TQApplication::aboutToQuit () [signal] +

    + +

    This signal is emitted when the application is about to quit the +main event loop, e.g. when the event loop level drops to zero. +This may happen either after a call to quit() from inside the +application or when the users shuts down the entire desktop session. +

    The signal is particularly useful if your application has to do some +last-second cleanup. Note that no user interaction is possible in +this state. +

    See also quit(). + +

    TQWidget * TQApplication::activeModalWidget () [static] +

    +Returns the active modal widget. +

    A modal widget is a special top level widget which is a subclass of +TQDialog that specifies the modal parameter of the constructor as +TRUE. A modal widget must be closed before the user can continue +with other parts of the program. +

    Modal widgets are organized in a stack. This function returns +the active modal widget at the top of the stack. +

    See also activePopupWidget() and topLevelWidgets(). + +

    TQWidget * TQApplication::activePopupWidget () [static] +

    +Returns the active popup widget. +

    A popup widget is a special top level widget that sets the WType_Popup widget flag, e.g. the TQPopupMenu widget. When the +application opens a popup widget, all events are sent to the popup. +Normal widgets and modal widgets cannot be accessed before the popup +widget is closed. +

    Only other popup widgets may be opened when a popup widget is shown. +The popup widgets are organized in a stack. This function returns +the active popup widget at the top of the stack. +

    See also activeModalWidget() and topLevelWidgets(). + +

    TQWidget * TQApplication::activeWindow () const +

    + +

    Returns the application top-level window that has the keyboard input +focus, or 0 if no application window has the focus. Note that +there might be an activeWindow() even if there is no focusWidget(), +for example if no widget in that window accepts key events. +

    See also TQWidget::setFocus(), TQWidget::focus, and focusWidget(). + +

    Example: network/mail/smtp.cpp. +

    void TQApplication::addLibraryPath ( const TQString & path ) [static] +

    +Append path to the end of the library path list. If path is +empty or already in the path list, the path list is not changed. +

    The default path list consists of a single entry, the installation +directory for plugins. The default installation directory for plugins +is INSTALL/plugins, where INSTALL is the directory where TQt was +installed. +

    See also removeLibraryPath(), libraryPaths(), and setLibraryPaths(). + +

    TQWidgetList * TQApplication::allWidgets () [static] +

    +Returns a list of all the widgets in the application. +

    The list is created using new and must be deleted by the caller. +

    The list is empty (TQPtrList::isEmpty()) if there are no widgets. +

    Note that some of the widgets may be hidden. +

    Example that updates all widgets: +

    +    TQWidgetList  *list = TQApplication::allWidgets();
    +    TQWidgetListIt it( *list );         // iterate over the widgets
    +    TQWidget * w;
    +    while ( (w=it.current()) != 0 ) {  // for each widget...
    +        ++it;
    +        w->update();
    +    }
    +    delete list;                      // delete the list, not the widgets
    +  
    + +

    The TQWidgetList class is defined in the tqwidgetlist.h header +file. +

    Warning: Delete the list as soon as you have finished using it. +The widgets in the list may be deleted by someone else at any time. +

    See also topLevelWidgets(), TQWidget::visible, and TQPtrList::isEmpty(). + +

    TQString TQApplication::applicationDirPath () +

    +Returns the directory that contains the application executable. +

    For example, if you have installed TQt in the C:\Trolltech\TQt +directory, and you run the demo example, this function will +return "C:/Trolltech/TQt/examples/demo". +

    On Mac OS X this will point to the directory actually containing the +executable, which may be inside of an application bundle (if the +application is bundled). +

    Warning: On Unix, this function assumes that argv[0] contains the file +name of the executable (which it normally does). It also assumes that +the current directory hasn't been changed by the application. +

    See also applicationFilePath(). + +

    TQString TQApplication::applicationFilePath () +

    +Returns the file path of the application executable. +

    For example, if you have installed TQt in the C:\Trolltech\TQt +directory, and you run the demo example, this function will +return "C:/Trolltech/TQt/examples/demo/demo.exe". +

    Warning: On Unix, this function assumes that argv[0] contains the file +name of the executable (which it normally does). It also assumes that +the current directory hasn't been changed by the application. +

    See also applicationDirPath(). + +

    int TQApplication::argc () const +

    + +

    Returns the number of command line arguments. +

    The documentation for argv() describes how to process command line +arguments. +

    See also argv() and TQApplication::TQApplication(). + +

    Examples: chart/main.cpp and scribble/scribble.cpp. +

    char ** TQApplication::argv () const +

    + +

    Returns the command line argument vector. +

    argv()[0] is the program name, argv()[1] is the first +argument and argv()[argc()-1] is the last argument. +

    A TQApplication object is constructed by passing argc and argv from the main() function. Some of the arguments may be +recognized as TQt options and removed from the argument vector. For +example, the X11 version of TQt knows about -display, -font +and a few more options. +

    Example: +

    +        // showargs.cpp - displays program arguments in a list box
    +
    +        #include <tqapplication.h>
    +        #include <tqlistbox.h>
    +
    +        int main( int argc, char **argv )
    +        {
    +            TQApplication a( argc, argv );
    +            TQListBox b;
    +            a.setMainWidget( &b );
    +            for ( int i = 0; i < a.argc(); i++ )  // a.argc() == argc
    +                b.insertItem( a.argv()[i] );      // a.argv()[i] == argv[i]
    +            b.show();
    +            return a.exec();
    +        }
    +    
    + +

    If you run showargs -display unix:0 -font 9x15bold hello world +under X11, the list box contains the three strings "showargs", +"hello" and "world". +

    TQt provides a global pointer, tqApp, that points to the +TQApplication object, and through which you can access argc() and +argv() in functions other than main(). +

    See also argc() and TQApplication::TQApplication(). + +

    Examples: chart/main.cpp and scribble/scribble.cpp. +

    void TQApplication::beep () [static] +

    +Sounds the bell, using the default volume and sound. + +

    TQClipboard * TQApplication::clipboard () [static] +

    +Returns a pointer to the application global clipboard. + +

    Examples: regexptester/regexptester.cpp and showimg/showimg.cpp. +

    void TQApplication::closeAllWindows () [slot] +

    +Closes all top-level windows. +

    This function is particularly useful for applications with many +top-level windows. It could, for example, be connected to a "Quit" +entry in the file menu as shown in the following code example: +

    +    // the "Quit" menu entry should try to close all windows
    +    TQPopupMenu* file = new TQPopupMenu( this );
    +    file->insertItem( "&Quit", tqApp, TQ_SLOT(closeAllWindows()), CTRL+Key_Q );
    +
    +    // when the last window is closed, the application should quit
    +    connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), tqApp, TQ_SLOT( quit() ) );
    +  
    + +

    The windows are closed in random order, until one window does not +accept the close event. +

    See also TQWidget::close(), TQWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets(), and TQWidget::isTopLevel. + +

    +

    Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. +

    bool TQApplication::closingDown () [static] +

    +Returns TRUE if the application objects are being destroyed; +otherwise returns FALSE. +

    See also startingUp(). + +

    int TQApplication::colorSpec () [static] +

    +Returns the color specification. +

    See also TQApplication::setColorSpec(). + +

    Example: showimg/showimg.cpp. +

    void TQApplication::commitData ( TQSessionManager & sm ) [virtual] +

    + +

    This function deals with session + management. It is invoked when the TQSessionManager wants the +application to commit all its data. +

    Usually this means saving all open files, after getting +permission from the user. Furthermore you may want to provide a means +by which the user can cancel the shutdown. +

    Note that you should not exit the application within this function. +Instead, the session manager may or may not do this afterwards, +depending on the context. +

    Warning: Within this function, no user interaction is possible, unless you ask the session manager sm for explicit permission. +See TQSessionManager::allowsInteraction() and +TQSessionManager::allowsErrorInteraction() for details and example +usage. +

    The default implementation requests interaction and sends a close +event to all visible top level widgets. If any event was +rejected, the shutdown is canceled. +

    See also isSessionRestored(), sessionId(), saveState(), and the Session Management overview. + +

    int TQApplication::cursorFlashTime () [static] +

    +Returns the text cursor's flash (blink) time in milliseconds. The +flash time is the time required to display, invert and restore the +caret display. +

    The default value on X11 is 1000 milliseconds. On Windows, the +control panel value is used. +

    Widgets should not cache this value since it may be changed at any +time by the user changing the global desktop settings. +

    See also setCursorFlashTime(). + +

    TQTextCodec * TQApplication::defaultCodec () const +

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    Returns TQTextCodec::codecForTr(). + +

    TQDesktopWidget * TQApplication::desktop () [static] +

    +Returns the desktop widget (also called the root window). +

    The desktop widget is useful for obtaining the size of the screen. +It may also be possible to draw on the desktop. We recommend against +assuming that it's possible to draw on the desktop, since this does +not work on all operating systems. +

    +    TQDesktopWidget *d = TQApplication::desktop();
    +    int w = d->width();     // returns desktop width
    +    int h = d->height();    // returns desktop height
    +  
    + + +

    Examples: canvas/main.cpp, desktop/desktop.cpp, helpviewer/main.cpp, i18n/main.cpp, qmag/qmag.cpp, qwerty/main.cpp, and scribble/main.cpp. +

    bool TQApplication::desktopSettingsAware () [static] +

    +Returns the value set by setDesktopSettingsAware(); by default TRUE. +

    See also setDesktopSettingsAware(). + +

    int TQApplication::doubleClickInterval () [static] +

    +Returns the maximum duration for a double click. +

    The default value on X11 is 400 milliseconds. On Windows, the +control panel value is used. +

    See also setDoubleClickInterval(). + +

    int TQApplication::enter_loop () +

    +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    This function enters the main event loop (recursively). Do not call +it unless you really know what you are doing. +

    Use TQApplication::eventLoop()->enterLoop() instead. +

    +

    TQEventLoop * TQApplication::eventLoop () [static] +

    +Returns the application event loop. This function will return +zero if called during and after destroying TQApplication. +

    To create your own instance of TQEventLoop or TQEventLoop subclass create +it before you create the TQApplication object. +

    See also TQEventLoop. + +

    Example: distributor/distributor.ui.h. +

    int TQApplication::exec () +

    +Enters the main event loop and waits until exit() is called or the +main widget is destroyed, and returns the value that was set to +exit() (which is 0 if exit() is called via quit()). +

    It is necessary to call this function to start event handling. The +main event loop receives events from the window system and +dispatches these to the application widgets. +

    Generally speaking, no user interaction can take place before +calling exec(). As a special case, modal widgets like TQMessageBox +can be used before calling exec(), because modal widgets call +exec() to start a local event loop. +

    To make your application perform idle processing, i.e. executing a +special function whenever there are no pending events, use a +TQTimer with 0 timeout. More advanced idle processing schemes can +be achieved using processEvents(). +

    See also quit(), exit(), processEvents(), and setMainWidget(). + +

    Examples: helpsystem/main.cpp, life/main.cpp, network/archivesearch/main.cpp, network/ftpclient/main.cpp, t1/main.cpp, and t4/main.cpp. +

    void TQApplication::exit ( int retcode = 0 ) [static] +

    +Tells the application to exit with a return code. +

    After this function has been called, the application leaves the main +event loop and returns from the call to exec(). The exec() function +returns retcode. +

    By convention, a retcode of 0 means success, and any non-zero +value indicates an error. +

    Note that unlike the C library function of the same name, this +function does return to the caller -- it is event processing that +stops. +

    See also quit() and exec(). + +

    Examples: chart/chartform.cpp, extension/mainform.ui.h, and picture/picture.cpp. +

    void TQApplication::exit_loop () +

    +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    This function exits from a recursive call to the main event loop. +Do not call it unless you are an expert. +

    Use TQApplication::eventLoop()->exitLoop() instead. +

    +

    void TQApplication::flush () [static] +

    +Flushes the window system specific event queues. +

    If you are doing graphical changes inside a loop that does not +return to the event loop on asynchronous window systems like X11 +or double buffered window systems like MacOS X, and you want to +visualize these changes immediately (e.g. Splash Screens), call +this function. +

    See also flushX(), sendPostedEvents(), and TQPainter::flush(). + +

    void TQApplication::flushX () [static] +

    +Flushes the X event queue in the X11 implementation. This normally +returns almost immediately. Does nothing on other platforms. +

    See also syncX(). + +

    Example: xform/xform.cpp. +

    TQWidget * TQApplication::focusWidget () const +

    + +

    Returns the application widget that has the keyboard input focus, or +0 if no widget in this application has the focus. +

    See also TQWidget::setFocus(), TQWidget::focus, and activeWindow(). + +

    TQFont TQApplication::font ( const TQWidget * w = 0 ) [static] +

    +Returns the default font for the widget w, or the default +application font if w is 0. +

    See also setFont(), fontMetrics(), and TQWidget::font. + +

    Examples: qfd/fontdisplayer.cpp, themes/metal.cpp, and themes/themes.cpp. +

    TQFontMetrics TQApplication::fontMetrics () [static] +

    +Returns display (screen) font metrics for the application font. +

    See also font(), setFont(), TQWidget::fontMetrics(), and TQPainter::fontMetrics(). + +

    TQSize TQApplication::globalStrut () [static] +

    + +

    Returns the application's global strut. +

    The strut is a size object whose dimensions are the minimum that any +GUI element that the user can interact with should have. For example +no button should be resized to be smaller than the global strut size. +

    See also setGlobalStrut(). + +

    void TQApplication::guiThreadAwake () [signal] +

    + +

    This signal is emitted after the event loop returns from a function +that could block. +

    See also wakeUpGuiThread(). + +

    bool TQApplication::hasGlobalMouseTracking () [static] +

    + +

    Returns TRUE if global mouse tracking is enabled; otherwise +returns FALSE. +

    See also setGlobalMouseTracking(). + +

    bool TQApplication::hasPendingEvents () +

    +This function returns TRUE if there are pending events; otherwise +returns FALSE. Pending events can be either from the window system +or posted events using TQApplication::postEvent(). + +

    int TQApplication::horizontalAlignment ( int align ) [static] +

    + +

    Strips out vertical alignment flags and transforms an +alignment align of AlignAuto into AlignLeft or +AlignRight according to the language used. The other horizontal +alignment flags are left untouched. + +

    void TQApplication::installTranslator ( TQTranslator * mf ) +

    +Adds the message file mf to the list of message files to be used +for translations. +

    Multiple message files can be installed. Translations are searched +for in the last installed message file, then the one from last, and +so on, back to the first installed message file. The search stops as +soon as a matching translation is found. +

    See also removeTranslator(), translate(), and TQTranslator::load(). + +

    Example: i18n/main.cpp. +

    bool TQApplication::isEffectEnabled ( TQt::UIEffect effect ) [static] +

    +Returns TRUE if effect is enabled; otherwise returns FALSE. +

    By default, TQt will try to use the desktop settings. Call +setDesktopSettingsAware(FALSE) to prevent this. +

    Note: All effects are disabled on screens running at less than +16-bit color depth. +

    See also setEffectEnabled() and TQt::UIEffect. + +

    bool TQApplication::isSessionRestored () const +

    + +

    Returns TRUE if the application has been restored from an earlier +session; otherwise returns FALSE. +

    See also sessionId(), commitData(), and saveState(). + +

    void TQApplication::lastWindowClosed () [signal] +

    + +

    This signal is emitted when the user has closed the last +top level window. +

    The signal is very useful when your application has many top level +widgets but no main widget. You can then connect it to the quit() +slot. +

    For convenience, this signal is not emitted for transient top level +widgets such as popup menus and dialogs. +

    See also mainWidget(), topLevelWidgets(), TQWidget::isTopLevel, and TQWidget::close(). + +

    Examples: addressbook/main.cpp, extension/main.cpp, helpviewer/main.cpp, mdi/main.cpp, network/archivesearch/main.cpp, qwerty/main.cpp, and regexptester/main.cpp. +

    TQStringList TQApplication::libraryPaths () [static] +

    +Returns a list of paths that the application will search when +dynamically loading libraries. +The installation directory for plugins is the only entry if no +paths have been set. The default installation directory for plugins +is INSTALL/plugins, where INSTALL is the directory where TQt was +installed. The directory of the application executable (NOT the +working directory) is also added to the plugin paths. +

    If you want to iterate over the list, you should iterate over a +copy, e.g. +

    +    TQStringList list = app.libraryPaths();
    +    TQStringList::Iterator it = list.begin();
    +    while( it != list.end() ) {
    +        myProcessing( *it );
    +        ++it;
    +    }
    +    
    + +

    See the plugins documentation for a +description of how the library paths are used. +

    See also setLibraryPaths(), addLibraryPath(), removeLibraryPath(), and TQLibrary. + +

    void TQApplication::lock () +

    +

    Lock the TQt Library Mutex. If another thread has already locked the +mutex, the calling thread will block until the other thread has +unlocked the mutex. +

    See also unlock(), locked(), and Thread Support in TQt. + +

    bool TQApplication::locked () +

    +

    Returns TRUE if the TQt Library Mutex is locked by a different thread; +otherwise returns FALSE. +

    Warning: Due to different implementations of recursive mutexes on +the supported platforms, calling this function from the same thread +that previously locked the mutex will give undefined results. +

    See also lock(), unlock(), and Thread Support in TQt. + +

    int TQApplication::loopLevel () const +

    +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    Returns the current loop level. +

    Use TQApplication::eventLoop()->loopLevel() instead. +

    +

    bool TQApplication::macEventFilter ( EventHandlerCallRef, EventRef ) [virtual] +

    +This virtual function is only implemented under Macintosh. +

    If you create an application that inherits TQApplication and +reimplement this function, you get direct access to all Carbon Events +that are received from the MacOS. +

    Return TRUE if you want to stop the event from being processed. +Return FALSE for normal event dispatching. + +

    TQWidget * TQApplication::mainWidget () const +

    + +

    Returns the main application widget, or 0 if there is no main +widget. +

    See also setMainWidget(). + +

    bool TQApplication::notify ( TQObject * receiver, TQEvent * e ) [virtual] +

    +Sends event e to receiver: receiver->event(e). +Returns the value that is returned from the receiver's event handler. +

    For certain types of events (e.g. mouse and key events), +the event will be propagated to the receiver's parent and so on up to +the top-level object if the receiver is not interested in the event +(i.e., it returns FALSE). +

    There are five different ways that events can be processed; +reimplementing this virtual function is just one of them. All five +approaches are listed below: +

      +
    1. Reimplementing this function. This is very powerful, providing +complete control; but only one subclass can be tqApp. +

    2. Installing an event filter on tqApp. Such an event filter is able +to process all events for all widgets, so it's just as powerful as +reimplementing notify(); furthermore, it's possible to have more +than one application-global event filter. Global event filters even +see mouse events for disabled + widgets, and if global mouse + tracking is enabled, as well as mouse move events for all +widgets. +

    3. Reimplementing TQObject::event() (as TQWidget does). If you do +this you get Tab key presses, and you get to see the events before +any widget-specific event filters. +

    4. Installing an event filter on the object. Such an event filter +gets all the events except Tab and Shift-Tab key presses. +

    5. Reimplementing paintEvent(), mousePressEvent() and so +on. This is the commonest, easiest and least powerful way. +
    +

    See also TQObject::event() and installEventFilter(). + +

    TQCursor * TQApplication::overrideCursor () [static] +

    + +

    Returns the active application override cursor. +

    This function returns 0 if no application cursor has been defined +(i.e. the internal cursor stack is empty). +

    See also setOverrideCursor() and restoreOverrideCursor(). + +

    TQPalette TQApplication::palette ( const TQWidget * w = 0 ) [static] +

    +Returns the application palette. +

    If a widget is passed in w, the default palette for the +widget's class is returned. This may or may not be the application +palette. In most cases there isn't a special palette for certain +types of widgets, but one notable exception is the popup menu under +Windows, if the user has defined a special background color for +menus in the display settings. +

    See also setPalette() and TQWidget::palette. + +

    Examples: desktop/desktop.cpp, themes/metal.cpp, and themes/wood.cpp. +

    void TQApplication::polish ( TQWidget * w ) [virtual] +

    +Initialization of the appearance of the widget w before it is first +shown. +

    Usually widgets call this automatically when they are polished. It +may be used to do some style-based central customization of widgets. +

    Note that you are not limited to the public functions of TQWidget. +Instead, based on meta information like TQObject::className() you are +able to customize any kind of widget. +

    See also TQStyle::polish(), TQWidget::polish(), setPalette(), and setFont(). + +

    void TQApplication::postEvent ( TQObject * receiver, TQEvent * event ) [static] +

    Note: This function is thread-safe when TQt is built withthread support.

    + +Adds the event event with the object receiver as the receiver of the +event, to an event queue and returns immediately. +

    The event must be allocated on the heap since the post event queue +will take ownership of the event and delete it once it has been posted. +

    When control returns to the main event loop, all events that are +stored in the queue will be sent using the notify() function. +

    +

    See also sendEvent() and notify(). + +

    void TQApplication::processEvents () +

    +Processes pending events, for 3 seconds or until there are no more +events to process, whichever is shorter. +

    You can call this function occasionally when your program is busy +performing a long operation (e.g. copying a file). +

    See also exec(), TQTimer, and TQEventLoop::processEvents(). + +

    Examples: fileiconview/tqfileiconview.cpp and network/ftpclient/main.cpp. +

    void TQApplication::processEvents ( int maxtime ) +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Processes pending events for maxtime milliseconds or until +there are no more events to process, whichever is shorter. +

    You can call this function occasionally when you program is busy +doing a long operation (e.g. copying a file). +

    See also exec(), TQTimer, and TQEventLoop::processEvents(). + +

    void TQApplication::processOneEvent () +

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    Waits for an event to occur, processes it, then returns. +

    This function is useful for adapting TQt to situations where the +event processing must be grafted onto existing program loops. +

    Using this function in new applications may be an indication of design +problems. +

    See also processEvents(), exec(), and TQTimer. + +

    void TQApplication::quit () [slot] +

    +Tells the application to exit with return code 0 (success). +Equivalent to calling TQApplication::exit( 0 ). +

    It's common to connect the lastWindowClosed() signal to quit(), and +you also often connect e.g. TQButton::clicked() or signals in +TQAction, TQPopupMenu or TQMenuBar to it. +

    Example: +

    +    TQPushButton *quitButton = new TQPushButton( "Quit" );
    +    connect( quitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
    +  
    + +

    See also exit(), aboutToQuit(), lastWindowClosed(), and TQAction. + +

    Examples: addressbook/main.cpp, mdi/main.cpp, network/archivesearch/main.cpp, regexptester/main.cpp, t2/main.cpp, t4/main.cpp, and t6/main.cpp. +

    void TQApplication::removeLibraryPath ( const TQString & path ) [static] +

    +Removes path from the library path list. If path is empty or not +in the path list, the list is not changed. +

    See also addLibraryPath(), libraryPaths(), and setLibraryPaths(). + +

    void TQApplication::removePostedEvents ( TQObject * receiver ) [static] +

    Note: This function is thread-safe when TQt is built withthread support.

    + +Removes all events posted using postEvent() for receiver. +

    The events are not dispatched, instead they are removed from the +queue. You should never need to call this function. If you do call it, +be aware that killing events may cause receiver to break one or +more invariants. +

    + +

    void TQApplication::removeTranslator ( TQTranslator * mf ) +

    +Removes the message file mf from the list of message files used by +this application. (It does not delete the message file from the file +system.) +

    See also installTranslator(), translate(), and TQObject::tr(). + +

    Example: i18n/main.cpp. +

    void TQApplication::restoreOverrideCursor () [static] +

    +Undoes the last setOverrideCursor(). +

    If setOverrideCursor() has been called twice, calling +restoreOverrideCursor() will activate the first cursor set. +Calling this function a second time restores the original widgets' +cursors. +

    See also setOverrideCursor() and overrideCursor(). + +

    Examples: distributor/distributor.ui.h, network/archivesearch/archivedialog.ui.h, network/ftpclient/ftpmainwindow.ui.h, and showimg/showimg.cpp. +

    bool TQApplication::reverseLayout () [static] +

    +Returns TRUE if all dialogs and widgets will be laid out in a +mirrored (right to left) fashion. Returns FALSE if dialogs and +widgets will be laid out left to right. +

    See also setReverseLayout(). + +

    void TQApplication::saveState ( TQSessionManager & sm ) [virtual] +

    + +

    This function deals with session + management. It is invoked when the +session manager wants the application +to preserve its state for a future session. +

    For example, a text editor would create a temporary file that +includes the current contents of its edit buffers, the location of +the cursor and other aspects of the current editing session. +

    Note that you should never exit the application within this +function. Instead, the session manager may or may not do this +afterwards, depending on the context. Futhermore, most session +managers will very likely request a saved state immediately after +the application has been started. This permits the session manager +to learn about the application's restart policy. +

    Warning: Within this function, no user interaction is possible, unless you ask the session manager sm for explicit permission. +See TQSessionManager::allowsInteraction() and +TQSessionManager::allowsErrorInteraction() for details. +

    See also isSessionRestored(), sessionId(), commitData(), and the Session Management overview. + +

    bool TQApplication::sendEvent ( TQObject * receiver, TQEvent * event ) [static] +

    + +

    Sends event event directly to receiver receiver, using the +notify() function. Returns the value that was returned from the event +handler. +

    The event is not deleted when the event has been sent. The normal +approach is to create the event on the stack, e.g. +

    +    TQMouseEvent me( TQEvent::MouseButtonPress, pos, 0, 0 );
    +    TQApplication::sendEvent( mainWindow, &me );
    +    
    + +If you create the event on the heap you must delete it. +

    See also postEvent() and notify(). + +

    Example: popup/popup.cpp. +

    void TQApplication::sendPostedEvents ( TQObject * receiver, int event_type ) [static] +

    +Immediately dispatches all events which have been previously queued +with TQApplication::postEvent() and which are for the object receiver +and have the event type event_type. +

    Note that events from the window system are not dispatched by this +function, but by processEvents(). +

    If receiver is null, the events of event_type are sent for all +objects. If event_type is 0, all the events are sent for receiver. + +

    void TQApplication::sendPostedEvents () [static] +

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Dispatches all posted events, i.e. empties the event queue. + +

    TQString TQApplication::sessionId () const +

    + +

    Returns the current session's identifier. +

    If the application has been restored from an earlier session, this +identifier is the same as it was in that previous session. +

    The session identifier is guaranteed to be unique both for different +applications and for different instances of the same application. +

    See also isSessionRestored(), sessionKey(), commitData(), and saveState(). + +

    TQString TQApplication::sessionKey () const +

    + +

    Returns the session key in the current session. +

    If the application has been restored from an earlier session, this +key is the same as it was when the previous session ended. +

    The session key changes with every call of commitData() or +saveState(). +

    See also isSessionRestored(), sessionId(), commitData(), and saveState(). + +

    void TQApplication::setColorSpec ( int spec ) [static] +

    +Sets the color specification for the application to spec. +

    The color specification controls how the application allocates colors +when run on a display with a limited amount of colors, e.g. 8 bit / 256 +color displays. +

    The color specification must be set before you create the TQApplication +object. +

    The options are: +

      +
    • TQApplication::NormalColor. +This is the default color allocation strategy. Use this option if +your application uses buttons, menus, texts and pixmaps with few +colors. With this option, the application uses system global +colors. This works fine for most applications under X11, but on +Windows machines it may cause dithering of non-standard colors. +
    • TQApplication::CustomColor. +Use this option if your application needs a small number of custom +colors. On X11, this option is the same as NormalColor. On Windows, TQt +creates a Windows palette, and allocates colors to it on demand. +
    • TQApplication::ManyColor. +Use this option if your application is very color hungry +(e.g. it requires thousands of colors). +Under X11 the effect is: +
        +
      • For 256-color displays which have at best a 256 color true color +visual, the default visual is used, and colors are allocated +from a color cube. The color cube is the 6x6x6 (216 color) "Web +palette"*, but the number of colors can be changed +by the -ncols option. The user can force the application to +use the true color visual with the -visual option. +
      • For 256-color displays which have a true color visual with more +than 256 colors, use that visual. Silicon Graphics X servers +have this feature, for example. They provide an 8 bit visual +by default but can deliver true color when asked. +
      +On Windows, TQt creates a Windows palette, and fills it with a color cube. +
    +

    Be aware that the CustomColor and ManyColor choices may lead to colormap +flashing: The foreground application gets (most) of the available +colors, while the background windows will look less attractive. +

    Example: +

    +  int main( int argc, char **argv )
    +  {
    +      TQApplication::setColorSpec( TQApplication::ManyColor );
    +      TQApplication a( argc, argv );
    +      ...
    +  }
    +  
    + +

    TQColor provides more functionality for controlling color allocation and +freeing up certain colors. See TQColor::enterAllocContext() for more +information. +

    To check what mode you end up with, call TQColor::numBitPlanes() once +the TQApplication object exists. A value greater than 8 (typically +16, 24 or 32) means true color. +

    * The color cube used by TQt has 216 colors whose red, +green, and blue components always have one of the following values: +0x00, 0x33, 0x66, 0x99, 0xCC, or 0xFF. +

    See also colorSpec(), TQColor::numBitPlanes(), and TQColor::enterAllocContext(). + +

    Examples: helpviewer/main.cpp, showimg/main.cpp, t9/main.cpp, tetrix/tetrix.cpp, and themes/main.cpp. +

    void TQApplication::setCursorFlashTime ( int msecs ) [static] +

    +Sets the text cursor's flash (blink) time to msecs +milliseconds. The flash time is the time required to display, +invert and restore the caret display. Usually the text cursor is +displayed for msecs/2 milliseconds, then hidden for msecs/2 +milliseconds, but this may vary. +

    Note that on Microsoft Windows, calling this function sets the +cursor flash time for all windows. +

    See also cursorFlashTime(). + +

    void TQApplication::setDefaultCodec ( TQTextCodec * codec ) +

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    This is the same as TQTextCodec::setCodecForTr(). + +

    void TQApplication::setDesktopSettingsAware ( bool on ) [static] +

    +By default, TQt will try to use the current standard colors, fonts +etc., from the underlying window system's desktop settings, +and use them for all relevant widgets. This behavior can be switched off +by calling this function with on set to FALSE. +

    This static function must be called before creating the TQApplication +object, like this: +

    +  int main( int argc, char** argv ) {
    +    TQApplication::setDesktopSettingsAware( FALSE ); // I know better than the user
    +    TQApplication myApp( argc, argv ); // Use default fonts & colors
    +    ...
    +  }
    +  
    + +

    See also desktopSettingsAware(). + +

    void TQApplication::setDoubleClickInterval ( int ms ) [static] +

    +Sets the time limit that distinguishes a double click from two +consecutive mouse clicks to ms milliseconds. +

    Note that on Microsoft Windows, calling this function sets the +double click interval for all windows. +

    See also doubleClickInterval(). + +

    void TQApplication::setEffectEnabled ( TQt::UIEffect effect, bool enable = TRUE ) [static] +

    +Enables the UI effect effect if enable is TRUE, otherwise +the effect will not be used. +

    Note: All effects are disabled on screens running at less than +16-bit color depth. +

    See also isEffectEnabled(), TQt::UIEffect, and setDesktopSettingsAware(). + +

    void TQApplication::setFont ( const TQFont & font, bool informWidgets = FALSE, const char * className = 0 ) [static] +

    Changes the default application font to font. If informWidgets is TRUE, then existing widgets are informed about the +change and may adjust themselves to the new application +setting. If informWidgets is FALSE, the change only affects newly +created widgets. If className is passed, the change applies only +to classes that inherit className (as reported by +TQObject::inherits()). +

    On application start-up, the default font depends on the window +system. It can vary depending on both the window system version and +the locale. This function lets you override the default font; but +overriding may be a bad idea because, for example, some locales need +extra-large fonts to support their special characters. +

    See also font(), fontMetrics(), and TQWidget::font. + +

    Examples: desktop/desktop.cpp, themes/metal.cpp, and themes/themes.cpp. +

    void TQApplication::setGlobalMouseTracking ( bool enable ) [static] +

    +Enables global mouse tracking if enable is TRUE, or disables it +if enable is FALSE. +

    Enabling global mouse tracking makes it possible for widget event +filters or application event filters to get all mouse move events, +even when no button is depressed. This is useful for special GUI +elements, e.g. tooltips. +

    Global mouse tracking does not affect widgets and their +mouseMoveEvent(). For a widget to get mouse move events when no +button is depressed, it must do TQWidget::setMouseTracking(TRUE). +

    This function uses an internal counter. Each +setGlobalMouseTracking(TRUE) must have a corresponding +setGlobalMouseTracking(FALSE): +

    +        // at this point global mouse tracking is off
    +        TQApplication::setGlobalMouseTracking( TRUE );
    +        TQApplication::setGlobalMouseTracking( TRUE );
    +        TQApplication::setGlobalMouseTracking( FALSE );
    +        // at this point it's still on
    +        TQApplication::setGlobalMouseTracking( FALSE );
    +        // but now it's off
    +    
    + +

    See also hasGlobalMouseTracking() and TQWidget::mouseTracking. + +

    void TQApplication::setGlobalStrut ( const TQSize & strut ) [static] +

    +Sets the application's global strut to strut. +

    The strut is a size object whose dimensions are the minimum that any +GUI element that the user can interact with should have. For example +no button should be resized to be smaller than the global strut size. +

    The strut size should be considered when reimplementing GUI controls +that may be used on touch-screens or similar IO-devices. +

    Example: +

    +  TQSize& WidgetClass::sizeHint() const
    +  {
    +      return TQSize( 80, 25 ).expandedTo( TQApplication::globalStrut() );
    +  }
    +  
    + +

    See also globalStrut(). + +

    void TQApplication::setLibraryPaths ( const TQStringList & paths ) [static] +

    +Sets the list of directories to search when loading libraries to paths. +All existing paths will be deleted and the path list will consist of the +paths given in paths. +

    See also libraryPaths(), addLibraryPath(), removeLibraryPath(), and TQLibrary. + +

    void TQApplication::setMainWidget ( TQWidget * mainWidget ) [virtual] +

    +Sets the application's main widget to mainWidget. +

    In most respects the main widget is like any other widget, except +that if it is closed, the application exits. Note that +TQApplication does not take ownership of the mainWidget, so +if you create your main widget on the heap you must delete it +yourself. +

    You need not have a main widget; connecting lastWindowClosed() to +quit() is an alternative. +

    For X11, this function also resizes and moves the main widget +according to the -geometry command-line option, so you should +set the default geometry (using TQWidget::setGeometry()) before +calling setMainWidget(). +

    See also mainWidget(), exec(), and quit(). + +

    Examples: chart/main.cpp, helpsystem/main.cpp, life/main.cpp, network/ftpclient/main.cpp, t1/main.cpp, and t4/main.cpp. +

    void TQApplication::setOverrideCursor ( const TQCursor & cursor, bool replace = FALSE ) [static] +

    +Sets the application override cursor to cursor. +

    Application override cursors are intended for showing the user +that the application is in a special state, for example during an +operation that might take some time. +

    This cursor will be displayed in all the application's widgets +until restoreOverrideCursor() or another setOverrideCursor() is +called. +

    Application cursors are stored on an internal stack. +setOverrideCursor() pushes the cursor onto the stack, and +restoreOverrideCursor() pops the active cursor off the stack. +Every setOverrideCursor() must eventually be followed by a +corresponding restoreOverrideCursor(), otherwise the stack will +never be emptied. +

    If replace is TRUE, the new cursor will replace the last +override cursor (the stack keeps its depth). If replace is +FALSE, the new stack is pushed onto the top of the stack. +

    Example: +

    +        TQApplication::setOverrideCursor( TQCursor(TQt::WaitCursor) );
    +        calculateHugeMandelbrot();              // lunch time...
    +        TQApplication::restoreOverrideCursor();
    +    
    + +

    See also overrideCursor(), restoreOverrideCursor(), and TQWidget::cursor. + +

    Examples: distributor/distributor.ui.h, network/archivesearch/archivedialog.ui.h, network/ftpclient/ftpmainwindow.ui.h, and showimg/showimg.cpp. +

    void TQApplication::setPalette ( const TQPalette & palette, bool informWidgets = FALSE, const char * className = 0 ) [static] +

    +Changes the default application palette to palette. If informWidgets is TRUE, then existing widgets are informed about the +change and may adjust themselves to the new application +setting. If informWidgets is FALSE, the change only affects newly +created widgets. +

    If className is passed, the change applies only to widgets that +inherit className (as reported by TQObject::inherits()). If +className is left 0, the change affects all widgets, thus overriding +any previously set class specific palettes. +

    The palette may be changed according to the current GUI style in +TQStyle::polish(). +

    See also TQWidget::palette, palette(), and TQStyle::polish(). + +

    Examples: i18n/main.cpp, themes/metal.cpp, themes/themes.cpp, and themes/wood.cpp. +

    void TQApplication::setReverseLayout ( bool b ) [static] +

    +If b is TRUE, all dialogs and widgets will be laid out in a +mirrored fashion, as required by right to left languages such as +Arabic and Hebrew. If b is FALSE, dialogs and widgets are laid +out left to right. +

    Changing this flag in runtime does not cause a relayout of already +instantiated widgets. +

    See also reverseLayout(). + +

    void TQApplication::setStartDragDistance ( int l ) [static] +

    +Sets the distance after which a drag should start to l pixels. +

    See also startDragDistance(). + +

    void TQApplication::setStartDragTime ( int ms ) [static] +

    +Sets the time after which a drag should start to ms ms. +

    See also startDragTime(). + +

    void TQApplication::setStyle ( TQStyle * style ) [static] +

    +Sets the application's GUI style to style. Ownership of the style +object is transferred to TQApplication, so TQApplication will delete +the style object on application exit or when a new style is set. +

    Example usage: +

    +    TQApplication::setStyle( new TQWindowsStyle );
    +  
    + +

    When switching application styles, the color palette is set back to +the initial colors or the system defaults. This is necessary since +certain styles have to adapt the color palette to be fully +style-guide compliant. +

    See also style(), TQStyle, setPalette(), and desktopSettingsAware(). + +

    Example: themes/themes.cpp. +

    TQStyle * TQApplication::setStyle ( const TQString & style ) [static] +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Requests a TQStyle object for style from the TQStyleFactory. +

    The string must be one of the TQStyleFactory::keys(), typically one +of "windows", "motif", "cde", "motifplus", "platinum", "sgi" and +"compact". Depending on the platform, "windowsxp", "aqua" or +"macintosh" may be available. +

    A later call to the TQApplication constructor will override the +requested style when a "-style" option is passed in as a commandline +parameter. +

    Returns 0 if an unknown style is passed, otherwise the TQStyle object +returned is set as the application's GUI style. + +

    void TQApplication::setWheelScrollLines ( int n ) [static] +

    +Sets the number of lines to scroll when the mouse wheel is rotated +to n. +

    If this number exceeds the number of visible lines in a certain +widget, the widget should interpret the scroll operation as a +single page up / page down operation instead. +

    See also wheelScrollLines(). + +

    void TQApplication::setWinStyleHighlightColor ( const TQColor & c ) [static] +

    + +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    Sets the color used to mark selections in windows style for all widgets +in the application. Will repaint all widgets if the color is changed. +

    The default color is darkBlue. +

    See also winStyleHighlightColor(). + +

    int TQApplication::startDragDistance () [static] +

    +If you support drag and drop in you application and a drag should +start after a mouse click and after moving the mouse a certain +distance, you should use the value which this method returns as the +distance. +

    For example, if the mouse position of the click is stored in startPos and the current position (e.g. in the mouse move event) is +currPos, you can find out if a drag should be started with code +like this: +

    +  if ( ( startPos - currPos ).manhattanLength() >
    +       TQApplication::startDragDistance() )
    +    startTheDrag();
    +  
    + +

    TQt uses this value internally, e.g. in TQFileDialog. +

    The default value is 4 pixels. +

    See also setStartDragDistance(), startDragTime(), and TQPoint::manhattanLength(). + +

    int TQApplication::startDragTime () [static] +

    +If you support drag and drop in you application and a drag should +start after a mouse click and after a certain time elapsed, you +should use the value which this method returns as the delay (in ms). +

    TQt also uses this delay internally, e.g. in TQTextEdit and TQLineEdit, +for starting a drag. +

    The default value is 500 ms. +

    See also setStartDragTime() and startDragDistance(). + +

    bool TQApplication::startingUp () [static] +

    +Returns TRUE if an application object has not been created yet; +otherwise returns FALSE. +

    See also closingDown(). + +

    TQStyle & TQApplication::style () [static] +

    +Returns the application's style object. +

    See also setStyle() and TQStyle. + +

    void TQApplication::syncX () [static] +

    +Synchronizes with the X server in the X11 implementation. This +normally takes some time. Does nothing on other platforms. +

    See also flushX(). + +

    TQWidgetList * TQApplication::topLevelWidgets () [static] +

    +Returns a list of the top level widgets in the application. +

    The list is created using new and must be deleted by the caller. +

    The list is empty (TQPtrList::isEmpty()) if there are no top level +widgets. +

    Note that some of the top level widgets may be hidden, for example +the tooltip if no tooltip is currently shown. +

    Example: +

    +    // Show all hidden top level widgets.
    +    TQWidgetList  *list = TQApplication::topLevelWidgets();
    +    TQWidgetListIt it( *list );  // iterate over the widgets
    +    TQWidget * w;
    +    while ( (w=it.current()) != 0 ) {   // for each top level widget...
    +        ++it;
    +        if ( !w->isVisible() )
    +            w->show();
    +    }
    +    delete list;                // delete the list, not the widgets
    +  
    + +

    Warning: Delete the list as soon you have finished using it. +The widgets in the list may be deleted by someone else at any time. +

    See also allWidgets(), TQWidget::isTopLevel, TQWidget::visible, and TQPtrList::isEmpty(). + +

    TQString TQApplication::translate ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const +

    Note: This function is reentrant when TQt is built with thread support.

    + +Returns the translation text for sourceText, by querying the +installed messages files. The message files are searched from the most +recently installed message file back to the first installed message +file. +

    TQObject::tr() and TQObject::trUtf8() provide this functionality more +conveniently. +

    context is typically a class name (e.g., "MyDialog") and +sourceText is either English text or a short identifying text, if +the output text will be very long (as for help texts). +

    comment is a disambiguating comment, for when the same sourceText is used in different roles within the same context. By +default, it is null. encoding indicates the 8-bit encoding of +character stings +

    See the TQTranslator documentation for more information about +contexts and comments. +

    If none of the message files contain a translation for sourceText in context, this function returns a TQString +equivalent of sourceText. The encoding of sourceText is +specified by encoding; it defaults to DefaultCodec. +

    This function is not virtual. You can use alternative translation +techniques by subclassing TQTranslator. +

    Warning: This method is reentrant only if all translators are +installed before calling this method. Installing or removing +translators while performing translations is not supported. Doing +so will most likely result in crashes or other undesirable behavior. +

    See also TQObject::tr(), installTranslator(), and defaultCodec(). + +

    bool TQApplication::tryLock () +

    +

    Attempts to lock the TQt Library Mutex, and returns immediately. If +the lock was obtained, this function returns TRUE. If another thread +has locked the mutex, this function returns FALSE, instead of +waiting for the lock to become available. +

    The mutex must be unlocked with unlock() before another thread can +successfully lock it. +

    See also lock(), unlock(), and Thread Support in TQt. + +

    Type TQApplication::type () const +

    +Returns the type of application, Tty, GuiClient or GuiServer. + +

    void TQApplication::unlock ( bool wakeUpGui = TRUE ) +

    +

    Unlock the TQt Library Mutex. If wakeUpGui is TRUE (the default), +then the GUI thread will be woken with TQApplication::wakeUpGuiThread(). +

    See also lock(), locked(), and Thread Support in TQt. + +

    void TQApplication::wakeUpGuiThread () +

    +

    Wakes up the GUI thread. +

    See also guiThreadAwake() and Thread Support in TQt. + +

    int TQApplication::wheelScrollLines () [static] +

    +Returns the number of lines to scroll when the mouse wheel is +rotated. +

    See also setWheelScrollLines(). + +

    TQWidget * TQApplication::widgetAt ( int x, int y, bool child = FALSE ) [static] +

    +Returns a pointer to the widget at global screen position (x, y), or 0 if there is no TQt widget there. +

    If child is FALSE and there is a child widget at position (x, y), the top-level widget containing it is returned. If child +is TRUE the child widget at position (x, y) is returned. +

    This function is normally rather slow. +

    See also TQCursor::pos(), TQWidget::grabMouse(), and TQWidget::grabKeyboard(). + +

    TQWidget * TQApplication::widgetAt ( const TQPoint & pos, bool child = FALSE ) [static] +

    +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

    Returns a pointer to the widget at global screen position pos, +or 0 if there is no TQt widget there. +

    If child is FALSE and there is a child widget at position pos, the top-level widget containing it is returned. If child +is TRUE the child widget at position pos is returned. + +

    bool TQApplication::winEventFilter ( MSG * ) [virtual] +

    +This virtual function is only implemented under Windows. +

    The message procedure calls this function for every message +received. Reimplement this function if you want to process window +messages that are not processed by TQt. If you don't want +the event to be processed by TQt, then return TRUE; otherwise +return FALSE. + +

    void TQApplication::winFocus ( TQWidget * widget, bool gotFocus ) +

    +This function is available only on Windows. +

    If gotFocus is TRUE, widget will become the active window. +Otherwise the active window is reset to NULL. + +

    const TQColor & TQApplication::winStyleHighlightColor () [static] +

    + +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

    Returns the color used to mark selections in windows style. +

    See also setWinStyleHighlightColor(). + +

    bool TQApplication::x11EventFilter ( XEvent * ) [virtual] +

    +This virtual function is only implemented under X11. +

    If you create an application that inherits TQApplication and +reimplement this function, you get direct access to all X events +that the are received from the X server. +

    Return TRUE if you want to stop the event from being processed. +Return FALSE for normal event dispatching. +

    See also x11ProcessEvent(). + +

    int TQApplication::x11ProcessEvent ( XEvent * event ) +

    +This function does the core processing of individual X +events, normally by dispatching TQt events to the right +destination. +

    It returns 1 if the event was consumed by special handling, 0 if +the event was consumed by normal handling, and -1 if the event was for an unrecognized widget. +

    See also x11EventFilter(). + +


    Related Functions

    +

    void Q_ASSERT ( bool test ) +

    + +

    +

    Prints a warning message containing the source code file name and +line number if test is FALSE. +

    This is really a macro defined in tqglobal.h. +

    Q_ASSERT is useful for testing pre- and post-conditions. +

    Example: +

    +        //
    +        // File: div.cpp
    +        //
    +
    +        #include <tqglobal.h>
    +
    +        int divide( int a, int b )
    +        {
    +            Q_ASSERT( b != 0 );                 // this is line 9
    +            return a/b;
    +        }
    +    
    + +

    If b is zero, the Q_ASSERT statement will output the following +message using the tqWarning() function: +

    +        ASSERT: "b != 0" in div.cpp (9)
    +    
    + +

    See also tqWarning() and Debugging. + +

    void TQ_CHECK_PTR ( void * p ) +

    + +

    +

    If p is 0, prints a warning message containing the source code file +name and line number, saying that the program ran out of memory. +

    This is really a macro defined in tqglobal.h. +

    Example: +

    +        int *a;
    +
    +        TQ_CHECK_PTR( a = new int[80] );  // WRONG!
    +
    +        a = new (nothrow) int[80];       // Right
    +        TQ_CHECK_PTR( a );
    +    
    + +

    See also tqWarning() and Debugging. + +

    void tqAddPostRoutine ( TQtCleanUpFunction p ) +

    + +

    Adds a global routine that will be called from the TQApplication +destructor. This function is normally used to add cleanup routines +for program-wide functionality. +

    The function given by p should take no arguments and return +nothing, like this: +

    +    static int *global_ptr = 0;
    +
    +    static void cleanup_ptr()
    +    {
    +        delete [] global_ptr;
    +        global_ptr = 0;
    +    }
    +
    +    void init_ptr()
    +    {
    +        global_ptr = new int[100];      // allocate data
    +        tqAddPostRoutine( cleanup_ptr ); // delete later
    +    }
    +  
    + +

    Note that for an application- or module-wide cleanup, +tqAddPostRoutine() is often not suitable. People have a tendency to +make such modules dynamically loaded, and then unload those modules +long before the TQApplication destructor is called, for example. +

    For modules and libraries, using a reference-counted initialization +manager or TQt' parent-child delete mechanism may be better. Here is +an example of a private class which uses the parent-child mechanism +to call a cleanup function at the right time: +

    +    class MyPrivateInitStuff: public TQObject {
    +    private:
    +        MyPrivateInitStuff( TQObject * parent ): TQObject( parent) {
    +            // initialization goes here
    +        }
    +        MyPrivateInitStuff * p;
    +
    +    public:
    +        static MyPrivateInitStuff * initStuff( TQObject * parent ) {
    +            if ( !p )
    +                p = new MyPrivateInitStuff( parent );
    +            return p;
    +        }
    +
    +        ~MyPrivateInitStuff() {
    +            // cleanup (the "post routine") goes here
    +        }
    +    }
    +  
    + +

    By selecting the right parent widget/object, this can often be made +to clean up the module's data at the exact right moment. + +

    void tqDebug ( const char * msg, ... ) +

    + +

    +

    Prints a debug message msg, or calls the message handler (if it +has been installed). +

    This function takes a format string and a list of arguments, +similar to the C printf() function. +

    Example: +

    +        tqDebug( "my window handle = %x", myWidget->id() );
    +    
    + +

    Under X11, the text is printed to stderr. Under Windows, the text +is sent to the debugger. +

    Warning: The internal buffer is limited to 8196 bytes (including +the '\0'-terminator). +

    Warning: Passing (const char *)0 as argument to tqDebug might lead +to crashes on certain platforms due to the platforms printf implementation. +

    See also tqWarning(), tqFatal(), qInstallMsgHandler(), and Debugging. + +

    void tqFatal ( const char * msg, ... ) +

    + +

    +

    Prints a fatal error message msg and exits, or calls the +message handler (if it has been installed). +

    This function takes a format string and a list of arguments, +similar to the C printf() function. +

    Example: +

    +        int divide( int a, int b )
    +        {
    +            if ( b == 0 )                               // program error
    +                tqFatal( "divide: cannot divide by zero" );
    +            return a/b;
    +        }
    +    
    + +

    Under X11, the text is printed to stderr. Under Windows, the text +is sent to the debugger. +

    Warning: The internal buffer is limited to 8196 bytes (including +the '\0'-terminator). +

    Warning: Passing (const char *)0 as argument to tqFatal might lead +to crashes on certain platforms due to the platforms printf implementation. +

    See also tqDebug(), tqWarning(), qInstallMsgHandler(), and Debugging. + +

    TQtMsgHandler qInstallMsgHandler ( TQtMsgHandler h ) +

    + +

    Installs a TQt message handler h. Returns a pointer to the +message handler previously defined. +

    The message handler is a function that prints out debug messages, +warnings and fatal error messages. The TQt library (debug version) +contains hundreds of warning messages that are printed when +internal errors (usually invalid function arguments) occur. If you +implement your own message handler, you get total control of these +messages. +

    The default message handler prints the message to the standard +output under X11 or to the debugger under Windows. If it is a +fatal message, the application aborts immediately. +

    Only one message handler can be defined, since this is usually +done on an application-wide basis to control debug output. +

    To restore the message handler, call qInstallMsgHandler(0). +

    Example: +

    +        #include <tqapplication.h>
    +        #include <stdio.h>
    +        #include <stdlib.h>
    +
    +        void myMessageOutput( TQtMsgType type, const char *msg )
    +        {
    +            switch ( type ) {
    +                case TQtDebugMsg:
    +                    fprintf( stderr, "Debug: %s\n", msg );
    +                    break;
    +                case TQtWarningMsg:
    +                    fprintf( stderr, "Warning: %s\n", msg );
    +                    break;
    +                case TQtFatalMsg:
    +                    fprintf( stderr, "Fatal: %s\n", msg );
    +                    abort();                    // deliberately core dump
    +            }
    +        }
    +
    +        int main( int argc, char **argv )
    +        {
    +            qInstallMsgHandler( myMessageOutput );
    +            TQApplication a( argc, argv );
    +            ...
    +            return a.exec();
    +        }
    +    
    + +

    See also tqDebug(), tqWarning(), tqFatal(), and Debugging. + +

    bool tqSysInfo ( int * wordSize, bool * bigEndian ) +

    + +

    Obtains information about the system. +

    The system's word size in bits (typically 32) is returned in *wordSize. The *bigEndian is set to TRUE if this is a big-endian +machine, or to FALSE if this is a little-endian machine. +

    In debug mode, this function calls tqFatal() with a message if the +computer is truly weird (i.e. different endianness for 16 bit and +32 bit integers); in release mode it returns FALSE. + +

    void tqSystemWarning ( const char * msg, int code ) +

    + +

    Prints the message msg and uses code to get a system specific +error message. When code is -1 (the default), the system's last +error code will be used if possible. Use this method to handle +failures in platform specific API calls. +

    This function does nothing when TQt is built with TQT_NO_DEBUG +defined. + +

    const char * tqVersion () +

    + +

    Returns the TQt version number as a string, for example, "2.3.0" or +"3.0.5". +

    The TQT_VERSION define has the numeric value in the form: +0xmmiibb (m = major, i = minor, b = bugfix). For example, TQt +3.0.5's TQT_VERSION is 0x030005. + +

    void tqWarning ( const char * msg, ... ) +

    + +

    +

    Prints a warning message msg, or calls the message handler (if +it has been installed). +

    This function takes a format string and a list of arguments, +similar to the C printf() function. +

    Example: +

    +        void f( int c )
    +        {
    +            if ( c > 200 )
    +                tqWarning( "f: bad argument, c == %d", c );
    +        }
    +    
    + +

    Under X11, the text is printed to stderr. Under Windows, the text +is sent to the debugger. +

    Warning: The internal buffer is limited to 8196 bytes (including +the '\0'-terminator). +

    Warning: Passing (const char *)0 as argument to tqWarning might lead +to crashes on certain platforms due to the platforms printf implementation. +

    See also tqDebug(), tqFatal(), qInstallMsgHandler(), and Debugging. + + +


    +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


    + +
    Copyright © 2007 +TrolltechTrademarks +
    TQt 3.3.8
    +
    + diff --git a/doc/html/tqasciicache.html b/doc/html/tqasciicache.html index b1a94d224..0f4a5216b 100644 --- a/doc/html/tqasciicache.html +++ b/doc/html/tqasciicache.html @@ -216,7 +216,7 @@ This should be a bit bigger than count() is likely to be.

    A debug-only utility function. Prints out cache usage, hit/miss, -and distribution information using tqDebug(). This function does +and distribution information using tqDebug(). This function does nothing in the release library.

    type * TQAsciiCache::take ( const char * k ) diff --git a/doc/html/tqasciidict.html b/doc/html/tqasciidict.html index 90c00b613..a7bcc7b5b 100644 --- a/doc/html/tqasciidict.html +++ b/doc/html/tqasciidict.html @@ -289,7 +289,7 @@ constructor).

    Debugging-only function that prints out the dictionary -distribution using tqDebug(). +distribution using tqDebug().

    type * TQAsciiDict::take ( const char * key )

    diff --git a/doc/html/tqcache.html b/doc/html/tqcache.html index e4eb58764..c7f046f0d 100644 --- a/doc/html/tqcache.html +++ b/doc/html/tqcache.html @@ -243,7 +243,7 @@ This should be a bit bigger than count() is likely to be.

    A debug-only utility function. Prints out cache usage, hit/miss, -and distribution information using tqDebug(). This function does +and distribution information using tqDebug(). This function does nothing in the release library.

    type * TQCache::take ( const TQString & k ) diff --git a/doc/html/tqcanvasview.html b/doc/html/tqcanvasview.html index 5cc443413..48fe627c5 100644 --- a/doc/html/tqcanvasview.html +++ b/doc/html/tqcanvasview.html @@ -70,7 +70,7 @@ subclass TQCanvasView. You might then reimplement TQCanvasItemList l = canvas()->collisions(e->pos()); for (TQCanvasItemList::Iterator it=l.begin(); it!=l.end(); ++it) { if ( (*it)->rtti() == TQCanvasRectangle::RTTI ) - tqDebug("A TQCanvasRectangle lies somewhere at this point"); + tqDebug("A TQCanvasRectangle lies somewhere at this point"); } }

    diff --git a/doc/html/tqchildevent.html b/doc/html/tqchildevent.html index 02fad3b23..19ac970ee 100644 --- a/doc/html/tqchildevent.html +++ b/doc/html/tqchildevent.html @@ -51,7 +51,7 @@ events.

    Child events are sent to objects when children are inserted or removed. -

    A ChildRemoved event is sent immediately, but a ChildInserted event is posted (with TQApplication::postEvent()). +

    A ChildRemoved event is sent immediately, but a ChildInserted event is posted (with TQApplication::postEvent()).

    Note that if a child is removed immediately after it is inserted, the ChildInserted event may be suppressed, but the ChildRemoved event will always be sent. In this case there will be a ChildRemoved event without a corresponding ChildInserted diff --git a/doc/html/tqclipboard.html b/doc/html/tqclipboard.html index ef2dec2db..bde04f0e0 100644 --- a/doc/html/tqclipboard.html +++ b/doc/html/tqclipboard.html @@ -82,15 +82,15 @@ between applications. uses similar mechanisms. For advanced clipboard usage read the drag-and-drop documentation.

    There is a single TQClipboard object in an application, and you can -access it using TQApplication::clipboard(). +access it using TQApplication::clipboard().

    Example:

    -    TQClipboard *cb = TQApplication::clipboard();
    +    TQClipboard *cb = TQApplication::clipboard();
     
         // Copy text from the clipboard (paste)
         TQString text = cb->text(TQClipboard::Clipboard);
         if ( !text.isNull() )
    -        tqDebug( "The clipboard contains: " + text );
    +        tqDebug( "The clipboard contains: " + text );
     
         // Copy text into the clipboard
         cb->setText( "This text can be pasted by other programs",
    diff --git a/doc/html/tqcloseevent.html b/doc/html/tqcloseevent.html
    index 98405e12a..bfe2fe879 100644
    --- a/doc/html/tqcloseevent.html
    +++ b/doc/html/tqcloseevent.html
    @@ -58,10 +58,10 @@ the WDestructiveClose flag). If it refus
     event nothing happens. (Under X11 it is possible that the window
     manager will forcibly close the window; but at the time of writing
     we are not aware of any window manager that does this.)
    -

    The application's main widget -- TQApplication::mainWidget() -- +

    The application's main widget -- TQApplication::mainWidget() -- is a special case. When it accepts the close event, TQt leaves the main event loop and the application is immediately terminated -(i.e. it returns from the call to TQApplication::exec() in the +(i.e. it returns from the call to TQApplication::exec() in the main() function).

    The event handler TQWidget::closeEvent() receives close events. The default implementation of this event handler accepts the close @@ -75,12 +75,12 @@ with the WDestructiveClose widget flag. independent top-level windows in a multi-window application.

    TQObjects emits the destroyed() signal when they are deleted.

    If the last top-level window is closed, the -TQApplication::lastWindowClosed() signal is emitted. +TQApplication::lastWindowClosed() signal is emitted.

    The isAccepted() function returns TRUE if the event's receiver has agreed to close the widget; call accept() to agree to close the widget and call ignore() if the receiver of this event does not want the widget to be closed. -

    See also TQWidget::close(), TQWidget::hide(), TQObject::destroyed(), TQApplication::setMainWidget(), TQApplication::lastWindowClosed(), TQApplication::exec(), TQApplication::quit(), and Event Classes. +

    See also TQWidget::close(), TQWidget::hide(), TQObject::destroyed(), TQApplication::setMainWidget(), TQApplication::lastWindowClosed(), TQApplication::exec(), TQApplication::quit(), and Event Classes.


    Member Function Documentation

    TQCloseEvent::TQCloseEvent () diff --git a/doc/html/tqcolor.html b/doc/html/tqcolor.html index 60f87a2d3..d44963cdb 100644 --- a/doc/html/tqcolor.html +++ b/doc/html/tqcolor.html @@ -178,7 +178,7 @@ moving slightly towards the magenta, could be H=350 (equivalent to

    TQt returns a hue value of -1 for achromatic colors. If you pass a too-big hue value, TQt forces it into range. Hue 360 or 720 is treated as 0; hue 540 is treated as 180. -

    See also TQPalette, TQColorGroup, TQApplication::setColorSpec(), Color FAQ, Widget Appearance and Style, Graphics Classes, and Image Processing Classes. +

    See also TQPalette, TQColorGroup, TQApplication::setColorSpec(), Color FAQ, Widget Appearance and Style, Graphics Classes, and Image Processing Classes.


    Member Type Documentation

    TQColor::Spec

    @@ -262,7 +262,7 @@ don't need to call this function.

    void TQColor::cleanup () [static]

    Internal clean up required for TQColor. -This function is called from the TQApplication destructor. +This function is called from the TQApplication destructor.

    See also initialize().

    TQStringList TQColor::colorNames () [static] @@ -351,8 +351,8 @@ enterAllocContex() must have a corresponding leaveAllocContext().

    You may also want to set the application's color specification. -See TQApplication::setColorSpec() for more information. -

    See also leaveAllocContext(), currentAllocContext(), destroyAllocContext(), and TQApplication::setColorSpec(). +See TQApplication::setColorSpec() for more information. +

    See also leaveAllocContext(), currentAllocContext(), destroyAllocContext(), and TQApplication::setColorSpec().

    Example: showimg/showimg.cpp.

    void TQColor::getHsv ( int * h, int * s, int * v ) const @@ -390,7 +390,7 @@ Use getHsv() instead.

    void TQColor::initialize () [static]

    Internal initialization required for TQColor. -This function is called from the TQApplication constructor. +This function is called from the TQApplication constructor.

    See also cleanup().

    bool TQColor::isValid () const diff --git a/doc/html/tqcursor.html b/doc/html/tqcursor.html index 117294741..3b68b69ea 100644 --- a/doc/html/tqcursor.html +++ b/doc/html/tqcursor.html @@ -81,7 +81,7 @@ of the mouse cursor. custom cursor shapes based on a TQBitmap, a mask and a hotspot.

    To associate a cursor with a widget, use TQWidget::setCursor(). To associate a cursor with all widgets (normally for a short period -of time), use TQApplication::setOverrideCursor(). +of time), use TQApplication::setOverrideCursor().

    To set a cursor shape use TQCursor::setShape() or use the TQCursor constructor which takes the shape as argument, or you can use one of the predefined cursors defined in the CursorShape enum. @@ -196,7 +196,7 @@ cursors.

    void TQCursor::cleanup () [static]

    Internal function that deinitializes the predefined cursors. -This function is called from the TQApplication destructor. +This function is called from the TQApplication destructor.

    See also initialize().

    HANDLE TQCursor::handle () const @@ -214,7 +214,7 @@ standard cursors.

    void TQCursor::initialize () [static]

    Internal function that initializes the predefined cursors. -This function is called from the TQApplication constructor. +This function is called from the TQApplication constructor.

    See also cleanup().

    const TQBitmap * TQCursor::mask () const diff --git a/doc/html/tqcustomevent.html b/doc/html/tqcustomevent.html index e29b1c0dd..f8626d291 100644 --- a/doc/html/tqcustomevent.html +++ b/doc/html/tqcustomevent.html @@ -49,8 +49,8 @@ The TQCustomEvent class provides support for custom events.

    TQCustomEvent is a generic event class for user-defined events. User defined events can be sent to widgets or other TQObject -instances using TQApplication::postEvent() or -TQApplication::sendEvent(). Subclasses of TQObject can easily +instances using TQApplication::postEvent() or +TQApplication::sendEvent(). Subclasses of TQObject can easily receive custom events by implementing the TQObject::customEvent() event handler function.

    TQCustomEvent objects should be created with a type ID that @@ -81,7 +81,7 @@ suitable for your event type. // To send an event of this custom event type: ColorChangeEvent* ce = new ColorChangeEvent( blue ); - TQApplication::postEvent( receiver, ce ); // TQt will delete it when done + TQApplication::postEvent( receiver, ce ); // TQt will delete it when done // To receive an event of this custom event type: @@ -94,7 +94,7 @@ suitable for your event type. } -

    See also TQWidget::customEvent(), TQApplication::notify(), and Event Classes. +

    See also TQWidget::customEvent(), TQApplication::notify(), and Event Classes.


    Member Function Documentation

    TQCustomEvent::TQCustomEvent ( int type ) diff --git a/doc/html/tqdatasource.html b/doc/html/tqdatasource.html index c5267c3fb..f31e7832f 100644 --- a/doc/html/tqdatasource.html +++ b/doc/html/tqdatasource.html @@ -64,7 +64,7 @@ If this function is called with on set to TRUE, and rewind() function to subsequently operate as described. If rewindable() is FALSE, the function should call TQDataSource::enableRewind(), which aborts with -a tqFatal() error. +a tqFatal() error.

    For example, a network connection may choose to use a disk cache of input only if rewinding is enabled before the first buffer-full of data is discarded, returning FALSE in rewindable() if that first buffer diff --git a/doc/html/tqdatetime.html b/doc/html/tqdatetime.html index 0e9c2d440..707b3f51d 100644 --- a/doc/html/tqdatetime.html +++ b/doc/html/tqdatetime.html @@ -244,7 +244,7 @@ is negative if dt is earlier than this datetime).

         TQDateTime dt = TQDateTime::currentDateTime();
         TQDateTime xmas( TQDate(dt.date().year(),12,24), TQTime(17,00) );
    -    tqDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) );
    +    tqDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) );
         

    See also addSecs(), daysTo(), and TQTime::secsTo(). diff --git a/doc/html/tqdesktopwidget.html b/doc/html/tqdesktopwidget.html index 2977ae116..a32e86fa2 100644 --- a/doc/html/tqdesktopwidget.html +++ b/doc/html/tqdesktopwidget.html @@ -95,7 +95,7 @@ Creates the desktop widget. the size of the virtual desktop; otherwise this widget will have the size of the primary screen.

    Instead of using TQDesktopWidget directly, use -TQApplication::desktop(). +TQApplication::desktop().

    TQDesktopWidget::~TQDesktopWidget ()

    @@ -149,7 +149,7 @@ Returns a widget that represents the screen with index screen. This widget can be used to draw directly on the desktop, using an unclipped painter like this:

    -    TQPainter paint( TQApplication::desktop()->screen( 0 ), TRUE );
    +    TQPainter paint( TQApplication::desktop()->screen( 0 ), TRUE );
         paint.draw...
         ...
         paint.end();
    diff --git a/doc/html/tqdialog.html b/doc/html/tqdialog.html
    index f8d072887..0c8fbad3f 100644
    --- a/doc/html/tqdialog.html
    +++ b/doc/html/tqdialog.html
    @@ -112,7 +112,7 @@ setModal(TRUE) is especially useful for progress dialogs, where
     the user must have the ability to interact with the dialog, e.g.
     to cancel a long running operation. If you use show() and
     setModal(TRUE) together you must call
    -TQApplication::processEvents() periodically during processing to
    +TQApplication::processEvents() periodically during processing to
     enable the user to interact with the dialog. (See TQProgressDialog.)
     

    Modeless Dialogs @@ -188,13 +188,13 @@ event loop.
        int main( int argc, char **argv )
         {
    -        TQApplication a( argc, argv );
    +        TQApplication a( argc, argv );
     
            int scale = 10;
     
            LifeDialog *life = new LifeDialog( scale );
    -        a.setMainWidget( life );
    +        a.setMainWidget( life );
             life->setCaption("TQt Example - Life");
             life->show();
    -
            return a.exec();
    +
            return a.exec();
         }
     

    See also TQTabDialog, TQWidget, TQProgressDialog, GUI Design Handbook: Dialogs, Standard, Abstract Widget Classes, and Dialog Classes. @@ -239,9 +239,9 @@ is shown with exec(), done() causes the and exec() to return r.

    As with TQWidget::close(), done() deletes the dialog if the WDestructiveClose flag is set. If the dialog is the application's main widget, the application terminates. If the dialog is the -last window closed, the TQApplication::lastWindowClosed() signal is +last window closed, the TQApplication::lastWindowClosed() signal is emitted. -

    See also accept(), reject(), TQApplication::mainWidget(), and TQApplication::quit(). +

    See also accept(), reject(), TQApplication::mainWidget(), and TQApplication::quit().

    int TQDialog::exec () [slot]

    diff --git a/doc/html/tqdict.html b/doc/html/tqdict.html index 52fb5a789..f3d034688 100644 --- a/doc/html/tqdict.html +++ b/doc/html/tqdict.html @@ -363,7 +363,7 @@ constructor).

    Debugging-only function that prints out the dictionary -distribution using tqDebug(). +distribution using tqDebug().

    type * TQDict::take ( const TQString & key )

    diff --git a/doc/html/tqdir-example.html b/doc/html/tqdir-example.html index 1559e8094..6144bb26d 100644 --- a/doc/html/tqdir-example.html +++ b/doc/html/tqdir-example.html @@ -47,7 +47,7 @@ body { background: #ffffff; color: black; } #include "../dirview/dirview.h" #include "tqdir.h" -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqtextview.h> #include <tqfileinfo.h> #include <tqfile.h> @@ -328,7 +328,7 @@ int main( int argc, char ** argv ) TQString caption; bool preview = FALSE; bool custom = FALSE; - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); for (int i=1; i<argc; i++) { TQString arg = argv[i]; if ( arg == "-any" ) @@ -344,7 +344,7 @@ int main( int argc, char ** argv ) else if ( arg == "-custom" ) custom = TRUE; else if ( arg[0] == '-' ) { - tqDebug("Usage: tqdir [-any | -dir | -custom] [-preview] [-default f] {-filter f} [caption ...]\n" + tqDebug("Usage: tqdir [-any | -dir | -custom] [-preview] [-default f] {-filter f} [caption ...]\n" " -any Get any filename, need not exist.\n" " -dir Return a directory rather than a file.\n" " -custom Opens a customized TQFileDialog with \n" diff --git a/doc/html/tqdir.html b/doc/html/tqdir.html index bd578e9a1..604502d3c 100644 --- a/doc/html/tqdir.html +++ b/doc/html/tqdir.html @@ -135,7 +135,7 @@ common paths is provided with the static functions, currenthome() and root() which return TQDir objects or currentDirPath(), homeDirPath() and rootDirPath() which return the path as a string. If you want to know about your application's path use -TQApplication::applicationDirPath(). +TQApplication::applicationDirPath().

    The number of entries in a directory is returned by count(). Obtain a string list of the names of all the files and directories in a directory with entryList(). If you prefer a list of TQFileInfo @@ -165,18 +165,18 @@ for a function in the underlying operating system use

         TQDir d( "example" );                        // "./example"
         if ( !d.exists() )
    -        tqWarning( "Cannot find the example directory" );
    +        tqWarning( "Cannot find the example directory" );
         

    Traversing directories and reading a file.

         TQDir d = TQDir::root();                      // "/"
         if ( !d.cd("tmp") ) {                       // "/tmp"
    -        tqWarning( "Cannot find the \"/tmp\" directory" );
    +        tqWarning( "Cannot find the \"/tmp\" directory" );
         } else {
             TQFile f( d.filePath("ex1.txt") );       // "/tmp/ex1.txt"
             if ( !f.open(IO_ReadWrite) )
    -            tqWarning( "Cannot create the file %s", f.name() );
    +            tqWarning( "Cannot create the file %s", f.name() );
         }
         
    @@ -205,7 +205,7 @@ for a function in the underlying operating system use }
    -

    See also TQApplication::applicationDirPath() and Input/Output and Networking. +

    See also TQApplication::applicationDirPath() and Input/Output and Networking.


    Member Type Documentation

    TQDir::FilterSpec

    @@ -583,7 +583,7 @@ this function returns FALSE. If you want to test for this use TQDir d( "/tmp/root_link" ); d = d.canonicalPath(); if ( d.isRoot() ) - tqWarning( "It is a root link" ); + tqWarning( "It is a root link" );

    See also root() and rootDirPath(). @@ -639,7 +639,7 @@ FALSE. TQDir d1( "/usr/local/bin" ); TQDir d2( "bin" ); if ( d1 != d2 ) - tqDebug( "They differ" ); + tqDebug( "They differ" ); @@ -664,7 +664,7 @@ returns FALSE. TQDir d2( "bin" ); d2.convertToAbs(); if ( d1 == d2 ) - tqDebug( "They're the same" ); + tqDebug( "They're the same" ); diff --git a/doc/html/tqerrormessage.html b/doc/html/tqerrormessage.html index d965c9078..6bf816711 100644 --- a/doc/html/tqerrormessage.html +++ b/doc/html/tqerrormessage.html @@ -62,8 +62,8 @@ display messages which you don't need the user to see more than once. To use TQErrorMessage like this, you create the dialog in the usual way and call the message() slot, or connect signals to it.

  • For developers. In this context the static qtHandler() installs -a message handler using qInstallMsgHandler() and creates a TQErrorMessage -that displays tqDebug(), tqWarning() and tqFatal() messages. +a message handler using qInstallMsgHandler() and creates a TQErrorMessage +that displays tqDebug(), tqWarning() and tqFatal() messages.

    In both cases TQErrorMessage will queue pending messages, and display them (or not) in order, as soon as the user presses Enter or clicks OK diff --git a/doc/html/tqevent.html b/doc/html/tqevent.html index a67c9018f..0c9b46753 100644 --- a/doc/html/tqevent.html +++ b/doc/html/tqevent.html @@ -52,13 +52,13 @@ The TQEvent class is the base class of all event classes. Event objects contain event parameters.

    -

    TQt's main event loop (TQApplication::exec()) fetches native window +

    TQt's main event loop (TQApplication::exec()) fetches native window system events from the event queue, translates them into TQEvents and sends the translated events to TQObjects.

    In general, events come from the underlying window system (spontaneous() returns TRUE) but it is also possible to manually -send events using TQApplication::sendEvent() and -TQApplication::postEvent() (spontaneous() returns FALSE). +send events using TQApplication::sendEvent() and +TQApplication::postEvent() (spontaneous() returns FALSE).

    TQObjects receive events by having their TQObject::event() function called. The function can be reimplemented in subclasses to customize event handling and add additional event types; @@ -69,7 +69,7 @@ object to intercept events destined for another object.

    The basic TQEvent contains only an event type parameter. Subclasses of TQEvent contain additional parameters that describe the particular event. -

    See also TQObject::event(), TQObject::installEventFilter(), TQWidget::event(), TQApplication::sendEvent(), TQApplication::postEvent(), TQApplication::processEvents(), Environment Classes, and Event Classes. +

    See also TQObject::event(), TQObject::installEventFilter(), TQWidget::event(), TQApplication::sendEvent(), TQApplication::postEvent(), TQApplication::processEvents(), Environment Classes, and Event Classes.


    Member Type Documentation

    TQEvent::Type

    @@ -165,7 +165,7 @@ maximized or full-screen, has changed. See T

    TQEvent::~TQEvent () [virtual]

    -Destroys the event. If it was posted, +Destroys the event. If it was posted, it will be removed from the list of events to be posted.

    bool TQEvent::spontaneous () const diff --git a/doc/html/tqeventloop.html b/doc/html/tqeventloop.html index fa115503f..267855afe 100644 --- a/doc/html/tqeventloop.html +++ b/doc/html/tqeventloop.html @@ -69,7 +69,7 @@ The TQEventLoop class manages the event queue.

    It receives events from the window system and other sources. It -then sends them to TQApplication for processing and delivery. +then sends them to TQApplication for processing and delivery.

    TQEventLoop allows the application programmer to have more control over event delivery. Programs that perform long operations can call either processOneEvent() or processEvents() with various @@ -104,8 +104,8 @@ A typedef to allow various ProcessEvents values to be OR'ed together.

    Creates a TQEventLoop object, this object becomes the global event loop object. There can only be one event loop object. The TQEventLoop is usually constructed -by calling TQApplication::eventLoop(). To create your own event loop object create -it before you instantiate the TQApplication object. +by calling TQApplication::eventLoop(). To create your own event loop object create +it before you instantiate the TQApplication object.

    The parent and name arguments are passed on to the TQObject constructor.

    TQEventLoop::~TQEventLoop () @@ -161,7 +161,7 @@ exec() to start a local event loop. special function whenever there are no pending events, use a TQTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents(). -

    See also TQApplication::quit(), exit(), and processEvents(). +

    See also TQApplication::quit(), exit(), and processEvents().

    void TQEventLoop::exit ( int retcode = 0 ) [virtual]

    @@ -173,7 +173,7 @@ value indicates an error.

    Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops. -

    See also TQApplication::quit() and exec(). +

    See also TQApplication::quit() and exec().

    void TQEventLoop::exitLoop () [virtual]

    diff --git a/doc/html/tqfile.html b/doc/html/tqfile.html index 1bbaca399..ff845a39c 100644 --- a/doc/html/tqfile.html +++ b/doc/html/tqfile.html @@ -219,7 +219,7 @@ Returns a human-readable description of the reason of an error that occurred on the device. The error described by the string corresponds to changes of TQIODevice::status(). If the status is reset, the error string is also reset.

    The returned strings are not translated with the TQObject::tr() or -TQApplication::translate() functions. They are marked as translatable +TQApplication::translate() functions. They are marked as translatable strings in the "TQFile" context. Before you show the string to the user you should translate it first, for example:

    @@ -228,7 +228,7 @@ should translate it first, for example:
                 TQMessageBox::critical(
                     this,
                     tr("Open failed"),
    -                tr("Could not open file for reading: %1").arg( tqApp->translate("TQFile",f.errorString()) )
    +                tr("Could not open file for reading: %1").arg( tqApp->translate("TQFile",f.errorString()) )
                     );
                 return;
             }
    diff --git a/doc/html/tqfileinfo.html b/doc/html/tqfileinfo.html
    index c893307a6..52cd5286f 100644
    --- a/doc/html/tqfileinfo.html
    +++ b/doc/html/tqfileinfo.html
    @@ -410,9 +410,9 @@ always returns TRUE.
     
             TQFileInfo fi( "/tmp/archive.tar.gz" );
             if ( fi.permission( TQFileInfo::WriteUser | TQFileInfo::ReadGroup ) )
    -            tqWarning( "I can change the file; my group can read the file" );
    +            tqWarning( "I can change the file; my group can read the file" );
             if ( fi.permission( TQFileInfo::WriteGroup | TQFileInfo::WriteOther ) )
    -            tqWarning( "The group or others can change the file" );
    +            tqWarning( "The group or others can change the file" );
         

    See also isReadable(), isWritable(), and isExecutable(). diff --git a/doc/html/tqfont.html b/doc/html/tqfont.html index fde1552bf..d1344d9c0 100644 --- a/doc/html/tqfont.html +++ b/doc/html/tqfont.html @@ -129,7 +129,7 @@ actually used are retrievable from a TQFontInfo ob window system provides an exact match exactMatch() returns TRUE. Use TQFontMetrics to get measurements, e.g. the pixel length of a string using TQFontMetrics::width(). -

    Use TQApplication::setFont() to set the application's default font. +

    Use TQApplication::setFont() to set the application's default font.

    If a choosen X11 font does not include all the characters that need to be displayed, TQFont will try to find the characters in the nearest equivalent fonts. When a TQPainter draws a character from a @@ -248,7 +248,7 @@ system, use a TQFontInfo object, e.g. comp.fonts FAQ. Information on encodings can be found from Roman Czyborra's page. -

    See also TQFontMetrics, TQFontInfo, TQFontDatabase, TQApplication::setFont(), TQWidget::font, TQPainter::setFont(), TQFont::StyleHint, TQFont::Weight, Widget Appearance and Style, Graphics Classes, and Implicitly and Explicitly Shared Classes. +

    See also TQFontMetrics, TQFontInfo, TQFontDatabase, TQApplication::setFont(), TQWidget::font, TQPainter::setFont(), TQFont::StyleHint, TQFont::Weight, Widget Appearance and Style, Graphics Classes, and Implicitly and Explicitly Shared Classes.


    Member Type Documentation

    TQFont::Script

    @@ -447,7 +447,7 @@ ultralight, whilst 99 will be an extremely black.

    TQFont::TQFont ()

    Constructs a font object that uses the application's default font. -

    See also TQApplication::setFont() and TQApplication::font(). +

    See also TQApplication::setFont() and TQApplication::font().

    TQFont::TQFont ( const TQString & family, int pointSize = 12, int weight = Normal, bool italic = FALSE )

    @@ -460,7 +460,7 @@ available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the font matching algorithm. -

    See also Weight, setFamily(), setPointSize(), setWeight(), setItalic(), setStyleHint(), and TQApplication::font(). +

    See also Weight, setFamily(), setPointSize(), setWeight(), setItalic(), setStyleHint(), and TQApplication::font().

    TQFont::TQFont ( const TQFont & font )

    @@ -492,7 +492,7 @@ hint.

    TQFont TQFont::defaultFont () [static]

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    Please use TQApplication::font() instead. +

    Please use TQApplication::font() instead.

    bool TQFont::dirty () const [protected]

    @@ -670,7 +670,7 @@ Returns a new TQFont that has attributes copied from other.

    Examples: menu/menu.cpp and themes/metal.cpp.

    void TQFont::setDefaultFont ( const TQFont & f ) [static]

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    Please use TQApplication::setFont() instead. +

    Please use TQApplication::setFont() instead.

    void TQFont::setFamily ( const TQString & family )

    diff --git a/doc/html/tqfontdatabase.html b/doc/html/tqfontdatabase.html index 21b488012..8f1579ed4 100644 --- a/doc/html/tqfontdatabase.html +++ b/doc/html/tqfontdatabase.html @@ -103,18 +103,18 @@ description of a script using scriptSample().

    Example:

    -#include <ntqapplication.h>
    +#include <tqapplication.h>
     #include <tqfontdatabase.h>
     #include <else.h>
     
     int main( int argc, char **argv )
     {
    -    TQApplication app( argc, argv );
    +    TQApplication app( argc, argv );
         TQFontDatabase fdb;
         TQStringList families = fdb.families();
         for ( TQStringList::Iterator f = families.begin(); f != families.end(); ++f ) {
             TQString family = *f;
    -        tqDebug( family );
    +        tqDebug( family );
             TQStringList styles = fdb.styles( family );
             for ( TQStringList::Iterator s = styles.begin(); s != styles.end(); ++s ) {
                 TQString style = *s;
    @@ -125,7 +125,7 @@ int main( int argc, char **argv )
                     dstyle += TQString::number( *points ) + " ";
                 }
                 dstyle = dstyle.left( dstyle.length() - 1 ) + ")";
    -            tqDebug( dstyle );
    +            tqDebug( dstyle );
             }
         }
         return 0;
    diff --git a/doc/html/tqglcolormap.html b/doc/html/tqglcolormap.html
    index e0046648b..86ebe77de 100644
    --- a/doc/html/tqglcolormap.html
    +++ b/doc/html/tqglcolormap.html
    @@ -78,12 +78,12 @@ in child widgets.
         Classes).
     

    Example of use:

    -    #include <ntqapplication.h>
    +    #include <tqapplication.h>
         #include <tqglcolormap.h>
     
         int main()
         {
    -        TQApplication a( argc, argv );
    +        TQApplication a( argc, argv );
     
             MySuperGLWidget widget( 0 ); // A TQGLWidget in color-index mode
             TQGLColormap colormap;
    @@ -95,7 +95,7 @@ in child widgets.
     
             widget.setColormap( colormap );
             widget.show();
    -        return a.exec();
    +        return a.exec();
         }
         
    diff --git a/doc/html/tqglformat.html b/doc/html/tqglformat.html index c8b59c49d..f2c6a9c61 100644 --- a/doc/html/tqglformat.html +++ b/doc/html/tqglformat.html @@ -130,7 +130,7 @@ requested features the system was able to provide: if ( !w->format().stereo() ) { // ok, goggles off if ( !w->format().hasOverlay() ) { - tqFatal( "Cool hardware required" ); + tqFatal( "Cool hardware required" ); } }
    @@ -171,9 +171,9 @@ in classes derived from TQGLWidget, for example: : TQGLWidget( TQGLFormat( StencilBuffer | AlphaChannel ), parent, name ) { if ( !format().stencil() ) - tqWarning( "Could not get stencil buffer; results will be suboptimal" ); + tqWarning( "Could not get stencil buffer; results will be suboptimal" ); if ( !format().alphaChannel() ) - tqWarning( "Could not get alpha channel; results will be suboptimal" ); + tqWarning( "Could not get alpha channel; results will be suboptimal" ); ... }
    @@ -255,7 +255,7 @@ FALSE. Double buffering is enabled by default.

    Returns TRUE if the window system has any OpenGL support; otherwise returns FALSE. -

    Warning: This function must not be called until the TQApplication +

    Warning: This function must not be called until the TQApplication object has been created.

    bool TQGLFormat::hasOpenGLOverlays () [static] @@ -263,7 +263,7 @@ object has been created.

    Returns TRUE if the window system supports OpenGL overlays; otherwise returns FALSE. -

    Warning: This function must not be called until the TQApplication +

    Warning: This function must not be called until the TQApplication object has been created.

    bool TQGLFormat::hasOverlay () const @@ -312,7 +312,7 @@ Sets a new default TQGLFormat for the application to f. For example, to set single buffering as the default instead of double buffering, your main() might contain code like this:
    -    TQApplication a(argc, argv);
    +    TQApplication a(argc, argv);
         TQGLFormat f;
         f.setDoubleBuffer( FALSE );
         TQGLFormat::setDefaultFormat( f );
    diff --git a/doc/html/tqglobal-h.html b/doc/html/tqglobal-h.html
    index fe52090e8..a6dade0be 100644
    --- a/doc/html/tqglobal-h.html
    +++ b/doc/html/tqglobal-h.html
    @@ -768,17 +768,17 @@ class TQDataStream;
     
     #if !defined(QT_MOC)
     #if defined(TQCONFIG_LOCAL)
    -#include "qconfig-local.h"
    +#include "tqconfig-local.h"
     #elif defined(TQCONFIG_MINIMAL)
    -#include "qconfig-minimal.h"
    +#include "tqconfig-minimal.h"
     #elif defined(TQCONFIG_SMALL)
    -#include "qconfig-small.h"
    +#include "tqconfig-small.h"
     #elif defined(TQCONFIG_MEDIUM)
    -#include "qconfig-medium.h"
    +#include "tqconfig-medium.h"
     #elif defined(TQCONFIG_LARGE)
    -#include "qconfig-large.h"
    +#include "tqconfig-large.h"
     #else // everything...
    -#include "ntqconfig.h"
    +#include "tqconfig.h"
     #endif
     #endif
     
    @@ -788,7 +788,7 @@ class TQDataStream;
     #endif
     
     // prune to local config
    -#include "ntqmodules.h"
    +#include "tqmodules.h"
     #ifndef TQT_MODULE_DIALOGS
     # define TQT_NO_DIALOG
     #endif
    diff --git a/doc/html/tqguardedptr.html b/doc/html/tqguardedptr.html
    index 410265727..992cd31ae 100644
    --- a/doc/html/tqguardedptr.html
    +++ b/doc/html/tqguardedptr.html
    @@ -74,7 +74,7 @@ test the pointer for validity.
             if ( label)
                 label->show();
             else
    -            tqDebug("The label has been destroyed");
    +            tqDebug("The label has been destroyed");
         

    The program will output The label has been destroyed rather diff --git a/doc/html/tqintcache.html b/doc/html/tqintcache.html index e6d6a71e1..a72ef3ee4 100644 --- a/doc/html/tqintcache.html +++ b/doc/html/tqintcache.html @@ -206,7 +206,7 @@ This should be a bit larger than count() is likely to be.

    A debug-only utility function. Prints out cache usage, hit/miss, -and distribution information using tqDebug(). This function does +and distribution information using tqDebug(). This function does nothing in the release library.

    type * TQIntCache::take ( long k ) diff --git a/doc/html/tqintdict.html b/doc/html/tqintdict.html index 4ae68ebfa..d25f1a99f 100644 --- a/doc/html/tqintdict.html +++ b/doc/html/tqintdict.html @@ -276,7 +276,7 @@ constructor).

    Debugging-only function that prints out the dictionary -distribution using tqDebug(). +distribution using tqDebug().

    type * TQIntDict::take ( long key )

    diff --git a/doc/html/tqlistboxitem.html b/doc/html/tqlistboxitem.html index 8790d486d..94cc06b35 100644 --- a/doc/html/tqlistboxitem.html +++ b/doc/html/tqlistboxitem.html @@ -96,7 +96,7 @@ Destroys the list box item.

    Implement this function to return the height of your item. The lb parameter is the same as listBox() and is provided for convenience and compatibility.

    The default implementation returns -TQApplication::globalStrut()'s height. +TQApplication::globalStrut()'s height.

    See also paint() and width().

    Reimplemented in TQListBoxText and TQListBoxPixmap. @@ -199,7 +199,7 @@ Returns the text of the item. This text is also used for sorting.

    Reimplement this function to return the width of your item. The lb parameter is the same as listBox() and is provided for convenience and compatibility.

    The default implementation returns -TQApplication::globalStrut()'s width. +TQApplication::globalStrut()'s width.

    See also paint() and height().

    Reimplemented in TQListBoxText and TQListBoxPixmap. diff --git a/doc/html/tqmap.html b/doc/html/tqmap.html index a47aff444..4c296c9a1 100644 --- a/doc/html/tqmap.html +++ b/doc/html/tqmap.html @@ -162,7 +162,7 @@ the STL-like functions if preferred. int main(int argc, char **argv) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); typedef TQMap<TQString, Employee> EmployeeMap; EmployeeMap map; diff --git a/doc/html/tqmemarray.html b/doc/html/tqmemarray.html index d49fea400..6ee45bdb2 100644 --- a/doc/html/tqmemarray.html +++ b/doc/html/tqmemarray.html @@ -121,7 +121,7 @@ constructor). TQValueVector provides an STL-compatible syntax and is TQMemArray<int> fib( int num ) // returns fibonacci array { - Q_ASSERT( num > 2 ); + Q_ASSERT( num > 2 ); TQMemArray<int> f( num ); // array of ints f[0] = f[1] = 1; @@ -135,10 +135,10 @@ constructor). TQValueVector provides an STL-compatible syntax and is { TQMemArray<int> a = fib( 6 ); // get first 6 fibonaccis for ( int i = 0; i < a.size(); i++ ) - tqDebug( "%d: %d", i, a[i] ); + tqDebug( "%d: %d", i, a[i] ); - tqDebug( "1 is found %d times", a.contains(1) ); - tqDebug( "5 is found at index %d", a.find(5) ); + tqDebug( "1 is found %d times", a.contains(1) ); + tqDebug( "5 is found at index %d", a.find(5) ); return 0; } diff --git a/doc/html/tqmenubar.html b/doc/html/tqmenubar.html index 12c8b38d5..2f92f5c2b 100644 --- a/doc/html/tqmenubar.html +++ b/doc/html/tqmenubar.html @@ -170,7 +170,7 @@ the Application Menu quit or exit Application Menu | Quit If this entry is not found a default Quit item will be -created to call TQApplication::quit() +created to call TQApplication::quit()

    menu/menu.cpp is an example of TQMenuBar and TQPopupMenu use. diff --git a/doc/html/tqmessagebox-h.html b/doc/html/tqmessagebox-h.html index f43f4d114..da5b08063 100644 --- a/doc/html/tqmessagebox-h.html +++ b/doc/html/tqmessagebox-h.html @@ -235,7 +235,7 @@ private: // Disabled copy constructor and operator= /* * Macro to be used at the beginning of main(), e.g. * -* #include <ntqapplication.h> +* #include <tqapplication.h> * #include <tqmessagebox.h> * int main( int argc, char**argv ) * { diff --git a/doc/html/tqmessagebox.html b/doc/html/tqmessagebox.html index 33fe75b23..77f834b7c 100644 --- a/doc/html/tqmessagebox.html +++ b/doc/html/tqmessagebox.html @@ -389,11 +389,11 @@ Displays a simple about box with caption caption and text text

    1. It prefers parent->icon() if that exists.
    2. If not, it tries the top-level widget containing parent. -
    3. If that fails, it tries the main widget. +
    4. If that fails, it tries the main widget.
    5. As a last resort it uses the Information icon.

    The about box has a single button labelled "OK". -

    See also TQWidget::icon and TQApplication::mainWidget(). +

    See also TQWidget::icon and TQApplication::mainWidget().

    Examples: action/application.cpp, application/application.cpp, chart/chartform.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, menu/menu.cpp, and themes/themes.cpp.

    void TQMessageBox::aboutTQt ( TQWidget * parent, const TQString & caption = TQString::null ) [static] @@ -403,8 +403,8 @@ and centered over parent (if parent is not 0). The message includes the version number of TQt being used by the application.

    This is useful for inclusion in the Help menu of an application. See the examples/menu/menu.cpp example. -

    TQApplication provides this functionality as a slot. -

    See also TQApplication::aboutTQt(). +

    TQApplication provides this functionality as a slot. +

    See also TQApplication::aboutTQt().

    Examples: action/application.cpp, application/application.cpp, chart/chartform.cpp, helpviewer/helpwindow.cpp, menu/menu.cpp and themes/themes.cpp.

    void TQMessageBox::adjustSize () [virtual] diff --git a/doc/html/tqmotifstyle.html b/doc/html/tqmotifstyle.html index 9572485a8..eb3dd93f3 100644 --- a/doc/html/tqmotifstyle.html +++ b/doc/html/tqmotifstyle.html @@ -68,7 +68,7 @@ If arg is FALSE, the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.

    The effect will show up the next time an application palette is -set via TQApplication::setPalette(). The current color palette of +set via TQApplication::setPalette(). The current color palette of the application remains unchanged.

    See also TQStyle::polish(). diff --git a/doc/html/tqnamespace-h.html b/doc/html/tqnamespace-h.html index 284f58728..c19218310 100644 --- a/doc/html/tqnamespace-h.html +++ b/doc/html/tqnamespace-h.html @@ -737,7 +737,7 @@ public: CustomPattern=24 }; - // documented in qapplication_mac.cpp + // documented in tqapplication_mac.cpp enum MacintoshVersion { //Unknown MV_Unknown = 0x0000, @@ -758,7 +758,7 @@ public: MV_TIGER = MV_10_DOT_4 }; - // documented in qapplication_win.cpp + // documented in tqapplication_win.cpp enum WindowsVersion { WV_32s = 0x0001, WV_95 = 0x0002, @@ -928,7 +928,7 @@ public: }; // "handle" type for system objects. Documented as \internal in - // qapplication.cpp + // tqapplication.cpp #if defined(TQ_WS_MAC) typedef void * HANDLE; #elif defined(TQ_WS_WIN) diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html index d1098dbc3..85cb488d0 100644 --- a/doc/html/tqobject.html +++ b/doc/html/tqobject.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; }

    All the functions in this class are reentrant when TQt is built with thread support.

    #include <tqobject.h>

    Inherits TQt. --

    Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQNetworkOperation, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator. +-

    Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQNetworkOperation, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator.

    List of all member functions.

    Public Members

      @@ -231,7 +231,7 @@ child events.

      Child events are sent to objects when children are inserted or removed.

      Note that events with TQEvent::type() TQEvent::ChildInserted are -posted (with TQApplication::postEvent()) to make sure that the +posted (with TQApplication::postEvent()) to make sure that the child's construction is completed before this function is called.

      If a child is removed immediately after it is inserted, the ChildInserted event may be suppressed, but the ChildRemoved event will always be sent. In such cases it is possible that there @@ -239,7 +239,7 @@ will be a ChildRemoved event without a corresponding ChildInserted<

      If you change state based on ChildInserted events, call TQWidget::constPolish(), or do

      -        TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
      +        TQApplication::sendPostedEvents( this, TQEvent::ChildInserted );
           
      in functions that depend on the state. One notable example is @@ -484,7 +484,7 @@ This virtual function receives events to an object and should return TRUE if the event e was recognized and processed.

      The event() function can be reimplemented to customize the behavior of an object. -

      See also installEventFilter(), timerEvent(), TQApplication::sendEvent(), TQApplication::postEvent(), and TQWidget::event(). +

      See also installEventFilter(), timerEvent(), TQApplication::sendEvent(), TQApplication::postEvent(), and TQWidget::event().

      Reimplemented in TQWidget.

      bool TQObject::eventFilter ( TQObject * watched, TQEvent * e ) [virtual] @@ -521,7 +521,7 @@ TRUE; otherwise return FALSE. if ( obj == textEdit ) { if ( e->type() == TQEvent::KeyPress ) { TQKeyEvent *k = (TQKeyEvent*)ev; - tqDebug( "Ate key press %d", k->key() ); + tqDebug( "Ate key press %d", k->key() ); return TRUE; } else { return FALSE; @@ -615,7 +615,7 @@ monitored objects: if ( e->type() == TQEvent::KeyPress ) { // special processing for key press TQKeyEvent *k = (TQKeyEvent *)e; - tqDebug( "Ate key press %d", k->key() ); + tqDebug( "Ate key press %d", k->key() ); return TRUE; // eat event } else { // standard event processing @@ -856,7 +856,7 @@ used to find out which timer was activated. void MyObject::timerEvent( TQTimerEvent *e ) { - tqDebug( "timer event, id %d", e->timerId() ); + tqDebug( "timer event, id %d", e->timerId() ); } @@ -891,7 +891,7 @@ context. installed before calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior. -

      See also trUtf8(), TQApplication::translate(), and Internationalization with TQt. +

      See also trUtf8(), TQApplication::translate(), and Internationalization with TQt.

      Example: network/networkprotocol/view.cpp.

      TQString TQObject::trUtf8 ( const char * sourceText, const char * comment ) [static] @@ -905,7 +905,7 @@ version. It is otherwise identical to tr(sourceText, installed before calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior. -

      See also tr() and TQApplication::translate(). +

      See also tr() and TQApplication::translate().


      Property Documentation

      TQCString name

      @@ -917,11 +917,11 @@ function. The object name is not very useful in the current version of TQt, but will become increasingly important in the future.

      If the object does not have a name, the name() function returns -"unnamed", so printf() (used in tqDebug()) will not be asked to +"unnamed", so printf() (used in tqDebug()) will not be asked to output a null pointer. If you want a null pointer to be returned for unnamed objects, you can call name( 0 ).

      -        tqDebug( "MyClass::setPrecision(): (%s) invalid precision %f",
      +        tqDebug( "MyClass::setPrecision(): (%s) invalid precision %f",
                       name(), newPrecision );
           
      diff --git a/doc/html/tqpaintdevice.html b/doc/html/tqpaintdevice.html index 446469e17..206d51f92 100644 --- a/doc/html/tqpaintdevice.html +++ b/doc/html/tqpaintdevice.html @@ -126,7 +126,7 @@ is implemented as the global function bitBlt(). bitBlt( myWidget, 10, 0, myWidget ); -

      Warning: TQt requires that a TQApplication object exists before +

      Warning: TQt requires that a TQApplication object exists before any paint devices can be created. Paint devices access window system resources, and these resources are not initialized before an application object is created. diff --git a/doc/html/tqpainter.html b/doc/html/tqpainter.html index 3d5cf510d..bf08f62b4 100644 --- a/doc/html/tqpainter.html +++ b/doc/html/tqpainter.html @@ -898,13 +898,13 @@ Draws a Windows focus rectangle with upper left corner at (x, y) and with width w and height h using a pen color that contrasts with bgColor.

      This function draws a stippled rectangle (XOR is not used) that is -used to indicate keyboard focus (when the TQApplication::style() is +used to indicate keyboard focus (when the TQApplication::style() is WindowStyle).

      The pen color used to draw the rectangle is either white or black depending on the color of bgColor (see TQColor::gray()).

      Warning: This function draws nothing if the coordinate system has been rotated or sheared. -

      See also drawRect() and TQApplication::style(). +

      See also drawRect() and TQApplication::style().

      void TQPainter::drawWinFocusRect ( int x, int y, int w, int h )

      @@ -912,10 +912,10 @@ This is an overloaded member function, provided for convenience. It behaves esse

      Draws a Windows focus rectangle with upper left corner at (x, y) and with width w and height h.

      This function draws a stippled XOR rectangle that is used to -indicate keyboard focus (when TQApplication::style() is WindowStyle). +indicate keyboard focus (when TQApplication::style() is WindowStyle).

      Warning: This function draws nothing if the coordinate system has been rotated or sheared. -

      See also drawRect() and TQApplication::style(). +

      See also drawRect() and TQApplication::style().

      void TQPainter::drawWinFocusRect ( const TQRect & r )

      @@ -1518,7 +1518,7 @@ using the painter p.

      If you want to use a TQFrame widget instead, you can make it display a plain rectangle, for example TQFrame::setFrameStyle( TQFrame::Box | TQFrame::Plain ).

      Warning: This function does not look at TQWidget::style() or -TQApplication::style(). Use the drawing functions in TQStyle to make +TQApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.

      See also qDrawShadeRect() and TQStyle::drawPrimitive(). @@ -1539,7 +1539,7 @@ drawn in the TQColorGroup::mid() color.

      If you want to use a TQFrame widget instead, you can make it display a shaded line, for example TQFrame::setFrameStyle( TQFrame::HLine | TQFrame::Sunken ).

      Warning: This function does not look at TQWidget::style() or -TQApplication::style(). Use the drawing functions in TQStyle to make +TQApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.

      See also qDrawShadeRect(), qDrawShadePanel(), and TQStyle::drawPrimitive(). @@ -1556,7 +1556,7 @@ the painter p.

      If you want to use a TQFrame widget instead, you can make it display a shaded panel, for example TQFrame::setFrameStyle( TQFrame::Panel | TQFrame::Sunken ).

      Warning: This function does not look at TQWidget::style() or -TQApplication::style(). Use the drawing functions in TQStyle to make +TQApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.

      See also qDrawWinPanel(), qDrawShadeLine(), qDrawShadeRect(), and TQStyle::drawPrimitive(). @@ -1577,7 +1577,7 @@ drawn in the TQColorGroup::mid() color.

      If you want to use a TQFrame widget instead, you can make it display a shaded rectangle, for example TQFrame::setFrameStyle( TQFrame::Box | TQFrame::Raised ).

      Warning: This function does not look at TQWidget::style() or -TQApplication::style(). Use the drawing functions in TQStyle to make +TQApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.

      See also qDrawShadeLine(), qDrawShadePanel(), qDrawPlainRect(), TQStyle::drawItem(), TQStyle::drawControl(), and TQStyle::drawComplexControl(). @@ -1591,7 +1591,7 @@ widgets that follow the current GUI style.

      The line width is 2 pixels.

      The button's interior is filled with the *fill brush unless fill is 0.

      Warning: This function does not look at TQWidget::style() or -TQApplication::style(). Use the drawing functions in TQStyle to make +TQApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.

      See also qDrawWinPanel() and TQStyle::drawControl(). @@ -1607,7 +1607,7 @@ widgets that follow the current GUI style.

      If you want to use a TQFrame widget instead, you can make it display a shaded panel, for example TQFrame::setFrameStyle( TQFrame::WinPanel | TQFrame::Raised ).

      Warning: This function does not look at TQWidget::style() or -TQApplication::style(). Use the drawing functions in TQStyle to make +TQApplication::style(). Use the drawing functions in TQStyle to make widgets that follow the current GUI style.

      See also qDrawShadePanel(), qDrawWinButton(), and TQStyle::drawPrimitive(). diff --git a/doc/html/tqpalette.html b/doc/html/tqpalette.html index 1a6b7d64c..37265b295 100644 --- a/doc/html/tqpalette.html +++ b/doc/html/tqpalette.html @@ -100,7 +100,7 @@ to modify the palette. palette's color groups with setColor() and setBrush().

      You can copy a palette using the copy constructor and test to see if two palettes are identical using isCopyOf(). -

      See also TQApplication::setPalette(), TQWidget::palette, TQColorGroup, TQColor, Widget Appearance and Style, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. +

      See also TQApplication::setPalette(), TQWidget::palette, TQColorGroup, TQColor, Widget Appearance and Style, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes.


      Member Type Documentation

      TQPalette::ColorGroup

      diff --git a/doc/html/tqprogressdialog.html b/doc/html/tqprogressdialog.html index 5bfb7e7b4..54125a361 100644 --- a/doc/html/tqprogressdialog.html +++ b/doc/html/tqprogressdialog.html @@ -115,7 +115,7 @@ operation. Use setAutoReset() and TQApplication::processEvents() or +must call TQApplication::processEvents() or TQEventLoop::processEvents(ExcludeUserInput) to keep the event loop running to ensure that the application doesn't freeze. Do the operation in a loop, call setProgress() at intervals, and check @@ -125,7 +125,7 @@ TQProgressDialog progress( "Copying files...", "Abort Copy", numFiles, this, "progress", TRUE ); for ( int i = 0; i < numFiles; i++ ) { progress.setProgress( i ); - tqApp->processEvents(); + tqApp->processEvents(); if ( progress.wasCanceled() ) break; @@ -373,7 +373,7 @@ this property to 0 and finally set it to in-between.

      Warning: If the progress dialog is modal (see TQProgressDialog::TQProgressDialog()), -this function calls TQApplication::processEvents(), so take care that +this function calls TQApplication::processEvents(), so take care that this does not cause undesirable re-entrancy in your code. For example, don't use a TQProgressDialog inside a paintEvent()!

      See also totalSteps. diff --git a/doc/html/tqptrdict.html b/doc/html/tqptrdict.html index 8b6ca6d7d..a2dbd76c4 100644 --- a/doc/html/tqptrdict.html +++ b/doc/html/tqptrdict.html @@ -280,7 +280,7 @@ constructor).

      Debugging-only function that prints out the dictionary -distribution using tqDebug(). +distribution using tqDebug().

      type * TQPtrDict::take ( void * key )

      diff --git a/doc/html/tqsessionmanager.html b/doc/html/tqsessionmanager.html index eb8ab42d5..d918c5f2f 100644 --- a/doc/html/tqsessionmanager.html +++ b/doc/html/tqsessionmanager.html @@ -74,8 +74,8 @@ etc.

      TQSessionManager provides an interface between the application and the session manager so that the program can work well with the session manager. In TQt, session management requests for action -are handled by the two virtual functions TQApplication::commitData() -and TQApplication::saveState(). Both provide a reference to +are handled by the two virtual functions TQApplication::commitData() +and TQApplication::saveState(). Both provide a reference to a session manager object as argument, to allow the application to communicate with the session manager.

      During a session management action (i.e. within commitData() and @@ -141,7 +141,7 @@ released when the application exits.)

      If the user decides to cancel the shutdown process during the interaction phase, you must tell the session manager that this has happened by calling cancel(). -

      Here's an example of how an application's TQApplication::commitData() +

      Here's an example of how an application's TQApplication::commitData() might be implemented:

       void MyApplication::commitData( TQSessionManager& sm ) {
      @@ -173,7 +173,7 @@ void MyApplication::commitData( TQSessionManager& sm ) {
        
       

      If an error occurred within the application while saving its data, you may want to try allowsErrorInteraction() instead. -

      See also TQApplication::commitData(), release(), and cancel(). +

      See also TQApplication::commitData(), release(), and cancel().

      void TQSessionManager::cancel ()

      @@ -224,7 +224,7 @@ interaction phase.

      Requests a second session management phase for the application. The application may then return immediately from the -TQApplication::commitData() or TQApplication::saveState() function, +TQApplication::commitData() or TQApplication::saveState() function, and they will be called again once most or all other applications have finished their session management.

      The two phases are useful for applications such as the X11 window manager @@ -266,7 +266,7 @@ iterate over a copy, e.g.

      Returns the identifier of the current session.

      If the application has been restored from an earlier session, this identifier is the same as it was in that earlier session. -

      See also sessionKey() and TQApplication::sessionId(). +

      See also sessionKey() and TQApplication::sessionId().

      TQString TQSessionManager::sessionKey () const

      @@ -276,7 +276,7 @@ identifier is the same as it was in that earlier session. key is the same as it was when the previous session ended.

      The session key changes with every call of commitData() or saveState(). -

      See also sessionId() and TQApplication::sessionKey(). +

      See also sessionId() and TQApplication::sessionKey().

      void TQSessionManager::setDiscardCommand ( const TQStringList & )

      @@ -307,10 +307,10 @@ defaults to appname -session id
      -

      The -session option is mandatory; otherwise TQApplication cannot +

      The -session option is mandatory; otherwise TQApplication cannot tell whether it has been restored or what the current session -identifier is. See TQApplication::isSessionRestored() and -TQApplication::sessionId() for details. +identifier is. See TQApplication::isSessionRestored() and +TQApplication::sessionId() for details.

      If your application is very simple, it may be possible to store the entire application state in additional command line options. This is usually a very bad idea because command lines are often limited @@ -327,7 +327,7 @@ session. startup the hint is set to RestartIfRunning.

      Note that these flags are only hints, a session manager may or may not respect them. -

      We recommend setting the restart hint in TQApplication::saveState() +

      We recommend setting the restart hint in TQApplication::saveState() because most session managers perform a checkpoint shortly after an application's startup.

      See also restartHint(). diff --git a/doc/html/tqsjiscodec.html b/doc/html/tqsjiscodec.html index cda95a225..dfd167e6c 100644 --- a/doc/html/tqsjiscodec.html +++ b/doc/html/tqsjiscodec.html @@ -88,7 +88,7 @@ SUCH DAMAGE.

      TQSjisCodec::TQSjisCodec ()

      Creates a Shift-JIS codec. Note that this is done automatically by -the TQApplication, you do not need construct your own. +the TQApplication, you do not need construct your own.

      TQSjisCodec::~TQSjisCodec ()

      diff --git a/doc/html/tqsocket.html b/doc/html/tqsocket.html index 18cf443d9..a981d31fe 100644 --- a/doc/html/tqsocket.html +++ b/doc/html/tqsocket.html @@ -93,7 +93,7 @@ The TQSocket class provides a buffered TCP connection.

      It provides a totally non-blocking TQIODevice, and modifies and extends the API of TQIODevice with socket-specific code. -

      Note that a TQApplication must have been constructed before this +

      Note that a TQApplication must have been constructed before this class can be used.

      The functions you're likely to call most are connectToHost(), bytesAvailable(), canReadLine() and the ones it inherits from @@ -163,7 +163,7 @@ using TQSocketDevice instead. Creates a TQSocket object in TQSocket::Idle state.

      The parent and name arguments are passed on to the TQObject constructor. -

      Note that a TQApplication must have been constructed before sockets +

      Note that a TQApplication must have been constructed before sockets can be used.

      TQSocket::~TQSocket () [virtual] diff --git a/doc/html/tqsocketnotifier.html b/doc/html/tqsocketnotifier.html index 9452196ff..2db360748 100644 --- a/doc/html/tqsocketnotifier.html +++ b/doc/html/tqsocketnotifier.html @@ -96,7 +96,7 @@ block" error has occurred) is undefined. Depending on the operating system, it may fire on every pass of the event loop or not at all.

      If you need a time-out for your sockets you can use either timer events or the TQTimer class. -

      Socket action is detected in the main +

      Socket action is detected in the main event loop of TQt. The X11 version of TQt has a single UNIX select() call that incorporates all socket notifiers and the X socket. diff --git a/doc/html/tqsplashscreen.html b/doc/html/tqsplashscreen.html index 831fea0a8..138570743 100644 --- a/doc/html/tqsplashscreen.html +++ b/doc/html/tqsplashscreen.html @@ -82,17 +82,17 @@ following code snippet.

          int main( int argc, char **argv )
          {
      -       TQApplication app( argc, argv );
      +       TQApplication app( argc, argv );
              TQPixmap pixmap( "splash.png" );
              TQSplashScreen *splash = new TQSplashScreen( pixmap );
              splash->show();
              TQMainWindow *mainWin = new TQMainWindow;
              ...
      -       app.setMainWidget( mainWin );
      +       app.setMainWidget( mainWin );
              mainWin->show();
              splash->finish( mainWin );
              delete splash;
      -       return app.exec();
      +       return app.exec();
          }
          
      @@ -106,17 +106,17 @@ Alternatively, you can subclass TQSplashScreen and reimplement

      The user can hide the splash screen by clicking on it with the mouse. Since the splash screen is typically displayed before the event loop has started running, it is necessary to periodically -call TQApplication::processEvents() to receive the mouse clicks. +call TQApplication::processEvents() to receive the mouse clicks.

          TQPixmap pixmap( "splash.png" );
          TQSplashScreen *splash = new TQSplashScreen( pixmap );
          splash->show();
          ... // Loading some items
          splash->message( "Loaded modules" );
      -   tqApp->processEvents();
      +   tqApp->processEvents();
          ... // Establishing connections
          splash->message( "Established connections" );
      -   tqApp->processEvents();
      +   tqApp->processEvents();
          

      See also Miscellaneous Classes. @@ -170,7 +170,7 @@ does not have any of the text drawn by message() calls.

      void TQSplashScreen::repaint ()

      This overrides TQWidget::repaint(). It differs from the standard -repaint function in that it also calls TQApplication::flush() to +repaint function in that it also calls TQApplication::flush() to ensure the updates are displayed, even when there is no event loop present. diff --git a/doc/html/tqsqlcursor.html b/doc/html/tqsqlcursor.html index b68079c5f..f88598a43 100644 --- a/doc/html/tqsqlcursor.html +++ b/doc/html/tqsqlcursor.html @@ -126,7 +126,7 @@ and the values returned by value() are undefined.
                  TQSqlCursor cur( "staff" ); // Specify the table/view name
                   cur.select(); // We'll retrieve every record
                   while ( cur.next() ) {
      -                tqDebug( cur.value( "id" ).toString() + ": " +
      +                tqDebug( cur.value( "id" ).toString() + ": " +
                               cur.value( "surname" ).toString() + " " +
                               cur.value( "salary" ).toString() );
                   }
      diff --git a/doc/html/tqsqlquery.html b/doc/html/tqsqlquery.html
      index 58db878b6..ca4e3314f 100644
      --- a/doc/html/tqsqlquery.html
      +++ b/doc/html/tqsqlquery.html
      @@ -323,7 +323,7 @@ Returns a map of the bound values.
           TQMap<TQString, TQVariant>::ConstIterator it;
           TQMap<TQString, TQVariant> vals = query.boundValues();
           for ( it = vals.begin(); it != vals.end(); ++it )
      -        tqWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() );
      +        tqWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() );
           ...
       
           // Examine the bound values - bound using positional binding
      @@ -331,7 +331,7 @@ Returns a map of the bound values.
           TQValueList<TQVariant> list = query.boundValues().values();
           int i = 0;
           for ( it = list.begin(); it != list.end(); ++it )
      -        tqWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ );
      +        tqWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ );
           ...
       
           
      diff --git a/doc/html/tqstring.html b/doc/html/tqstring.html index 78bb1c9fb..054176257 100644 --- a/doc/html/tqstring.html +++ b/doc/html/tqstring.html @@ -466,7 +466,7 @@ natural language sentences does not usually translate well into other languages because sentence structure and word order often differ between languages.

      If there is no place marker (%1, %2, etc.), a warning -message (tqWarning()) is output and the result is undefined. +message (tqWarning()) is output and the result is undefined.

      Warning: If any placeholder occurs more than once, the result is undefined.

      TQString TQString::arg ( long a, int fieldWidth = 0, int base = 10 ) const diff --git a/doc/html/tqstyle.html b/doc/html/tqstyle.html index 4dd3ab7c5..be1169606 100644 --- a/doc/html/tqstyle.html +++ b/doc/html/tqstyle.html @@ -1016,10 +1016,10 @@ expected to work reasonably with all current and future widgets.

      See also unPolish(). -

      void TQStyle::polish ( TQApplication * ) [virtual] +

      void TQStyle::polish ( TQApplication * ) [virtual]

      This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

      Late initialization of the TQApplication object. +

      Late initialization of the TQApplication object.

      See also unPolish().

      void TQStyle::polish ( TQPalette & ) [virtual] @@ -1028,7 +1028,7 @@ This is an overloaded member function, provided for convenience. It behaves esse

      The style may have certain requirements for color palettes. In this function it has the chance to change the palette according to these requirements. -

      See also TQPalette and TQApplication::setPalette(). +

      See also TQPalette and TQApplication::setPalette().

      void TQStyle::polishPopupMenu ( TQPopupMenu * ) [pure virtual]

      @@ -1183,7 +1183,7 @@ style has to unpolish its settings before the new style can polish them again.

      See also polish(). -

      void TQStyle::unPolish ( TQApplication * ) [virtual] +

      void TQStyle::unPolish ( TQApplication * ) [virtual]

      This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

      Undoes the application polish. @@ -1196,7 +1196,7 @@ This is an overloaded member function, provided for convenience. It behaves esse rect for widget w is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode. -

      See also TQApplication::reverseLayout(). +

      See also TQApplication::reverseLayout().

      TQRect TQStyle::visualRect ( const TQRect & logical, const TQRect & bounding ) [static]

      @@ -1204,7 +1204,7 @@ This is an overloaded member function, provided for convenience. It behaves esse

      Returns the rect logical in screen coordinates. The rect bounding is used to perform the translation. This function is provided to aid style implementors in supporting right-to-left mode. -

      See also TQApplication::reverseLayout(). +

      See also TQApplication::reverseLayout().


      diff --git a/doc/html/tqtextcodec.html b/doc/html/tqtextcodec.html index f196de136..6d9eb5afb 100644 --- a/doc/html/tqtextcodec.html +++ b/doc/html/tqtextcodec.html @@ -359,7 +359,7 @@ function returns 0 (the default), tr() assumes Latin-1. Deletes all the created codecs.

      Warning: Do not call this function. -

      TQApplication calls this function just before exiting to delete +

      TQApplication calls this function just before exiting to delete any TQTextCodec objects that may be lying around. Since various other classes hold pointers to TQTextCodec objects, it is not safe to call this function earlier. @@ -538,7 +538,7 @@ main() function might look like this:

           int main(int argc, char** argv)
           {
      -        TQApplication app(argc, argv);
      +        TQApplication app(argc, argv);
               ... install any additional codecs ...
               TQTextCodec::setCodecForTr( TQTextCodec::codecForName("eucKR") );
               ...
      diff --git a/doc/html/tqthread.html b/doc/html/tqthread.html
      index e521e69f5..8858f4aaa 100644
      --- a/doc/html/tqthread.html
      +++ b/doc/html/tqthread.html
      @@ -88,7 +88,7 @@ run() to include your code. For example:
           {
               for( int count = 0; count < 20; count++ ) {
                   sleep( 1 );
      -            tqDebug( "Ping!" );
      +            tqDebug( "Ping!" );
               }
           }
       
      diff --git a/doc/html/tqthreadstorage.html b/doc/html/tqthreadstorage.html
      index 984207711..3ab7fdd98 100644
      --- a/doc/html/tqthreadstorage.html
      +++ b/doc/html/tqthreadstorage.html
      @@ -106,7 +106,7 @@ used to exit or terminate a TQThread using TQThreadStorage. Doing so
       will cause all per-thread data to be leaked. See TQThread::exit()
       and TQThread::terminate().
       

    • TQThreadStorage can be used to store data for the main() -thread after TQApplication has been constructed. TQThreadStorage +thread after TQApplication has been constructed. TQThreadStorage deletes all data set for the main() thread when TQApplication is destroyed, regardless of whether or not the main() thread has actually finished. diff --git a/doc/html/tqtime.html b/doc/html/tqtime.html index d265b4ae9..3e1159a19 100644 --- a/doc/html/tqtime.html +++ b/doc/html/tqtime.html @@ -315,7 +315,7 @@ Sets this time to the current time. This is practical for timing: TQTime t; t.start(); some_lengthy_task(); - tqDebug( "Time elapsed: %d ms", t.elapsed() ); + tqDebug( "Time elapsed: %d ms", t.elapsed() );
    • See also restart(), elapsed(), and currentTime(). diff --git a/doc/html/tqtimer.html b/doc/html/tqtimer.html index e8b8029b8..3e1a5f786 100644 --- a/doc/html/tqtimer.html +++ b/doc/html/tqtimer.html @@ -140,15 +140,15 @@ to bother with a timerEvent or to create a local TQTimer object.

      Example:

      -        #include <ntqapplication.h>
      +        #include <tqapplication.h>
               #include <tqtimer.h>
       
               int main( int argc, char **argv )
               {
      -            TQApplication a( argc, argv );
      -            TQTimer::singleShot( 10*60*1000, &a, TQ_SLOT(quit()) );
      +            TQApplication a( argc, argv );
      +            TQTimer::singleShot( 10*60*1000, &a, TQ_SLOT(quit()) );
                       ... // create and show your widgets
      -            return a.exec();
      +            return a.exec();
               }
           
      diff --git a/doc/html/tqtranslator.html b/doc/html/tqtranslator.html index 28fedbab6..1a3f06ce7 100644 --- a/doc/html/tqtranslator.html +++ b/doc/html/tqtranslator.html @@ -72,22 +72,22 @@ look up translations, add new ones, remove them, load and save them, etc.

      The most common use of TQTranslator is to: load a translator file created with TQt Linguist, -install it using TQApplication::installTranslator(), and use it via +install it using TQApplication::installTranslator(), and use it via TQObject::tr(). For example:

           int main( int argc, char ** argv )
           {
      -        TQApplication app( argc, argv );
      +        TQApplication app( argc, argv );
       
               TQTranslator translator( 0 );
               translator.load( "french.qm", "." );
      -        app.installTranslator( &translator );
      +        app.installTranslator( &translator );
       
               MyWidget m;
      -        app.setMainWidget( &m );
      +        app.setMainWidget( &m );
               m.show();
       
      -        return app.exec();
      +        return app.exec();
           }
           
      @@ -99,7 +99,7 @@ applications that work on translator files.

      We call a translation a "messsage". For this reason, translation files are sometimes referred to as "message files".

      It is possible to lookup a translation using findMessage() (as -tr() and TQApplication::translate() do) and contains(), to insert a +tr() and TQApplication::translate() do) and contains(), to insert a new translation messsage using insert(), and to remove one using remove().

      Translation tools often need more information than the bare source @@ -147,7 +147,7 @@ translations.

      Note that when TQTranslator loads a stripped file, most functions do not work. The functions that do work with stripped files are explicitly documented as such. -

      See also TQTranslatorMessage, TQApplication::installTranslator(), TQApplication::removeTranslator(), TQObject::tr(), TQApplication::translate(), Environment Classes, and Internationalization with TQt. +

      See also TQTranslatorMessage, TQApplication::installTranslator(), TQApplication::removeTranslator(), TQObject::tr(), TQApplication::translate(), Environment Classes, and Internationalization with TQt.


      Member Type Documentation

      TQTranslator::SaveMode

      diff --git a/doc/html/tqvariant.html b/doc/html/tqvariant.html index 2c15249d7..96ec899c7 100644 --- a/doc/html/tqvariant.html +++ b/doc/html/tqvariant.html @@ -214,7 +214,7 @@ return a reference to the new contents of the variant. TQDataStream in(...); // (opening the previously written stream) in >> v; // Reads an Int variant int z = v.toInt(); // z = 123 - tqDebug("Type is %s", // prints "Type is int" + tqDebug("Type is %s", // prints "Type is int" v.typeName()); v.asInt() += 100; // The variant now hold the value 223. v = TQVariant( TQStringList() ); diff --git a/doc/html/tqwidget.html b/doc/html/tqwidget.html index efebd7515..0fe84bb54 100644 --- a/doc/html/tqwidget.html +++ b/doc/html/tqwidget.html @@ -807,7 +807,7 @@ Takes keyboard input focus from the widget. to lose the focus.

      This widget must enable focus setting in order to get the keyboard input focus, i.e. it must call setFocusPolicy(). -

      See also focus, setFocus(), focusInEvent(), focusOutEvent(), focusPolicy, and TQApplication::focusWidget(). +

      See also focus, setFocus(), focusInEvent(), focusOutEvent(), focusPolicy, and TQApplication::focusWidget().

      void TQWidget::clearMask ()

      @@ -836,7 +836,7 @@ general you do not need to call it. otherwise returns FALSE.

      First it sends the widget a TQCloseEvent. The widget is hidden if it accepts the close event. The default implementation of TQWidget::closeEvent() accepts the close event. -

      The TQApplication::lastWindowClosed() signal is emitted when the +

      The TQApplication::lastWindowClosed() signal is emitted when the last visible top level widget is closed.

      Examples: mdi/application.cpp, popup/popup.cpp, and toplevel/options.ui.h. @@ -849,11 +849,11 @@ otherwise returns FALSE. widget can prevent itself from being closed by rejecting the TQCloseEvent it gets. A close events is delivered to the widget no matter if the widget is visible or not. -

      The TQApplication::lastWindowClosed() signal is emitted when the +

      The TQApplication::lastWindowClosed() signal is emitted when the last visible top level widget is closed. -

      Note that closing the TQApplication::mainWidget() terminates the +

      Note that closing the TQApplication::mainWidget() terminates the application. -

      See also closeEvent(), TQCloseEvent, hide(), TQApplication::quit(), TQApplication::setMainWidget(), and TQApplication::lastWindowClosed(). +

      See also closeEvent(), TQCloseEvent, hide(), TQApplication::quit(), TQApplication::setMainWidget(), and TQApplication::lastWindowClosed().

      void TQWidget::closeEvent ( TQCloseEvent * e ) [virtual protected]

      @@ -1119,7 +1119,7 @@ Returns the focus proxy, or 0 if there is no focus proxy.

      TQWidget * TQWidget::focusWidget () const

      Returns the focus widget in this widget's window. This is not the -same as TQApplication::focusWidget(), which returns the focus +same as TQApplication::focusWidget(), which returns the focus widget in the currently active window.

      TQFont TQWidget::font () const @@ -1447,7 +1447,7 @@ event being handled by TQt, return TRUE. If you return FALSE, this native event is passed back to TQt, which translates the event into a TQt event and sends it to the widget.

      Warning: This function is not portable. -

      See also TQApplication::macEventFilter(). +

      See also TQApplication::macEventFilter().

      TQPoint TQWidget::mapFrom ( TQWidget * parent, const TQPoint & pos ) const

      @@ -1675,10 +1675,10 @@ having an instantiated widget. This is something a constructor cannot guarantee since the initialization of the subclasses might not be finished.

      After this function, the widget has a proper font and palette and -TQApplication::polish() has been called. +TQApplication::polish() has been called.

      Remember to call TQWidget's implementation first when reimplementing this function to ensure that your program does not end up in infinite recursion. -

      See also constPolish() and TQApplication::polish(). +

      See also constPolish() and TQApplication::polish().

      Example: menu/menu.cpp.

      TQPoint TQWidget::pos () const @@ -1832,7 +1832,7 @@ that is read but not written. For example, when scrolling 10 pixels rightwards, the leftmost ten pixels of the widget need repainting. The paint event may be delivered immediately or later, depending on some heuristics (note that you might have to force -processing of paint events using TQApplication::sendPostedEvents() +processing of paint events using TQApplication::sendPostedEvents() when using scroll() and move() in combination).

      See also TQScrollView, erase(), and bitBlt(). @@ -1978,7 +1978,7 @@ but does not clear any keyboard grab (see grabKeyboard Warning: If you call setFocus() in a function which may itself be called from focusOutEvent() or focusInEvent(), you may get an infinite recursion. -

      See also focus, clearFocus(), focusInEvent(), focusOutEvent(), focusPolicy, TQApplication::focusWidget(), grabKeyboard(), and grabMouse(). +

      See also focus, clearFocus(), focusInEvent(), focusOutEvent(), focusPolicy, TQApplication::focusWidget(), grabKeyboard(), and grabMouse().

      Examples: addressbook/centralwidget.cpp, lineedits/lineedits.cpp, mdi/application.cpp, popup/popup.cpp, rot13/rot13.cpp, t8/main.cpp, and wizard/wizard.cpp.

      void TQWidget::setFocusPolicy ( FocusPolicy ) [virtual] @@ -2172,14 +2172,14 @@ This is an overloaded member function, provided for convenience. It behaves esse Sets the widget's GUI style to style. Ownership of the style object is not transferred.

      If no style is set, the widget uses the application's style, -TQApplication::style() instead. +TQApplication::style() instead.

      Setting a widget's style has no effect on existing or future child widgets.

      Warning: This function is particularly useful for demonstration purposes, where you want to show TQt's styling capabilities. Real applications should avoid it and use one consistent GUI style instead. -

      See also style(), TQStyle, TQApplication::style(), and TQApplication::setStyle(). +

      See also style(), TQStyle, TQApplication::style(), and TQApplication::setStyle().

      Examples: progressbar/progressbar.cpp.

      TQStyle * TQWidget::setStyle ( const TQString & style ) @@ -2342,7 +2342,7 @@ Places the widget under w in the parent widget's stack.

      TQStyle & TQWidget::style () const

      Returns the GUI style for this widget -

      See also TQWidget::setStyle(), TQApplication::setStyle(), and TQApplication::style(). +

      See also TQWidget::setStyle(), TQApplication::setStyle(), and TQApplication::style().

      void TQWidget::styleChange ( TQStyle & oldStyle ) [virtual protected]

      @@ -2354,7 +2354,7 @@ GUI style changes. You will almost certainly need to update the widget using update().

      The default implementation updates the widget including its geometry. -

      See also TQApplication::setStyle(), style(), update(), and updateGeometry(). +

      See also TQApplication::setStyle(), style(), update(), and updateGeometry().

      void TQWidget::tabletEvent ( TQTabletEvent * e ) [virtual protected]

      @@ -2491,7 +2491,7 @@ event being handled by TQt, return TRUE. If you return FALSE, this native event is passed back to TQt, which translates the event into a TQt event and sends it to the widget.

      Warning: This function is not portable. -

      See also TQApplication::winEventFilter(). +

      See also TQApplication::winEventFilter().

      WId TQWidget::winId () const

      @@ -2534,7 +2534,7 @@ event being handled by TQt, return TRUE. If you return FALSE, this native event is passed back to TQt, which translates the event into a TQt event and sends it to the widget.

      Warning: This function is not portable. -

      See also TQApplication::x11EventFilter(). +

      See also TQApplication::x11EventFilter().

      int TQWidget::y () const

      Returns the y coordinate of the widget relative to its parent and including any window frame. @@ -2587,7 +2587,7 @@ together seamlessly, you will probably want to use

      This property holds the widget's background brush.

      The background brush depends on a widget's palette and its background mode. -

      See also backgroundColor(), backgroundPixmap(), eraseColor(), palette, and TQApplication::setPalette(). +

      See also backgroundColor(), backgroundPixmap(), eraseColor(), palette, and TQApplication::setPalette().

      Get this property's value with backgroundBrush().

      BackgroundMode backgroundMode

      @@ -2674,7 +2674,7 @@ widget. See the list of predefined cursor

      If no cursor has been set, or after a call to unsetCursor(), the parent's cursor is used. The function unsetCursor() has no effect on top-level widgets. -

      See also TQApplication::setOverrideCursor(). +

      See also TQApplication::setOverrideCursor().

      Set this property's value with setCursor(), get this property's value with cursor(), and reset this property's value with unsetCursor().

      bool customWhatsThis

      @@ -2709,7 +2709,7 @@ explicitly disabled.

      bool focus

      This property holds whether this widget (or its focus proxy) has the keyboard input focus.

      Effectively equivalent to tqApp->focusWidget() == this. -

      See also setFocus(), clearFocus(), focusPolicy, and TQApplication::focusWidget(). +

      See also setFocus(), clearFocus(), focusPolicy, and TQApplication::focusWidget().

      Get this property's value with hasFocus().

      bool focusEnabled

      @@ -2830,13 +2830,13 @@ the input method disabled if they have focus. This is the default. that has keyboard focus.

      When popup windows are visible, this property is TRUE for both the active window and for the popup. -

      See also setActiveWindow() and TQApplication::activeWindow(). +

      See also setActiveWindow() and TQApplication::activeWindow().

      Get this property's value with isActiveWindow().

      bool isDesktop

      This property holds whether the widget is a desktop widget, i.e. represents the desktop.

      A desktop widget is also a top-level widget. -

      See also isTopLevel and TQApplication::desktop(). +

      See also isTopLevel and TQApplication::desktop().

      Get this property's value with isDesktop().

      bool isDialog

      @@ -2960,7 +2960,7 @@ receives mouse move events when at least one mouse button is pressed while the mouse is being moved.

      If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed. -

      See also mouseMoveEvent() and TQApplication::setGlobalMouseTracking(). +

      See also mouseMoveEvent() and TQApplication::setGlobalMouseTracking().

      Set this property's value with setMouseTracking() and get this property's value with hasMouseTracking().

      bool ownCursor

      @@ -2993,7 +2993,7 @@ widget), the default application palette. paletteForegroundColor convenience properties to change a widget's background and foreground appearance only. -

      See also ownPalette, colorGroup, and TQApplication::palette(). +

      See also ownPalette, colorGroup, and TQApplication::palette().

      Set this property's value with setPalette(), get this property's value with palette(), and reset this property's value with unsetPalette().

      TQColor paletteBackgroundColor

      @@ -3033,7 +3033,7 @@ and sets a modified TQPalette with PaletteButton the palette entry TQColorGroup::ButtonText is set to color. -

      See also palette, TQApplication::setPalette(), backgroundMode, foregroundColor(), backgroundMode, and setEraseColor(). +

      See also palette, TQApplication::setPalette(), backgroundMode, foregroundColor(), backgroundMode, and setEraseColor().

      Set this property's value with setPaletteForegroundColor(), get this property's value with paletteForegroundColor(), and reset this property's value with unsetPalette().

      TQPoint pos

      diff --git a/doc/html/tqwizard.html b/doc/html/tqwizard.html index fe4f42480..b1937308b 100644 --- a/doc/html/tqwizard.html +++ b/doc/html/tqwizard.html @@ -320,7 +320,7 @@ See the "titleFont" property for deta

      Property Documentation

      TQFont titleFont

      This property holds the font used for page titles. -

      The default is TQApplication::font(). +

      The default is TQApplication::font().

      Set this property's value with setTitleFont() and get this property's value with titleFont(). diff --git a/doc/html/tutorial1-01.html b/doc/html/tutorial1-01.html index db3221177..ffdff0b36 100644 --- a/doc/html/tutorial1-01.html +++ b/doc/html/tutorial1-01.html @@ -41,20 +41,20 @@ The picture above is a snapshot of this program. ** ****************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpushbutton.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); TQPushButton hello( "Hello world!", 0 ); hello.resize( 100, 30 ); - a.setMainWidget( &hello ); + a.setMainWidget( &hello ); hello.show(); - return a.exec(); + return a.exec(); } @@ -62,9 +62,9 @@ int main( int argc, char **argv )

      Line-by-line Walkthrough

      -

          #include <ntqapplication.h>
      +

          #include <tqapplication.h>
       
      -

      This line includes the TQApplication class definition. There has to be +

      This line includes the TQApplication class definition. There has to be exactly one TQApplication object in every application that uses TQt. TQApplication manages various application-wide resources, such as the default font and cursor. @@ -76,7 +76,7 @@ mentions at the top which file needs to be included to use that class.

      TQPushButton is a classical GUI push button that the user can press and release. It manages its own look and feel, like every other TQWidget. A widget is a user interface object that can process user input and draw graphics. The programmer can change both the overall -look and feel and many minor +look and feel and many minor properties of it (such as color), as well as the widget's content. A TQPushButton can show either a text or a TQPixmap.

          int main( int argc, char **argv )
      @@ -90,12 +90,12 @@ program about the user's actions via events.
       array of command-line arguments. This is a C/C++ feature. It is not
       specific to TQt; however, TQt needs to process these arguments (see
       following).
      -

              TQApplication a( argc, argv );
      +

              TQApplication a( argc, argv );
       
      -

      a is this program's TQApplication. Here it is created and processes +

      a is this program's TQApplication. Here it is created and processes some of the command-line arguments (such as -display under X Window). Note that all command-line arguments recognized by TQt are removed from -argv (and argc is decremented accordingly). See the TQApplication::argv() documentation for details. +argv (and argc is decremented accordingly). See the TQApplication::argv() documentation for details.

      Note: It is essential that the TQApplication object be created before any window-system parts of TQt are used.

              TQPushButton hello( "Hello world!", 0 );
      @@ -110,7 +110,7 @@ window, inside which the button should be located).
       

      The button is set up to be 100 pixels wide and 30 pixels high (plus the window system frame). In this case we don't care about the button's position, and we accept the default value. -

              a.setMainWidget( &hello );
      +

              a.setMainWidget( &hello );
       

      The push button is chosen as the main widget for the application. If the user closes a main widget, the application exits. @@ -119,7 +119,7 @@ the user closes a main widget, the application exits.

      A widget is never visible when you create it. You must call show() to make it visible. -

              return a.exec();
      +

              return a.exec();
       

      This is where main() passes control to TQt, and exec() will return when the application exits. diff --git a/doc/html/tutorial1-02.html b/doc/html/tutorial1-02.html index a4098da17..4acff99ac 100644 --- a/doc/html/tutorial1-02.html +++ b/doc/html/tutorial1-02.html @@ -41,24 +41,24 @@ now go on to make the application quit properly when the user tells it to. ** ****************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpushbutton.h> #include <tqfont.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); TQPushButton quit( "Quit", 0 ); quit.resize( 75, 30 ); quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); + TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); - a.setMainWidget( &quit ); + a.setMainWidget( &quit ); quit.show(); - return a.exec(); + return a.exec(); }

      @@ -85,8 +85,8 @@ to set right size.

      Here we choose a new font for the button, an 18-point bold font from the Times family. Note that we create the font on the spot. -

      It is also possible to change the default font (using TQApplication::setFont()) for the whole application. -

              TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) );
      +

      It is also possible to change the default font (using TQApplication::setFont()) for the whole application. +

              TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) );
       

      connect() is perhaps the most central feature of TQt. Note that connect() is a static function in TQObject. Do not confuse it diff --git a/doc/html/tutorial1-03.html b/doc/html/tutorial1-03.html index 3879630a0..a71239777 100644 --- a/doc/html/tutorial1-03.html +++ b/doc/html/tutorial1-03.html @@ -40,14 +40,14 @@ body { background: #ffffff; color: black; } ** ****************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpushbutton.h> #include <tqfont.h> #include <tqvbox.h> int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); TQVBox box; box.resize( 200, 120 ); @@ -55,12 +55,12 @@ int main( int argc, char **argv ) TQPushButton quit( "Quit", &box ); quit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); - TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); + TQObject::connect( &quit, TQ_SIGNAL(clicked()), &a, TQ_SLOT(quit()) ); - a.setMainWidget( &box ); + a.setMainWidget( &box ); box.show(); - return a.exec(); + return a.exec(); }

      diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html index 259eb436a..6c0980bfa 100644 --- a/doc/html/tutorial1-04.html +++ b/doc/html/tutorial1-04.html @@ -40,7 +40,7 @@ minimum and maximum sizes of a widget, and introduces widget names. ** ****************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpushbutton.h> #include <tqfont.h> @@ -62,19 +62,19 @@ public: quit->setGeometry( 62, 40, 75, 30 ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); } int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); MyWidget w; w.setGeometry( 100, 100, 200, 120 ); - a.setMainWidget( &w ); + a.setMainWidget( &w ); w.show(); - return a.exec(); + return a.exec(); }
      @@ -131,7 +131,7 @@ when you choose to, the child will automatically tell TQt about its imminent death.)

      The setGeometry() call does the same as move() and resize() did in the previous chapters. -

              connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
      +

              connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
           }
       

      Because the MyWidget class doesn't know about the application object, it @@ -144,13 +144,13 @@ so TQt offers an alias, tqApp, for the cases in which a component such as MyWidget needs to talk to the application object.

          int main( int argc, char **argv )
           {
      -        TQApplication a( argc, argv );
      +        TQApplication a( argc, argv );
       
               MyWidget w;
               w.setGeometry( 100, 100, 200, 120 );
      -        a.setMainWidget( &w );
      +        a.setMainWidget( &w );
               w.show();
      -        return a.exec();
      +        return a.exec();
           }
       

      Here we instantiate our new child, set it to be the main widget, and diff --git a/doc/html/tutorial1-05.html b/doc/html/tutorial1-05.html index 046178b0e..2c1f23534 100644 --- a/doc/html/tutorial1-05.html +++ b/doc/html/tutorial1-05.html @@ -40,7 +40,7 @@ by using signals and slots, and how to handle resize events. ** ****************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqpushbutton.h> #include <tqslider.h> #include <tqlcdnumber.h> @@ -61,7 +61,7 @@ public: TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" ); @@ -74,12 +74,12 @@ public: int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); MyWidget w; - a.setMainWidget( &w ); + a.setMainWidget( &w ); w.show(); - return a.exec(); + return a.exec(); }

      @@ -87,7 +87,7 @@ int main( int argc, char **argv )

      Line-by-line Walkthrough

      -

          #include <ntqapplication.h>
      +

          #include <tqapplication.h>
           #include <tqpushbutton.h>
           #include <tqslider.h>
           #include <tqlcdnumber.h>
      diff --git a/doc/html/tutorial1-06.html b/doc/html/tutorial1-06.html
      index 1249d3260..37570a1da 100644
      --- a/doc/html/tutorial1-06.html
      +++ b/doc/html/tutorial1-06.html
      @@ -42,7 +42,7 @@ widget as a child widget.
       **
       ****************************************************************/
       
      -#include <ntqapplication.h>
      +#include <tqapplication.h>
       #include <tqpushbutton.h>
       #include <tqslider.h>
       #include <tqlcdnumber.h>
      @@ -79,7 +79,7 @@ public:
           TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
           quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
       
      -    connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
      +    connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
       
           TQGrid *grid = new TQGrid( 4, this );
       
      @@ -90,12 +90,12 @@ public:
       
       int main( int argc, char **argv )
       {
      -    TQApplication a( argc, argv );
      +    TQApplication a( argc, argv );
       
           MyWidget w;
      -    a.setMainWidget( &w );
      +    a.setMainWidget( &w );
           w.show();
      -    return a.exec();
      +    return a.exec();
       }
       
      @@ -138,7 +138,7 @@ is renamed. TQPushButton *quit = new TQPushButton( "Quit", this, "quit" ); quit->setFont( TQFont( "Times", 18, TQFont::Bold ) ); - connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) ); + connect( quit, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );

      The push button that used to be in what is now LCDRange has been separated so that we can have one "Quit" button and many LCDRange diff --git a/doc/html/tutorial1-08.html b/doc/html/tutorial1-08.html index bc6e08409..06c845c60 100644 --- a/doc/html/tutorial1-08.html +++ b/doc/html/tutorial1-08.html @@ -62,7 +62,7 @@ Until now, it has been fixed at 0..99.

          void LCDRange::setRange( int minVal, int maxVal )
           {
               if ( minVal < 0 || maxVal > 99 || minVal > maxVal ) {
      -          tqWarning( "LCDRange::setRange(%d,%d)\n"
      +          tqWarning( "LCDRange::setRange(%d,%d)\n"
                          "\tRange must be 0..99\n"
                          "\tand minVal must not be greater than maxVal",
                          minVal, maxVal );
      @@ -76,10 +76,10 @@ have set up the TQLCDNumber to always display two
       limit the possible range of minVal and maxVal to 0..99 to avoid
       overflow of the TQLCDNumber. (We could have allowed values down to -9
       but chose not to.)  If the arguments are illegal, we use TQt's
      -tqWarning() function to issue a warning to the user and return
      +tqWarning() function to issue a warning to the user and return
       immediately. tqWarning() is a printf-like function that by default
       sends its output to stderr. If you want, you can install your own handler
      -function using ::qInstallMsgHandler().
      +function using ::qInstallMsgHandler().
       

      t8/cannon.h

      CannonField is a new custom widget that knows how to display itself. diff --git a/doc/html/tutorial1-09.html b/doc/html/tutorial1-09.html index af90e0f10..65f2d73e9 100644 --- a/doc/html/tutorial1-09.html +++ b/doc/html/tutorial1-09.html @@ -113,12 +113,12 @@ this time.

          int main( int argc, char **argv )
           {
      -        TQApplication::setColorSpec( TQApplication::CustomColor );
      -        TQApplication a( argc, argv );
      +        TQApplication::setColorSpec( TQApplication::CustomColor );
      +        TQApplication a( argc, argv );
       

      We tell TQt that we want a different color-allocation strategy for this program. There is no single correct color-allocation strategy. Because -this program uses an unusual yellow but not many colors, CustomColor is best. There are several other allocation strategies; you can read about them in the TQApplication::setColorSpec() +this program uses an unusual yellow but not many colors, CustomColor is best. There are several other allocation strategies; you can read about them in the TQApplication::setColorSpec() documentation.

      Mostly you can ignore this, since the default is good. Occasionally some applications with unusual color use look bad; changing the diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html index 39f17821d..fdf985631 100644 --- a/doc/html/tutorial1-14.html +++ b/doc/html/tutorial1-14.html @@ -225,7 +225,7 @@ key Ctrl+Q is pressed. Because Enter is sometimes Return and there are even keyboards with both keys, we make both Enter and Return invoke fire().

              accel->connectItem( accel->insertItem( CTRL+Key_Q ),
      -                            tqApp, TQ_SLOT(quit()) );
      +                            tqApp, TQ_SLOT(quit()) );
       

      And then we set up Ctrl+Q to do the same thing as Alt+Q. Some people are more used to Ctrl+Q (and anyway it shows how do do it). diff --git a/doc/html/tutorial2-03.html b/doc/html/tutorial2-03.html index 8837886ce..bbf7be7a0 100644 --- a/doc/html/tutorial2-03.html +++ b/doc/html/tutorial2-03.html @@ -135,7 +135,7 @@ with the isValid() function.

          double Element::proX( int index ) const
           {
      -        Q_ASSERT(index >= 0 && index < MAX_PROPOINTS);
      +        Q_ASSERT(index >= 0 && index < MAX_PROPOINTS);
               return m_propoints[2 * index];
           }
       
      diff --git a/doc/html/tutorial2-04.html b/doc/html/tutorial2-04.html index 240225db5..5a0a850fc 100644 --- a/doc/html/tutorial2-04.html +++ b/doc/html/tutorial2-04.html @@ -35,29 +35,29 @@ body { background: #ffffff; color: black; }

      (main.cpp.)

      -

          #include <ntqapplication.h>
      +
          #include <tqapplication.h>
           #include "chartform.h"
       
           int main( int argc, char *argv[] )
           {
      -        TQApplication app( argc, argv );
      +        TQApplication app( argc, argv );
       
               TQString filename;
      -        if ( app.argc() > 1 ) {
      -            filename = app.argv()[1];
      +        if ( app.argc() > 1 ) {
      +            filename = app.argv()[1];
                   if ( !filename.endsWith( ".cht" ) )
                       filename = TQString::null;
               }
       
               ChartForm *cf = new ChartForm( filename );
      -        app.setMainWidget( cf );
      +        app.setMainWidget( cf );
               cf->show();
       
      -        return app.exec();
      +        return app.exec();
           }
       

      We have kept the main() function simple and small. We create a -TQApplication object and pass it the command line arguments. We are +TQApplication object and pass it the command line arguments. We are allowing users to invoke the program with chart mychart.cht, so if they've added a filename we pass that through to the chart form constructor. Most of the action takes place within the chart form diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html index 731d8f359..ac2f6ec51 100644 --- a/doc/html/tutorial2-05.html +++ b/doc/html/tutorial2-05.html @@ -498,7 +498,7 @@ item id. { if ( okToClear() ) { saveOptions(); - tqApp->exit( 0 ); + tqApp->exit( 0 ); } }

      diff --git a/doc/html/whatsthis b/doc/html/whatsthis index 433b49c0a..43061cd4d 100644 --- a/doc/html/whatsthis +++ b/doc/html/whatsthis @@ -215,7 +215,7 @@ Mac/Platinum look and feel. | TQPlatinumStyle Main application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar. | TQMainWindow Maintains the list of widgets in the focus chain. | TQFocusData Manages and lays out TQDockWindows. | TQDockArea -Manages the GUI application's control flow and main settings. | QApplication +Manages the GUI application's control flow and main settings. | TQApplication Manages the event queue. | TQEventLoop Manipulates the fields in SQL database tables and views. | TQSqlField Maps open-standard MIME to Mac flavors. | TQMacMime diff --git a/doc/html/wizard-example.html b/doc/html/wizard-example.html index ec2513b64..1781ddeeb 100644 --- a/doc/html/wizard-example.html +++ b/doc/html/wizard-example.html @@ -104,7 +104,7 @@ protected slots: #include <tqlineedit.h> #include <tqpushbutton.h> #include <tqvalidator.h> -#include <ntqapplication.h> +#include <tqapplication.h> Wizard::Wizard( TQWidget *parent, const char *name ) : TQWizard( parent, name, TRUE ) @@ -327,11 +327,11 @@ void Wizard::dataChanged( const TQStr *****************************************************************************/ #include "wizard.h" -#include <ntqapplication.h> +#include <tqapplication.h> int main(int argc,char **argv) { - TQApplication a(argc,argv); + TQApplication a(argc,argv); Wizard wizard; wizard.setCaption("TQt Example - Wizard"); diff --git a/doc/html/wizard-wizard-cpp.html b/doc/html/wizard-wizard-cpp.html index e726e445e..e89fdc806 100644 --- a/doc/html/wizard-wizard-cpp.html +++ b/doc/html/wizard-wizard-cpp.html @@ -50,7 +50,7 @@ body { background: #ffffff; color: black; } #include <tqlineedit.h> #include <tqpushbutton.h> #include <tqvalidator.h> -#include <ntqapplication.h> +#include <tqapplication.h> Wizard::Wizard( TQWidget *parent, const char *name ) : TQWizard( parent, name, TRUE ) diff --git a/doc/html/xform-example.html b/doc/html/xform-example.html index 83d684498..f877b8346 100644 --- a/doc/html/xform-example.html +++ b/doc/html/xform-example.html @@ -46,7 +46,7 @@ arbitrarily. ** *****************************************************************************/ -#include <ntqapplication.h> +#include <tqapplication.h> #include <tqdialog.h> #include <tqlabel.h> @@ -326,7 +326,7 @@ void XFormControl::changeMode(int m) else rb_pic->setChecked(TRUE); } - tqApp->flushX(); + tqApp->flushX(); } ShowXForm::ShowXForm( const TQFont &initialFont, @@ -533,14 +533,14 @@ void XFormCenter::newMode( int m ) int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); XFormCenter *xfc = new XFormCenter; - a.setMainWidget( xfc ); + a.setMainWidget( xfc ); xfc->setCaption("TQt Example - XForm"); xfc->show(); - return a.exec(); + return a.exec(); } #include "xform.moc" // include metadata generated by the tqmoc diff --git a/doc/html/xml-sax-features-walkthrough.html b/doc/html/xml-sax-features-walkthrough.html index fd61011d2..7b8241de0 100644 --- a/doc/html/xml-sax-features-walkthrough.html +++ b/doc/html/xml-sax-features-walkthrough.html @@ -55,7 +55,7 @@ namespace URIs.

      Let's begin with the main program of the application. First the boring part: we include all the classes we need:

          #include "structureparser.h"
      -    #include <ntqapplication.h>
      +    #include <tqapplication.h>
           #include <tqfile.h>
           #include <tqxml.h>
           #include <tqlistview.h>
      @@ -67,7 +67,7 @@ part: we include all the classes we need:
       the XML parser that we implement in structureparser.cpp.
       

          int main( int argc, char **argv )
           {
      -        TQApplication app( argc, argv );
      +        TQApplication app( argc, argv );
       

      As usual we then create a TQt application object and hand command line arguments over to it. @@ -176,9 +176,9 @@ FALSE and http://xml.org/sax/features/namespace-prefixes TRUE.

      The second row of the container grid is filled with three labels denoting the reader settings that belong to the above listview. -

              app.setMainWidget( container );
      +

              app.setMainWidget( container );
               container->show();
      -        return app.exec();
      +        return app.exec();
           }
       

      Same procedure as with every TQt GUI program: the grid serves as the diff --git a/doc/html/y2k.html b/doc/html/y2k.html index cd53502f0..e105f62c7 100644 --- a/doc/html/y2k.html +++ b/doc/html/y2k.html @@ -56,7 +56,7 @@ not deal with years or leap days at all. seconds or milliseconds, and is thus Year 2000 Compliant.

      This applies to the above four classes and also to TQFileDialog (which can sort files by time/date), TQFileInfo (which operates on -file times/dates) and TQApplication (which does various internal +file times/dates) and TQApplication (which does various internal housekeeping tasks).

      The conversion to year/month/date format in TQDate (and TQDateTime) has been verified to be correct for all of December 31, -- cgit v1.2.3