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/assistant/config.cpp | 12 ++--- tools/assistant/config.h | 8 ++-- tools/assistant/docuparser.cpp | 12 ++--- tools/assistant/docuparser.h | 6 +-- tools/assistant/finddialog.ui | 4 +- tools/assistant/finddialog.ui.h | 2 +- tools/assistant/helpdialogimpl.cpp | 50 ++++++++++---------- tools/assistant/helpdialogimpl.h | 16 +++---- tools/assistant/helpwindow.cpp | 26 +++++------ tools/assistant/helpwindow.h | 2 +- tools/assistant/index.cpp | 10 ++-- tools/assistant/index.h | 8 ++-- tools/assistant/lib/lib.pro | 2 +- tools/assistant/lib/ntqassistantclient.h | 80 ++++++++++++++++++++++++++++++++ tools/assistant/lib/qassistantclient.cpp | 12 ++--- tools/assistant/lib/qassistantclient.h | 80 -------------------------------- tools/assistant/main.cpp | 20 ++++---- tools/assistant/mainwindow.ui | 50 ++++++++++---------- tools/assistant/mainwindow.ui.h | 20 ++++---- tools/assistant/profile.cpp | 10 ++-- tools/assistant/profile.h | 8 ++-- tools/assistant/settingsdialogimpl.cpp | 34 +++++++------- tools/assistant/settingsdialogimpl.h | 6 +-- tools/assistant/tabbedbrowser.ui | 6 +-- tools/assistant/tabbedbrowser.ui.h | 12 ++--- tools/assistant/topicchooserimpl.cpp | 6 +-- tools/assistant/topicchooserimpl.h | 2 +- 27 files changed, 252 insertions(+), 252 deletions(-) create mode 100644 tools/assistant/lib/ntqassistantclient.h delete mode 100644 tools/assistant/lib/qassistantclient.h (limited to 'tools/assistant') diff --git a/tools/assistant/config.cpp b/tools/assistant/config.cpp index 931985bd0..9a8295893 100644 --- a/tools/assistant/config.cpp +++ b/tools/assistant/config.cpp @@ -35,12 +35,12 @@ #include "profile.h" #include "docuparser.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include static Config *static_configuration = 0; diff --git a/tools/assistant/config.h b/tools/assistant/config.h index 9a38fb8a1..3bf6c6ad1 100644 --- a/tools/assistant/config.h +++ b/tools/assistant/config.h @@ -36,10 +36,10 @@ #include "profile.h" -#include -#include -#include -#include +#include +#include +#include +#include class Profile; diff --git a/tools/assistant/docuparser.cpp b/tools/assistant/docuparser.cpp index 3d21d286d..158d10d97 100644 --- a/tools/assistant/docuparser.cpp +++ b/tools/assistant/docuparser.cpp @@ -34,12 +34,12 @@ #include "docuparser.h" #include "profile.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include TQDataStream &operator>>( TQDataStream &s, ContentItem &ci ) { diff --git a/tools/assistant/docuparser.h b/tools/assistant/docuparser.h index 820766c31..919c3145a 100644 --- a/tools/assistant/docuparser.h +++ b/tools/assistant/docuparser.h @@ -34,9 +34,9 @@ #ifndef DOCUPARSER_H #define DOCUPARSER_H -#include -#include -#include +#include +#include +#include class Profile; diff --git a/tools/assistant/finddialog.ui b/tools/assistant/finddialog.ui index 6e7e8253d..7b09fe96b 100644 --- a/tools/assistant/finddialog.ui +++ b/tools/assistant/finddialog.ui @@ -254,8 +254,8 @@ PushButton2 - qstatusbar.h - qtextbrowser.h + ntqstatusbar.h + ntqtextbrowser.h mainwindow.h tabbedbrowser.h finddialog.ui.h diff --git a/tools/assistant/finddialog.ui.h b/tools/assistant/finddialog.ui.h index 7e07a4f9c..f356dd4cd 100644 --- a/tools/assistant/finddialog.ui.h +++ b/tools/assistant/finddialog.ui.h @@ -31,7 +31,7 @@ ** **********************************************************************/ -#include +#include void FindDialog::init() { diff --git a/tools/assistant/helpdialogimpl.cpp b/tools/assistant/helpdialogimpl.cpp index 81d216f8c..f299ee8e2 100644 --- a/tools/assistant/helpdialogimpl.cpp +++ b/tools/assistant/helpdialogimpl.cpp @@ -39,31 +39,31 @@ #include "config.h" #include "tabbedbrowser.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 diff --git a/tools/assistant/helpdialogimpl.h b/tools/assistant/helpdialogimpl.h index a12317b80..04faa1f56 100644 --- a/tools/assistant/helpdialogimpl.h +++ b/tools/assistant/helpdialogimpl.h @@ -39,14 +39,14 @@ #include "helpwindow.h" #include "docuparser.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include class TQProgressBar; class MainWindow; diff --git a/tools/assistant/helpwindow.cpp b/tools/assistant/helpwindow.cpp index 3230afcea..266fa972c 100644 --- a/tools/assistant/helpwindow.cpp +++ b/tools/assistant/helpwindow.cpp @@ -37,19 +37,19 @@ #include "helpdialogimpl.h" #include "config.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 #if defined(Q_OS_WIN32) #include diff --git a/tools/assistant/helpwindow.h b/tools/assistant/helpwindow.h index d12ece1fc..db89947d2 100644 --- a/tools/assistant/helpwindow.h +++ b/tools/assistant/helpwindow.h @@ -34,7 +34,7 @@ #ifndef HELPWINDOW_H #define HELPWINDOW_H -#include +#include class MainWindow; class TQKeyEvent; diff --git a/tools/assistant/index.cpp b/tools/assistant/index.cpp index 4f04f595d..4ce081deb 100644 --- a/tools/assistant/index.cpp +++ b/tools/assistant/index.cpp @@ -33,11 +33,11 @@ #include "index.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include diff --git a/tools/assistant/index.h b/tools/assistant/index.h index 236b03db2..333e41b77 100644 --- a/tools/assistant/index.h +++ b/tools/assistant/index.h @@ -34,10 +34,10 @@ #ifndef INDEX_H #define INDEX_H -#include -#include -#include -#include +#include +#include +#include +#include struct Document { Document( int d, int f ) : docNumber( d ), frequency( f ) {} diff --git a/tools/assistant/lib/lib.pro b/tools/assistant/lib/lib.pro index 09beced51..af1b1c6ce 100644 --- a/tools/assistant/lib/lib.pro +++ b/tools/assistant/lib/lib.pro @@ -7,7 +7,7 @@ CONFIG += staticlib CONFIG -= dll SOURCES = qassistantclient.cpp -HEADERS += $$QT_SOURCE_TREE/include/qassistantclient.h +HEADERS += $$QT_SOURCE_TREE/include/ntqassistantclient.h DEFINES += QT_INTERNAL_NETWORK diff --git a/tools/assistant/lib/ntqassistantclient.h b/tools/assistant/lib/ntqassistantclient.h new file mode 100644 index 000000000..28fd6693e --- /dev/null +++ b/tools/assistant/lib/ntqassistantclient.h @@ -0,0 +1,80 @@ +/********************************************************************** +** Copyright (C) 2005-2008 Trolltech ASA. All rights reserved. +** +** This file is part of the TQAssistantClient library. +** +** 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 TQASSISTANTCLIENT_H +#define TQASSISTANTCLIENT_H + +#include + +class TQSocket; +class TQProcess; + +class TQAssistantClient : public TQObject +{ + Q_OBJECT + Q_PROPERTY( bool open READ isOpen ) + +public: + TQAssistantClient( const TQString &path, TQObject *parent = 0, const char *name = 0 ); + ~TQAssistantClient(); + + bool isOpen() const; + + void setArguments( const TQStringList &args ); + +public slots: + virtual void openAssistant(); + virtual void closeAssistant(); + virtual void showPage( const TQString &page ); + +signals: + void assistantOpened(); + void assistantClosed(); + void error( const TQString &msg ); + +private slots: + void socketConnected(); + void socketConnectionClosed(); + void readPort(); + void socketError( int ); + void readStdError(); + +private: + TQSocket *socket; + TQProcess *proc; + Q_UINT16 port; + TQString host, assistantCommand, pageBuffer; + bool opened; +}; + +#endif diff --git a/tools/assistant/lib/qassistantclient.cpp b/tools/assistant/lib/qassistantclient.cpp index d6acac3c9..b0fc0df39 100644 --- a/tools/assistant/lib/qassistantclient.cpp +++ b/tools/assistant/lib/qassistantclient.cpp @@ -31,13 +31,13 @@ ** **********************************************************************/ -#include "qassistantclient.h" +#include "ntqassistantclient.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include class TQAssistantClientPrivate { diff --git a/tools/assistant/lib/qassistantclient.h b/tools/assistant/lib/qassistantclient.h deleted file mode 100644 index 891dc1bab..000000000 --- a/tools/assistant/lib/qassistantclient.h +++ /dev/null @@ -1,80 +0,0 @@ -/********************************************************************** -** Copyright (C) 2005-2008 Trolltech ASA. All rights reserved. -** -** This file is part of the TQAssistantClient library. -** -** 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 TQASSISTANTCLIENT_H -#define TQASSISTANTCLIENT_H - -#include - -class TQSocket; -class TQProcess; - -class TQAssistantClient : public TQObject -{ - Q_OBJECT - Q_PROPERTY( bool open READ isOpen ) - -public: - TQAssistantClient( const TQString &path, TQObject *parent = 0, const char *name = 0 ); - ~TQAssistantClient(); - - bool isOpen() const; - - void setArguments( const TQStringList &args ); - -public slots: - virtual void openAssistant(); - virtual void closeAssistant(); - virtual void showPage( const TQString &page ); - -signals: - void assistantOpened(); - void assistantClosed(); - void error( const TQString &msg ); - -private slots: - void socketConnected(); - void socketConnectionClosed(); - void readPort(); - void socketError( int ); - void readStdError(); - -private: - TQSocket *socket; - TQProcess *proc; - Q_UINT16 port; - TQString host, assistantCommand, pageBuffer; - bool opened; -}; - -#endif diff --git a/tools/assistant/main.cpp b/tools/assistant/main.cpp index b0c0082a7..dc99b7a1a 100644 --- a/tools/assistant/main.cpp +++ b/tools/assistant/main.cpp @@ -35,18 +35,18 @@ #include "helpdialogimpl.h" #include "config.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include +#include #ifdef Q_WS_WIN #define INDEX_CHECK( text ) if( i+1 >= argc ) { TQMessageBox::information( 0, "TQt Assistant", text ); return 1; } diff --git a/tools/assistant/mainwindow.ui b/tools/assistant/mainwindow.ui index a5d87237e..7087e2f3a 100644 --- a/tools/assistant/mainwindow.ui +++ b/tools/assistant/mainwindow.ui @@ -570,37 +570,37 @@ - qtoolbutton.h + ntqtoolbutton.h settingsdialogimpl.h - qmessagebox.h - qfontdatabase.h - qaccel.h - qcombobox.h - qpaintdevicemetrics.h - qsimplerichtext.h - qfileinfo.h - qtextstream.h - qdockwindow.h + ntqmessagebox.h + ntqfontdatabase.h + ntqaccel.h + ntqcombobox.h + ntqpaintdevicemetrics.h + ntqsimplerichtext.h + ntqfileinfo.h + ntqtextstream.h + ntqdockwindow.h stdlib.h - qmime.h + ntqmime.h helpwindow.h - qstylesheet.h - qapplication.h + ntqstylesheet.h + ntqapplication.h helpdialogimpl.h - qdir.h - qprinter.h - qpainter.h - qurl.h - qstatusbar.h - qlineedit.h - qsettings.h - qcheckbox.h + ntqdir.h + ntqprinter.h + ntqpainter.h + ntqurl.h + ntqstatusbar.h + ntqlineedit.h + ntqsettings.h + ntqcheckbox.h tabbedbrowser.h - qptrlist.h - qguardedptr.h - qmap.h + ntqptrlist.h + ntqguardedptr.h + ntqmap.h finddialog.h - qstringlist.h + ntqstringlist.h helpwindow.h mainwindow.ui.h diff --git a/tools/assistant/mainwindow.ui.h b/tools/assistant/mainwindow.ui.h index 9b4c7d973..a0824271f 100644 --- a/tools/assistant/mainwindow.ui.h +++ b/tools/assistant/mainwindow.ui.h @@ -33,16 +33,16 @@ #include "config.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include TQPtrList *MainWindow::windows = 0; diff --git a/tools/assistant/profile.cpp b/tools/assistant/profile.cpp index 8eb7330d3..231520eef 100644 --- a/tools/assistant/profile.cpp +++ b/tools/assistant/profile.cpp @@ -31,11 +31,11 @@ ** **********************************************************************/ #include "profile.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #define QT_TITLE "TQt Reference Documentation" #define DESIGNER_TITLE "TQt Designer Manual" diff --git a/tools/assistant/profile.h b/tools/assistant/profile.h index dbc140369..5d3dd34e9 100644 --- a/tools/assistant/profile.h +++ b/tools/assistant/profile.h @@ -34,10 +34,10 @@ #ifndef PROFILE_H #define PROFILE_H -#include -#include -#include -#include +#include +#include +#include +#include class DocuParser; diff --git a/tools/assistant/settingsdialogimpl.cpp b/tools/assistant/settingsdialogimpl.cpp index f0edcc134..e9111d6d9 100644 --- a/tools/assistant/settingsdialogimpl.cpp +++ b/tools/assistant/settingsdialogimpl.cpp @@ -35,23 +35,23 @@ #include "docuparser.h" #include "config.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 SettingsDialog::SettingsDialog( TQWidget *parent, const char* name ) diff --git a/tools/assistant/settingsdialogimpl.h b/tools/assistant/settingsdialogimpl.h index 3fed90681..77273dc81 100644 --- a/tools/assistant/settingsdialogimpl.h +++ b/tools/assistant/settingsdialogimpl.h @@ -36,9 +36,9 @@ #include "settingsdialog.h" -#include -#include -#include +#include +#include +#include class SettingsDialog : public SettingsDialogBase { diff --git a/tools/assistant/tabbedbrowser.ui b/tools/assistant/tabbedbrowser.ui index 33dd9170a..906fcecb1 100644 --- a/tools/assistant/tabbedbrowser.ui +++ b/tools/assistant/tabbedbrowser.ui @@ -78,11 +78,11 @@ - qsettings.h + ntqsettings.h helpwindow.h mainwindow.h - qstylesheet.h - qmime.h + ntqstylesheet.h + ntqmime.h tabbedbrowser.ui.h diff --git a/tools/assistant/tabbedbrowser.ui.h b/tools/assistant/tabbedbrowser.ui.h index 8f2324e56..6663b53ab 100644 --- a/tools/assistant/tabbedbrowser.ui.h +++ b/tools/assistant/tabbedbrowser.ui.h @@ -7,12 +7,12 @@ ** place of a destructor. *****************************************************************************/ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include "config.h" diff --git a/tools/assistant/topicchooserimpl.cpp b/tools/assistant/topicchooserimpl.cpp index 7e8e685d9..736aa4845 100644 --- a/tools/assistant/topicchooserimpl.cpp +++ b/tools/assistant/topicchooserimpl.cpp @@ -33,9 +33,9 @@ #include "topicchooserimpl.h" -#include -#include -#include +#include +#include +#include TopicChooser::TopicChooser( TQWidget *parent, const TQStringList &lnkNames, const TQStringList &lnks, const TQString &title ) diff --git a/tools/assistant/topicchooserimpl.h b/tools/assistant/topicchooserimpl.h index 34334e6e9..bc3fbd411 100644 --- a/tools/assistant/topicchooserimpl.h +++ b/tools/assistant/topicchooserimpl.h @@ -36,7 +36,7 @@ #include "topicchooser.h" -#include +#include class TopicChooser : public TopicChooserBase { -- cgit v1.2.1