From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- tools/designer/app/main.cpp | 10 +- tools/designer/designer/actiondnd.cpp | 26 +-- tools/designer/designer/actiondnd.h | 18 +- tools/designer/designer/actioneditorimpl.cpp | 18 +- tools/designer/designer/actionlistview.cpp | 2 +- tools/designer/designer/actionlistview.h | 2 +- tools/designer/designer/asciivalidator.cpp | 2 +- tools/designer/designer/asciivalidator.h | 2 +- tools/designer/designer/command.cpp | 28 +-- tools/designer/designer/command.h | 18 +- tools/designer/designer/configtoolboxdialog.ui.h | 2 +- tools/designer/designer/connectiondialog.ui | 2 +- tools/designer/designer/connectionitems.cpp | 14 +- tools/designer/designer/connectionitems.h | 2 +- tools/designer/designer/connectiontable.h | 2 +- tools/designer/designer/customwidgeteditorimpl.cpp | 34 ++-- tools/designer/designer/customwidgeteditorimpl.h | 4 +- tools/designer/designer/database.cpp | 8 +- tools/designer/designer/database.h | 10 +- tools/designer/designer/database2.h | 10 +- tools/designer/designer/dbconnectionimpl.cpp | 12 +- tools/designer/designer/dbconnectionsimpl.cpp | 22 +-- tools/designer/designer/defs.h | 4 +- tools/designer/designer/designer_pch.h | 48 +++--- tools/designer/designer/designerapp.cpp | 8 +- tools/designer/designer/designerapp.h | 2 +- tools/designer/designer/designerappiface.cpp | 14 +- tools/designer/designer/editfunctionsimpl.cpp | 22 +-- tools/designer/designer/editfunctionsimpl.h | 2 +- tools/designer/designer/finddialog.ui | 2 +- tools/designer/designer/formfile.cpp | 10 +- tools/designer/designer/formfile.h | 2 +- tools/designer/designer/formsettingsimpl.cpp | 14 +- tools/designer/designer/formwindow.cpp | 48 +++--- tools/designer/designer/formwindow.h | 10 +- tools/designer/designer/hierarchyview.cpp | 28 +-- tools/designer/designer/hierarchyview.h | 8 +- tools/designer/designer/iconvieweditorimpl.cpp | 10 +- tools/designer/designer/layout.cpp | 16 +- tools/designer/designer/layout.h | 14 +- tools/designer/designer/listboxdnd.cpp | 10 +- tools/designer/designer/listboxdnd.h | 4 +- tools/designer/designer/listboxeditorimpl.cpp | 10 +- tools/designer/designer/listboxrename.cpp | 6 +- tools/designer/designer/listboxrename.h | 4 +- tools/designer/designer/listdnd.cpp | 4 +- tools/designer/designer/listdnd.h | 4 +- tools/designer/designer/listeditor.ui.h | 4 +- tools/designer/designer/listviewdnd.cpp | 10 +- tools/designer/designer/listviewdnd.h | 4 +- tools/designer/designer/listvieweditorimpl.cpp | 20 +-- tools/designer/designer/listvieweditorimpl.h | 6 +- tools/designer/designer/mainwindow.cpp | 72 ++++---- tools/designer/designer/mainwindow.h | 12 +- tools/designer/designer/mainwindowactions.cpp | 40 ++--- tools/designer/designer/menubareditor.cpp | 16 +- tools/designer/designer/menubareditor.h | 4 +- tools/designer/designer/metadatabase.cpp | 28 +-- tools/designer/designer/metadatabase.h | 18 +- tools/designer/designer/multilineeditorimpl.cpp | 14 +- tools/designer/designer/multilineeditorimpl.h | 4 +- tools/designer/designer/newformimpl.cpp | 16 +- tools/designer/designer/newformimpl.h | 2 +- tools/designer/designer/orderindicator.cpp | 8 +- tools/designer/designer/orderindicator.h | 2 +- tools/designer/designer/outputwindow.cpp | 10 +- tools/designer/designer/outputwindow.h | 8 +- .../designer/paletteeditoradvancedimpl.cpp | 14 +- tools/designer/designer/paletteeditorimpl.cpp | 8 +- tools/designer/designer/pixmapchooser.cpp | 16 +- tools/designer/designer/pixmapchooser.h | 8 +- tools/designer/designer/pixmapcollection.cpp | 10 +- tools/designer/designer/pixmapcollection.h | 6 +- tools/designer/designer/pixmapcollectioneditor.ui | 6 +- tools/designer/designer/popupmenueditor.cpp | 24 +-- tools/designer/designer/popupmenueditor.h | 8 +- tools/designer/designer/previewframe.cpp | 4 +- tools/designer/designer/previewframe.h | 4 +- tools/designer/designer/previewwidgetimpl.cpp | 2 +- tools/designer/designer/project.cpp | 28 +-- tools/designer/designer/project.h | 14 +- tools/designer/designer/projectsettingsimpl.cpp | 18 +- tools/designer/designer/propertyeditor.cpp | 80 ++++----- tools/designer/designer/propertyeditor.h | 22 +-- tools/designer/designer/propertyobject.cpp | 8 +- tools/designer/designer/propertyobject.h | 6 +- tools/designer/designer/qcompletionedit.cpp | 8 +- tools/designer/designer/qcompletionedit.h | 4 +- tools/designer/designer/replacedialog.ui | 2 +- tools/designer/designer/resource.cpp | 68 ++++---- tools/designer/designer/resource.h | 10 +- tools/designer/designer/richtextfontdialog.ui.h | 4 +- tools/designer/designer/sizehandle.cpp | 8 +- tools/designer/designer/sizehandle.h | 6 +- tools/designer/designer/sourceeditor.cpp | 6 +- tools/designer/designer/sourceeditor.h | 4 +- tools/designer/designer/sourcefile.cpp | 8 +- tools/designer/designer/sourcefile.h | 2 +- tools/designer/designer/startdialogimpl.cpp | 36 ++-- tools/designer/designer/startdialogimpl.h | 12 +- tools/designer/designer/styledbutton.cpp | 20 +-- tools/designer/designer/styledbutton.h | 4 +- tools/designer/designer/syntaxhighlighter_html.cpp | 6 +- tools/designer/designer/tableeditor.ui | 2 +- tools/designer/designer/tableeditorimpl.cpp | 20 +-- tools/designer/designer/tableeditorimpl.h | 2 +- tools/designer/designer/timestamp.cpp | 4 +- tools/designer/designer/timestamp.h | 6 +- tools/designer/designer/variabledialogimpl.cpp | 10 +- tools/designer/designer/widgetaction.cpp | 8 +- tools/designer/designer/widgetaction.h | 2 +- tools/designer/designer/widgetfactory.cpp | 80 ++++----- tools/designer/designer/widgetfactory.h | 44 ++--- tools/designer/designer/wizardeditorimpl.cpp | 8 +- tools/designer/designer/wizardeditorimpl.h | 2 +- tools/designer/designer/workspace.cpp | 22 +-- tools/designer/designer/workspace.h | 2 +- tools/designer/editor/arghintwidget.cpp | 10 +- tools/designer/editor/arghintwidget.h | 2 +- tools/designer/editor/browser.h | 2 +- tools/designer/editor/cindent.cpp | 2 +- tools/designer/editor/completion.cpp | 14 +- tools/designer/editor/completion.h | 8 +- tools/designer/editor/conf.cpp | 8 +- tools/designer/editor/conf.h | 6 +- tools/designer/editor/editor.cpp | 8 +- tools/designer/editor/editor.h | 2 +- tools/designer/editor/markerwidget.cpp | 4 +- tools/designer/editor/markerwidget.h | 4 +- tools/designer/editor/parenmatcher.cpp | 4 +- tools/designer/editor/parenmatcher.h | 4 +- tools/designer/editor/preferences.ui | 20 +-- tools/designer/editor/viewmanager.cpp | 8 +- tools/designer/editor/viewmanager.h | 4 +- tools/designer/editor/yyindent.cpp | 6 +- .../designer/examples/addressbook/addressbook.ui.h | 8 +- tools/designer/examples/addressbook/main.cpp | 2 +- tools/designer/examples/book/book1/main.cpp | 4 +- tools/designer/examples/book/book2/main.cpp | 4 +- tools/designer/examples/book/book3/main.cpp | 4 +- tools/designer/examples/book/book4/main.cpp | 4 +- tools/designer/examples/book/book5/book.ui | 2 +- tools/designer/examples/book/book5/main.cpp | 4 +- tools/designer/examples/book/book6/book.ui | 4 +- tools/designer/examples/book/book6/editbook.ui | 2 +- tools/designer/examples/book/book6/main.cpp | 4 +- tools/designer/examples/book/book7/book.ui | 4 +- tools/designer/examples/book/book7/editbook.ui | 2 +- tools/designer/examples/book/book7/main.cpp | 4 +- tools/designer/examples/book/book8/book.ui | 4 +- tools/designer/examples/book/book8/editbook.ui | 2 +- tools/designer/examples/book/book8/main.cpp | 4 +- tools/designer/examples/book/connection.cpp | 2 +- .../designer/examples/colortool/colornameform.ui.h | 6 +- tools/designer/examples/colortool/main.cpp | 2 +- tools/designer/examples/colortool/mainform.ui | 32 ++-- tools/designer/examples/credit/creditform.cpp | 4 +- tools/designer/examples/credit/creditformbase.cpp | 24 +-- tools/designer/examples/credit/creditformbase.h | 4 +- tools/designer/examples/credit/main.cpp | 2 +- .../designer/examples/filechooser/plugin/plugin.h | 2 +- .../examples/filechooser/widget/filechooser.cpp | 8 +- .../examples/filechooser/widget/filechooser.h | 4 +- .../designer/examples/filechooser/widget/main.cpp | 2 +- tools/designer/examples/metric/main.cpp | 2 +- tools/designer/examples/metric/metric.ui.h | 2 +- tools/designer/examples/multiclip/main.cpp | 2 +- tools/designer/examples/multiclip/multiclip.ui | 4 +- tools/designer/examples/opengl/glwidget.h | 2 +- tools/designer/examples/opengl/main.cpp | 4 +- tools/designer/examples/receiver1/main.cpp | 2 +- tools/designer/examples/receiver1/mainform.ui | 4 +- tools/designer/examples/receiver2/main.cpp | 2 +- tools/designer/examples/receiver2/mainform.ui | 4 +- tools/designer/examples/receiver2/receiver.cpp | 4 +- tools/designer/examples/receiver2/receiver.h | 4 +- tools/designer/examples/richedit/main.cpp | 2 +- tools/designer/examples/richedit/richedit.ui | 12 +- tools/designer/examples/sizeaware/main.cpp | 2 +- tools/designer/examples/sizeaware/sizeaware.cpp | 2 +- tools/designer/examples/sizeaware/sizeaware.h | 2 +- tools/designer/examples/vcr/main.cpp | 2 +- tools/designer/examples/vcr/vcr.cpp | 4 +- tools/designer/examples/vcr/vcr.h | 2 +- tools/designer/interfaces/classbrowserinterface.h | 2 +- tools/designer/interfaces/designerinterface.h | 12 +- tools/designer/interfaces/editorinterface.h | 4 +- tools/designer/interfaces/languageinterface.h | 8 +- tools/designer/interfaces/preferenceinterface.h | 4 +- tools/designer/interfaces/projectsettingsiface.h | 4 +- tools/designer/interfaces/sourcetemplateiface.h | 2 +- tools/designer/plugins/cppeditor/cppbrowser.cpp | 6 +- tools/designer/plugins/cppeditor/cppcompletion.cpp | 8 +- tools/designer/plugins/cppeditor/cppcompletion.h | 2 +- tools/designer/plugins/cppeditor/cppeditor.cpp | 6 +- .../plugins/cppeditor/editorinterfaceimpl.cpp | 4 +- .../plugins/cppeditor/editorinterfaceimpl.h | 4 +- .../plugins/cppeditor/languageinterfaceimpl.cpp | 6 +- .../cppeditor/sourcetemplateinterfaceimpl.cpp | 6 +- .../plugins/cppeditor/syntaxhighliter_cpp.cpp | 10 +- tools/designer/plugins/cppeditor/yyreg.cpp | 2 +- tools/designer/plugins/cppeditor/yyreg.h | 4 +- tools/designer/plugins/dlg/dlg2ui.cpp | 10 +- tools/designer/plugins/dlg/dlg2ui.h | 8 +- tools/designer/plugins/dlg/main.cpp | 2 +- tools/designer/plugins/glade/glade2ui.cpp | 16 +- tools/designer/plugins/glade/glade2ui.h | 8 +- tools/designer/plugins/glade/main.cpp | 2 +- tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp | 6 +- tools/designer/plugins/kdevdlg/kdevdlg2ui.h | 6 +- tools/designer/plugins/kdevdlg/main.cpp | 6 +- tools/designer/plugins/rc/main.cpp | 2 +- tools/designer/plugins/rc/rc2ui.cpp | 6 +- tools/designer/plugins/rc/rc2ui.h | 6 +- tools/designer/plugins/wizards/main.cpp | 6 +- tools/designer/plugins/wizards/mainwindowwizard.ui | 8 +- .../designer/plugins/wizards/sqlformwizardimpl.cpp | 42 ++--- tools/designer/plugins/wizards/sqlformwizardimpl.h | 2 +- tools/designer/shared/domtool.cpp | 16 +- tools/designer/shared/domtool.h | 4 +- tools/designer/shared/globaldefs.h | 4 +- tools/designer/shared/parser.cpp | 4 +- tools/designer/shared/parser.h | 2 +- tools/designer/shared/ui2uib.cpp | 18 +- tools/designer/shared/uib.h | 2 +- tools/designer/shared/widgetdatabase.cpp | 38 ++--- tools/designer/shared/widgetdatabase.h | 4 +- tools/designer/tools/conv2ui/main.cpp | 8 +- tools/designer/tools/createcw/main.cpp | 12 +- tools/designer/uic/embed.cpp | 18 +- tools/designer/uic/form.cpp | 50 +++--- tools/designer/uic/main.cpp | 10 +- tools/designer/uic/object.cpp | 6 +- tools/designer/uic/subclassing.cpp | 8 +- tools/designer/uic/uic.cpp | 8 +- tools/designer/uic/uic.h | 14 +- tools/designer/uilib/ntqwidgetfactory.h | 187 +++++++++++++++++++++ tools/designer/uilib/qwidgetfactory.cpp | 112 ++++++------ tools/designer/uilib/qwidgetfactory.h | 187 --------------------- tools/designer/uilib/test/main.cpp | 4 +- 240 files changed, 1418 insertions(+), 1418 deletions(-) create mode 100644 tools/designer/uilib/ntqwidgetfactory.h delete mode 100644 tools/designer/uilib/qwidgetfactory.h (limited to 'tools/designer') diff --git a/tools/designer/app/main.cpp b/tools/designer/app/main.cpp index 30933ba71..b88eddbfb 100644 --- a/tools/designer/app/main.cpp +++ b/tools/designer/app/main.cpp @@ -43,11 +43,11 @@ #include "designerapp.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include diff --git a/tools/designer/designer/actiondnd.cpp b/tools/designer/designer/actiondnd.cpp index 812317090..1f9e8328a 100644 --- a/tools/designer/designer/actiondnd.cpp +++ b/tools/designer/designer/actiondnd.cpp @@ -40,19 +40,19 @@ #include "widgetfactory.h" #include "hierarchyview.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include TQAction *ActionDrag::the_action = 0; diff --git a/tools/designer/designer/actiondnd.h b/tools/designer/designer/actiondnd.h index e3a93658a..ba21ff5ae 100644 --- a/tools/designer/designer/actiondnd.h +++ b/tools/designer/designer/actiondnd.h @@ -34,15 +34,15 @@ #ifndef ACTIONDND_H #define ACTIONDND_H -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "../shared/widgetdatabase.h" //class TQDesignerPopupMenu; diff --git a/tools/designer/designer/actioneditorimpl.cpp b/tools/designer/designer/actioneditorimpl.cpp index e6af9502f..88587cdcb 100644 --- a/tools/designer/designer/actioneditorimpl.cpp +++ b/tools/designer/designer/actioneditorimpl.cpp @@ -40,15 +40,15 @@ #include "hierarchyview.h" #include "formfile.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include ActionEditor::ActionEditor( TQWidget* parent, const char* name, WFlags fl ) : ActionEditorBase( parent, name, fl ), currentAction( 0 ), formWindow( 0 ), diff --git a/tools/designer/designer/actionlistview.cpp b/tools/designer/designer/actionlistview.cpp index 489bbebb7..fe3bc92b0 100644 --- a/tools/designer/designer/actionlistview.cpp +++ b/tools/designer/designer/actionlistview.cpp @@ -33,7 +33,7 @@ #include "actiondnd.h" #include "actionlistview.h" -#include +#include ActionListView::ActionListView( TQWidget *parent, const char *name ) : TQListView( parent, name ) diff --git a/tools/designer/designer/actionlistview.h b/tools/designer/designer/actionlistview.h index bedc17ef0..d96633688 100644 --- a/tools/designer/designer/actionlistview.h +++ b/tools/designer/designer/actionlistview.h @@ -34,7 +34,7 @@ #ifndef ACTIONLISTVIEW_H #define ACTIONLISTVIEW_H -#include +#include #include "actiondnd.h" class ActionItem : public TQListViewItem diff --git a/tools/designer/designer/asciivalidator.cpp b/tools/designer/designer/asciivalidator.cpp index 58e7cc2a3..640cd1eb8 100644 --- a/tools/designer/designer/asciivalidator.cpp +++ b/tools/designer/designer/asciivalidator.cpp @@ -33,7 +33,7 @@ #include "asciivalidator.h" -#include +#include AsciiValidator::AsciiValidator( TQObject * parent, const char *name ) : TQValidator( parent, name ), functionName( FALSE ) diff --git a/tools/designer/designer/asciivalidator.h b/tools/designer/designer/asciivalidator.h index 065ed934b..d3afdfd26 100644 --- a/tools/designer/designer/asciivalidator.h +++ b/tools/designer/designer/asciivalidator.h @@ -35,7 +35,7 @@ #define ASCIIVALIDATOR_H -#include +#include class AsciiValidator: public TQValidator diff --git a/tools/designer/designer/command.cpp b/tools/designer/designer/command.cpp index 3ce5d2fc3..bb25fa86e 100644 --- a/tools/designer/designer/command.cpp +++ b/tools/designer/designer/command.cpp @@ -46,22 +46,22 @@ #include "menubareditor.h" #include "popupmenueditor.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifndef QT_NO_TABLE -#include +#include #endif -#include +#include CommandHistory::CommandHistory( int s ) : current( -1 ), steps( s ), savedAt( -1 ) diff --git a/tools/designer/designer/command.h b/tools/designer/designer/command.h index e1e1d8978..d6eef4fe5 100644 --- a/tools/designer/designer/command.h +++ b/tools/designer/designer/command.h @@ -37,15 +37,15 @@ #include "metadatabase.h" #include "layout.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include class TQWizard; class TQTabWidget; diff --git a/tools/designer/designer/configtoolboxdialog.ui.h b/tools/designer/designer/configtoolboxdialog.ui.h index 2fe074bb2..7aa13de73 100644 --- a/tools/designer/designer/configtoolboxdialog.ui.h +++ b/tools/designer/designer/configtoolboxdialog.ui.h @@ -34,7 +34,7 @@ #include "mainwindow.h" #include "widgetaction.h" #include "listviewdnd.h" -#include +#include void ConfigToolboxDialog::init() { diff --git a/tools/designer/designer/connectiondialog.ui b/tools/designer/designer/connectiondialog.ui index 9292bfe19..b938be930 100644 --- a/tools/designer/designer/connectiondialog.ui +++ b/tools/designer/designer/connectiondialog.ui @@ -199,7 +199,7 @@ - qptrlist.h + ntqptrlist.h connectionitems.h connectiondialog.ui.h diff --git a/tools/designer/designer/connectionitems.cpp b/tools/designer/designer/connectionitems.cpp index e9a5fdbfe..db73c966c 100644 --- a/tools/designer/designer/connectionitems.cpp +++ b/tools/designer/designer/connectionitems.cpp @@ -37,13 +37,13 @@ #include "metadatabase.h" #include "widgetfactory.h" #include "project.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include static const char* const ignore_slots[] = { "destroyed()", diff --git a/tools/designer/designer/connectionitems.h b/tools/designer/designer/connectionitems.h index 56ca528f8..60407ae55 100644 --- a/tools/designer/designer/connectionitems.h +++ b/tools/designer/designer/connectionitems.h @@ -36,7 +36,7 @@ class FormWindow; -#include +#include class SenderItem; class ReceiverItem; diff --git a/tools/designer/designer/connectiontable.h b/tools/designer/designer/connectiontable.h index ca7bd835a..6a11ce9f4 100644 --- a/tools/designer/designer/connectiontable.h +++ b/tools/designer/designer/connectiontable.h @@ -34,7 +34,7 @@ #ifndef CONNECTIONTABLE_H #define CONNECTIONTABLE_H -#include +#include class ConnectionTable : public TQTable { diff --git a/tools/designer/designer/customwidgeteditorimpl.cpp b/tools/designer/designer/customwidgeteditorimpl.cpp index d87be0913..ac517f1df 100644 --- a/tools/designer/designer/customwidgeteditorimpl.cpp +++ b/tools/designer/designer/customwidgeteditorimpl.cpp @@ -40,23 +40,23 @@ #include "widgetfactory.h" #include "widgetdatabase.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include CustomWidgetEditor::CustomWidgetEditor( TQWidget *parent, MainWindow *mw ) : CustomWidgetEditorBase( parent, 0, TRUE ), mainWindow( mw ) diff --git a/tools/designer/designer/customwidgeteditorimpl.h b/tools/designer/designer/customwidgeteditorimpl.h index d6f42dec1..fd645976b 100644 --- a/tools/designer/designer/customwidgeteditorimpl.h +++ b/tools/designer/designer/customwidgeteditorimpl.h @@ -37,8 +37,8 @@ #include "customwidgeteditor.h" #include "metadatabase.h" -#include -#include +#include +#include class TQTimer; class TQListBoxItem; diff --git a/tools/designer/designer/database.cpp b/tools/designer/designer/database.cpp index b0399fc33..ca917c1d9 100644 --- a/tools/designer/designer/database.cpp +++ b/tools/designer/designer/database.cpp @@ -44,10 +44,10 @@ #include "mainwindow.h" #endif -#include -#include -#include -#include +#include +#include +#include +#include DatabaseSupport::DatabaseSupport() { diff --git a/tools/designer/designer/database.h b/tools/designer/designer/database.h index aae034e03..3008f7835 100644 --- a/tools/designer/designer/database.h +++ b/tools/designer/designer/database.h @@ -34,13 +34,13 @@ #ifndef DATABASE_H #define DATABASE_H -#include "qfeatures.h" +#include "ntqfeatures.h" #ifndef QT_NO_SQL -#include -#include -#include -#include +#include +#include +#include +#include class TQSqlDatabase; class TQSqlForm; diff --git a/tools/designer/designer/database2.h b/tools/designer/designer/database2.h index 3fd1c96ad..fade3b8e9 100644 --- a/tools/designer/designer/database2.h +++ b/tools/designer/designer/database2.h @@ -34,13 +34,13 @@ #ifndef DATABASE2_H #define DATABASE2_H -#include "qfeatures.h" +#include "ntqfeatures.h" #ifndef QT_NO_SQL -#include -#include -#include -#include +#include +#include +#include +#include class TQSqlDatabase; class TQSqlForm; diff --git a/tools/designer/designer/dbconnectionimpl.cpp b/tools/designer/designer/dbconnectionimpl.cpp index 4e5378106..ae6cbac9e 100644 --- a/tools/designer/designer/dbconnectionimpl.cpp +++ b/tools/designer/designer/dbconnectionimpl.cpp @@ -35,12 +35,12 @@ #include "dbconnection.h" #include "project.h" #include "asciivalidator.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include DatabaseConnectionEditor::DatabaseConnectionEditor( DatabaseConnection* connection, TQWidget* parent, const char* name, bool modal, WFlags fl ) diff --git a/tools/designer/designer/dbconnectionsimpl.cpp b/tools/designer/designer/dbconnectionsimpl.cpp index e6b88d742..0507cb713 100644 --- a/tools/designer/designer/dbconnectionsimpl.cpp +++ b/tools/designer/designer/dbconnectionsimpl.cpp @@ -32,18 +32,18 @@ **********************************************************************/ #include "dbconnectionsimpl.h" -#include -#include -#include +#include +#include +#include #include "project.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include "mainwindow.h" #include "asciivalidator.h" diff --git a/tools/designer/designer/defs.h b/tools/designer/designer/defs.h index 29f244cd7..1a6bf5cb9 100644 --- a/tools/designer/designer/defs.h +++ b/tools/designer/designer/defs.h @@ -34,8 +34,8 @@ #ifndef DEFS_H #define DEFS_H -#include -#include +#include +#include #define POINTER_TOOL 32000 #define CONNECT_TOOL 32001 diff --git a/tools/designer/designer/designer_pch.h b/tools/designer/designer/designer_pch.h index 858cd3891..5cc5fd483 100644 --- a/tools/designer/designer/designer_pch.h +++ b/tools/designer/designer/designer_pch.h @@ -9,30 +9,30 @@ #if defined __cplusplus #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "command.h" #include "formwindow.h" diff --git a/tools/designer/designer/designerapp.cpp b/tools/designer/designer/designerapp.cpp index ea1365284..06e8edab9 100644 --- a/tools/designer/designer/designerapp.cpp +++ b/tools/designer/designer/designerapp.cpp @@ -36,10 +36,10 @@ #include "mainwindow.h" #include "formwindow.h" -#include -#include -#include -#include +#include +#include +#include +#include #ifdef Q_WS_WIN #include diff --git a/tools/designer/designer/designerapp.h b/tools/designer/designer/designerapp.h index bffe7fdca..703443f93 100644 --- a/tools/designer/designer/designerapp.h +++ b/tools/designer/designer/designerapp.h @@ -36,7 +36,7 @@ class TQSplashScreen; -#include +#include class DesignerApplication : public TQApplication { diff --git a/tools/designer/designer/designerappiface.cpp b/tools/designer/designer/designerappiface.cpp index 97a531b4e..d1d215a71 100644 --- a/tools/designer/designer/designerappiface.cpp +++ b/tools/designer/designer/designerappiface.cpp @@ -31,8 +31,8 @@ ** **********************************************************************/ -#include -#include +#include +#include #include "designerappiface.h" #include "mainwindow.h" #include "project.h" @@ -42,14 +42,14 @@ #include "command.h" #include "outputwindow.h" #include "../shared/widgetdatabase.h" -#include -#include -#include -#include +#include +#include +#include +#include #include "pixmapcollection.h" #include "hierarchyview.h" #include -#include +#include #include "popupmenueditor.h" #include "menubareditor.h" diff --git a/tools/designer/designer/editfunctionsimpl.cpp b/tools/designer/designer/editfunctionsimpl.cpp index 20e8df4f8..49f173285 100644 --- a/tools/designer/designer/editfunctionsimpl.cpp +++ b/tools/designer/designer/editfunctionsimpl.cpp @@ -39,17 +39,17 @@ #include "hierarchyview.h" #include "project.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include EditFunctions::EditFunctions( TQWidget *parent, FormWindow *fw, bool justSlots ) : EditFunctionsBase( parent, 0, TRUE ), formWindow( fw ) diff --git a/tools/designer/designer/editfunctionsimpl.h b/tools/designer/designer/editfunctionsimpl.h index 02a43aaa1..d852afcfb 100644 --- a/tools/designer/designer/editfunctionsimpl.h +++ b/tools/designer/designer/editfunctionsimpl.h @@ -37,7 +37,7 @@ #include "editfunctions.h" #include "hierarchyview.h" #include "metadatabase.h" -#include +#include class FormWindow; class TQListViewItem; diff --git a/tools/designer/designer/finddialog.ui b/tools/designer/designer/finddialog.ui index 9adaecacb..73b00ef6f 100644 --- a/tools/designer/designer/finddialog.ui +++ b/tools/designer/designer/finddialog.ui @@ -260,7 +260,7 @@ PushButton2 - qlineedit.h + ntqlineedit.h ../interfaces/editorinterface.h finddialog.ui.h diff --git a/tools/designer/designer/formfile.cpp b/tools/designer/designer/formfile.cpp index aaa17eba7..2afe8423d 100644 --- a/tools/designer/designer/formfile.cpp +++ b/tools/designer/designer/formfile.cpp @@ -41,14 +41,14 @@ #include "../interfaces/languageinterface.h" #include "resource.h" #include "workspace.h" -#include -#include -#include +#include +#include +#include #include "propertyeditor.h" -#include +#include #include #include "designerappiface.h" -#include +#include static TQString make_func_pretty( const TQString &s ) { diff --git a/tools/designer/designer/formfile.h b/tools/designer/designer/formfile.h index 41e2199d6..8cc493c3b 100644 --- a/tools/designer/designer/formfile.h +++ b/tools/designer/designer/formfile.h @@ -34,7 +34,7 @@ #ifndef FORMFILE_H #define FORMFILE_H -#include +#include #include "timestamp.h" #include "metadatabase.h" diff --git a/tools/designer/designer/formsettingsimpl.cpp b/tools/designer/designer/formsettingsimpl.cpp index 73c4f25b6..684649182 100644 --- a/tools/designer/designer/formsettingsimpl.cpp +++ b/tools/designer/designer/formsettingsimpl.cpp @@ -39,13 +39,13 @@ #include "mainwindow.h" #include "project.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include FormSettings::FormSettings( TQWidget *parent, FormWindow *fw ) : FormSettingsBase( parent, 0, TRUE ), formwindow( fw ) diff --git a/tools/designer/designer/formwindow.cpp b/tools/designer/designer/formwindow.cpp index 14e440d74..b352b11d1 100644 --- a/tools/designer/designer/formwindow.cpp +++ b/tools/designer/designer/formwindow.cpp @@ -51,30 +51,30 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // FormWindow should be able to work to some limited degree // (existance, loading) without a MainWindow. Functions which require diff --git a/tools/designer/designer/formwindow.h b/tools/designer/designer/formwindow.h index 2155c4133..b294d6794 100644 --- a/tools/designer/designer/formwindow.h +++ b/tools/designer/designer/formwindow.h @@ -39,11 +39,11 @@ #include "sizehandle.h" #include "actiondnd.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include class TQPaintEvent; class TQMouseEvent; diff --git a/tools/designer/designer/hierarchyview.cpp b/tools/designer/designer/hierarchyview.cpp index cbb1a4fa3..77c84d0b9 100644 --- a/tools/designer/designer/hierarchyview.cpp +++ b/tools/designer/designer/hierarchyview.cpp @@ -49,21 +49,21 @@ #include "popupmenueditor.h" #include "menubareditor.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "../interfaces/languageinterface.h" -#include -#include -#include +#include +#include +#include #include diff --git a/tools/designer/designer/hierarchyview.h b/tools/designer/designer/hierarchyview.h index d18134635..29c200556 100644 --- a/tools/designer/designer/hierarchyview.h +++ b/tools/designer/designer/hierarchyview.h @@ -34,10 +34,10 @@ #ifndef HIRARCHYVIEW_H #define HIRARCHYVIEW_H -#include -#include -#include -#include +#include +#include +#include +#include #include #include "../interfaces/classbrowserinterface.h" diff --git a/tools/designer/designer/iconvieweditorimpl.cpp b/tools/designer/designer/iconvieweditorimpl.cpp index f8fe7e442..73723e8f1 100644 --- a/tools/designer/designer/iconvieweditorimpl.cpp +++ b/tools/designer/designer/iconvieweditorimpl.cpp @@ -36,11 +36,11 @@ #include "mainwindow.h" #include "pixmapchooser.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include IconViewEditor::IconViewEditor( TQWidget *parent, TQWidget *editWidget, FormWindow *fw ) : IconViewEditorBase( parent, 0, TRUE ), formwindow( fw ) diff --git a/tools/designer/designer/layout.cpp b/tools/designer/designer/layout.cpp index ce6f77801..2f0393b1c 100644 --- a/tools/designer/designer/layout.cpp +++ b/tools/designer/designer/layout.cpp @@ -36,14 +36,14 @@ #include #include "widgetfactory.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include bool operator<( const TQGuardedPtr &p1, const TQGuardedPtr &p2 ) { diff --git a/tools/designer/designer/layout.h b/tools/designer/designer/layout.h index 53e0d48a5..97bd997bf 100644 --- a/tools/designer/designer/layout.h +++ b/tools/designer/designer/layout.h @@ -34,13 +34,13 @@ #ifndef LAYOUT_H #define LAYOUT_H -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include class FormWindow; class TQPaintEvent; diff --git a/tools/designer/designer/listboxdnd.cpp b/tools/designer/designer/listboxdnd.cpp index aa50c0b52..11f388686 100644 --- a/tools/designer/designer/listboxdnd.cpp +++ b/tools/designer/designer/listboxdnd.cpp @@ -32,11 +32,11 @@ **********************************************************************/ #include "listboxdnd.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include // The Dragobject Declaration --------------------------------------- class ListBoxItemDrag : public TQStoredDrag diff --git a/tools/designer/designer/listboxdnd.h b/tools/designer/designer/listboxdnd.h index fbea6a9f2..50e8db899 100644 --- a/tools/designer/designer/listboxdnd.h +++ b/tools/designer/designer/listboxdnd.h @@ -34,8 +34,8 @@ #ifndef LISTBOXDND_H #define LISTBOXDND_H -#include -#include +#include +#include #include "listdnd.h" typedef TQPtrList ListBoxItemList; diff --git a/tools/designer/designer/listboxeditorimpl.cpp b/tools/designer/designer/listboxeditorimpl.cpp index 7e3684d04..08d4560ab 100644 --- a/tools/designer/designer/listboxeditorimpl.cpp +++ b/tools/designer/designer/listboxeditorimpl.cpp @@ -39,11 +39,11 @@ #include "listboxdnd.h" #include "listboxrename.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include ListBoxEditor::ListBoxEditor( TQWidget *parent, TQWidget *editWidget, FormWindow *fw ) : ListBoxEditorBase( parent, 0, TRUE ), formwindow( fw ) diff --git a/tools/designer/designer/listboxrename.cpp b/tools/designer/designer/listboxrename.cpp index 17ca13009..c78f64618 100644 --- a/tools/designer/designer/listboxrename.cpp +++ b/tools/designer/designer/listboxrename.cpp @@ -31,9 +31,9 @@ ** **********************************************************************/ -#include -#include -#include +#include +#include +#include #include "listboxrename.h" class EditableListBoxItem : public TQListBoxItem diff --git a/tools/designer/designer/listboxrename.h b/tools/designer/designer/listboxrename.h index 27c4d1d0d..e857fcfe1 100644 --- a/tools/designer/designer/listboxrename.h +++ b/tools/designer/designer/listboxrename.h @@ -34,8 +34,8 @@ #ifndef LISTBOXRENAME_H #define LISTBOXRENAME_H -#include -#include +#include +#include class TQLineEdit; diff --git a/tools/designer/designer/listdnd.cpp b/tools/designer/designer/listdnd.cpp index 46374632f..137237ad7 100644 --- a/tools/designer/designer/listdnd.cpp +++ b/tools/designer/designer/listdnd.cpp @@ -32,8 +32,8 @@ **********************************************************************/ #include "listdnd.h" -#include -#include +#include +#include ListDnd::ListDnd( TQScrollView * eventSource, const char * name ) : TQObject( eventSource, name ), diff --git a/tools/designer/designer/listdnd.h b/tools/designer/designer/listdnd.h index 97794bcd9..08820f707 100644 --- a/tools/designer/designer/listdnd.h +++ b/tools/designer/designer/listdnd.h @@ -34,8 +34,8 @@ #ifndef LISTDND_H #define LISTDND_H -#include -#include +#include +#include class ListDnd : public TQObject { diff --git a/tools/designer/designer/listeditor.ui.h b/tools/designer/designer/listeditor.ui.h index 35df155e1..5468f796a 100644 --- a/tools/designer/designer/listeditor.ui.h +++ b/tools/designer/designer/listeditor.ui.h @@ -6,8 +6,8 @@ ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ -#include -#include +#include +#include void ListEditor::init() { diff --git a/tools/designer/designer/listviewdnd.cpp b/tools/designer/designer/listviewdnd.cpp index b0fb1bf3f..49c7980f6 100644 --- a/tools/designer/designer/listviewdnd.cpp +++ b/tools/designer/designer/listviewdnd.cpp @@ -32,11 +32,11 @@ **********************************************************************/ #include "listviewdnd.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include // The Dragobject Declaration --------------------------------------- class ListViewItemDrag : public TQStoredDrag diff --git a/tools/designer/designer/listviewdnd.h b/tools/designer/designer/listviewdnd.h index 3b0255bbf..dee4ce43f 100644 --- a/tools/designer/designer/listviewdnd.h +++ b/tools/designer/designer/listviewdnd.h @@ -34,8 +34,8 @@ #ifndef LISTVIEWDND_H #define LISTVIEWDND_H -#include -#include +#include +#include #include "listdnd.h" class TQWidget; diff --git a/tools/designer/designer/listvieweditorimpl.cpp b/tools/designer/designer/listvieweditorimpl.cpp index 59c31732a..c65ac833d 100644 --- a/tools/designer/designer/listvieweditorimpl.cpp +++ b/tools/designer/designer/listvieweditorimpl.cpp @@ -40,16 +40,16 @@ #include "listboxdnd.h" #include "listboxrename.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include ListViewEditor::ListViewEditor( TQWidget *parent, TQListView *lv, FormWindow *fw ) : ListViewEditorBase( parent, 0, TRUE ), listview( lv ), formwindow( fw ) diff --git a/tools/designer/designer/listvieweditorimpl.h b/tools/designer/designer/listvieweditorimpl.h index c0351e661..f3258fb60 100644 --- a/tools/designer/designer/listvieweditorimpl.h +++ b/tools/designer/designer/listvieweditorimpl.h @@ -36,9 +36,9 @@ #include "listvieweditor.h" -#include -#include -#include +#include +#include +#include class FormWindow; diff --git a/tools/designer/designer/mainwindow.cpp b/tools/designer/designer/mainwindow.cpp index 868d349ff..822f35eba 100644 --- a/tools/designer/designer/mainwindow.cpp +++ b/tools/designer/designer/mainwindow.cpp @@ -54,12 +54,12 @@ #include "actiondnd.h" #include "project.h" #include "projectsettingsimpl.h" -#include "qwidgetfactory.h" +#include "ntqwidgetfactory.h" #include "pixmapcollection.h" #include "qcompletionedit.h" #include "sourcefile.h" #include "orderindicator.h" -#include +#include #include "widgetaction.h" #include "propertyobject.h" #include "popupmenueditor.h" @@ -87,37 +87,37 @@ #include "replacedialog.h" #include "gotolinedialog.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include static bool mblockNewForms = FALSE; @@ -774,10 +774,10 @@ void MainWindow::helpContents() } else if ( cp == "layoutSpacing" ) { source = propertyDocumentation[ "TQLayout/spacing" ]; } else if ( cp == "toolTip" ) { - source = "qtooltip.html#details"; + source = "ntqtooltip.html#details"; } else if ( mo && qstrcmp( mo->className(), "Spacer" ) == 0 ) { if ( cp != "name" ) - source = "qsizepolicy.html#SizeType"; + source = "ntqsizepolicy.html#SizeType"; else source = propertyDocumentation[ "TQObject/name" ]; } else { @@ -832,7 +832,7 @@ void MainWindow::helpAboutTQt() #if defined(_WS_WIN_) #include -#include +#include #endif void MainWindow::helpRegister() diff --git a/tools/designer/designer/mainwindow.h b/tools/designer/designer/mainwindow.h index 4acc2051c..602f8a563 100644 --- a/tools/designer/designer/mainwindow.h +++ b/tools/designer/designer/mainwindow.h @@ -46,12 +46,12 @@ #include "../interfaces/sourcetemplateiface.h" #include "sourceeditor.h" -#include -#include -#include -#include +#include +#include +#include +#include #include -#include +#include class TQToolBox; class PropertyEditor; @@ -75,7 +75,7 @@ class FormFile; class TQAssistantClient; #if defined(Q_FULL_TEMPLATE_INSTANTIATION) -#include +#include #else class TQToolBar; #endif diff --git a/tools/designer/designer/mainwindowactions.cpp b/tools/designer/designer/mainwindowactions.cpp index d89ed1657..86da0e524 100644 --- a/tools/designer/designer/mainwindowactions.cpp +++ b/tools/designer/designer/mainwindowactions.cpp @@ -34,25 +34,25 @@ #include "mainwindow.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "defs.h" #include "project.h" @@ -79,7 +79,7 @@ #include "dbconnectionimpl.h" #endif #include "widgetaction.h" -#include +#include #include "startdialogimpl.h" #include "designerappiface.h" #include "connectiondialog.h" diff --git a/tools/designer/designer/menubareditor.cpp b/tools/designer/designer/menubareditor.cpp index 56ad84f4b..6687eddb2 100644 --- a/tools/designer/designer/menubareditor.cpp +++ b/tools/designer/designer/menubareditor.cpp @@ -31,14 +31,14 @@ ** **********************************************************************/ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include "command.h" #include "formwindow.h" #include "menubareditor.h" diff --git a/tools/designer/designer/menubareditor.h b/tools/designer/designer/menubareditor.h index ff5699879..495d4112a 100644 --- a/tools/designer/designer/menubareditor.h +++ b/tools/designer/designer/menubareditor.h @@ -34,8 +34,8 @@ #ifndef MENUBAREDITOR_H #define MENUBAREDITOR_H -#include -#include +#include +#include class PopupMenuEditor; class MenuBarEditor; diff --git a/tools/designer/designer/metadatabase.cpp b/tools/designer/designer/metadatabase.cpp index b773732ca..302ee5328 100644 --- a/tools/designer/designer/metadatabase.cpp +++ b/tools/designer/designer/metadatabase.cpp @@ -41,21 +41,21 @@ #include "project.h" #include "mainwindow.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include #include diff --git a/tools/designer/designer/metadatabase.h b/tools/designer/designer/metadatabase.h index eba00e455..92e989000 100644 --- a/tools/designer/designer/metadatabase.h +++ b/tools/designer/designer/metadatabase.h @@ -34,15 +34,15 @@ #ifndef METADATABASE_H #define METADATABASE_H -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "pixmapchooser.h" #include "../interfaces/languageinterface.h" diff --git a/tools/designer/designer/multilineeditorimpl.cpp b/tools/designer/designer/multilineeditorimpl.cpp index 9417454c7..d257d1636 100644 --- a/tools/designer/designer/multilineeditorimpl.cpp +++ b/tools/designer/designer/multilineeditorimpl.cpp @@ -39,14 +39,14 @@ #include "syntaxhighlighter_html.h" #include "widgetfactory.h" -#include +#include #include <./private/qrichtext_p.h> -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include ToolBarItem::ToolBarItem( TQWidget *parent, TQWidget *toolBar, const TQString &label, const TQString &tagstr, diff --git a/tools/designer/designer/multilineeditorimpl.h b/tools/designer/designer/multilineeditorimpl.h index c841a3c34..603578dbf 100644 --- a/tools/designer/designer/multilineeditorimpl.h +++ b/tools/designer/designer/multilineeditorimpl.h @@ -34,8 +34,8 @@ #ifndef MULTILINEEDITORIMPL_H #define MULTILINEEDITORIMPL_H -#include -#include +#include +#include #include #include "multilineeditor.h" diff --git a/tools/designer/designer/newformimpl.cpp b/tools/designer/designer/newformimpl.cpp index dc47df051..4636bc9d5 100644 --- a/tools/designer/designer/newformimpl.cpp +++ b/tools/designer/designer/newformimpl.cpp @@ -44,15 +44,15 @@ #include "projectsettingsimpl.h" #include "sourcefile.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include static int forms = 0; diff --git a/tools/designer/designer/newformimpl.h b/tools/designer/designer/newformimpl.h index e46e2924d..ba9a21c83 100644 --- a/tools/designer/designer/newformimpl.h +++ b/tools/designer/designer/newformimpl.h @@ -35,7 +35,7 @@ #define NEWFORMIMPL_H #include "newform.h" -#include +#include class Project; diff --git a/tools/designer/designer/orderindicator.cpp b/tools/designer/designer/orderindicator.cpp index 6e509279b..7a886991e 100644 --- a/tools/designer/designer/orderindicator.cpp +++ b/tools/designer/designer/orderindicator.cpp @@ -31,14 +31,14 @@ ** **********************************************************************/ -#include // HP-UX compiler need this here +#include // HP-UX compiler need this here #include "orderindicator.h" #include "formwindow.h" -#include -#include -#include +#include +#include +#include OrderIndicator::OrderIndicator( int i, TQWidget* w, FormWindow *fw ) : TQWidget( fw, "order_indicator", WMouseNoMask ), formWindow( fw ) diff --git a/tools/designer/designer/orderindicator.h b/tools/designer/designer/orderindicator.h index b2743d2d6..49b144f64 100644 --- a/tools/designer/designer/orderindicator.h +++ b/tools/designer/designer/orderindicator.h @@ -34,7 +34,7 @@ #ifndef ORDERINDICATOR_H #define ORDERINDICATOR_H -#include +#include class FormWindow; diff --git a/tools/designer/designer/outputwindow.cpp b/tools/designer/designer/outputwindow.cpp index 731609467..5a4479b9d 100644 --- a/tools/designer/designer/outputwindow.cpp +++ b/tools/designer/designer/outputwindow.cpp @@ -36,13 +36,13 @@ #include "metadatabase.h" #include "mainwindow.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include -#include +#include static TQTextEdit *debugoutput = 0; bool debugToStderr = FALSE; diff --git a/tools/designer/designer/outputwindow.h b/tools/designer/designer/outputwindow.h index 2f1613ea0..991e75723 100644 --- a/tools/designer/designer/outputwindow.h +++ b/tools/designer/designer/outputwindow.h @@ -34,10 +34,10 @@ #ifndef OUTPUTWINDOW_H #define OUTPUTWINDOW_H -#include -#include -#include -#include +#include +#include +#include +#include struct DesignerOutputDock; class TQTextEdit; diff --git a/tools/designer/designer/paletteeditoradvancedimpl.cpp b/tools/designer/designer/paletteeditoradvancedimpl.cpp index d0cdc9081..f632f8b56 100644 --- a/tools/designer/designer/paletteeditoradvancedimpl.cpp +++ b/tools/designer/designer/paletteeditoradvancedimpl.cpp @@ -36,13 +36,13 @@ #include "mainwindow.h" #include "formwindow.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include /*! Class used by PaletteEditor for bold combobox items diff --git a/tools/designer/designer/paletteeditorimpl.cpp b/tools/designer/designer/paletteeditorimpl.cpp index ec1c9aaea..319f110e6 100644 --- a/tools/designer/designer/paletteeditorimpl.cpp +++ b/tools/designer/designer/paletteeditorimpl.cpp @@ -38,10 +38,10 @@ #include "mainwindow.h" #include "formwindow.h" -#include -#include -#include -#include +#include +#include +#include +#include PaletteEditor::PaletteEditor( FormWindow *fw, TQWidget * parent, const char * name, bool modal, WFlags f ) : PaletteEditorBase( parent, name, modal, f ), formWindow( fw ) diff --git a/tools/designer/designer/pixmapchooser.cpp b/tools/designer/designer/pixmapchooser.cpp index b0757b756..4693013bb 100644 --- a/tools/designer/designer/pixmapchooser.cpp +++ b/tools/designer/designer/pixmapchooser.cpp @@ -31,7 +31,7 @@ ** **********************************************************************/ -#include // HP-UX compiler needs this here +#include // HP-UX compiler needs this here #include "pixmapchooser.h" #include "formwindow.h" @@ -44,13 +44,13 @@ #include "pixmapcollection.h" #include "project.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #if defined(DESIGNER) static ImageIconProvider *imageIconProvider = 0; diff --git a/tools/designer/designer/pixmapchooser.h b/tools/designer/designer/pixmapchooser.h index 212457e82..4ac0cba50 100644 --- a/tools/designer/designer/pixmapchooser.h +++ b/tools/designer/designer/pixmapchooser.h @@ -34,10 +34,10 @@ #ifndef PIXMAPCHOOSER_H #define PIXMAPCHOOSER_H -#include -#include -#include -#include +#include +#include +#include +#include class FormWindow; diff --git a/tools/designer/designer/pixmapcollection.cpp b/tools/designer/designer/pixmapcollection.cpp index ec3e234db..83bb14502 100644 --- a/tools/designer/designer/pixmapcollection.cpp +++ b/tools/designer/designer/pixmapcollection.cpp @@ -34,11 +34,11 @@ #include "pixmapcollection.h" #include "project.h" #include "mainwindow.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include PixmapCollection::PixmapCollection( Project *pro ) : project( pro ) diff --git a/tools/designer/designer/pixmapcollection.h b/tools/designer/designer/pixmapcollection.h index 2545c502d..8b89824ec 100644 --- a/tools/designer/designer/pixmapcollection.h +++ b/tools/designer/designer/pixmapcollection.h @@ -34,9 +34,9 @@ #ifndef PIXMAPCOLLECTION_H #define PIXMAPCOLLECTION_H -#include -#include -#include +#include +#include +#include #include "designerappiface.h" class TQMimeSourceFactory; diff --git a/tools/designer/designer/pixmapcollectioneditor.ui b/tools/designer/designer/pixmapcollectioneditor.ui index 739aea615..f6104f640 100644 --- a/tools/designer/designer/pixmapcollectioneditor.ui +++ b/tools/designer/designer/pixmapcollectioneditor.ui @@ -197,9 +197,9 @@ pixmapcollection.h pixmapchooser.h project.h - qfileinfo.h - qimage.h - qpixmap.h + ntqfileinfo.h + ntqimage.h + ntqpixmap.h pixmapcollectioneditor.ui.h diff --git a/tools/designer/designer/popupmenueditor.cpp b/tools/designer/designer/popupmenueditor.cpp index 2bd4a231a..af5a59594 100644 --- a/tools/designer/designer/popupmenueditor.cpp +++ b/tools/designer/designer/popupmenueditor.cpp @@ -31,18 +31,18 @@ ** **********************************************************************/ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "actiondnd.h" #include "actioneditorimpl.h" #include "command.h" diff --git a/tools/designer/designer/popupmenueditor.h b/tools/designer/designer/popupmenueditor.h index aafdb7d4e..b4335905f 100644 --- a/tools/designer/designer/popupmenueditor.h +++ b/tools/designer/designer/popupmenueditor.h @@ -34,9 +34,9 @@ #ifndef POPUPMENUEDITOR_H #define POPUPMENUEDITOR_H -#include -#include -#include +#include +#include +#include class PopupMenuEditor; class TQMenuItem; @@ -102,7 +102,7 @@ class FormWindow; class MainWindow; class TQLineEdit; -#include +#include class PopupMenuEditor : public TQWidget { diff --git a/tools/designer/designer/previewframe.cpp b/tools/designer/designer/previewframe.cpp index 6f23c5aed..9fe2b4bfb 100644 --- a/tools/designer/designer/previewframe.cpp +++ b/tools/designer/designer/previewframe.cpp @@ -31,8 +31,8 @@ ** **********************************************************************/ -#include -#include +#include +#include #include "previewframe.h" diff --git a/tools/designer/designer/previewframe.h b/tools/designer/designer/previewframe.h index 7e6162446..679f20813 100644 --- a/tools/designer/designer/previewframe.h +++ b/tools/designer/designer/previewframe.h @@ -34,8 +34,8 @@ #ifndef PREVIEWFRAME_H #define PREVIEWFRAME_H -#include -#include +#include +#include #include "previewwidgetimpl.h" diff --git a/tools/designer/designer/previewwidgetimpl.cpp b/tools/designer/designer/previewwidgetimpl.cpp index 8fe61e3ea..aa75de704 100644 --- a/tools/designer/designer/previewwidgetimpl.cpp +++ b/tools/designer/designer/previewwidgetimpl.cpp @@ -31,7 +31,7 @@ ** **********************************************************************/ -#include "qobjectlist.h" +#include "ntqobjectlist.h" #include "previewwidgetimpl.h" PreviewWidget::PreviewWidget( TQWidget *parent, const char *name ) diff --git a/tools/designer/designer/project.cpp b/tools/designer/designer/project.cpp index f6f4c7bb8..862dd1742 100644 --- a/tools/designer/designer/project.cpp +++ b/tools/designer/designer/project.cpp @@ -40,25 +40,25 @@ #include "dbconnectionimpl.h" #endif #include "resource.h" -#include +#include #include "outputwindow.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "mainwindow.h" -#include +#include #ifndef QT_NO_SQL -#include -#include -#include +#include +#include +#include #endif #include diff --git a/tools/designer/designer/project.h b/tools/designer/designer/project.h index ecd6b1086..066712c12 100644 --- a/tools/designer/designer/project.h +++ b/tools/designer/designer/project.h @@ -34,18 +34,18 @@ #ifndef PROJECT_H #define PROJECT_H -#include +#include -#include -#include -#include -#include +#include +#include +#include +#include #include #include "../interfaces/projectsettingsiface.h" #include "sourcefile.h" #include "formfile.h" -#include -#include +#include +#include #include "formfile.h" class TQObjectList; diff --git a/tools/designer/designer/projectsettingsimpl.cpp b/tools/designer/designer/projectsettingsimpl.cpp index 5ec88bd13..87800fa00 100644 --- a/tools/designer/designer/projectsettingsimpl.cpp +++ b/tools/designer/designer/projectsettingsimpl.cpp @@ -41,15 +41,15 @@ #include "sourcefile.h" #include "workspace.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* * Constructs a ProjectSettings which is a child of 'parent', with the diff --git a/tools/designer/designer/propertyeditor.cpp b/tools/designer/designer/propertyeditor.cpp index 4e953fa14..efbe42b9d 100644 --- a/tools/designer/designer/propertyeditor.cpp +++ b/tools/designer/designer/propertyeditor.cpp @@ -31,7 +31,7 @@ ** **********************************************************************/ -#include // HP-UX compiler needs this here +#include // HP-UX compiler needs this here #include "propertyeditor.h" #include "formwindow.h" @@ -51,44 +51,44 @@ #include "database.h" #include "menubareditor.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // FIXME: obsolete -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // FIXME: obsolete +#include +#include +#include #include @@ -96,7 +96,7 @@ static TQFontDatabase *fontDataBase = 0; TQString assistantPath(); #ifdef Q_WS_MAC -#include +#include static void setupStyle(TQWidget *w) { static TQStyle *windowsStyle = 0; diff --git a/tools/designer/designer/propertyeditor.h b/tools/designer/designer/propertyeditor.h index 1375c6a6d..ca7228ac2 100644 --- a/tools/designer/designer/propertyeditor.h +++ b/tools/designer/designer/propertyeditor.h @@ -34,17 +34,17 @@ #ifndef PROPERTYEDITOR_H #define PROPERTYEDITOR_H -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "hierarchyview.h" #include "metadatabase.h" diff --git a/tools/designer/designer/propertyobject.cpp b/tools/designer/designer/propertyobject.cpp index 01f410f8b..3244ec52e 100644 --- a/tools/designer/designer/propertyobject.cpp +++ b/tools/designer/designer/propertyobject.cpp @@ -33,10 +33,10 @@ #include "propertyobject.h" #include "metadatabase.h" -#include -#include -#include -#include +#include +#include +#include +#include PropertyObject::PropertyObject( const TQWidgetList &objs ) : TQObject(), objects( objs ), mobj( 0 ) diff --git a/tools/designer/designer/propertyobject.h b/tools/designer/designer/propertyobject.h index c3d159b10..51c9db314 100644 --- a/tools/designer/designer/propertyobject.h +++ b/tools/designer/designer/propertyobject.h @@ -1,9 +1,9 @@ #ifndef PROPERTYOBJECT_H #define PROPERTYOBJECT_H -#include -#include -#include +#include +#include +#include class PropertyObject : public TQObject { diff --git a/tools/designer/designer/qcompletionedit.cpp b/tools/designer/designer/qcompletionedit.cpp index e95fbbcec..b403e5715 100644 --- a/tools/designer/designer/qcompletionedit.cpp +++ b/tools/designer/designer/qcompletionedit.cpp @@ -32,10 +32,10 @@ **********************************************************************/ #include "qcompletionedit.h" -#include -#include -#include -#include +#include +#include +#include +#include TQCompletionEdit::TQCompletionEdit( TQWidget *parent, const char *name ) : TQLineEdit( parent, name ), aAdd( FALSE ), caseSensitive( FALSE ) diff --git a/tools/designer/designer/qcompletionedit.h b/tools/designer/designer/qcompletionedit.h index 21e08156c..7bae93b8e 100644 --- a/tools/designer/designer/qcompletionedit.h +++ b/tools/designer/designer/qcompletionedit.h @@ -34,8 +34,8 @@ #ifndef TQCOMPLETIONEDIT_H #define TQCOMPLETIONEDIT_H -#include -#include +#include +#include class TQListBox; class TQVBox; diff --git a/tools/designer/designer/replacedialog.ui b/tools/designer/designer/replacedialog.ui index 0aff36d1b..3cd6e2476 100644 --- a/tools/designer/designer/replacedialog.ui +++ b/tools/designer/designer/replacedialog.ui @@ -304,7 +304,7 @@ ../interfaces/editorinterface.h - qlineedit.h + ntqlineedit.h replacedialog.ui.h diff --git a/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp index e4e1bdcfb..0e4a5206a 100644 --- a/tools/designer/designer/resource.cpp +++ b/tools/designer/designer/resource.cpp @@ -50,42 +50,42 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifndef QT_NO_TABLE -#include -#include +#include +#include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include static TQString makeIndent( int indent ) diff --git a/tools/designer/designer/resource.h b/tools/designer/designer/resource.h index 2cc60b69f..3d196a45e 100644 --- a/tools/designer/designer/resource.h +++ b/tools/designer/designer/resource.h @@ -34,11 +34,11 @@ #ifndef RESOURCE_H #define RESOURCE_H -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "actiondnd.h" #include "metadatabase.h" diff --git a/tools/designer/designer/richtextfontdialog.ui.h b/tools/designer/designer/richtextfontdialog.ui.h index 0a5adce23..529c52aa7 100644 --- a/tools/designer/designer/richtextfontdialog.ui.h +++ b/tools/designer/designer/richtextfontdialog.ui.h @@ -5,8 +5,8 @@ ** update this file, preserving your code. Create an init() slot in place of ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ -#include -#include +#include +#include void RichTextFontDialog::init() { diff --git a/tools/designer/designer/sizehandle.cpp b/tools/designer/designer/sizehandle.cpp index a4d2d3be1..7d3b1eb14 100644 --- a/tools/designer/designer/sizehandle.cpp +++ b/tools/designer/designer/sizehandle.cpp @@ -31,15 +31,15 @@ ** **********************************************************************/ -#include // HP-UX compiler needs this here +#include // HP-UX compiler needs this here #include "sizehandle.h" #include "formwindow.h" #include "widgetfactory.h" -#include -#include -#include +#include +#include +#include SizeHandle::SizeHandle( FormWindow *parent, Direction d, WidgetSelection *s ) : TQWidget( parent ) diff --git a/tools/designer/designer/sizehandle.h b/tools/designer/designer/sizehandle.h index b1259a51e..d391ec9a2 100644 --- a/tools/designer/designer/sizehandle.h +++ b/tools/designer/designer/sizehandle.h @@ -34,9 +34,9 @@ #ifndef SIZEHANDLE_H #define SIZEHANDLE_H -#include -#include -#include +#include +#include +#include class TQMouseEvent; class FormWindow; diff --git a/tools/designer/designer/sourceeditor.cpp b/tools/designer/designer/sourceeditor.cpp index a9094e2d0..167bccc97 100644 --- a/tools/designer/designer/sourceeditor.cpp +++ b/tools/designer/designer/sourceeditor.cpp @@ -38,12 +38,12 @@ #include "project.h" #include "mainwindow.h" #include "../interfaces/languageinterface.h" -#include +#include #include "project.h" #include "sourcefile.h" #include "hierarchyview.h" -#include -#include +#include +#include SourceEditor::SourceEditor( TQWidget *parent, EditorInterface *iface, LanguageInterface *liface ) : TQVBox( parent, 0, WDestructiveClose ), iFace( iface ), lIface( liface ), obj( 0 ), pro( 0 ) diff --git a/tools/designer/designer/sourceeditor.h b/tools/designer/designer/sourceeditor.h index 47a322c35..a41fd86c2 100644 --- a/tools/designer/designer/sourceeditor.h +++ b/tools/designer/designer/sourceeditor.h @@ -35,8 +35,8 @@ #define SOURCEEDITOR_H #include "../interfaces/editorinterface.h" -#include -#include +#include +#include class FormWindow; class TQCloseEvent; diff --git a/tools/designer/designer/sourcefile.cpp b/tools/designer/designer/sourcefile.cpp index a83a327fe..bdb6299d8 100644 --- a/tools/designer/designer/sourcefile.cpp +++ b/tools/designer/designer/sourcefile.cpp @@ -32,14 +32,14 @@ **********************************************************************/ #include "sourcefile.h" -#include -#include +#include +#include #include "designerappiface.h" #include "sourceeditor.h" #include "metadatabase.h" #include "../interfaces/languageinterface.h" -#include -#include +#include +#include #include "mainwindow.h" #include "workspace.h" #include diff --git a/tools/designer/designer/sourcefile.h b/tools/designer/designer/sourcefile.h index 32ab629af..47663c8e4 100644 --- a/tools/designer/designer/sourcefile.h +++ b/tools/designer/designer/sourcefile.h @@ -34,7 +34,7 @@ #ifndef SOURCEFILE_H #define SOURCEFILE_H -#include +#include #include "timestamp.h" struct DesignerSourceFile; diff --git a/tools/designer/designer/startdialogimpl.cpp b/tools/designer/designer/startdialogimpl.cpp index fdf727083..2328360f6 100644 --- a/tools/designer/designer/startdialogimpl.cpp +++ b/tools/designer/designer/startdialogimpl.cpp @@ -1,21 +1,21 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "mainwindow.h" #include "startdialogimpl.h" diff --git a/tools/designer/designer/startdialogimpl.h b/tools/designer/designer/startdialogimpl.h index 45057df1f..c9406dc18 100644 --- a/tools/designer/designer/startdialogimpl.h +++ b/tools/designer/designer/startdialogimpl.h @@ -34,12 +34,12 @@ #ifndef STARTDIALOGIMPL_H #define STARTDIALOGIMPL_H -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "newformimpl.h" #include "startdialog.h" diff --git a/tools/designer/designer/styledbutton.cpp b/tools/designer/designer/styledbutton.cpp index 454f2c73a..64c55b481 100644 --- a/tools/designer/designer/styledbutton.cpp +++ b/tools/designer/designer/styledbutton.cpp @@ -31,19 +31,19 @@ ** **********************************************************************/ -#include // HP-UX compiler needs this here +#include // HP-UX compiler needs this here #include "styledbutton.h" #include "formwindow.h" #include "pixmapchooser.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include StyledButton::StyledButton(TQWidget* parent, const char* name) : TQButton( parent, name ), pix( 0 ), spix( 0 ), s( 0 ), formWindow( 0 ), mousePressed( FALSE ) diff --git a/tools/designer/designer/styledbutton.h b/tools/designer/designer/styledbutton.h index 8f6c31434..4574bf424 100644 --- a/tools/designer/designer/styledbutton.h +++ b/tools/designer/designer/styledbutton.h @@ -34,8 +34,8 @@ #ifndef STYLEDBUTTON_H #define STYLEDBUTTON_H -#include -#include +#include +#include class TQColor; class TQBrush; diff --git a/tools/designer/designer/syntaxhighlighter_html.cpp b/tools/designer/designer/syntaxhighlighter_html.cpp index 8f8a059d1..629941d7a 100644 --- a/tools/designer/designer/syntaxhighlighter_html.cpp +++ b/tools/designer/designer/syntaxhighlighter_html.cpp @@ -33,9 +33,9 @@ **********************************************************************/ #include "syntaxhighlighter_html.h" -#include "qstring.h" -#include "qmap.h" -#include "qapplication.h" +#include "ntqstring.h" +#include "ntqmap.h" +#include "ntqapplication.h" SyntaxHighlighter_HTML::SyntaxHighlighter_HTML() diff --git a/tools/designer/designer/tableeditor.ui b/tools/designer/designer/tableeditor.ui index be6036987..17e63f2ae 100644 --- a/tools/designer/designer/tableeditor.ui +++ b/tools/designer/designer/tableeditor.ui @@ -801,7 +801,7 @@ buttonHelp - qtable.h + ntqtable.h init() diff --git a/tools/designer/designer/tableeditorimpl.cpp b/tools/designer/designer/tableeditorimpl.cpp index 409f64a64..4c760e0b1 100644 --- a/tools/designer/designer/tableeditorimpl.cpp +++ b/tools/designer/designer/tableeditorimpl.cpp @@ -33,20 +33,20 @@ #include "tableeditorimpl.h" #ifndef QT_NO_TABLE -#include +#include #endif #include "formwindow.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "pixmapchooser.h" #include "command.h" -#include -#include -#include +#include +#include +#include #include "project.h" #include "metadatabase.h" #include "mainwindow.h" diff --git a/tools/designer/designer/tableeditorimpl.h b/tools/designer/designer/tableeditorimpl.h index 17037da56..bb688433e 100644 --- a/tools/designer/designer/tableeditorimpl.h +++ b/tools/designer/designer/tableeditorimpl.h @@ -35,7 +35,7 @@ #define TABLEEDITORIMPL_H #include "tableeditor.h" -#include +#include class TQListBoxItem; class TQTable; diff --git a/tools/designer/designer/timestamp.cpp b/tools/designer/designer/timestamp.cpp index 0ba6ce63c..3996108a8 100644 --- a/tools/designer/designer/timestamp.cpp +++ b/tools/designer/designer/timestamp.cpp @@ -32,8 +32,8 @@ **********************************************************************/ #include "timestamp.h" -#include -#include +#include +#include class TQTimer; diff --git a/tools/designer/designer/timestamp.h b/tools/designer/designer/timestamp.h index b193ae1f5..b37d57f12 100644 --- a/tools/designer/designer/timestamp.h +++ b/tools/designer/designer/timestamp.h @@ -34,9 +34,9 @@ #ifndef TIMESTAMP_H #define TIMESTAMP_H -#include -#include -#include +#include +#include +#include class TimeStamp : public TQObject { diff --git a/tools/designer/designer/variabledialogimpl.cpp b/tools/designer/designer/variabledialogimpl.cpp index 13ebcf129..c02dcf691 100644 --- a/tools/designer/designer/variabledialogimpl.cpp +++ b/tools/designer/designer/variabledialogimpl.cpp @@ -31,11 +31,11 @@ ** **********************************************************************/ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "metadatabase.h" #include "formwindow.h" diff --git a/tools/designer/designer/widgetaction.cpp b/tools/designer/designer/widgetaction.cpp index 6eabf532e..5869148e9 100644 --- a/tools/designer/designer/widgetaction.cpp +++ b/tools/designer/designer/widgetaction.cpp @@ -32,11 +32,11 @@ **********************************************************************/ #include "widgetaction.h" -#include -#include +#include +#include #include "mainwindow.h" -#include -#include +#include +#include static TQStyle *windowsStyle = 0; diff --git a/tools/designer/designer/widgetaction.h b/tools/designer/designer/widgetaction.h index 77b9427e7..da500176e 100644 --- a/tools/designer/designer/widgetaction.h +++ b/tools/designer/designer/widgetaction.h @@ -34,7 +34,7 @@ #ifndef WIDGETACTION_H #define WIDGETACTION_H -#include +#include class WidgetAction : public TQAction { diff --git a/tools/designer/designer/widgetfactory.cpp b/tools/designer/designer/widgetfactory.cpp index 130c3f4ac..a05c63782 100644 --- a/tools/designer/designer/widgetfactory.cpp +++ b/tools/designer/designer/widgetfactory.cpp @@ -31,7 +31,7 @@ ** **********************************************************************/ -#include // HP-UX compiler need this here +#include // HP-UX compiler need this here #include "widgetfactory.h" #include #include "metadatabase.h" @@ -52,56 +52,56 @@ #include "menubareditor.h" #include "popupmenueditor.h" -#include +#include -#include -#include -#include +#include +#include +#include #ifndef QT_NO_TABLE -#include +#include #endif #ifndef QT_NO_SQL -#include +#include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifndef QT_NO_SQL #include "database.h" #endif #define NO_STATIC_COLORS #include -#include +#include FormWindow *find_formwindow( TQWidget *w ) { diff --git a/tools/designer/designer/widgetfactory.h b/tools/designer/designer/widgetfactory.h index e8aa57039..59e05a992 100644 --- a/tools/designer/designer/widgetfactory.h +++ b/tools/designer/designer/widgetfactory.h @@ -34,30 +34,30 @@ #ifndef WIDGETFACTORY_H #define WIDGETFACTORY_H -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "metadatabase.h" -#include "qwidgetfactory.h" +#include "ntqwidgetfactory.h" class TQWidget; class TQLayout; diff --git a/tools/designer/designer/wizardeditorimpl.cpp b/tools/designer/designer/wizardeditorimpl.cpp index 438a94eef..99329a25c 100644 --- a/tools/designer/designer/wizardeditorimpl.cpp +++ b/tools/designer/designer/wizardeditorimpl.cpp @@ -38,10 +38,10 @@ #include "listboxdnd.h" #include "listboxrename.h" -#include -#include -#include -#include +#include +#include +#include +#include WizardEditor::WizardEditor( TQWidget *parent, TQWizard *w, FormWindow *fw ) : WizardEditorBase( parent, 0 ), formwindow( fw ), wizard( w ), draggedItem( 0 ) diff --git a/tools/designer/designer/wizardeditorimpl.h b/tools/designer/designer/wizardeditorimpl.h index 8cfe7ee65..983e26a86 100644 --- a/tools/designer/designer/wizardeditorimpl.h +++ b/tools/designer/designer/wizardeditorimpl.h @@ -37,7 +37,7 @@ class TQWizard; class FormWindow; -#include +#include #include "wizardeditor.h" #include "command.h" diff --git a/tools/designer/designer/workspace.cpp b/tools/designer/designer/workspace.cpp index 5dbb69f51..ff0d68688 100644 --- a/tools/designer/designer/workspace.cpp +++ b/tools/designer/designer/workspace.cpp @@ -31,7 +31,7 @@ ** **********************************************************************/ -#include // HP-UX compiler needs this here +#include // HP-UX compiler needs this here #include "workspace.h" #include "formwindow.h" #include "mainwindow.h" @@ -43,16 +43,16 @@ #include "sourceeditor.h" #include "propertyeditor.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "qcompletionedit.h" WorkspaceItem::WorkspaceItem( TQListView *parent, Project* p ) diff --git a/tools/designer/designer/workspace.h b/tools/designer/designer/workspace.h index d260b5969..e99c6f401 100644 --- a/tools/designer/designer/workspace.h +++ b/tools/designer/designer/workspace.h @@ -34,7 +34,7 @@ #ifndef WORKSPACE_H #define WORKSPACE_H -#include +#include class FormWindow; class TQResizeEvent; diff --git a/tools/designer/editor/arghintwidget.cpp b/tools/designer/editor/arghintwidget.cpp index ff5e288e2..e16708d0d 100644 --- a/tools/designer/editor/arghintwidget.cpp +++ b/tools/designer/editor/arghintwidget.cpp @@ -32,11 +32,11 @@ **********************************************************************/ #include "arghintwidget.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include static const char * left_xpm[] = { "16 16 3 1", diff --git a/tools/designer/editor/arghintwidget.h b/tools/designer/editor/arghintwidget.h index d75c8738b..09937e3d2 100644 --- a/tools/designer/editor/arghintwidget.h +++ b/tools/designer/editor/arghintwidget.h @@ -34,7 +34,7 @@ #ifndef ARGHINTWIDGET_H #define ARGHINTWIDGET_H -#include +#include class TQLabel; class ArrowButton; diff --git a/tools/designer/editor/browser.h b/tools/designer/editor/browser.h index 9e00af126..a19e2bcca 100644 --- a/tools/designer/editor/browser.h +++ b/tools/designer/editor/browser.h @@ -34,7 +34,7 @@ #ifndef BROWSER_H #define BROWSER_H -#include +#include class Editor; class TQTextCursor; diff --git a/tools/designer/editor/cindent.cpp b/tools/designer/editor/cindent.cpp index 7e31f0f19..d30be4600 100644 --- a/tools/designer/editor/cindent.cpp +++ b/tools/designer/editor/cindent.cpp @@ -32,7 +32,7 @@ **********************************************************************/ #include "cindent.h" -#include "qregexp.h" +#include "ntqregexp.h" extern int indentForBottomLine( const TQStringList& program, TQChar typedIn ); extern void setTabSize( int s ); diff --git a/tools/designer/editor/completion.cpp b/tools/designer/editor/completion.cpp index 1a9337821..f0923c554 100644 --- a/tools/designer/editor/completion.cpp +++ b/tools/designer/editor/completion.cpp @@ -34,15 +34,15 @@ #include "completion.h" #include "paragdata.h" #include "editor.h" -#include -#include -#include +#include +#include +#include #include -#include -#include +#include +#include #include "arghintwidget.h" -#include -#include +#include +#include static TQColor getColor( const TQString &type ) { diff --git a/tools/designer/editor/completion.h b/tools/designer/editor/completion.h index 3b3e4362f..6328315c7 100644 --- a/tools/designer/editor/completion.h +++ b/tools/designer/editor/completion.h @@ -34,10 +34,10 @@ #ifndef COMPLETION_H #define COMPLETION_H -#include -#include -#include -#include +#include +#include +#include +#include class TQTextDocument; class Editor; diff --git a/tools/designer/editor/conf.cpp b/tools/designer/editor/conf.cpp index 281bf9f5e..336f44712 100644 --- a/tools/designer/editor/conf.cpp +++ b/tools/designer/editor/conf.cpp @@ -32,10 +32,10 @@ **********************************************************************/ #include "conf.h" -#include -#include -#include -#include +#include +#include +#include +#include TQMap Config::defaultStyles() { diff --git a/tools/designer/editor/conf.h b/tools/designer/editor/conf.h index 6538ca7f1..aad97ddbb 100644 --- a/tools/designer/editor/conf.h +++ b/tools/designer/editor/conf.h @@ -34,9 +34,9 @@ #ifndef CONF_H #define CONF_H -#include -#include -#include +#include +#include +#include struct ConfigStyle { diff --git a/tools/designer/editor/editor.cpp b/tools/designer/editor/editor.cpp index 1b1bf15c1..cba812362 100644 --- a/tools/designer/editor/editor.cpp +++ b/tools/designer/editor/editor.cpp @@ -33,12 +33,12 @@ #include "editor.h" #include "parenmatcher.h" -#include +#include #include #include "conf.h" -#include -#include -#include +#include +#include +#include Editor::Editor( const TQString &fn, TQWidget *parent, const char *name ) : TQTextEdit( parent, name ), hasError( FALSE ) diff --git a/tools/designer/editor/editor.h b/tools/designer/editor/editor.h index 64ea702bb..768c5f530 100644 --- a/tools/designer/editor/editor.h +++ b/tools/designer/editor/editor.h @@ -34,7 +34,7 @@ #ifndef EDITOR_H #define EDITOR_H -#include +#include struct Config; class ParenMatcher; diff --git a/tools/designer/editor/markerwidget.cpp b/tools/designer/editor/markerwidget.cpp index af36882f1..69e68817f 100644 --- a/tools/designer/editor/markerwidget.cpp +++ b/tools/designer/editor/markerwidget.cpp @@ -35,8 +35,8 @@ #include "viewmanager.h" #include #include "editor.h" -#include -#include +#include +#include #include "paragdata.h" static const char * error_xpm[] = { diff --git a/tools/designer/editor/markerwidget.h b/tools/designer/editor/markerwidget.h index 7fa5e6748..2ab70a420 100644 --- a/tools/designer/editor/markerwidget.h +++ b/tools/designer/editor/markerwidget.h @@ -34,8 +34,8 @@ #ifndef MARKERWIDGET_H #define MARKERWIDGET_H -#include -#include +#include +#include class ViewManager; class TQTextParagraph; diff --git a/tools/designer/editor/parenmatcher.cpp b/tools/designer/editor/parenmatcher.cpp index b3017be9a..8cd6ffcb9 100644 --- a/tools/designer/editor/parenmatcher.cpp +++ b/tools/designer/editor/parenmatcher.cpp @@ -34,9 +34,9 @@ #include "parenmatcher.h" #include "paragdata.h" -#include "qtextedit.h" +#include "ntqtextedit.h" #include -#include +#include ParenMatcher::ParenMatcher() { diff --git a/tools/designer/editor/parenmatcher.h b/tools/designer/editor/parenmatcher.h index 3b0710a69..805aca58e 100644 --- a/tools/designer/editor/parenmatcher.h +++ b/tools/designer/editor/parenmatcher.h @@ -34,8 +34,8 @@ #ifndef PARENMATCHER_H #define PARENMATCHER_H -#include -#include +#include +#include class TQTextCursor; diff --git a/tools/designer/editor/preferences.ui b/tools/designer/editor/preferences.ui index e39bb816e..00c56b64e 100644 --- a/tools/designer/editor/preferences.ui +++ b/tools/designer/editor/preferences.ui @@ -470,18 +470,18 @@ checkParenMatching - qmap.h + ntqmap.h conf.h - qpalette.h - qlineedit.h - qpixmap.h - qcombobox.h - qfontdatabase.h + ntqpalette.h + ntqlineedit.h + ntqpixmap.h + ntqcombobox.h + ntqfontdatabase.h editor.h - qpushbutton.h - qcheckbox.h - qcolordialog.h - qsettings.h + ntqpushbutton.h + ntqcheckbox.h + ntqcolordialog.h + ntqsettings.h preferences.ui.h diff --git a/tools/designer/editor/viewmanager.cpp b/tools/designer/editor/viewmanager.cpp index aed224ed0..def747050 100644 --- a/tools/designer/editor/viewmanager.cpp +++ b/tools/designer/editor/viewmanager.cpp @@ -34,12 +34,12 @@ #include "viewmanager.h" #include "editor.h" #include "markerwidget.h" -#include +#include #include #include "paragdata.h" -#include -#include -#include +#include +#include +#include ViewManager::ViewManager( TQWidget *parent, const char *name ) : TQWidget( parent, name ), curView( 0 ) diff --git a/tools/designer/editor/viewmanager.h b/tools/designer/editor/viewmanager.h index 8198d6c76..46e4839de 100644 --- a/tools/designer/editor/viewmanager.h +++ b/tools/designer/editor/viewmanager.h @@ -34,8 +34,8 @@ #ifndef VIEWMANAGER_H #define VIEWMANAGER_H -#include -#include +#include +#include class TQChildEvent; class MarkerWidget; diff --git a/tools/designer/editor/yyindent.cpp b/tools/designer/editor/yyindent.cpp index 1cbaa4bd1..f0014d37b 100644 --- a/tools/designer/editor/yyindent.cpp +++ b/tools/designer/editor/yyindent.cpp @@ -70,7 +70,7 @@ string literals are removed beforehand. */ -#include +#include /* qmake ignore Q_OBJECT */ @@ -1106,8 +1106,8 @@ int indentForBottomLine( const TQStringList& program, TQChar typedIn ) Test driver. */ -#include -#include +#include +#include #include diff --git a/tools/designer/examples/addressbook/addressbook.ui.h b/tools/designer/examples/addressbook/addressbook.ui.h index ef5fc8022..9b1d5460d 100644 --- a/tools/designer/examples/addressbook/addressbook.ui.h +++ b/tools/designer/examples/addressbook/addressbook.ui.h @@ -8,10 +8,10 @@ #include "addressdetails.h" #include "search.h" -#include -#include -#include -#include +#include +#include +#include +#include void AddressBook::fileNew() { diff --git a/tools/designer/examples/addressbook/main.cpp b/tools/designer/examples/addressbook/main.cpp index f96b6a33f..4b80e6d3e 100644 --- a/tools/designer/examples/addressbook/main.cpp +++ b/tools/designer/examples/addressbook/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "addressbook.h" int main( int argc, char ** argv ) diff --git a/tools/designer/examples/book/book1/main.cpp b/tools/designer/examples/book/book1/main.cpp index cf3e80fd1..b3ebdad0c 100644 --- a/tools/designer/examples/book/book1/main.cpp +++ b/tools/designer/examples/book/book1/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book2/main.cpp b/tools/designer/examples/book/book2/main.cpp index cf3e80fd1..b3ebdad0c 100644 --- a/tools/designer/examples/book/book2/main.cpp +++ b/tools/designer/examples/book/book2/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book3/main.cpp b/tools/designer/examples/book/book3/main.cpp index 70b8cc892..ea5125718 100644 --- a/tools/designer/examples/book/book3/main.cpp +++ b/tools/designer/examples/book/book3/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book4/main.cpp b/tools/designer/examples/book/book4/main.cpp index cdcdd5091..1abe5a9ad 100644 --- a/tools/designer/examples/book/book4/main.cpp +++ b/tools/designer/examples/book/book4/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book5/book.ui b/tools/designer/examples/book/book5/book.ui index 4c3e4de4e..ce056dab0 100644 --- a/tools/designer/examples/book/book5/book.ui +++ b/tools/designer/examples/book/book5/book.ui @@ -1,6 +1,6 @@ BookForm -qdatabrowser.h +ntqdatabrowser.h editbook.h book.ui.h diff --git a/tools/designer/examples/book/book5/main.cpp b/tools/designer/examples/book/book5/main.cpp index cf3e80fd1..b3ebdad0c 100644 --- a/tools/designer/examples/book/book5/main.cpp +++ b/tools/designer/examples/book/book5/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book6/book.ui b/tools/designer/examples/book/book6/book.ui index 8fe77d4cd..8adbb2bb6 100644 --- a/tools/designer/examples/book/book6/book.ui +++ b/tools/designer/examples/book/book6/book.ui @@ -1,8 +1,8 @@ BookForm -qsqlrecord.h +ntqsqlrecord.h editbook.h -qdatabrowser.h +ntqdatabrowser.h book.ui.h diff --git a/tools/designer/examples/book/book6/editbook.ui b/tools/designer/examples/book/book6/editbook.ui index 5b3bc10c4..b91628725 100644 --- a/tools/designer/examples/book/book6/editbook.ui +++ b/tools/designer/examples/book/book6/editbook.ui @@ -1,6 +1,6 @@ EditBookForm -qsqlrecord.h +ntqsqlrecord.h editbook.ui.h class TQSqlRecord; diff --git a/tools/designer/examples/book/book6/main.cpp b/tools/designer/examples/book/book6/main.cpp index cf3e80fd1..b3ebdad0c 100644 --- a/tools/designer/examples/book/book6/main.cpp +++ b/tools/designer/examples/book/book6/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book7/book.ui b/tools/designer/examples/book/book7/book.ui index faea95188..4a03ee6da 100644 --- a/tools/designer/examples/book/book7/book.ui +++ b/tools/designer/examples/book/book7/book.ui @@ -1,8 +1,8 @@ BookForm -qsqlrecord.h +ntqsqlrecord.h editbook.h -qdatabrowser.h +ntqdatabrowser.h book.ui.h diff --git a/tools/designer/examples/book/book7/editbook.ui b/tools/designer/examples/book/book7/editbook.ui index d0f876db5..635d82fea 100644 --- a/tools/designer/examples/book/book7/editbook.ui +++ b/tools/designer/examples/book/book7/editbook.ui @@ -1,6 +1,6 @@ EditBookForm -qsqlrecord.h +ntqsqlrecord.h editbook.ui.h class TQSqlRecord; diff --git a/tools/designer/examples/book/book7/main.cpp b/tools/designer/examples/book/book7/main.cpp index cf3e80fd1..b3ebdad0c 100644 --- a/tools/designer/examples/book/book7/main.cpp +++ b/tools/designer/examples/book/book7/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/book8/book.ui b/tools/designer/examples/book/book8/book.ui index faea95188..4a03ee6da 100644 --- a/tools/designer/examples/book/book8/book.ui +++ b/tools/designer/examples/book/book8/book.ui @@ -1,8 +1,8 @@ BookForm -qsqlrecord.h +ntqsqlrecord.h editbook.h -qdatabrowser.h +ntqdatabrowser.h book.ui.h diff --git a/tools/designer/examples/book/book8/editbook.ui b/tools/designer/examples/book/book8/editbook.ui index b16d789d2..901f65dec 100644 --- a/tools/designer/examples/book/book8/editbook.ui +++ b/tools/designer/examples/book/book8/editbook.ui @@ -1,6 +1,6 @@ EditBookForm -qsqlrecord.h +ntqsqlrecord.h editbook.ui.h class TQSqlRecord; TQMap<TQString,int> authorMap; diff --git a/tools/designer/examples/book/book8/main.cpp b/tools/designer/examples/book/book8/main.cpp index cf3e80fd1..b3ebdad0c 100644 --- a/tools/designer/examples/book/book8/main.cpp +++ b/tools/designer/examples/book/book8/main.cpp @@ -7,8 +7,8 @@ ** *****************************************************************************/ -#include -#include +#include +#include #include "book.h" #include "../connection.h" diff --git a/tools/designer/examples/book/connection.cpp b/tools/designer/examples/book/connection.cpp index efb1156ca..3e42fd99e 100644 --- a/tools/designer/examples/book/connection.cpp +++ b/tools/designer/examples/book/connection.cpp @@ -6,7 +6,7 @@ ** program may be used, distributed and modified without limitation. ** *****************************************************************************/ -#include +#include #include "connection.h" bool createConnections() diff --git a/tools/designer/examples/colortool/colornameform.ui.h b/tools/designer/examples/colortool/colornameform.ui.h index 0c7ab7157..5dcffa3cf 100644 --- a/tools/designer/examples/colortool/colornameform.ui.h +++ b/tools/designer/examples/colortool/colornameform.ui.h @@ -5,9 +5,9 @@ ** update this file, preserving your code. Create an init() function in place ** of a constructor, and a destroy() function in place of a destructor. *****************************************************************************/ -#include -#include -#include +#include +#include +#include TQMap m_colors; diff --git a/tools/designer/examples/colortool/main.cpp b/tools/designer/examples/colortool/main.cpp index 48aa425d8..7b3be5a5c 100644 --- a/tools/designer/examples/colortool/main.cpp +++ b/tools/designer/examples/colortool/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "mainform.h" int main( int argc, char ** argv ) diff --git a/tools/designer/examples/colortool/mainform.ui b/tools/designer/examples/colortool/mainform.ui index f4081882a..945fb1ab5 100644 --- a/tools/designer/examples/colortool/mainform.ui +++ b/tools/designer/examples/colortool/mainform.ui @@ -527,23 +527,23 @@ findform.h - qsettings.h - qradiobutton.h - qcheckbox.h + ntqsettings.h + ntqradiobutton.h + ntqcheckbox.h colornameform.h - qcolordialog.h - qregexp.h - qfile.h - qfiledialog.h - qapplication.h - qcolor.h - qstring.h - qpainter.h - qstatusbar.h - qmessagebox.h - qclipboard.h - qlabel.h - qlineedit.h + ntqcolordialog.h + ntqregexp.h + ntqfile.h + ntqfiledialog.h + ntqapplication.h + ntqcolor.h + ntqstring.h + ntqpainter.h + ntqstatusbar.h + ntqmessagebox.h + ntqclipboard.h + ntqlabel.h + ntqlineedit.h optionsform.h mainform.ui.h diff --git a/tools/designer/examples/credit/creditform.cpp b/tools/designer/examples/credit/creditform.cpp index a03285618..8bceaa4b2 100644 --- a/tools/designer/examples/credit/creditform.cpp +++ b/tools/designer/examples/credit/creditform.cpp @@ -1,5 +1,5 @@ -#include -#include +#include +#include #include "creditform.h" CreditForm::CreditForm( TQWidget* parent, const char* name, diff --git a/tools/designer/examples/credit/creditformbase.cpp b/tools/designer/examples/credit/creditformbase.cpp index 2d81cab33..51c5e6a40 100644 --- a/tools/designer/examples/credit/creditformbase.cpp +++ b/tools/designer/examples/credit/creditformbase.cpp @@ -8,19 +8,19 @@ ****************************************************************************/ #include "creditformbase.h" -#include // first for gcc 2.7.2 -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include // first for gcc 2.7.2 +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "creditformbase.ui.h" -#include -#include +#include +#include static TQPixmap uic_load_pixmap_CreditFormBase( const TQString &name ) { diff --git a/tools/designer/examples/credit/creditformbase.h b/tools/designer/examples/credit/creditformbase.h index fd99df49e..428b3d1b8 100644 --- a/tools/designer/examples/credit/creditformbase.h +++ b/tools/designer/examples/credit/creditformbase.h @@ -9,8 +9,8 @@ #ifndef CREDITFORMBASE_H #define CREDITFORMBASE_H -#include -#include +#include +#include class TQVBoxLayout; class TQHBoxLayout; class TQGridLayout; diff --git a/tools/designer/examples/credit/main.cpp b/tools/designer/examples/credit/main.cpp index d54c9d40a..a1e06b3ca 100644 --- a/tools/designer/examples/credit/main.cpp +++ b/tools/designer/examples/credit/main.cpp @@ -7,7 +7,7 @@ ** *****************************************************************************/ -#include +#include #include "creditform.h" diff --git a/tools/designer/examples/filechooser/plugin/plugin.h b/tools/designer/examples/filechooser/plugin/plugin.h index 11262f830..e8252fe76 100644 --- a/tools/designer/examples/filechooser/plugin/plugin.h +++ b/tools/designer/examples/filechooser/plugin/plugin.h @@ -1,4 +1,4 @@ -#include +#include class CustomWidgetPlugin : public TQWidgetPlugin { diff --git a/tools/designer/examples/filechooser/widget/filechooser.cpp b/tools/designer/examples/filechooser/widget/filechooser.cpp index c082b9430..3b510baf1 100644 --- a/tools/designer/examples/filechooser/widget/filechooser.cpp +++ b/tools/designer/examples/filechooser/widget/filechooser.cpp @@ -1,8 +1,8 @@ #include "filechooser.h" -#include -#include -#include -#include +#include +#include +#include +#include FileChooser::FileChooser( TQWidget *parent, const char *name ) : TQWidget( parent, name ), md( File ) diff --git a/tools/designer/examples/filechooser/widget/filechooser.h b/tools/designer/examples/filechooser/widget/filechooser.h index cff0af536..4d303a94c 100644 --- a/tools/designer/examples/filechooser/widget/filechooser.h +++ b/tools/designer/examples/filechooser/widget/filechooser.h @@ -1,8 +1,8 @@ #ifndef FILECHOOSER_H #define FILECHOOSER_H -#include -#include +#include +#include class TQLineEdit; class TQPushButton; diff --git a/tools/designer/examples/filechooser/widget/main.cpp b/tools/designer/examples/filechooser/widget/main.cpp index 2742db74c..b50ddf7f0 100644 --- a/tools/designer/examples/filechooser/widget/main.cpp +++ b/tools/designer/examples/filechooser/widget/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "filechooser.h" int main( int argc, char ** argv ) diff --git a/tools/designer/examples/metric/main.cpp b/tools/designer/examples/metric/main.cpp index fb7cfc763..8fe7bf6fc 100644 --- a/tools/designer/examples/metric/main.cpp +++ b/tools/designer/examples/metric/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "metric.h" int main( int argc, char ** argv ) diff --git a/tools/designer/examples/metric/metric.ui.h b/tools/designer/examples/metric/metric.ui.h index 7d9db780a..7277a1f68 100644 --- a/tools/designer/examples/metric/metric.ui.h +++ b/tools/designer/examples/metric/metric.ui.h @@ -7,7 +7,7 @@ ** place of a destructor. *****************************************************************************/ -#include +#include void ConversionForm::init() { diff --git a/tools/designer/examples/multiclip/main.cpp b/tools/designer/examples/multiclip/main.cpp index 4c6a94092..4b1e93aae 100644 --- a/tools/designer/examples/multiclip/main.cpp +++ b/tools/designer/examples/multiclip/main.cpp @@ -7,7 +7,7 @@ ** *****************************************************************************/ -#include +#include #include "multiclip.h" diff --git a/tools/designer/examples/multiclip/multiclip.ui b/tools/designer/examples/multiclip/multiclip.ui index f1312fd9c..7deb0b887 100644 --- a/tools/designer/examples/multiclip/multiclip.ui +++ b/tools/designer/examples/multiclip/multiclip.ui @@ -1,7 +1,7 @@ MulticlipForm -qclipboard.h -qapplication.h +ntqclipboard.h +ntqapplication.h multiclip.ui.h TQClipboard *cb; diff --git a/tools/designer/examples/opengl/glwidget.h b/tools/designer/examples/opengl/glwidget.h index b63884ed6..6cb998ee7 100644 --- a/tools/designer/examples/opengl/glwidget.h +++ b/tools/designer/examples/opengl/glwidget.h @@ -35,7 +35,7 @@ #ifndef GLWIDGET_H #define GLWIDGET_H -#include +#include class GLWidget : public TQGLWidget { diff --git a/tools/designer/examples/opengl/main.cpp b/tools/designer/examples/opengl/main.cpp index 14a1ba8c5..5e9fd117c 100644 --- a/tools/designer/examples/opengl/main.cpp +++ b/tools/designer/examples/opengl/main.cpp @@ -34,8 +34,8 @@ #include -#include -#include +#include +#include #include "glwidget.h" diff --git a/tools/designer/examples/receiver1/main.cpp b/tools/designer/examples/receiver1/main.cpp index c5145d062..72efaafa0 100644 --- a/tools/designer/examples/receiver1/main.cpp +++ b/tools/designer/examples/receiver1/main.cpp @@ -7,7 +7,7 @@ ** *****************************************************************************/ -#include +#include #include "mainform.h" int main( int argc, char *argv[] ) diff --git a/tools/designer/examples/receiver1/mainform.ui b/tools/designer/examples/receiver1/mainform.ui index 3f3326759..1ae2c8ed7 100644 --- a/tools/designer/examples/receiver1/mainform.ui +++ b/tools/designer/examples/receiver1/mainform.ui @@ -74,8 +74,8 @@ - qspinbox.h - qwidgetfactory.h + ntqspinbox.h + ntqwidgetfactory.h mainform.ui.h diff --git a/tools/designer/examples/receiver2/main.cpp b/tools/designer/examples/receiver2/main.cpp index 6d263fdcb..697f7a5f3 100644 --- a/tools/designer/examples/receiver2/main.cpp +++ b/tools/designer/examples/receiver2/main.cpp @@ -7,7 +7,7 @@ ** *****************************************************************************/ -#include +#include #include "mainform.h" diff --git a/tools/designer/examples/receiver2/mainform.ui b/tools/designer/examples/receiver2/mainform.ui index 4d52c2812..306ca127a 100644 --- a/tools/designer/examples/receiver2/mainform.ui +++ b/tools/designer/examples/receiver2/mainform.ui @@ -1,7 +1,7 @@ MainForm -qwidgetfactory.h -qspinbox.h +ntqwidgetfactory.h +ntqspinbox.h receiver.h mainform.ui.h diff --git a/tools/designer/examples/receiver2/receiver.cpp b/tools/designer/examples/receiver2/receiver.cpp index 6ad18cc83..41ce98db5 100644 --- a/tools/designer/examples/receiver2/receiver.cpp +++ b/tools/designer/examples/receiver2/receiver.cpp @@ -1,5 +1,5 @@ -#include -#include +#include +#include #include "receiver.h" void Receiver::setParent( TQDialog *parent ) diff --git a/tools/designer/examples/receiver2/receiver.h b/tools/designer/examples/receiver2/receiver.h index aa17de83b..aadc6a9e9 100644 --- a/tools/designer/examples/receiver2/receiver.h +++ b/tools/designer/examples/receiver2/receiver.h @@ -1,5 +1,5 @@ -#include -#include +#include +#include class Receiver : public TQObject { diff --git a/tools/designer/examples/richedit/main.cpp b/tools/designer/examples/richedit/main.cpp index 1f5b8afff..1a5cb1f83 100644 --- a/tools/designer/examples/richedit/main.cpp +++ b/tools/designer/examples/richedit/main.cpp @@ -7,7 +7,7 @@ ** *****************************************************************************/ -#include +#include #include "richedit.h" diff --git a/tools/designer/examples/richedit/richedit.ui b/tools/designer/examples/richedit/richedit.ui index 0d86a19bd..9f3dde0aa 100644 --- a/tools/designer/examples/richedit/richedit.ui +++ b/tools/designer/examples/richedit/richedit.ui @@ -1,11 +1,11 @@ EditorForm -qfile.h -qfontdatabase.h -qmessagebox.h -qapplication.h -qfiledialog.h -qtextstream.h +ntqfile.h +ntqfontdatabase.h +ntqmessagebox.h +ntqapplication.h +ntqfiledialog.h +ntqtextstream.h richedit.ui.h TQString fileName; diff --git a/tools/designer/examples/sizeaware/main.cpp b/tools/designer/examples/sizeaware/main.cpp index 6ad151e63..2b0dcf446 100644 --- a/tools/designer/examples/sizeaware/main.cpp +++ b/tools/designer/examples/sizeaware/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "sizeaware.h" int main( int argc, char ** argv ) diff --git a/tools/designer/examples/sizeaware/sizeaware.cpp b/tools/designer/examples/sizeaware/sizeaware.cpp index 9731126ca..621d36ead 100644 --- a/tools/designer/examples/sizeaware/sizeaware.cpp +++ b/tools/designer/examples/sizeaware/sizeaware.cpp @@ -1,5 +1,5 @@ #include "sizeaware.h" -#include +#include SizeAware::SizeAware( TQDialog *parent, const char *name, bool modal ) diff --git a/tools/designer/examples/sizeaware/sizeaware.h b/tools/designer/examples/sizeaware/sizeaware.h index 73c208fbd..d118ed3f7 100644 --- a/tools/designer/examples/sizeaware/sizeaware.h +++ b/tools/designer/examples/sizeaware/sizeaware.h @@ -1,6 +1,6 @@ #ifndef SIZEAWARE_H #define SIZEAWARE_H -#include +#include class SizeAware : public TQDialog { diff --git a/tools/designer/examples/vcr/main.cpp b/tools/designer/examples/vcr/main.cpp index a83f6d6e3..4beb0d1cb 100644 --- a/tools/designer/examples/vcr/main.cpp +++ b/tools/designer/examples/vcr/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "vcr.h" int main( int argc, char ** argv ) diff --git a/tools/designer/examples/vcr/vcr.cpp b/tools/designer/examples/vcr/vcr.cpp index 8c341d55b..fd39e1a98 100644 --- a/tools/designer/examples/vcr/vcr.cpp +++ b/tools/designer/examples/vcr/vcr.cpp @@ -1,6 +1,6 @@ #include "vcr.h" -#include -#include +#include +#include static const char * rewind_xpm[] = { "16 16 3 1", diff --git a/tools/designer/examples/vcr/vcr.h b/tools/designer/examples/vcr/vcr.h index 39f3481fc..daff3d1d0 100644 --- a/tools/designer/examples/vcr/vcr.h +++ b/tools/designer/examples/vcr/vcr.h @@ -1,6 +1,6 @@ #ifndef VCR_H #define VCR_H -#include +#include class Vcr : public TQWidget { diff --git a/tools/designer/interfaces/classbrowserinterface.h b/tools/designer/interfaces/classbrowserinterface.h index 38a71f492..2762a3299 100644 --- a/tools/designer/interfaces/classbrowserinterface.h +++ b/tools/designer/interfaces/classbrowserinterface.h @@ -48,7 +48,7 @@ // #include -#include +#include class TQListView; // {4ede3c32-ae96-4b7a-9e38-9f1d93592391} diff --git a/tools/designer/interfaces/designerinterface.h b/tools/designer/interfaces/designerinterface.h index dea111703..e0f5952b1 100644 --- a/tools/designer/interfaces/designerinterface.h +++ b/tools/designer/interfaces/designerinterface.h @@ -48,12 +48,12 @@ // #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include struct DesignerProject; struct DesignerDatabase; diff --git a/tools/designer/interfaces/editorinterface.h b/tools/designer/interfaces/editorinterface.h index a16fe35d5..099f4dda8 100644 --- a/tools/designer/interfaces/editorinterface.h +++ b/tools/designer/interfaces/editorinterface.h @@ -48,8 +48,8 @@ // #include -#include -#include +#include +#include class TQWidget; class TQObjectList; diff --git a/tools/designer/interfaces/languageinterface.h b/tools/designer/interfaces/languageinterface.h index 5ad85fc37..0ff51afce 100644 --- a/tools/designer/interfaces/languageinterface.h +++ b/tools/designer/interfaces/languageinterface.h @@ -48,10 +48,10 @@ // #include -#include -#include -#include -#include +#include +#include +#include +#include // {f208499a-6f69-4883-9219-6e936e55a330} #ifndef IID_Language diff --git a/tools/designer/interfaces/preferenceinterface.h b/tools/designer/interfaces/preferenceinterface.h index 1d89f5912..882ee10cb 100644 --- a/tools/designer/interfaces/preferenceinterface.h +++ b/tools/designer/interfaces/preferenceinterface.h @@ -48,8 +48,8 @@ // #include -#include -#include +#include +#include // {5c168ee7-4bee-469f-9995-6afdb04ce5a2} #ifndef IID_Preference diff --git a/tools/designer/interfaces/projectsettingsiface.h b/tools/designer/interfaces/projectsettingsiface.h index 13fa71822..5390c0814 100644 --- a/tools/designer/interfaces/projectsettingsiface.h +++ b/tools/designer/interfaces/projectsettingsiface.h @@ -48,8 +48,8 @@ // #include -#include -#include +#include +#include // {d332785d-17fb-4894-84fe-50dbd0ad9512} #ifndef IID_ProjectSettings diff --git a/tools/designer/interfaces/sourcetemplateiface.h b/tools/designer/interfaces/sourcetemplateiface.h index aa111a7f2..6ea60476c 100644 --- a/tools/designer/interfaces/sourcetemplateiface.h +++ b/tools/designer/interfaces/sourcetemplateiface.h @@ -48,7 +48,7 @@ // #include -#include +#include // {1b3446a4-1c71-424b-8789-1f34eb5697d8} #ifndef IID_SourceTemplate diff --git a/tools/designer/plugins/cppeditor/cppbrowser.cpp b/tools/designer/plugins/cppeditor/cppbrowser.cpp index 9f9e08591..8d3e68bc1 100644 --- a/tools/designer/plugins/cppeditor/cppbrowser.cpp +++ b/tools/designer/plugins/cppeditor/cppbrowser.cpp @@ -34,9 +34,9 @@ #include "cppbrowser.h" #include -#include -#include -#include +#include +#include +#include #include CppEditorBrowser::CppEditorBrowser( Editor *e ) diff --git a/tools/designer/plugins/cppeditor/cppcompletion.cpp b/tools/designer/plugins/cppeditor/cppcompletion.cpp index 947931e86..a5643b918 100644 --- a/tools/designer/plugins/cppeditor/cppcompletion.cpp +++ b/tools/designer/plugins/cppeditor/cppcompletion.cpp @@ -33,10 +33,10 @@ **********************************************************************/ #include "cppcompletion.h" -#include -#include -#include -#include +#include +#include +#include +#include CppEditorCompletion::CppEditorCompletion( Editor *e ) : EditorCompletion( e ) diff --git a/tools/designer/plugins/cppeditor/cppcompletion.h b/tools/designer/plugins/cppeditor/cppcompletion.h index 73c0c77cd..965fc8f38 100644 --- a/tools/designer/plugins/cppeditor/cppcompletion.h +++ b/tools/designer/plugins/cppeditor/cppcompletion.h @@ -36,7 +36,7 @@ #define CPPCOMPLETION_H #include -#include +#include class CppEditorCompletion : public EditorCompletion { diff --git a/tools/designer/plugins/cppeditor/cppeditor.cpp b/tools/designer/plugins/cppeditor/cppeditor.cpp index cb4808842..13069230c 100644 --- a/tools/designer/plugins/cppeditor/cppeditor.cpp +++ b/tools/designer/plugins/cppeditor/cppeditor.cpp @@ -38,9 +38,9 @@ #include "cppcompletion.h" #include "cppbrowser.h" #include -#include -#include -#include +#include +#include +#include #include CppEditor::CppEditor( const TQString &fn, TQWidget *parent, const char *name, DesignerInterface *i ) diff --git a/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp index 8e98f9f3c..22e51cf49 100644 --- a/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp +++ b/tools/designer/plugins/cppeditor/editorinterfaceimpl.cpp @@ -36,10 +36,10 @@ #include #include "cppeditor.h" #include -#include +#include #include "completion.h" #include -#include +#include EditorInterfaceImpl::EditorInterfaceImpl() : EditorInterface(), viewManager( 0 ), dIface( 0 ) diff --git a/tools/designer/plugins/cppeditor/editorinterfaceimpl.h b/tools/designer/plugins/cppeditor/editorinterfaceimpl.h index 96062d54b..238611c99 100644 --- a/tools/designer/plugins/cppeditor/editorinterfaceimpl.h +++ b/tools/designer/plugins/cppeditor/editorinterfaceimpl.h @@ -36,8 +36,8 @@ #define EDITORINTERFACEIMPL_H #include -#include -#include +#include +#include class TQTimer; class ViewManager; diff --git a/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp index 89bda1778..1fbd63e0d 100644 --- a/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp +++ b/tools/designer/plugins/cppeditor/languageinterfaceimpl.cpp @@ -33,11 +33,11 @@ **********************************************************************/ #include "languageinterfaceimpl.h" -#include +#include #include -#include +#include #include "yyreg.h" -#include +#include LanguageInterfaceImpl::LanguageInterfaceImpl( TQUnknownInterface *outer ) : parent( outer ), ref( 0 ) diff --git a/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp b/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp index 1ff8e9484..a140903f9 100644 --- a/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp +++ b/tools/designer/plugins/cppeditor/sourcetemplateinterfaceimpl.cpp @@ -35,8 +35,8 @@ #include "sourcetemplateinterfaceimpl.h" #include #include "mainfilesettings.h" -#include -#include +#include +#include SourceTemplateInterfaceImpl::SourceTemplateInterfaceImpl() { @@ -68,7 +68,7 @@ TQStringList SourceTemplateInterfaceImpl::featureList() const static TQString generateMainCppCode( const TQString &formname, const TQString &include ) { TQString code; - code += "#include \n"; + code += "#include \n"; code += "#include \"" + include + "\"\n"; code += "\n"; code += "int main( int argc, char ** argv )\n"; diff --git a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp index 5d4441fda..ce30936c0 100644 --- a/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp +++ b/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp @@ -34,11 +34,11 @@ #include "syntaxhighliter_cpp.h" #include "paragdata.h" -#include "qstring.h" -#include "qstringlist.h" -#include "qmap.h" -#include "qapplication.h" -#include "qregexp.h" +#include "ntqstring.h" +#include "ntqstringlist.h" +#include "ntqmap.h" +#include "ntqapplication.h" +#include "ntqregexp.h" const char * const SyntaxHighlighter_CPP::keywords[] = { // C++ keywords diff --git a/tools/designer/plugins/cppeditor/yyreg.cpp b/tools/designer/plugins/cppeditor/yyreg.cpp index 0d95e409e..4073752bf 100644 --- a/tools/designer/plugins/cppeditor/yyreg.cpp +++ b/tools/designer/plugins/cppeditor/yyreg.cpp @@ -32,7 +32,7 @@ ** **********************************************************************/ -#include +#include #include #include diff --git a/tools/designer/plugins/cppeditor/yyreg.h b/tools/designer/plugins/cppeditor/yyreg.h index 5d849a0f4..a39eac828 100644 --- a/tools/designer/plugins/cppeditor/yyreg.h +++ b/tools/designer/plugins/cppeditor/yyreg.h @@ -35,8 +35,8 @@ #ifndef YYREG_H #define YYREG_H -#include -#include +#include +#include class CppFunction { diff --git a/tools/designer/plugins/dlg/dlg2ui.cpp b/tools/designer/plugins/dlg/dlg2ui.cpp index c30833412..da0cd5002 100644 --- a/tools/designer/plugins/dlg/dlg2ui.cpp +++ b/tools/designer/plugins/dlg/dlg2ui.cpp @@ -35,11 +35,11 @@ **********************************************************************/ #include "dlg2ui.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include /* Possible improvements: diff --git a/tools/designer/plugins/dlg/dlg2ui.h b/tools/designer/plugins/dlg/dlg2ui.h index 9b4abc9c2..2aaf5672a 100644 --- a/tools/designer/plugins/dlg/dlg2ui.h +++ b/tools/designer/plugins/dlg/dlg2ui.h @@ -35,10 +35,10 @@ #ifndef DLG2UI_H #define DLG2UI_H -#include -#include -#include -#include +#include +#include +#include +#include typedef TQMap AttributeMap; diff --git a/tools/designer/plugins/dlg/main.cpp b/tools/designer/plugins/dlg/main.cpp index 9709d187e..37d54c539 100644 --- a/tools/designer/plugins/dlg/main.cpp +++ b/tools/designer/plugins/dlg/main.cpp @@ -33,7 +33,7 @@ **********************************************************************/ #include -#include +#include #include "dlg2ui.h" diff --git a/tools/designer/plugins/glade/glade2ui.cpp b/tools/designer/plugins/glade/glade2ui.cpp index 74613b02b..626b30934 100644 --- a/tools/designer/plugins/glade/glade2ui.cpp +++ b/tools/designer/plugins/glade/glade2ui.cpp @@ -36,14 +36,14 @@ #include "glade2ui.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/tools/designer/plugins/glade/glade2ui.h b/tools/designer/plugins/glade/glade2ui.h index 87d4d3221..c0caf428d 100644 --- a/tools/designer/plugins/glade/glade2ui.h +++ b/tools/designer/plugins/glade/glade2ui.h @@ -35,10 +35,10 @@ #ifndef GLADE2UI_H #define GLADE2UI_H -#include -#include -#include -#include +#include +#include +#include +#include typedef TQMap AttributeMap; diff --git a/tools/designer/plugins/glade/main.cpp b/tools/designer/plugins/glade/main.cpp index 06f7942eb..1913fd36a 100644 --- a/tools/designer/plugins/glade/main.cpp +++ b/tools/designer/plugins/glade/main.cpp @@ -33,7 +33,7 @@ **********************************************************************/ #include -#include +#include #include "glade2ui.h" diff --git a/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp b/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp index 5e84d89b8..a5a46fe79 100644 --- a/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp +++ b/tools/designer/plugins/kdevdlg/kdevdlg2ui.cpp @@ -33,9 +33,9 @@ **********************************************************************/ #include "kdevdlg2ui.h" -#include -#include -#include +#include +#include +#include /// some little helpers /// diff --git a/tools/designer/plugins/kdevdlg/kdevdlg2ui.h b/tools/designer/plugins/kdevdlg/kdevdlg2ui.h index 1861479c4..5f2b6d3bc 100644 --- a/tools/designer/plugins/kdevdlg/kdevdlg2ui.h +++ b/tools/designer/plugins/kdevdlg/kdevdlg2ui.h @@ -35,9 +35,9 @@ #ifndef KDEVDLG2UI_H #define KDEVDLG2UI_H -#include -#include -#include +#include +#include +#include class KDEVDLG2UI { diff --git a/tools/designer/plugins/kdevdlg/main.cpp b/tools/designer/plugins/kdevdlg/main.cpp index a80db4230..1e7c34663 100644 --- a/tools/designer/plugins/kdevdlg/main.cpp +++ b/tools/designer/plugins/kdevdlg/main.cpp @@ -34,9 +34,9 @@ #include -#include -#include -#include +#include +#include +#include #include "kdevdlg2ui.h" diff --git a/tools/designer/plugins/rc/main.cpp b/tools/designer/plugins/rc/main.cpp index 30b3253ce..7d899743e 100644 --- a/tools/designer/plugins/rc/main.cpp +++ b/tools/designer/plugins/rc/main.cpp @@ -34,7 +34,7 @@ #include -#include +#include #include "rc2ui.h" diff --git a/tools/designer/plugins/rc/rc2ui.cpp b/tools/designer/plugins/rc/rc2ui.cpp index 28b2ffc8a..f88f9d431 100644 --- a/tools/designer/plugins/rc/rc2ui.cpp +++ b/tools/designer/plugins/rc/rc2ui.cpp @@ -33,7 +33,7 @@ **********************************************************************/ #include "rc2ui.h" -#include +#include /// some little helpers /// @@ -845,8 +845,8 @@ bool RC2UI::makeStringTable() *out << "#ifndef STRINGTABLE_H" << endl; *out << "#define STRINGTABLE_H" << endl; *out << endl; - *out << "#include " << endl; - *out << "#include " << endl; + *out << "#include " << endl; + *out << "#include " << endl; *out << endl; TQString ID; diff --git a/tools/designer/plugins/rc/rc2ui.h b/tools/designer/plugins/rc/rc2ui.h index cbac8ef0e..68829211b 100644 --- a/tools/designer/plugins/rc/rc2ui.h +++ b/tools/designer/plugins/rc/rc2ui.h @@ -35,9 +35,9 @@ #ifndef RC2UI_H #define RC2UI_H -#include -#include -#include +#include +#include +#include class RC2UI { diff --git a/tools/designer/plugins/wizards/main.cpp b/tools/designer/plugins/wizards/main.cpp index 55ba9c7a7..b3400acc4 100644 --- a/tools/designer/plugins/wizards/main.cpp +++ b/tools/designer/plugins/wizards/main.cpp @@ -32,14 +32,14 @@ **********************************************************************/ #include -#include -#include +#include +#include #include #ifndef QT_NO_SQL #include "sqlformwizardimpl.h" #endif #include "mainwindowwizard.h" -#include +#include class StandardTemplateWizardInterface : public TemplateWizardInterface, public TQLibraryInterface { diff --git a/tools/designer/plugins/wizards/mainwindowwizard.ui b/tools/designer/plugins/wizards/mainwindowwizard.ui index 9e45f36df..2382b5f1c 100644 --- a/tools/designer/plugins/wizards/mainwindowwizard.ui +++ b/tools/designer/plugins/wizards/mainwindowwizard.ui @@ -33,10 +33,10 @@ ** ********************************************************************* designerinterface.h -qiconset.h -qaction.h -qpixmap.h -qdict.h +ntqiconset.h +ntqaction.h +ntqpixmap.h +ntqdict.h mainwindowwizard.ui.h struct DesignerFormWindow; struct DesignerInterface; diff --git a/tools/designer/plugins/wizards/sqlformwizardimpl.cpp b/tools/designer/plugins/wizards/sqlformwizardimpl.cpp index 627abd5ef..580780de4 100644 --- a/tools/designer/plugins/wizards/sqlformwizardimpl.cpp +++ b/tools/designer/plugins/wizards/sqlformwizardimpl.cpp @@ -33,30 +33,30 @@ #include "sqlformwizardimpl.h" -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #ifndef QT_NO_SQL -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #endif SqlFormWizard::SqlFormWizard( TQUnknownInterface *aIface, TQWidget *w, diff --git a/tools/designer/plugins/wizards/sqlformwizardimpl.h b/tools/designer/plugins/wizards/sqlformwizardimpl.h index 815d186f1..be3602d79 100644 --- a/tools/designer/plugins/wizards/sqlformwizardimpl.h +++ b/tools/designer/plugins/wizards/sqlformwizardimpl.h @@ -37,7 +37,7 @@ #include "sqlformwizard.h" #include #include -#include +#include class SqlFormWizard : public SqlFormWizardBase { diff --git a/tools/designer/shared/domtool.cpp b/tools/designer/shared/domtool.cpp index 781118038..4baf19412 100644 --- a/tools/designer/shared/domtool.cpp +++ b/tools/designer/shared/domtool.cpp @@ -33,14 +33,14 @@ #include "domtool.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include /*! \class DomTool domtool.h diff --git a/tools/designer/shared/domtool.h b/tools/designer/shared/domtool.h index e8f38b3f8..f53e205f5 100644 --- a/tools/designer/shared/domtool.h +++ b/tools/designer/shared/domtool.h @@ -34,8 +34,8 @@ #ifndef DOMTOOL_H #define DOMTOOL_H -#include -#include +#include +#include class TQDomElement; class TQDomDocument; diff --git a/tools/designer/shared/globaldefs.h b/tools/designer/shared/globaldefs.h index bcf7b118d..4f4c2cb21 100644 --- a/tools/designer/shared/globaldefs.h +++ b/tools/designer/shared/globaldefs.h @@ -34,8 +34,8 @@ #ifndef GLOBALDEFS_H #define GLOBALDEFS_H -#include -#include +#include +#include #define BOXLAYOUT_DEFAULT_MARGIN 11 #define BOXLAYOUT_DEFAULT_SPACING 6 diff --git a/tools/designer/shared/parser.cpp b/tools/designer/shared/parser.cpp index 21b93d6bc..f0624d7d2 100644 --- a/tools/designer/shared/parser.cpp +++ b/tools/designer/shared/parser.cpp @@ -32,8 +32,8 @@ **********************************************************************/ #include "parser.h" -#include -#include +#include +#include class NormalizeObject : public TQObject { diff --git a/tools/designer/shared/parser.h b/tools/designer/shared/parser.h index f6d11a8de..01a253566 100644 --- a/tools/designer/shared/parser.h +++ b/tools/designer/shared/parser.h @@ -34,7 +34,7 @@ #ifndef PARSER_H #define PARSER_H -#include +#include class Parser { diff --git a/tools/designer/shared/ui2uib.cpp b/tools/designer/shared/ui2uib.cpp index dabb8d429..239697982 100644 --- a/tools/designer/shared/ui2uib.cpp +++ b/tools/designer/shared/ui2uib.cpp @@ -36,15 +36,15 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* The .uib file format is the binary counterpart of the .ui file diff --git a/tools/designer/shared/uib.h b/tools/designer/shared/uib.h index d8a73dbd3..d4b09addf 100644 --- a/tools/designer/shared/uib.h +++ b/tools/designer/shared/uib.h @@ -34,7 +34,7 @@ #ifndef UIB_H #define UIB_H -#include +#include const Q_UINT32 UibMagic = 0xb77c61d8; diff --git a/tools/designer/shared/widgetdatabase.cpp b/tools/designer/shared/widgetdatabase.cpp index 98529b889..45e898ad5 100644 --- a/tools/designer/shared/widgetdatabase.cpp +++ b/tools/designer/shared/widgetdatabase.cpp @@ -34,15 +34,15 @@ #include "widgetdatabase.h" #include "../interfaces/widgetinterface.h" -#include +#include #define NO_STATIC_COLORS #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include @@ -263,7 +263,7 @@ void WidgetDatabase::setupDataBase( int id ) #if !defined(QT_NO_SQL) r = new WidgetDatabaseRecord; r->iconSet = "designer_datatable.png"; - r->includeFile = "qdatatable.h"; + r->includeFile = "ntqdatatable.h"; r->name = "TQDataTable"; r->group = widgetGroup( "Database" ); r->toolTip = "Data Table"; @@ -294,7 +294,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "TQDateEdit"; r->group = widgetGroup( "Input" ); r->toolTip = "Date Edit"; - r->includeFile = "qdatetimeedit.h"; + r->includeFile = "ntqdatetimeedit.h"; append( r ); @@ -303,7 +303,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "TQTimeEdit"; r->group = widgetGroup( "Input" ); r->toolTip = "Time Edit"; - r->includeFile = "qdatetimeedit.h"; + r->includeFile = "ntqdatetimeedit.h"; append( r ); @@ -312,7 +312,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "TQDateTimeEdit"; r->group = widgetGroup( "Input" ); r->toolTip = "Date-Time Edit"; - r->includeFile = "qdatetimeedit.h"; + r->includeFile = "ntqdatetimeedit.h"; append( r ); @@ -406,7 +406,7 @@ void WidgetDatabase::setupDataBase( int id ) r->name = "Line"; r->group = widgetGroup( "Display" ); r->toolTip = "Line"; - r->includeFile = "qframe.h"; + r->includeFile = "ntqframe.h"; r->whatsThis = "The Line widget provides horizontal and vertical lines."; append( r ); @@ -483,7 +483,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->name = "TQSplitter"; r->group = widgetGroup( "Temp" ); - r->includeFile = "qsplitter.h"; + r->includeFile = "ntqsplitter.h"; r->isContainer = TRUE; append( r ); @@ -515,7 +515,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQMainWindow"; - r->includeFile = "qmainwindow.h"; + r->includeFile = "ntqmainwindow.h"; r->group = widgetGroup( "Temp" ); r->isContainer = TRUE; @@ -524,7 +524,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDesignerAction"; - r->includeFile = "qaction.h"; + r->includeFile = "ntqaction.h"; r->group = widgetGroup( "Temp" ); r->isContainer = FALSE; @@ -533,7 +533,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDesignerActionGroup"; - r->includeFile = "qaction.h"; + r->includeFile = "ntqaction.h"; r->group = widgetGroup( "Temp" ); r->isContainer = FALSE; @@ -542,7 +542,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQScrollView"; - r->includeFile = "qscrollview.h"; + r->includeFile = "ntqscrollview.h"; r->group = widgetGroup( "Temp" ); r->isContainer = TRUE; @@ -552,7 +552,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDataBrowser"; - r->includeFile = "qdatabrowser.h"; + r->includeFile = "ntqdatabrowser.h"; r->group = widgetGroup( "Database" ); r->toolTip = "Data Browser"; r->iconSet = "designer_databrowser.png"; @@ -563,7 +563,7 @@ void WidgetDatabase::setupDataBase( int id ) r = new WidgetDatabaseRecord; r->iconSet = ""; r->name = "TQDataView"; - r->includeFile = "qdataview.h"; + r->includeFile = "ntqdataview.h"; r->group = widgetGroup( "Database" ); r->toolTip = "Data View"; r->iconSet = "designer_dataview.png"; diff --git a/tools/designer/shared/widgetdatabase.h b/tools/designer/shared/widgetdatabase.h index c77288c7f..973c699c0 100644 --- a/tools/designer/shared/widgetdatabase.h +++ b/tools/designer/shared/widgetdatabase.h @@ -34,8 +34,8 @@ #ifndef WIDGETDATABASE_H #define WIDGETDATABASE_H -#include -#include +#include +#include #include "../interfaces/widgetinterface.h" // up here for GCC 2.7.* compatibility #include diff --git a/tools/designer/tools/conv2ui/main.cpp b/tools/designer/tools/conv2ui/main.cpp index e92652015..df26872f2 100644 --- a/tools/designer/tools/conv2ui/main.cpp +++ b/tools/designer/tools/conv2ui/main.cpp @@ -31,13 +31,13 @@ ** **********************************************************************/ -#include +#include #include -#include -#include +#include +#include #include #include "filterinterface.h" -#include +#include class Conv2ui { public: diff --git a/tools/designer/tools/createcw/main.cpp b/tools/designer/tools/createcw/main.cpp index 1ab4f53eb..50f8574de 100644 --- a/tools/designer/tools/createcw/main.cpp +++ b/tools/designer/tools/createcw/main.cpp @@ -31,12 +31,12 @@ ** **********************************************************************/ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include // STEP1: Include header files of the widgets for which a description // should be created here. If you have a widget which is defined in diff --git a/tools/designer/uic/embed.cpp b/tools/designer/uic/embed.cpp index 555b20a81..aa00988ea 100644 --- a/tools/designer/uic/embed.cpp +++ b/tools/designer/uic/embed.cpp @@ -32,11 +32,11 @@ **********************************************************************/ #include "uic.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -143,10 +143,10 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima out << "****************************************************************************/\n"; out << "\n"; - out << "#include \n"; - out << "#include \n"; - out << "#include \n"; - out << "#include \n"; + out << "#include \n"; + out << "#include \n"; + out << "#include \n"; + out << "#include \n"; out << "\n"; TQPtrList list_image; diff --git a/tools/designer/uic/form.cpp b/tools/designer/uic/form.cpp index be21ee9e0..e185af6c3 100644 --- a/tools/designer/uic/form.cpp +++ b/tools/designer/uic/form.cpp @@ -35,12 +35,12 @@ #include "parser.h" #include "widgetdatabase.h" #include "domtool.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #define NO_STATIC_COLORS #include @@ -196,10 +196,10 @@ void Uic::createFormDecl( const TQDomElement &e ) out << "#ifndef " << protector << endl; out << "#define " << protector << endl; out << endl; - out << "#include " << endl; // for broken HP-UX compilers + out << "#include " << endl; // for broken HP-UX compilers if ( !imageMembers.isEmpty() ) - out << "#include " << endl; + out << "#include " << endl; TQStringList globalIncludes, localIncludes; int wid = WidgetDatabase::idFromClassName( objClass ); @@ -753,9 +753,9 @@ void Uic::createFormImpl( const TQDomElement &e ) registerDatabases( e ); dbConnections = unique( dbConnections ); if ( dbConnections.count() ) - globalIncludes += "qsqldatabase.h"; + globalIncludes += "ntqsqldatabase.h"; if ( dbCursors.count() ) - globalIncludes += "qsqlcursor.h"; + globalIncludes += "ntqsqlcursor.h"; bool dbForm = FALSE; if ( dbForms[ "(default)" ].count() ) dbForm = TRUE; @@ -769,8 +769,8 @@ void Uic::createFormImpl( const TQDomElement &e ) } } if ( dbForm || subDbForms ) { - globalIncludes += "qsqlform.h"; - globalIncludes += "qsqlrecord.h"; + globalIncludes += "ntqsqlform.h"; + globalIncludes += "ntqsqlrecord.h"; } // do the local includes afterwards, since global includes have priority on clashes @@ -803,12 +803,12 @@ void Uic::createFormImpl( const TQDomElement &e ) for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget TQString name = getClassName( nl.item(i).toElement() ); if ( name == "Spacer" ) { - globalIncludes += "qlayout.h"; - globalIncludes += "qapplication.h"; + globalIncludes += "ntqlayout.h"; + globalIncludes += "ntqapplication.h"; continue; } if (( name.mid( 1 ) == "ListView" ) || ( name.mid( 2 ) == "ListView" )) - globalIncludes += "qheader.h"; + globalIncludes += "ntqheader.h"; if ( name != objClass ) { int wid = WidgetDatabase::idFromClassName( name ); TQMap::Iterator it = customWidgetIncludes.find( name ); @@ -818,7 +818,7 @@ void Uic::createFormImpl( const TQDomElement &e ) } } - out << "#include " << endl; // first for gcc 2.7.2 + out << "#include " << endl; // first for gcc 2.7.2 globalIncludes = unique( globalIncludes ); for ( it = globalIncludes.begin(); it != globalIncludes.end(); ++it ) { @@ -826,14 +826,14 @@ void Uic::createFormImpl( const TQDomElement &e ) out << "#include <" << *it << ">" << endl; } - out << "#include " << endl; - out << "#include " << endl; - out << "#include " << endl; + out << "#include " << endl; + out << "#include " << endl; + out << "#include " << endl; if ( objClass == "TQMainWindow" ) { - out << "#include " << endl; - out << "#include " << endl; - out << "#include " << endl; - out << "#include " << endl; + out << "#include " << endl; + out << "#include " << endl; + out << "#include " << endl; + out << "#include " << endl; } // find out what images are required @@ -851,8 +851,8 @@ void Uic::createFormImpl( const TQDomElement &e ) } if ( !requiredImages.isEmpty() || externPixmaps ) { - out << "#include " << endl; - out << "#include " << endl << endl; + out << "#include " << endl; + out << "#include " << endl << endl; } /* diff --git a/tools/designer/uic/main.cpp b/tools/designer/uic/main.cpp index 19a4854d8..452aad978 100644 --- a/tools/designer/uic/main.cpp +++ b/tools/designer/uic/main.cpp @@ -36,11 +36,11 @@ #if defined(UIB) #include "ui2uib.h" #endif -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #define NO_STATIC_COLORS #include #include diff --git a/tools/designer/uic/object.cpp b/tools/designer/uic/object.cpp index 87dbd3b31..82aabee32 100644 --- a/tools/designer/uic/object.cpp +++ b/tools/designer/uic/object.cpp @@ -34,9 +34,9 @@ #include "uic.h" #include "parser.h" #include "domtool.h" -#include -#include -#include +#include +#include +#include #define NO_STATIC_COLORS #include #include "../interfaces/widgetinterface.h" diff --git a/tools/designer/uic/subclassing.cpp b/tools/designer/uic/subclassing.cpp index d5da48f91..f89b2ffb4 100644 --- a/tools/designer/uic/subclassing.cpp +++ b/tools/designer/uic/subclassing.cpp @@ -35,12 +35,12 @@ #include "parser.h" #include "widgetdatabase.h" #include "domtool.h" -#include -#include -#include +#include +#include +#include #define NO_STATIC_COLORS #include -#include +#include #include #include diff --git a/tools/designer/uic/uic.cpp b/tools/designer/uic/uic.cpp index 8faea579d..59a9a1d1d 100644 --- a/tools/designer/uic/uic.cpp +++ b/tools/designer/uic/uic.cpp @@ -35,12 +35,12 @@ #include "parser.h" #include "widgetdatabase.h" #include "domtool.h" -#include -#include -#include +#include +#include +#include #define NO_STATIC_COLORS #include -#include +#include #include #include diff --git a/tools/designer/uic/uic.h b/tools/designer/uic/uic.h index 35d9ed0ab..fd616ecd1 100644 --- a/tools/designer/uic/uic.h +++ b/tools/designer/uic/uic.h @@ -33,13 +33,13 @@ #ifndef UIC_H #define UIC_H -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include class Uic : public TQt { diff --git a/tools/designer/uilib/ntqwidgetfactory.h b/tools/designer/uilib/ntqwidgetfactory.h new file mode 100644 index 000000000..4213199cd --- /dev/null +++ b/tools/designer/uilib/ntqwidgetfactory.h @@ -0,0 +1,187 @@ +/********************************************************************** +** Copyright (C) 2005-2008 Trolltech ASA. All rights reserved. +** +** This file is part of TQt Designer. +** +** 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 files LICENSE.GPL2 +** and LICENSE.GPL3 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. +** +** 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 TQWIDGETFACTORY_H +#define TQWIDGETFACTORY_H + +#ifndef QT_H +#include +#include +#include +#include +#include +#include +#include +#endif // QT_H + +class TQDomDocument; +class TQDomElement; +class TQLayout; +class TQListView; +class TQListViewItem; +class TQMenuBar; +class TQTable; +class TQWidget; +class TQWidgetFactoryPrivate; +class UibStrTable; + +class Q_EXPORT TQWidgetFactory +{ +public: + TQWidgetFactory(); + virtual ~TQWidgetFactory(); + + static TQWidget *create( const TQString &uiFile, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 ); + static TQWidget *create( TQIODevice *dev, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 ); + static void addWidgetFactory( TQWidgetFactory *factory ); + static void loadImages( const TQString &dir ); + + virtual TQWidget *createWidget( const TQString &className, TQWidget *parent, const char *name ) const; + static TQStringList widgets(); + static bool supportsWidget( const TQString &widget ); + +private: + enum LayoutType { HBox, VBox, Grid, NoLayout }; + void loadImageCollection( const TQDomElement &e ); + void loadConnections( const TQDomElement &e, TQObject *connector ); + void loadTabOrder( const TQDomElement &e ); + TQWidget *createWidgetInternal( const TQDomElement &e, TQWidget *parent, TQLayout* layout, const TQString &classNameArg ); + TQLayout *createLayout( TQWidget *widget, TQLayout* layout, LayoutType type, bool isTQLayoutWidget = FALSE ); + LayoutType layoutType( TQLayout *l ) const; + void setProperty( TQObject* widget, const TQString &prop, TQVariant value ); + void setProperty( TQObject* widget, const TQString &prop, const TQDomElement &e ); + void createSpacer( const TQDomElement &e, TQLayout *layout ); + TQImage loadFromCollection( const TQString &name ); + TQPixmap loadPixmap( const TQString &name ); + TQPixmap loadPixmap( const TQDomElement &e ); + TQColorGroup loadColorGroup( const TQDomElement &e ); + void createListViewColumn( TQListView *lv, const TQString& txt, + const TQPixmap& pix, bool clickable, + bool resizable ); +#ifndef QT_NO_TABLE + void createTableColumnOrRow( TQTable *table, const TQString& txt, + const TQPixmap& pix, const TQString& field, + bool isRow ); +#endif + void createColumn( const TQDomElement &e, TQWidget *widget ); + void loadItem( const TQDomElement &e, TQPixmap &pix, TQString &txt, bool &hasPixmap ); + void createItem( const TQDomElement &e, TQWidget *widget, TQListViewItem *i = 0 ); + void loadChildAction( TQObject *parent, const TQDomElement &e ); + void loadActions( const TQDomElement &e ); + void loadToolBars( const TQDomElement &e ); + void loadMenuBar( const TQDomElement &e ); + void loadPopupMenu( TQPopupMenu *p, const TQDomElement &e ); + void loadFunctions( const TQDomElement &e ); + TQAction *findAction( const TQString &name ); + void loadExtraSource(); + TQString translate( const char *sourceText, const char *comment = "" ); + TQString translate( const TQString& sourceText, const TQString& comment = TQString::null ); + + void unpackUInt16( TQDataStream& in, Q_UINT16& n ); + void unpackUInt32( TQDataStream& in, Q_UINT32& n ); + void unpackByteArray( TQDataStream& in, TQByteArray& array ); + void unpackCString( const UibStrTable& strings, TQDataStream& in, + TQCString& cstr ); + void unpackString( const UibStrTable& strings, TQDataStream& in, + TQString& str ); + void unpackStringSplit( const UibStrTable& strings, TQDataStream& in, + TQString& str ); + void unpackVariant( const UibStrTable& strings, TQDataStream& in, + TQVariant& value ); + void inputSpacer( const UibStrTable& strings, TQDataStream& in, + TQLayout *parent ); + void inputColumnOrRow( const UibStrTable& strings, TQDataStream& in, + TQObject *parent, bool isRow ); + void inputItem( const UibStrTable& strings, TQDataStream& in, + TQObject *parent, TQListViewItem *parentItem = 0 ); + void inputMenuItem( TQObject **objects, const UibStrTable& strings, + TQDataStream& in, TQMenuBar *menuBar ); + TQObject *inputObject( TQObject **objects, int& numObjects, + const UibStrTable& strings, TQDataStream& in, + TQWidget *ancestorWidget, TQObject *parent, + TQCString className = "" ); + TQWidget *createFromUiFile( TQDomDocument doc, TQObject *connector, + TQWidget *parent, const char *name ); + TQWidget *createFromUibFile( TQDataStream& in, TQObject *connector, + TQWidget *parent, const char *name ); + +private: + struct Image { + TQImage img; + TQString name; + bool operator==( const Image &i ) const { + return ( i.name == name && + i.img == img ); + } + }; + + struct Field + { + Field() {} + Field( const TQString &s1, const TQPixmap &p, const TQString &s2 ) : name( s1 ), pix( p ), field( s2 ) {} + TQString name; + TQPixmap pix; + TQString field; + Q_DUMMY_COMPARISON_OPERATOR( Field ) + }; + + struct SqlWidgetConnection + { + SqlWidgetConnection() {} + SqlWidgetConnection( const TQString &c, const TQString &t ) + : conn( c ), table( t ), dbControls( new TQMap() ) {} + TQString conn; + TQString table; + TQMap *dbControls; + Q_DUMMY_COMPARISON_OPERATOR( SqlWidgetConnection ) + }; + + TQValueList images; + TQWidget *toplevel; + TQWidgetFactoryPrivate *d; + TQMap *dbControls; + TQMap dbTables; + TQMap sqlWidgetConnections; + TQMap buddies; + TQMap > fieldMaps; + TQPtrList actionList; + TQMap languageSlots; + TQStringList noDatabaseWidgets; + bool usePixmapCollection; + int defMargin; + int defSpacing; + TQString code; + TQString uiFileVersion; +}; + +#endif diff --git a/tools/designer/uilib/qwidgetfactory.cpp b/tools/designer/uilib/qwidgetfactory.cpp index ef143d46f..269f6c355 100644 --- a/tools/designer/uilib/qwidgetfactory.cpp +++ b/tools/designer/uilib/qwidgetfactory.cpp @@ -31,77 +31,77 @@ ** **********************************************************************/ -#include "qwidgetfactory.h" +#include "ntqwidgetfactory.h" #include "../interfaces/languageinterface.h" #include "../interfaces/widgetinterface.h" -#include +#include #include "../designer/database2.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include +#include +#include #ifndef QT_NO_SQL -#include -#include -#include +#include +#include +#include #endif // include all TQt widgets we support -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #ifndef QT_NO_TABLE -#include +#include #endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/tools/designer/uilib/qwidgetfactory.h b/tools/designer/uilib/qwidgetfactory.h deleted file mode 100644 index bd39623e3..000000000 --- a/tools/designer/uilib/qwidgetfactory.h +++ /dev/null @@ -1,187 +0,0 @@ -/********************************************************************** -** Copyright (C) 2005-2008 Trolltech ASA. All rights reserved. -** -** This file is part of TQt Designer. -** -** 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 files LICENSE.GPL2 -** and LICENSE.GPL3 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. -** -** 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 TQWIDGETFACTORY_H -#define TQWIDGETFACTORY_H - -#ifndef QT_H -#include -#include -#include -#include -#include -#include -#include -#endif // QT_H - -class TQDomDocument; -class TQDomElement; -class TQLayout; -class TQListView; -class TQListViewItem; -class TQMenuBar; -class TQTable; -class TQWidget; -class TQWidgetFactoryPrivate; -class UibStrTable; - -class Q_EXPORT TQWidgetFactory -{ -public: - TQWidgetFactory(); - virtual ~TQWidgetFactory(); - - static TQWidget *create( const TQString &uiFile, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 ); - static TQWidget *create( TQIODevice *dev, TQObject *connector = 0, TQWidget *parent = 0, const char *name = 0 ); - static void addWidgetFactory( TQWidgetFactory *factory ); - static void loadImages( const TQString &dir ); - - virtual TQWidget *createWidget( const TQString &className, TQWidget *parent, const char *name ) const; - static TQStringList widgets(); - static bool supportsWidget( const TQString &widget ); - -private: - enum LayoutType { HBox, VBox, Grid, NoLayout }; - void loadImageCollection( const TQDomElement &e ); - void loadConnections( const TQDomElement &e, TQObject *connector ); - void loadTabOrder( const TQDomElement &e ); - TQWidget *createWidgetInternal( const TQDomElement &e, TQWidget *parent, TQLayout* layout, const TQString &classNameArg ); - TQLayout *createLayout( TQWidget *widget, TQLayout* layout, LayoutType type, bool isTQLayoutWidget = FALSE ); - LayoutType layoutType( TQLayout *l ) const; - void setProperty( TQObject* widget, const TQString &prop, TQVariant value ); - void setProperty( TQObject* widget, const TQString &prop, const TQDomElement &e ); - void createSpacer( const TQDomElement &e, TQLayout *layout ); - TQImage loadFromCollection( const TQString &name ); - TQPixmap loadPixmap( const TQString &name ); - TQPixmap loadPixmap( const TQDomElement &e ); - TQColorGroup loadColorGroup( const TQDomElement &e ); - void createListViewColumn( TQListView *lv, const TQString& txt, - const TQPixmap& pix, bool clickable, - bool resizable ); -#ifndef QT_NO_TABLE - void createTableColumnOrRow( TQTable *table, const TQString& txt, - const TQPixmap& pix, const TQString& field, - bool isRow ); -#endif - void createColumn( const TQDomElement &e, TQWidget *widget ); - void loadItem( const TQDomElement &e, TQPixmap &pix, TQString &txt, bool &hasPixmap ); - void createItem( const TQDomElement &e, TQWidget *widget, TQListViewItem *i = 0 ); - void loadChildAction( TQObject *parent, const TQDomElement &e ); - void loadActions( const TQDomElement &e ); - void loadToolBars( const TQDomElement &e ); - void loadMenuBar( const TQDomElement &e ); - void loadPopupMenu( TQPopupMenu *p, const TQDomElement &e ); - void loadFunctions( const TQDomElement &e ); - TQAction *findAction( const TQString &name ); - void loadExtraSource(); - TQString translate( const char *sourceText, const char *comment = "" ); - TQString translate( const TQString& sourceText, const TQString& comment = TQString::null ); - - void unpackUInt16( TQDataStream& in, Q_UINT16& n ); - void unpackUInt32( TQDataStream& in, Q_UINT32& n ); - void unpackByteArray( TQDataStream& in, TQByteArray& array ); - void unpackCString( const UibStrTable& strings, TQDataStream& in, - TQCString& cstr ); - void unpackString( const UibStrTable& strings, TQDataStream& in, - TQString& str ); - void unpackStringSplit( const UibStrTable& strings, TQDataStream& in, - TQString& str ); - void unpackVariant( const UibStrTable& strings, TQDataStream& in, - TQVariant& value ); - void inputSpacer( const UibStrTable& strings, TQDataStream& in, - TQLayout *parent ); - void inputColumnOrRow( const UibStrTable& strings, TQDataStream& in, - TQObject *parent, bool isRow ); - void inputItem( const UibStrTable& strings, TQDataStream& in, - TQObject *parent, TQListViewItem *parentItem = 0 ); - void inputMenuItem( TQObject **objects, const UibStrTable& strings, - TQDataStream& in, TQMenuBar *menuBar ); - TQObject *inputObject( TQObject **objects, int& numObjects, - const UibStrTable& strings, TQDataStream& in, - TQWidget *ancestorWidget, TQObject *parent, - TQCString className = "" ); - TQWidget *createFromUiFile( TQDomDocument doc, TQObject *connector, - TQWidget *parent, const char *name ); - TQWidget *createFromUibFile( TQDataStream& in, TQObject *connector, - TQWidget *parent, const char *name ); - -private: - struct Image { - TQImage img; - TQString name; - bool operator==( const Image &i ) const { - return ( i.name == name && - i.img == img ); - } - }; - - struct Field - { - Field() {} - Field( const TQString &s1, const TQPixmap &p, const TQString &s2 ) : name( s1 ), pix( p ), field( s2 ) {} - TQString name; - TQPixmap pix; - TQString field; - Q_DUMMY_COMPARISON_OPERATOR( Field ) - }; - - struct SqlWidgetConnection - { - SqlWidgetConnection() {} - SqlWidgetConnection( const TQString &c, const TQString &t ) - : conn( c ), table( t ), dbControls( new TQMap() ) {} - TQString conn; - TQString table; - TQMap *dbControls; - Q_DUMMY_COMPARISON_OPERATOR( SqlWidgetConnection ) - }; - - TQValueList images; - TQWidget *toplevel; - TQWidgetFactoryPrivate *d; - TQMap *dbControls; - TQMap dbTables; - TQMap sqlWidgetConnections; - TQMap buddies; - TQMap > fieldMaps; - TQPtrList actionList; - TQMap languageSlots; - TQStringList noDatabaseWidgets; - bool usePixmapCollection; - int defMargin; - int defSpacing; - TQString code; - TQString uiFileVersion; -}; - -#endif diff --git a/tools/designer/uilib/test/main.cpp b/tools/designer/uilib/test/main.cpp index 42981ff00..1a8c14a02 100644 --- a/tools/designer/uilib/test/main.cpp +++ b/tools/designer/uilib/test/main.cpp @@ -31,8 +31,8 @@ ** **********************************************************************/ -#include -#include "../qwidgetfactory.h" +#include +#include "../ntqwidgetfactory.h" int main( int argc, char ** argv ) { -- cgit v1.2.1