From a30a266067d9d952edc91305bef757557c03717e Mon Sep 17 00:00:00 2001
From: Michele Calgaro
Date: Sat, 16 Jul 2022 15:44:05 +0900
Subject: Raw Qt->TQt conversion using
tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro
---
readme.html | 40 +--
src/AboutDialog.cpp | 32 +--
src/AboutDialog.h | 10 +-
src/AboutDialog.ui | 48 ++--
src/AboutDialogGraphicsView.cpp | 84 +++----
src/AboutDialogGraphicsView.h | 16 +-
src/FindDialog.ui | 30 +--
src/IndentHandler.cpp | 546 ++++++++++++++++++++--------------------
src/IndentHandler.h | 178 ++++++-------
src/MainWindow.cpp | 384 ++++++++++++++--------------
src/MainWindow.h | 70 +++---
src/MainWindow.ui | 50 ++--
src/SettingsPaths.cpp | 80 +++---
src/SettingsPaths.h | 22 +-
src/TemplateBatchScript.cpp | 4 +-
src/ToolBarWidget.ui | 16 +-
src/UiGuiErrorMessage.cpp | 18 +-
src/UiGuiErrorMessage.h | 16 +-
src/UiGuiHighlighter.cpp | 166 ++++++------
src/UiGuiHighlighter.h | 34 +--
src/UiGuiIndentServer.cpp | 40 +--
src/UiGuiIndentServer.h | 18 +-
src/UiGuiIniFileParser.cpp | 38 +--
src/UiGuiIniFileParser.h | 20 +-
src/UiGuiSettings.cpp | 440 ++++++++++++++++----------------
src/UiGuiSettings.h | 54 ++--
src/UiGuiSettingsDialog.cpp | 32 +--
src/UiGuiSettingsDialog.h | 10 +-
src/UiGuiSettingsDialog.ui | 118 ++++-----
src/UiGuiSystemInfo.cpp | 96 +++----
src/UiGuiSystemInfo.h | 4 +-
src/UiGuiVersion.cpp | 20 +-
src/UiGuiVersion.h | 6 +-
src/UpdateCheckDialog.cpp | 72 +++---
src/UpdateCheckDialog.h | 32 +--
src/UpdateCheckDialog.ui | 14 +-
src/debugging/TSLogger.cpp | 74 +++---
src/debugging/TSLogger.h | 18 +-
src/debugging/TSLoggerDialog.ui | 22 +-
src/main.cpp | 26 +-
40 files changed, 1499 insertions(+), 1499 deletions(-)
diff --git a/readme.html b/readme.html
index 65c4def..4e259b4 100755
--- a/readme.html
+++ b/readme.html
@@ -159,10 +159,10 @@ a.external
But if you'd like to build UiGUI from source, follow these steps:
- Download, unpack, configure and compile
- Qt
- >= 4.4.0. Make your QTDIR and QMAKESPEC settings. Or install Qt via a package manager.
+ TQt
+ >= 4.4.0. Make your QTDIR and QMAKESPEC settings. Or install TQt via a package manager.
- Download, unpack, compile and install
- QScintilla
+ TQScintilla
>= 2.2.
- Checkout UiGUI: svn co https://universalindent.svn.sourceforge.net/svnroot/universalindent/trunk universalindentgui
- In the checked out directory run "qmake UniversalIndentGUI.pro".
@@ -192,32 +192,32 @@ a.external
and XCode are included.
- Used Qt techniques
- This list shows some selected functionalities that Qt offers and that I use with UiGUI.
+ Used TQt techniques
+ This list shows some selected functionalities that TQt offers and that I use with UiGUI.
- Translations are done with
- QTranslator,
- QLocale and Linguist.
+ TQTranslator,
+ TQLocale and Linguist.
- File encodings are supported by using
- QTextCodec
- and QTextStream.
- - QScriptEngine
- and QScriptValue
+ TQTextCodec
+ and TQTextStream.
+ - TQScriptEngine
+ and TQScriptValue
is included for executing JavaScript files used as indenters.
- - QGraphicsView
- and QGraphicsProxyWidget
+
- TQGraphicsView
+ and TQGraphicsProxyWidget
for creating an animated 3D about dialog, simulating that is done on the whole desktop by using
- the screenshot capability of Qt.
+ the screenshot capability of TQt.
- Stylesheet settings give the about dialog a special look. Also gradients are used.
- - QHttp
- and QUrl
+
- TQHttp
+ and TQUrl
are used for the update check.
- - QSettings
+
- TQSettings
is responsible for storing the application and syntax highlighter settings.
- - QTcpServer
- and QTcpSocket
+
- TQTcpServer
+ and TQTcpSocket
build the base for the UiGUI Server.
- - Of course I use the Qt tools qmake, lupdate, lrelease, Designer, Linguist and my very best friend the Assistant.
+ - Of course I use the TQt tools qmake, lupdate, lrelease, Designer, Linguist and my very best friend the Assistant.
Future plans
diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp
index 13957ed..7f22ece 100755
--- a/src/AboutDialog.cpp
+++ b/src/AboutDialog.cpp
@@ -22,11 +22,11 @@
#include "UiGuiVersion.h"
-#include
+#include
#include
-#include
-#include
-#include
+#include
+#include
+#include
/*!
\class AboutDialog
@@ -37,7 +37,7 @@
\brief The constructor calls the setup function for the ui created by uic and adds
the GPL text to the text edit.
*/
-AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(parent, flags)
+AboutDialog::AboutDialog(TQWidget *parent, TQt::WindowFlags flags) : TQDialog(parent, flags)
, _dialogForm(NULL)
, _timer(NULL)
{
@@ -47,7 +47,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
_dialogForm->authorTextBrowser->setOpenExternalLinks( true );
_dialogForm->creditsTextBrowser->setOpenExternalLinks( true );
- QString versionString = _dialogForm->versionTextBrowser->toHtml();
+ TQString versionString = _dialogForm->versionTextBrowser->toHtml();
versionString = versionString.arg(PROGRAM_VERSION_STRING).arg( UiGuiVersion::getBuildRevision() ).arg( UiGuiVersion::getBuildDate() );
_dialogForm->versionTextBrowser->setHtml(versionString);
@@ -59,7 +59,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
"Oleksandr for Ukrainian and Russian translation.
"
"Erwan "leg" for French translation and the icon logo.
"
"The Scintilla project for their great text editing component.
"
- "Riverbank for their Scintilla Qt wrapper QScintilla.
"
+ "Riverbank for their Scintilla TQt wrapper TQScintilla.
"
"The Artistic Style project.
"
"The BCPP project.
"
"The Cobol Beautifier project.
"
@@ -77,7 +77,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
"The phpCB project.
"
"The PHP Stylist project.
"
"The pindent project.
"
- "The Pl/Sql tidy project.
"
+ "The Pl/Sql tidy project.
"
"The Ruby Beautifier project.
"
"The Ruby Formatter project.
"
"The Shell Indent project.
"
@@ -93,7 +93,7 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
_scrollDirection = 1;
_scrollSpeed = 100;
- _timer = new QTimer(this);
+ _timer = new TQTimer(this);
connect( _timer, SIGNAL(timeout()), this, SLOT(scroll()) );
connect( this, SIGNAL(accepted()), _timer, SLOT(stop()) );
}
@@ -102,16 +102,16 @@ AboutDialog::AboutDialog(QWidget *parent, Qt::WindowFlags flags) : QDialog(paren
/*!
\brief Catches language change events and retranslates all needed widgets.
*/
-void AboutDialog::changeEvent(QEvent *event) {
- if (event->type() == QEvent::LanguageChange) {
+void AboutDialog::changeEvent(TQEvent *event) {
+ if (event->type() == TQEvent::LanguageChange) {
_dialogForm->retranslateUi(this);
- QString versionString = _dialogForm->versionTextBrowser->toHtml();
+ TQString versionString = _dialogForm->versionTextBrowser->toHtml();
versionString = versionString.arg(PROGRAM_VERSION_STRING).arg( UiGuiVersion::getBuildRevision() ).arg( UiGuiVersion::getBuildDate() );
_dialogForm->versionTextBrowser->setHtml(versionString);
}
else {
- QWidget::changeEvent(event);
+ TQWidget::changeEvent(event);
}
}
@@ -122,7 +122,7 @@ void AboutDialog::changeEvent(QEvent *event) {
int AboutDialog::exec() {
//creditsTextBrowser->verticalScrollBar()->setValue(0);
_timer->start(_scrollSpeed);
- return QDialog::exec();
+ return TQDialog::exec();
}
@@ -131,7 +131,7 @@ int AboutDialog::exec() {
Also changes the scroll direction and speed when reaching the start or end.
*/
void AboutDialog::scroll() {
- QScrollBar *scrollBar = _dialogForm->creditsTextBrowser->verticalScrollBar();
+ TQScrollBar *scrollBar = _dialogForm->creditsTextBrowser->verticalScrollBar();
scrollBar->setValue( scrollBar->value()+_scrollDirection );
if ( scrollBar->value() == scrollBar->maximum() ) {
@@ -158,5 +158,5 @@ void AboutDialog::scroll() {
*/
void AboutDialog::show() {
_timer->start(_scrollSpeed);
- QDialog::show();
+ TQDialog::show();
}
diff --git a/src/AboutDialog.h b/src/AboutDialog.h
index adbdf13..ce30bad 100755
--- a/src/AboutDialog.h
+++ b/src/AboutDialog.h
@@ -20,19 +20,19 @@
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H
-#include
+#include
namespace Ui {
class AboutDialog;
}
-class AboutDialog : public QDialog
+class AboutDialog : public TQDialog
{
Q_OBJECT
public:
- AboutDialog(QWidget *parent = NULL, Qt::WindowFlags flags = 0);
+ AboutDialog(TQWidget *parent = NULL, TQt::WindowFlags flags = 0);
public slots:
int exec();
@@ -42,12 +42,12 @@ private slots:
void scroll();
private:
- void changeEvent(QEvent *event);
+ void changeEvent(TQEvent *event);
Ui::AboutDialog* _dialogForm;
int _scrollDirection;
int _scrollSpeed;
- QTimer *_timer;
+ TQTimer *_timer;
};
#endif // ABOUTDIALOG_H
diff --git a/src/AboutDialog.ui b/src/AboutDialog.ui
index 0e1e9d7..dbc2b8c 100755
--- a/src/AboutDialog.ui
+++ b/src/AboutDialog.ui
@@ -1,7 +1,7 @@
AboutDialog
-
+
0
@@ -29,21 +29,21 @@
:/mainWindow/info.png:/mainWindow/info.png
-
+
0
-
-
+
- QFrame#frame { background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, stop:0 #FFFF60, stop:0.5 #D8C304, stop:1 #FFFF60 ); border: 2px solid #A89C57; border-radius: 4px;}
+ TQFrame#frame { background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, stop:0 #FFFF60, stop:0.5 #D8C304, stop:1 #FFFF60 ); border: 2px solid #A89C57; border-radius: 4px;}
- QFrame::StyledPanel
+ TQFrame::StyledPanel
-
+
-
-
+
0
@@ -71,7 +71,7 @@
-
-
+
0
@@ -85,13 +85,13 @@
- QTextBrowser{background-color:transparent}
+ TQTextBrowser{background-color:transparent}
- QFrame::NoFrame
+ TQFrame::NoFrame
- Qt::ScrollBarAlwaysOff
+ TQt::ScrollBarAlwaysOff
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
@@ -103,7 +103,7 @@ p, li { white-space: pre-wrap; }
-
-
+
0
@@ -114,13 +114,13 @@ p, li { white-space: pre-wrap; }
false
- QTextBrowser{background-color:transparent}
+ TQTextBrowser{background-color:transparent}
- QFrame::NoFrame
+ TQFrame::NoFrame
- Qt::ScrollBarAlwaysOff
+ TQt::ScrollBarAlwaysOff
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
@@ -137,24 +137,24 @@ p, li { white-space: pre-wrap; }
-
-
+
- QTextBrowser#creditsTextBrowser{border:2px solid rgba(0,0,0,10%); background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0,0,0,80%), stop:0.1 rgba(0,0,0,15%), stop:0.9 rgba(0,0,0,15%), stop:1 rgba(0,0,0,80%) )}
+ TQTextBrowser#creditsTextBrowser{border:2px solid rgba(0,0,0,10%); background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(0,0,0,80%), stop:0.1 rgba(0,0,0,15%), stop:0.9 rgba(0,0,0,15%), stop:1 rgba(0,0,0,80%) )}
- QFrame::NoFrame
+ TQFrame::NoFrame
- Qt::ScrollBarAlwaysOff
+ TQt::ScrollBarAlwaysOff
-
-
+
-
- Qt::Horizontal
+ TQt::Horizontal
@@ -165,9 +165,9 @@ p, li { white-space: pre-wrap; }
-
-
+
- QPushButton#okButton { background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, stop:0 #DCB28A, stop:0.5 #B8784B, stop:1 #DCB28A ); border: 2px solid #A89C57; border-radius: 4px;} QPushButton:hover#okButton { background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, stop:0 #B8784B, stop:0.5 #DCB28A, stop:1 #B8784B ); } QPushButton:pressed#okButton{ border: 2px solid #D8CB75 }
+ TQPushButton#okButton { background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, stop:0 #DCB28A, stop:0.5 #B8784B, stop:1 #DCB28A ); border: 2px solid #A89C57; border-radius: 4px;} TQPushButton:hover#okButton { background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, stop:0 #B8784B, stop:0.5 #DCB28A, stop:1 #B8784B ); } TQPushButton:pressed#okButton{ border: 2px solid #D8CB75 }
OK
@@ -177,7 +177,7 @@ p, li { white-space: pre-wrap; }
-
- Qt::Horizontal
+ TQt::Horizontal
diff --git a/src/AboutDialogGraphicsView.cpp b/src/AboutDialogGraphicsView.cpp
index 52cb6e1..8c868ef 100755
--- a/src/AboutDialogGraphicsView.cpp
+++ b/src/AboutDialogGraphicsView.cpp
@@ -22,10 +22,10 @@
#include "AboutDialog.h"
#include
-#include
+#include
#include
#include
-#include
+#include
/*!
\class AboutDialogGraphicsView
@@ -39,7 +39,7 @@
/*!
\brief The constructor initializes everything needed for the 3D animation.
*/
-AboutDialogGraphicsView::AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidget *parentWindow) : QGraphicsView(parentWindow)
+AboutDialogGraphicsView::AboutDialogGraphicsView(AboutDialog *aboutDialog, TQWidget *parentWindow) : TQGraphicsView(parentWindow)
, _aboutDialog(NULL)
, _graphicsProxyWidget(NULL)
, _parentWindow(NULL)
@@ -47,13 +47,13 @@ AboutDialogGraphicsView::AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidg
, _aboutDialogAsSplashScreen(NULL)
{
_parentWindow = parentWindow;
- setWindowFlags(Qt::SplashScreen);
+ setWindowFlags(TQt::SplashScreen);
#ifdef Q_OS_LINUX
- QRect availableGeometry = QApplication::desktop()->availableGeometry();
- QRect newGeometry = QRect( availableGeometry.x(), availableGeometry.y(), availableGeometry.width(), availableGeometry.height() );
+ TQRect availableGeometry = TQApplication::desktop()->availableGeometry();
+ TQRect newGeometry = TQRect( availableGeometry.x(), availableGeometry.y(), availableGeometry.width(), availableGeometry.height() );
#else
- QRect newGeometry = QRect( -1,-1, QApplication::desktop()->rect().width()+2, QApplication::desktop()->rect().height()+2 );
+ TQRect newGeometry = TQRect( -1,-1, TQApplication::desktop()->rect().width()+2, TQApplication::desktop()->rect().height()+2 );
#endif
setGeometry( newGeometry );
@@ -62,30 +62,30 @@ AboutDialogGraphicsView::AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidg
_windowTitleBarWidth = 0;
_windowPosOffset = 0;
- QGraphicsScene *scene = new QGraphicsScene(this);
+ TQGraphicsScene *scene = new TQGraphicsScene(this);
setSceneRect( newGeometry );
- _aboutDialogAsSplashScreen = new QSplashScreen(this);
+ _aboutDialogAsSplashScreen = new TQSplashScreen(this);
_graphicsProxyWidget = scene->addWidget(_aboutDialogAsSplashScreen);
- _graphicsProxyWidget->setWindowFlags( Qt::ToolTip );
+ _graphicsProxyWidget->setWindowFlags( TQt::ToolTip );
setScene( scene );
- setRenderHint(QPainter::Antialiasing);
+ setRenderHint(TQPainter::Antialiasing);
- setCacheMode(QGraphicsView::CacheBackground);
- setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
+ setCacheMode(TQGraphicsView::CacheBackground);
+ setViewportUpdateMode(TQGraphicsView::BoundingRectViewportUpdate);
connect(_aboutDialog, SIGNAL(finished(int)), this, SLOT(hide()));
//setWindowOpacity(0.9);
- setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
- setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ setVerticalScrollBarPolicy(TQt::ScrollBarAlwaysOff);
+ setHorizontalScrollBarPolicy(TQt::ScrollBarAlwaysOff);
setStyleSheet("AboutDialogGraphicsView { border: 0px; }");
- _timeLine = new QTimeLine(1000, this);
+ _timeLine = new TQTimeLine(1000, this);
_timeLine->setFrameRange(270, 0);
//_timeLine->setUpdateInterval(10);
- //_timeLine->setCurveShape(QTimeLine::EaseInCurve);
+ //_timeLine->setCurveShape(TQTimeLine::EaseInCurve);
connect(_timeLine, SIGNAL(frameChanged(int)), this, SLOT(updateStep(int)));
}
@@ -112,34 +112,34 @@ void AboutDialogGraphicsView::show() {
_windowTitleBarWidth = 27;
}
#endif
- QPixmap originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId(), QApplication::desktop()->availableGeometry().x(), QApplication::desktop()->availableGeometry().y(), geometry().width(), geometry().height() );
- QBrush brush(originalPixmap);
- QTransform transform;
- transform.translate(0, QApplication::desktop()->availableGeometry().y());
+ TQPixmap originalPixmap = TQPixmap::grabWindow(TQApplication::desktop()->winId(), TQApplication::desktop()->availableGeometry().x(), TQApplication::desktop()->availableGeometry().y(), geometry().width(), geometry().height() );
+ TQBrush brush(originalPixmap);
+ TQTransform transform;
+ transform.translate(0, TQApplication::desktop()->availableGeometry().y());
brush.setTransform(transform);
setBackgroundBrush(brush);
- _aboutDialogAsSplashScreen->setPixmap( QPixmap::grabWidget(_aboutDialog) );
+ _aboutDialogAsSplashScreen->setPixmap( TQPixmap::grabWidget(_aboutDialog) );
_graphicsProxyWidget->setGeometry( _aboutDialog->geometry() );
_aboutDialog->hide();
_graphicsProxyWidget->setPos( _parentWindow->geometry().x()+(_parentWindow->geometry().width()-_graphicsProxyWidget->geometry().width()) / 2, _parentWindow->y()+_windowTitleBarWidth-_windowPosOffset);
- QRectF r = _graphicsProxyWidget->boundingRect();
- _graphicsProxyWidget->setTransform(QTransform()
+ TQRectF r = _graphicsProxyWidget->boundingRect();
+ _graphicsProxyWidget->setTransform(TQTransform()
.translate(r.width() / 2, -_windowTitleBarWidth)
- .rotate(270, Qt::XAxis)
- //.rotate(90, Qt::YAxis)
- //.rotate(5, Qt::ZAxis)
+ .rotate(270, TQt::XAxis)
+ //.rotate(90, TQt::YAxis)
+ //.rotate(5, TQt::ZAxis)
//.scale(1 + 1.5 * step, 1 + 1.5 * step)
.translate(-r.width() / 2, _windowTitleBarWidth));
_graphicsProxyWidget->show();
//_aboutDialogAsSplashScreen->show();
- QGraphicsView::show();
+ TQGraphicsView::show();
connect(_timeLine, SIGNAL(finished()), this, SLOT(showAboutDialog()));
- _timeLine->setDirection(QTimeLine::Forward);
+ _timeLine->setDirection(TQTimeLine::Forward);
_timeLine->start();
}
@@ -148,12 +148,12 @@ void AboutDialogGraphicsView::show() {
\brief Does the next calculation/transformation step.
*/
void AboutDialogGraphicsView::updateStep(int step) {
- QRectF r = _graphicsProxyWidget->boundingRect();
- _graphicsProxyWidget->setTransform(QTransform()
+ TQRectF r = _graphicsProxyWidget->boundingRect();
+ _graphicsProxyWidget->setTransform(TQTransform()
.translate(r.width() / 2, -_windowTitleBarWidth)
- .rotate(step, Qt::XAxis)
- //.rotate(step, Qt::YAxis)
- //.rotate(step * 5, Qt::ZAxis)
+ .rotate(step, TQt::XAxis)
+ //.rotate(step, TQt::YAxis)
+ //.rotate(step * 5, TQt::ZAxis)
//.scale(1 + 1.5 * step, 1 + 1.5 * step)
.translate(-r.width() / 2, _windowTitleBarWidth));
//update();
@@ -177,21 +177,21 @@ void AboutDialogGraphicsView::showAboutDialog() {
void AboutDialogGraphicsView::hide() {
_graphicsProxyWidget->setPos( _parentWindow->geometry().x()+(_parentWindow->geometry().width()-_graphicsProxyWidget->geometry().width()) / 2, _parentWindow->y()+_windowTitleBarWidth-_windowPosOffset);
- QRectF r = _graphicsProxyWidget->boundingRect();
- _graphicsProxyWidget->setTransform(QTransform()
+ TQRectF r = _graphicsProxyWidget->boundingRect();
+ _graphicsProxyWidget->setTransform(TQTransform()
.translate(r.width() / 2, -_windowTitleBarWidth)
- .rotate(0, Qt::XAxis)
- //.rotate(90, Qt::YAxis)
- //.rotate(5, Qt::ZAxis)
+ .rotate(0, TQt::XAxis)
+ //.rotate(90, TQt::YAxis)
+ //.rotate(5, TQt::ZAxis)
//.scale(1 + 1.5 * step, 1 + 1.5 * step)
.translate(-r.width() / 2, _windowTitleBarWidth));
_graphicsProxyWidget->show();
//_aboutDialogAsSplashScreen->show();
- QGraphicsView::show();
+ TQGraphicsView::show();
connect(_timeLine, SIGNAL(finished()), this, SLOT(hideReally()));
- _timeLine->setDirection(QTimeLine::Backward);
+ _timeLine->setDirection(TQTimeLine::Backward);
_timeLine->start();
}
@@ -201,6 +201,6 @@ void AboutDialogGraphicsView::hide() {
*/
void AboutDialogGraphicsView::hideReally() {
disconnect(_timeLine, SIGNAL(finished()), this, SLOT(hideReally()));
- QGraphicsView::hide();
+ TQGraphicsView::hide();
_parentWindow->activateWindow();
}
diff --git a/src/AboutDialogGraphicsView.h b/src/AboutDialogGraphicsView.h
index c673149..411ad3a 100755
--- a/src/AboutDialogGraphicsView.h
+++ b/src/AboutDialogGraphicsView.h
@@ -23,15 +23,15 @@
class AboutDialog;
-class QTimeLine;
-class QSplashScreen;
+class TQTimeLine;
+class TQSplashScreen;
-class AboutDialogGraphicsView : public QGraphicsView
+class AboutDialogGraphicsView : public TQGraphicsView
{
Q_OBJECT
public:
- AboutDialogGraphicsView(AboutDialog *aboutDialog, QWidget *parentWindow = NULL);
+ AboutDialogGraphicsView(AboutDialog *aboutDialog, TQWidget *parentWindow = NULL);
~AboutDialogGraphicsView(void);
public slots:
@@ -45,10 +45,10 @@ private slots:
private:
AboutDialog *_aboutDialog;
- QGraphicsProxyWidget *_graphicsProxyWidget;
- QWidget *_parentWindow;
- QTimeLine *_timeLine;
- QSplashScreen *_aboutDialogAsSplashScreen;
+ TQGraphicsProxyWidget *_graphicsProxyWidget;
+ TQWidget *_parentWindow;
+ TQTimeLine *_timeLine;
+ TQSplashScreen *_aboutDialogAsSplashScreen;
int _windowTitleBarWidth;
int _windowPosOffset;
};
diff --git a/src/FindDialog.ui b/src/FindDialog.ui
index f22f574..00cc527 100755
--- a/src/FindDialog.ui
+++ b/src/FindDialog.ui
@@ -1,7 +1,7 @@
FindDialog
-
+
0
@@ -13,9 +13,9 @@
Find
-
+
-
-
+
0
@@ -28,14 +28,14 @@
-
-
+
true
-
-
+
0
@@ -45,23 +45,23 @@
Find options
-
+
-
-
+
Match case
-
-
+
Match whole word
-
-
+
Search forward
@@ -71,7 +71,7 @@
-
-
+
Use Regular Expressions
@@ -83,7 +83,7 @@
-
- Qt::Vertical
+ TQt::Vertical
@@ -94,19 +94,19 @@
-
-
+
- QLayout::SetMaximumSize
+ TQLayout::SetMaximumSize
-
-
+
Find Next
-
-
+
Close
diff --git a/src/IndentHandler.cpp b/src/IndentHandler.cpp
index 2446fa3..23f47f8 100755
--- a/src/IndentHandler.cpp
+++ b/src/IndentHandler.cpp
@@ -25,31 +25,31 @@
#include "UiGuiIniFileParser.h"
#include "SettingsPaths.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
#ifdef Q_OS_WIN32
@@ -81,7 +81,7 @@ inline void UNUSED_PARAMETER_WARNING_AVOID(T){}
its \a indenterID, which is the number of found indenter ini files in alphabetic
order starting at index 0.
*/
-IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *parent) : QWidget(parent)
+IndentHandler::IndentHandler(int indenterID, TQWidget *mainWindow, TQWidget *parent) : TQWidget(parent)
, _indenterSelectionCombobox(NULL)
, _indenterParameterHelpButton(NULL)
, _toolBoxContainerLayout(NULL)
@@ -99,7 +99,7 @@ IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *paren
{
Q_ASSERT_X( indenterID >= 0, "IndentHandler", "the selected indenterID is < 0" );
- setObjectName(QString::fromUtf8("indentHandler"));
+ setObjectName(TQString::fromUtf8("indentHandler"));
_mainWindow = mainWindow;
@@ -111,43 +111,43 @@ IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *paren
connect( _actionResetIndenterParameters, SIGNAL(triggered()), this, SLOT(resetIndenterParameter()) );
// define this widgets resize behavior
- setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
+ setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
// create vertical layout box, into which the toolbox will be added
- _toolBoxContainerLayout = new QVBoxLayout(this);
+ _toolBoxContainerLayout = new TQVBoxLayout(this);
_toolBoxContainerLayout->setMargin(2);
// Create horizontal layout for indenter selector and help button.
- QHBoxLayout *hboxLayout = new QHBoxLayout();
+ TQHBoxLayout *hboxLayout = new TQHBoxLayout();
//hboxLayout->setMargin(2);
_toolBoxContainerLayout->addLayout( hboxLayout );
// Create the indenter selection combo box.
- _indenterSelectionCombobox = new QComboBox(this);
- _indenterSelectionCombobox->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
+ _indenterSelectionCombobox = new TQComboBox(this);
+ _indenterSelectionCombobox->setSizeAdjustPolicy(TQComboBox::AdjustToMinimumContentsLengthWithIcon);
_indenterSelectionCombobox->setMinimumContentsLength(20);
connect( _indenterSelectionCombobox, SIGNAL(activated(int)), this, SLOT(setIndenter(int)) );
UiGuiSettings::getInstance()->registerObjectProperty(_indenterSelectionCombobox, "currentIndex", "selectedIndenter");
hboxLayout->addWidget( _indenterSelectionCombobox );
// Create the indenter parameter help button.
- _indenterParameterHelpButton = new QToolButton(this);
- _indenterParameterHelpButton->setObjectName(QString::fromUtf8("indenterParameterHelpButton"));
- _indenterParameterHelpButton->setIcon(QIcon(QString::fromUtf8(":/mainWindow/help.png")));
+ _indenterParameterHelpButton = new TQToolButton(this);
+ _indenterParameterHelpButton->setObjectName(TQString::fromUtf8("indenterParameterHelpButton"));
+ _indenterParameterHelpButton->setIcon(TQIcon(TQString::fromUtf8(":/mainWindow/help.png")));
hboxLayout->addWidget( _indenterParameterHelpButton );
// Handle if the indenter parameter help button is pressed.
connect( _indenterParameterHelpButton, SIGNAL(clicked()), this, SLOT(showIndenterManual()) );
// create a toolbox and set its resize behavior
- _indenterParameterCategoriesToolBox = new QToolBox(this);
- _indenterParameterCategoriesToolBox->setObjectName(QString::fromUtf8("_indenterParameterCategoriesToolBox"));
+ _indenterParameterCategoriesToolBox = new TQToolBox(this);
+ _indenterParameterCategoriesToolBox->setObjectName(TQString::fromUtf8("_indenterParameterCategoriesToolBox"));
#ifdef UNIVERSALINDENTGUI_NPP_EXPORTS
connect( _indenterParameterCategoriesToolBox, SIGNAL(currentChanged(int)), this, SLOT(updateDrawing()) );
#endif // UNIVERSALINDENTGUI_NPP_EXPORTS
- //_indenterParameterCategoriesToolBox->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
- //_indenterParameterCategoriesToolBox->setMaximumSize(QSize(16777215, 16777215));
+ //_indenterParameterCategoriesToolBox->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
+ //_indenterParameterCategoriesToolBox->setMaximumSize(TQSize(16777215, 16777215));
// insert the toolbox into the vlayout
_toolBoxContainerLayout->addWidget(_indenterParameterCategoriesToolBox);
@@ -157,7 +157,7 @@ IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *paren
_indenterDirctoryStr = SettingsPaths::getIndenterPath();
_tempDirctoryStr = SettingsPaths::getTempPath();
_settingsDirctoryStr = SettingsPaths::getSettingsPath();
- QDir indenterDirctory = QDir(_indenterDirctoryStr);
+ TQDir indenterDirctory = TQDir(_indenterDirctoryStr);
if ( _mainWindow != NULL ) {
_errorMessageDialog = new UiGuiErrorMessage(_mainWindow);
@@ -166,7 +166,7 @@ IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *paren
_errorMessageDialog = new UiGuiErrorMessage(this);
}
- _indenterIniFileList = indenterDirctory.entryList( QStringList("uigui_*.ini") );
+ _indenterIniFileList = indenterDirctory.entryList( TQStringList("uigui_*.ini") );
if ( _indenterIniFileList.count() > 0 ) {
// Take care if the selected indenterID is smaller or greater than the number of existing indenters
if ( indenterID < 0 ) {
@@ -193,7 +193,7 @@ IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *paren
}
}
else {
- _errorMessageDialog->showMessage(tr("No indenter ini files"), tr("There exists no indenter ini files in the directory \"") + QDir(_indenterDirctoryStr).absolutePath() + "\".");
+ _errorMessageDialog->showMessage(tr("No indenter ini files"), tr("There exists no indenter ini files in the directory \"") + TQDir(_indenterDirctoryStr).absolutePath() + "\".");
}
retranslateUi();
@@ -205,7 +205,7 @@ IndentHandler::IndentHandler(int indenterID, QWidget *mainWindow, QWidget *paren
*/
IndentHandler::~IndentHandler() {
// Generate the parameter string that will be saved to the indenters config file.
- QString parameterString = getParameterString();
+ TQString parameterString = getParameterString();
if ( !_indenterFileName.isEmpty() ) {
saveConfigFile( _settingsDirctoryStr + "/" + _indenterFileName + ".cfg", parameterString );
}
@@ -219,24 +219,24 @@ IndentHandler::~IndentHandler() {
*/
void IndentHandler::initIndenterMenu() {
if ( _menuIndenter == NULL ) {
- _actionLoadIndenterConfigFile = new QAction(this);
- _actionLoadIndenterConfigFile->setObjectName(QString::fromUtf8("_actionLoadIndenterConfigFile"));
- _actionLoadIndenterConfigFile->setIcon(QIcon(QString::fromUtf8(":/mainWindow/load_indent_cfg.png")));
+ _actionLoadIndenterConfigFile = new TQAction(this);
+ _actionLoadIndenterConfigFile->setObjectName(TQString::fromUtf8("_actionLoadIndenterConfigFile"));
+ _actionLoadIndenterConfigFile->setIcon(TQIcon(TQString::fromUtf8(":/mainWindow/load_indent_cfg.png")));
- _actionSaveIndenterConfigFile = new QAction(this);
- _actionSaveIndenterConfigFile->setObjectName(QString::fromUtf8("_actionSaveIndenterConfigFile"));
- _actionSaveIndenterConfigFile->setIcon(QIcon(QString::fromUtf8(":/mainWindow/save_indent_cfg.png")));
+ _actionSaveIndenterConfigFile = new TQAction(this);
+ _actionSaveIndenterConfigFile->setObjectName(TQString::fromUtf8("_actionSaveIndenterConfigFile"));
+ _actionSaveIndenterConfigFile->setIcon(TQIcon(TQString::fromUtf8(":/mainWindow/save_indent_cfg.png")));
- _actionCreateShellScript = new QAction(this);
- _actionCreateShellScript->setObjectName(QString::fromUtf8("_actionCreateShellScript"));
- _actionCreateShellScript->setIcon(QIcon(QString::fromUtf8(":/mainWindow/shell.png")));
+ _actionCreateShellScript = new TQAction(this);
+ _actionCreateShellScript->setObjectName(TQString::fromUtf8("_actionCreateShellScript"));
+ _actionCreateShellScript->setIcon(TQIcon(TQString::fromUtf8(":/mainWindow/shell.png")));
- _actionResetIndenterParameters = new QAction(this);
- _actionResetIndenterParameters->setObjectName(QString::fromUtf8("_actionResetIndenterParameters"));
- _actionResetIndenterParameters->setIcon(QIcon(QString::fromUtf8(":/mainWindow/view-refresh.png")));
+ _actionResetIndenterParameters = new TQAction(this);
+ _actionResetIndenterParameters->setObjectName(TQString::fromUtf8("_actionResetIndenterParameters"));
+ _actionResetIndenterParameters->setIcon(TQIcon(TQString::fromUtf8(":/mainWindow/view-refresh.png")));
- _menuIndenter = new QMenu(this);
- _menuIndenter->setObjectName(QString::fromUtf8("_menuIndenter"));
+ _menuIndenter = new TQMenu(this);
+ _menuIndenter->setObjectName(TQString::fromUtf8("_menuIndenter"));
_menuIndenter->addAction(_actionLoadIndenterConfigFile);
_menuIndenter->addAction(_actionSaveIndenterConfigFile);
_menuIndenter->addAction(_actionCreateShellScript);
@@ -248,7 +248,7 @@ void IndentHandler::initIndenterMenu() {
/*!
\brief Returns the context menu used for some actions like saving the indenter config file.
*/
-QMenu* IndentHandler::getIndenterMenu() {
+TQMenu* IndentHandler::getIndenterMenu() {
return _menuIndenter;
}
@@ -256,8 +256,8 @@ QMenu* IndentHandler::getIndenterMenu() {
/*!
\brief Returns the actions of the context menu used for some actions like saving the indenter config file.
*/
-QList IndentHandler::getIndenterMenuActions() {
- QList actionList;
+TQList IndentHandler::getIndenterMenuActions() {
+ TQList actionList;
actionList << _actionLoadIndenterConfigFile << _actionSaveIndenterConfigFile << _actionCreateShellScript << _actionResetIndenterParameters;
return actionList;
}
@@ -266,7 +266,7 @@ QList IndentHandler::getIndenterMenuActions() {
/*!
\brief Opens the context menu, used for some actions like saving the indenter config file, at the event position.
*/
-void IndentHandler::contextMenuEvent( QContextMenuEvent *event ) {
+void IndentHandler::contextMenuEvent( TQContextMenuEvent *event ) {
getIndenterMenu()->exec( event->globalPos() );
}
@@ -275,18 +275,18 @@ void IndentHandler::contextMenuEvent( QContextMenuEvent *event ) {
\brief Creates the content for a shell script that can be used as a external tool call
to indent an as parameter defined file.
*/
-QString IndentHandler::generateShellScript(const QString &configFilename) {
- QString indenterCompleteCallString;
- QString parameterInputFile;
- QString parameterOuputFile;
- QString parameterParameterFile;
- QString replaceInputFileCommand;
+TQString IndentHandler::generateShellScript(const TQString &configFilename) {
+ TQString indenterCompleteCallString;
+ TQString parameterInputFile;
+ TQString parameterOuputFile;
+ TQString parameterParameterFile;
+ TQString replaceInputFileCommand;
// Define the placeholder for parameter variables either in batch or bash programming.
#if defined(Q_OS_WIN32)
- QString shellParameterPlaceholder = "%1";
+ TQString shellParameterPlaceholder = "%1";
#else
- QString shellParameterPlaceholder = "$1";
+ TQString shellParameterPlaceholder = "$1";
#endif
parameterInputFile = " " + _inputFileParameter + "\"" + shellParameterPlaceholder + "\"";
@@ -345,13 +345,13 @@ QString IndentHandler::generateShellScript(const QString &configFilename) {
}
#if defined(Q_OS_WIN32)
- QString shellScript( TemplateBatchScript::getTemplateBatchScript() );
+ TQString shellScript( TemplateBatchScript::getTemplateBatchScript() );
shellScript = shellScript.replace("__INDENTERCALLSTRING2__", indenterCompleteCallString + "\n" + replaceInputFileCommand);
indenterCompleteCallString = indenterCompleteCallString.replace("%1", "%%G");
replaceInputFileCommand = replaceInputFileCommand.replace("%1", "%%G");
shellScript = shellScript.replace("__INDENTERCALLSTRING1__", indenterCompleteCallString + "\n" + replaceInputFileCommand);
#else
- QString shellScript( TemplateBatchScript::getTemplateBatchScript() );
+ TQString shellScript( TemplateBatchScript::getTemplateBatchScript() );
shellScript = shellScript.replace("__INDENTERCALLSTRING2__", indenterCompleteCallString + "\n" + replaceInputFileCommand);
indenterCompleteCallString = indenterCompleteCallString.replace("$1", "$file2indent");
replaceInputFileCommand = replaceInputFileCommand.replace("$1", "$file2indent");
@@ -368,7 +368,7 @@ QString IndentHandler::generateShellScript(const QString &configFilename) {
The \a inputFileExtension has to be given as parameter so the called indenter
can identify the programming language if needed.
*/
-QString IndentHandler::callIndenter(QString sourceCode, QString inputFileExtension) {
+TQString IndentHandler::callIndenter(TQString sourceCode, TQString inputFileExtension) {
if ( _indenterExecutableSuffix == ".js" ) {
return callJavaScriptIndenter(sourceCode);
}
@@ -384,19 +384,19 @@ QString IndentHandler::callIndenter(QString sourceCode, QString inputFileExtensi
The \a inputFileExtension has to be given as parameter so the called indenter
can identify the programming language if needed.
*/
-QString IndentHandler::callJavaScriptIndenter(QString sourceCode) {
- QScriptEngine engine;
+TQString IndentHandler::callJavaScriptIndenter(TQString sourceCode) {
+ TQScriptEngine engine;
engine.globalObject().setProperty("unformattedCode", sourceCode);
- QFile jsDecoderFile( _indenterExecutableCallString );
- QString jsDecoderCode;
- if (jsDecoderFile.open(QFile::ReadOnly)) {
+ TQFile jsDecoderFile( _indenterExecutableCallString );
+ TQString jsDecoderCode;
+ if (jsDecoderFile.open(TQFile::ReadOnly)) {
jsDecoderCode = jsDecoderFile.readAll();
}
jsDecoderFile.close();
- QScriptValue value = engine.evaluate(jsDecoderCode);
+ TQScriptValue value = engine.evaluate(jsDecoderCode);
return value.toString();
}
@@ -407,7 +407,7 @@ QString IndentHandler::callJavaScriptIndenter(QString sourceCode) {
The \a inputFileExtension has to be given as parameter so the called indenter
can identify the programming language if needed.
*/
-QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputFileExtension) {
+TQString IndentHandler::callExecutableIndenter(TQString sourceCode, TQString inputFileExtension) {
Q_ASSERT_X( !_inputFileName.isEmpty(), "callIndenter", "_inputFileName is empty" );
// Q_ASSERT_X( !_outputFileName.isEmpty(), "callIndenter", "_outputFileName is empty" );
Q_ASSERT_X( !_indenterFileName.isEmpty(), "callIndenter", "_indenterFileName is empty" );
@@ -416,16 +416,16 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
return "";
}
- QString formattedSourceCode;
- QString indenterCompleteCallString;
- QString parameterInputFile;
- QString parameterOuputFile;
- QString parameterParameterFile;
- QProcess indentProcess;
- QString processReturnString;
+ TQString formattedSourceCode;
+ TQString indenterCompleteCallString;
+ TQString parameterInputFile;
+ TQString parameterOuputFile;
+ TQString parameterParameterFile;
+ TQProcess indentProcess;
+ TQString processReturnString;
// Generate the parameter string that will be saved to the indenters config file
- QString parameterString = getParameterString();
+ TQString parameterString = getParameterString();
if ( !_globalConfigFilename.isEmpty() ) {
saveConfigFile( _tempDirctoryStr + "/" + _globalConfigFilename, parameterString );
@@ -437,13 +437,13 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
}
// Delete any previously used input src file and create a new input src file.
- QFile::remove(_tempDirctoryStr + "/" + _inputFileName + inputFileExtension);
- QFile inputSrcFile(_tempDirctoryStr + "/" + _inputFileName + inputFileExtension);
+ TQFile::remove(_tempDirctoryStr + "/" + _inputFileName + inputFileExtension);
+ TQFile inputSrcFile(_tempDirctoryStr + "/" + _inputFileName + inputFileExtension);
// Write the source code to the input file for the indenter
- if ( inputSrcFile.open( QFile::ReadWrite | QFile::Text ) ) {
+ if ( inputSrcFile.open( TQFile::ReadWrite | TQFile::Text ) ) {
inputSrcFile.write( sourceCode.toUtf8() );
inputSrcFile.close();
- qDebug() << __LINE__ << " " << __FUNCTION__ << ": Wrote to be indented source code to file " << inputSrcFile.fileName();
+ tqDebug() << __LINE__ << " " << __FUNCTION__ << ": Wrote to be indented source code to file " << inputSrcFile.fileName();
}
else {
qCritical() << __LINE__ << " " << __FUNCTION__ << ": Couldn't write to be indented source code to file " << inputSrcFile.fileName();
@@ -465,15 +465,15 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
#ifdef Q_OS_WIN32
// Paths may contain Unicode or other foreign characters. Windows commands line tools will
- // receive als falsely encoded path string by QProcess or they connot correctly handle
+ // receive als falsely encoded path string by TQProcess or they connot correctly handle
// the Unicode path on their own.
// Because of this the path gets converted to Windows short paths using the 8.3 notation.
- qDebug() << __LINE__ << " " << __FUNCTION__ << ": Temp dir before trying to convert it to short Windows path is" << _tempDirctoryStr;
+ tqDebug() << __LINE__ << " " << __FUNCTION__ << ": Temp dir before trying to convert it to short Windows path is" << _tempDirctoryStr;
// At first convert the temp path to Windows like separators.
- QString tempDirctoryStrHelper = QDir::toNativeSeparators(_tempDirctoryStr).replace("\\", "\\\\");
- // Then convert the QString to a WCHAR array and NULL terminate it.
+ TQString tempDirctoryStrHelper = TQDir::toNativeSeparators(_tempDirctoryStr).replace("\\", "\\\\");
+ // Then convert the TQString to a WCHAR array and NULL terminate it.
WCHAR *tempDirctoryWindowsStr = new WCHAR[ tempDirctoryStrHelper.length()+1 ];
tempDirctoryStrHelper.toWCharArray( tempDirctoryWindowsStr );
tempDirctoryWindowsStr[ tempDirctoryStrHelper.length() ] = (WCHAR)NULL;
@@ -484,30 +484,30 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
length = GetShortPathName((LPCTSTR)tempDirctoryWindowsStr, NULL, 0);
// If the short path could be retrieved, create a correct sized buffer, store the
- // short path in it and convert all back to QString.
+ // short path in it and convert all back to TQString.
if ( length != 0 ) {
#ifdef UNICODE
buffer = new WCHAR[length];
length = GetShortPathName((LPCTSTR)tempDirctoryWindowsStr, buffer, length);
- tempDirctoryStrHelper = QString::fromWCharArray( buffer );
+ tempDirctoryStrHelper = TQString::fromWCharArray( buffer );
#else
buffer = new TCHAR[length];
length = GetShortPathName((LPCTSTR)tempDirctoryWindowsStr, buffer, length);
tempDirctoryStrHelper = buffer;
#endif
- _tempDirctoryStr = QDir::fromNativeSeparators(tempDirctoryStrHelper).replace("//", "/");
+ _tempDirctoryStr = TQDir::fromNativeSeparators(tempDirctoryStrHelper).replace("//", "/");
delete [] buffer;
// Check whether the short path still contains some kind of non ascii characters.
if ( _tempDirctoryStr.length() != _tempDirctoryStr.toAscii().length() ) {
- qWarning() << __LINE__ << " " << __FUNCTION__ << ": Shortened path still contains non ascii characters. Could cause some indenters not to work properly!";
+ tqWarning() << __LINE__ << " " << __FUNCTION__ << ": Shortened path still contains non ascii characters. Could cause some indenters not to work properly!";
}
}
else {
- qWarning() << __LINE__ << " " << __FUNCTION__ << ": Couldn't retrieve a short version of the temporary path!";
+ tqWarning() << __LINE__ << " " << __FUNCTION__ << ": Couldn't retrieve a short version of the temporary path!";
}
- qDebug() << __LINE__ << " " << __FUNCTION__ << ": Temp dir after trying to convert it to short Windows path is " << _tempDirctoryStr;
+ tqDebug() << __LINE__ << " " << __FUNCTION__ << ": Temp dir after trying to convert it to short Windows path is " << _tempDirctoryStr;
delete [] tempDirctoryWindowsStr;
#endif
@@ -546,17 +546,17 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
indenterCompleteCallString = _indenterExecutableCallString + indenterCompleteCallString;
// errors and standard outputs from the process call are merged together
- //indentProcess.setReadChannelMode(QProcess::MergedChannels);
+ //indentProcess.setReadChannelMode(TQProcess::MergedChannels);
// Set the directory where the indenter will be executed for the process' environment as PWD.
- QStringList env = indentProcess.environment();
- env << "PWD=" + QFileInfo(_tempDirctoryStr).absoluteFilePath();
+ TQStringList env = indentProcess.environment();
+ env << "PWD=" + TQFileInfo(_tempDirctoryStr).absoluteFilePath();
indentProcess.setEnvironment( env );
// Set the directory for the indenter execution
- indentProcess.setWorkingDirectory( QFileInfo(_tempDirctoryStr).absoluteFilePath() );
+ indentProcess.setWorkingDirectory( TQFileInfo(_tempDirctoryStr).absoluteFilePath() );
- qDebug() << __LINE__ << " " << __FUNCTION__ << ": Will call the indenter in the directory " << indentProcess.workingDirectory() << " using this commandline call: " << indenterCompleteCallString;
+ tqDebug() << __LINE__ << " " << __FUNCTION__ << ": Will call the indenter in the directory " << indentProcess.workingDirectory() << " using this commandline call: " << indenterCompleteCallString;
indentProcess.start(indenterCompleteCallString);
@@ -568,22 +568,22 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
processReturnString += tr("Returned error message: ") + indentProcess.errorString() + "
";
switch ( indentProcess.error() ) {
- case QProcess::FailedToStart :
+ case TQProcess::FailedToStart :
processReturnString += tr("Reason could be: ") + "The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.
";
break;
- case QProcess::Crashed :
+ case TQProcess::Crashed :
processReturnString += "The process crashed some time after starting successfully.
";
break;
- case QProcess::Timedout :
+ case TQProcess::Timedout :
processReturnString += "The called indenter did not response for over 10 seconds, so aborted its execution.
";
break;
- case QProcess::WriteError :
+ case TQProcess::WriteError :
processReturnString += "An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
";
break;
- case QProcess::ReadError :
+ case TQProcess::ReadError :
processReturnString += "An error occurred when attempting to read from the process. For example, the process may not be running.
";
break;
- case QProcess::UnknownError :
+ case TQProcess::UnknownError :
processReturnString += "An unknown error occurred. This is the default return value of error().
";
break;
default :
@@ -594,15 +594,15 @@ QString IndentHandler::callExecutableIndenter(QString sourceCode, QString inputF
"(STDOUT):" + encodeToHTML( indentProcess.readAllStandardOutput() ) + "
" +
"(STDERR):" + encodeToHTML( indentProcess.readAllStandardError() ) + "
" +
"