diff --git a/tqtinterface/conversion_scripts/README b/tqtinterface/conversion_scripts/README new file mode 100644 index 0000000..135fc0c --- /dev/null +++ b/tqtinterface/conversion_scripts/README @@ -0,0 +1,4 @@ +The scripts in this folder are (c) 2010-2011 Timothy Pearson, All Rights Reserved +They are NOT GPL licensed +You may NOT use them to convert a commercial Qt product +They are for use with the Trinity Desktop Project and related open source applications ONLY diff --git a/tqtinterface/conversion_scripts/convert_qt_itself b/tqtinterface/conversion_scripts/convert_qt_itself new file mode 100755 index 0000000..1fa9020 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself @@ -0,0 +1,155 @@ +#!/bin/bash + +#find ./ -type f -iname "*.c*" -exec sed -i 's/Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzDE]\)/TQ\1\2\3/g' {} \; +#find ./ -type f -iname "*.h*" -exec sed -i 's/Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzDE]\)/TQ\1\2\3/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/Q\([ABCDEFGHIJKLMNOPQRSTUVWXYZ]\)\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/TQ\1\2/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/Qt/TQt/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/Qt/TQt/g' {} \; + +find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TTQ/TQ/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/\([^_]\)METHOD\([( ]\)/\1TQT_METHOD\2/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\([^_]\)METHOD\([( ]\)/\1TQT_METHOD\2/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/\([^_]\)SLOT\([( ]\)/\1TQT_SLOT\2/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\([^_]\)SLOT\([( ]\)/\1TQT_SLOT\2/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/\([^_]\)SIGNAL\([( ]\)/\1TQT_SIGNAL\2/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\([^_]\)SIGNAL\([( ]\)/\1TQT_SIGNAL\2/g' {} \; + +find ./ -type f -iname "*.h*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/TQT_TQT_/TQT_/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/qRound/tqRound/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qRound/tqRound/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qstrlen/tqstrlen/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qstrlen/tqstrlen/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qstrncmp/tqstrncmp/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qstrncmp/tqstrncmp/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qUncompress/tqUncompress/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qUncompress/tqUncompress/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qCopy/tqCopy/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qCopy/tqCopy/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qEqual/tqEqual/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qEqual/tqEqual/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qFill/tqFill/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qFill/tqFill/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qFind/tqFind/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qFind/tqFind/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qCount/tqCount/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qCount/tqCount/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qSwap/tqSwap/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qSwap/tqSwap/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qSystemWarning/tqSystemWarning/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qSystemWarning/tqSystemWarning/g' {} \; +find ./ -type f -iname "*.c*" -exec sed -i 's/qSuppressObsoleteWarnings/tqSuppressObsoleteWarnings/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/qSuppressObsoleteWarnings/tqSuppressObsoleteWarnings/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/moc/tqmoc/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqtqmoc/tqmoc/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqtqmoc/tqmoc/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/MOC/TQMOC/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQTQMOC/TQMOC/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/RGB_MASK/TQRGB_MASK/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQTQRGB_MASK/TQRGB_MASK/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/qRed/tqRed/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qGreen/tqGreen/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qBlue/tqBlue/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qAlpha/tqAlpha/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qRgb/tqRgb/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qRgba/tqRgba/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qGray/tqGray/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qCompress/tqCompress/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qInstallMsgHandler/tqInstallMsgHandler/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/parentWidget/tqparentWidget/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/childAt/tqchildAt/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qAppName/tqAppName/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qApp/tqApp/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/ttq/tq/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/ttq/tq/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/CursorShape/tqCursorShape/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/shape/tqshape/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Status/tqStatus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/metaObject/tqmetaObject/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/find/tqfind/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/children/tqchildren/g' {} \; +#find ./ -type f -iname "*" -exec sed -i 's/setObjectName/tqsetObjectName/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/topLevelWidget/tqtopLevelWidget/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/parent/tqparent/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/mask/tqmask/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/focusWidget/tqfocusWidget/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/contains/tqcontains/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/unicode/tqunicode/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/replace/tqreplace/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/signals/tqsignals/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/slots/tqslots/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/worldMatrix/tqworldMatrix/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/sizeHint/tqsizeHint/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/minimumSize/tqminimumSize/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/maximumSize/tqmaximumSize/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/geometry/tqgeometry/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/spacerItem/tqspacerItem/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/layout/tqlayout/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/setAlignment/tqsetAlignment/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/invalidate/tqinvalidate/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/alignment/tqalignment/g' {} \; +#find ./ -type f -iname "*" -exec sed -i 's/device/tqdevice/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/fromLatin1/tqfromLatin1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/receivers/tqreceivers/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/encodedData/tqencodedData/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/currentDate/tqcurrentDate/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/styleHint/tqstyleHint/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/itemRect/tqitemRect/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/visualRect/tqvisualRect/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/drawControl/tqdrawControl/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/setSizePolicy/tqsetSizePolicy/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/pixelMetric/tqpixelMetric/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/drawComplexControl/tqdrawComplexControl/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/repaint/tqrepaint/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/colorGroup/tqcolorGroup/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/drawTextItem/tqdrawTextItem/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/setLibraryPaths/tqsetLibraryPaths/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqtq/tq/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqtq/tq/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/retqparent/reparent/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqshape.h/shape.h/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/XIMtqStatus/XIMStatus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/xtqshape.test/xshape.test/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/::mapper/::wmapper()/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/TQImage::ScaleFree/TQ_ScaleFree/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQImage::ScaleMin/TQ_ScaleMin/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQImage::ScaleMax/TQ_ScaleMax/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQWidget::StrongFocus/TQ_StrongFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQWidget::NoFocus/TQ_NoFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQWidget::WheelFocus/TQ_WheelFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQWidget::ClickFocus/TQ_ClickFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQWidget::TabFocus/TQ_TabFocus/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/tqslots/Q_SLOTS/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqsignals/Q_SIGNALS/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Q_SIGNALSlotimp\.h/tqsignalslotimp\.h/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_SLOTS/Q_SLOTS/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_SIGNALS/Q_SIGNALS/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/Q_/TQ_/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/Q_/TQ_/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself1 b/tqtinterface/conversion_scripts/convert_qt_itself1 new file mode 100755 index 0000000..d78be6f --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself1 @@ -0,0 +1,13 @@ +#!/bin/bash + +find ./ -type f -iname "*.c*" -exec sed -i 's/\(["<]\)q\(.*\)\.h\([">]\)/\1tq\2\.h\3/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\(["<]\)q\(.*\)\.h\([">]\)/\1tq\2\.h\3/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/\/q\(.*\)\.h\([">]\)/\/tq\1\.h\2/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\/q\(.*\)\.h\([">]\)/\/tq\1\.h\2/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/\(["<]\)q\(.*\)\.moc\([">]\)/\1tq\2\.moc\3/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\(["<]\)q\(.*\)\.moc\([">]\)/\1tq\2\.moc\3/g' {} \; + +find ./ -type f -iname "*.c*" -exec sed -i 's/\(["<]\)q\(.*\)\.cpp\([">]\)/\1tq\2\.cpp\3/g' {} \; +find ./ -type f -iname "*.h*" -exec sed -i 's/\(["<]\)q\(.*\)\.cpp\([">]\)/\1tq\2\.cpp\3/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself10 b/tqtinterface/conversion_scripts/convert_qt_itself10 new file mode 100755 index 0000000..814def6 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself10 @@ -0,0 +1,109 @@ +#!/bin/bash + +# Getting me from convert_qt_itself8 is easy +# Just do this +# sed -i 's/\(\\\"TQ.*\"\)\/\(.*\)\/g/\2\/\1\/g/g' /kde/source/convert_qt_itself10 +# Then replace "*" with "*.ui" + +find ./ -type f -iname "*.ui" -exec sed -i 's/TQPOINT_OBJECT_NAME_STRING/\"TQPoint\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQBYTEARRAY_OBJECT_NAME_STRING/\"TQByteArray\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQPIXMAP_OBJECT_NAME_STRING/\"TQPixmap\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSTRING_OBJECT_NAME_STRING/\"TQString\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSTRINGLIST_OBJECT_NAME_STRING/\"TQStringList\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLAYOUT_OBJECT_NAME_STRING/\"TQLayout\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQBOXLAYOUT_OBJECT_NAME_STRING/\"TQBoxLayout\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQHBOXLAYOUT_OBJECT_NAME_STRING/\"TQHBoxLayout\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQVBOXLAYOUT_OBJECT_NAME_STRING/\"TQVBoxLayout\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQGRIDLAYOUT_OBJECT_NAME_STRING/\"TQGridLayout\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQHBOX_OBJECT_NAME_STRING/\"TQHBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQVBOX_OBJECT_NAME_STRING/\"TQVBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQGRID_OBJECT_NAME_STRING/\"TQGrid\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTABWIDGET_OBJECT_NAME_STRING/\"TQTabWidget\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQCHECKBOX_OBJECT_NAME_STRING/\"TQCheckBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLINEEDIT_OBJECT_NAME_STRING/\"TQLineEdit\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTEXTEDIT_OBJECT_NAME_STRING/\"TQTextEdit\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQOBJECT_OBJECT_NAME_STRING/\"TQObject\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQWIDGET_OBJECT_NAME_STRING/\"TQWidget\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQGLWIDGET_OBJECT_NAME_STRING/\"TQGLWidget\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLABEL_OBJECT_NAME_STRING/\"TQLabel\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTIMER_OBJECT_NAME_STRING/\"TQTimer\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQFRAME_OBJECT_NAME_STRING/\"TQFrame\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQACCEL_OBJECT_NAME_STRING/\"TQAccel\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDIALOG_OBJECT_NAME_STRING/\"TQDialog\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDIAL_OBJECT_NAME_STRING/\"TQDial\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQACTION_OBJECT_NAME_STRING/\"TQAction\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQACTIONGROUP_OBJECT_NAME_STRING/\"TQActionGroup\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLCDNUMBER_OBJECT_NAME_STRING/\"TQLCDNumber\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQPROGRESSBAR_OBJECT_NAME_STRING/\"TQProgressBar\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTABDIALOG_OBJECT_NAME_STRING/\"TQTabDialog\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTABWIDGET_OBJECT_NAME_STRING/\"TQTabWidget\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDOCKWINDOW_OBJECT_NAME_STRING/\"TQDockWindow\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQGROUPBOX_OBJECT_NAME_STRING/\"TQGroupBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQCOMBOBOX_OBJECT_NAME_STRING/\"TQComboBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSPINBOX_OBJECT_NAME_STRING/\"TQSpinBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSPINWIDGET_OBJECT_NAME_STRING/\"TQSpinWidget\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLISTBOX_OBJECT_NAME_STRING/\"TQListBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTOOLBOX_OBJECT_NAME_STRING/\"TQToolBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTOOLBOXBUTTON_OBJECT_NAME_STRING/\"TQToolBoxButton\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQVGROUPBOX_OBJECT_NAME_STRING/\"TQVGroupBox\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSPLITTER_OBJECT_NAME_STRING/\"TQSplitter\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSPLITTERHANDLE_OBJECT_NAME_STRING/\"TQSplitterHandle\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQBUTTON_OBJECT_NAME_STRING/\"TQButton\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQGRIDVIEW_OBJECT_NAME_STRING/\"TQGridView\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSLIDER_OBJECT_NAME_STRING/\"TQSlider\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQPUSHBUTTON_OBJECT_NAME_STRING/\"TQPushButton\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTOOLBUTTON_OBJECT_NAME_STRING/\"TQToolButton\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQRADIOBUTTON_OBJECT_NAME_STRING/\"TQRadioButton\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQPOPUPMENU_OBJECT_NAME_STRING/\"TQPopupMenu\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTOOLBAR_OBJECT_NAME_STRING/\"TQToolBar\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQMENUBAR_OBJECT_NAME_STRING/\"TQMenuBar\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTABBAR_OBJECT_NAME_STRING/\"TQTabBar\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLISTVIEW_OBJECT_NAME_STRING/\"TQListView\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSCROLLBAR_OBJECT_NAME_STRING/\"TQScrollBar\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSCROLLVIEW_OBJECT_NAME_STRING/\"TQScrollView\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQRANGECONTROL_OBJECT_NAME_STRING/\"TQRangeControl\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQCANVASITEM_OBJECT_NAME_STRING/\"TQCanvasItem\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQICONVIEW_OBJECT_NAME_STRING/\"TQIconView\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQMULTILINEEDIT_OBJECT_NAME_STRING/\"TQMultiLineEdit\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQINTVALIDATOR_OBJECT_NAME_STRING/\"TQIntValidator\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDATEEDIT_OBJECT_NAME_STRING/\"TQDateEdit\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTIMEEDIT_OBJECT_NAME_STRING/\"TQTimeEdit\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDATETIMEEDIT_OBJECT_NAME_STRING/\"TQDateTimeEdit\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQHEADER_OBJECT_NAME_STRING/\"TQHeader\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQSIZEGRIP_OBJECT_NAME_STRING/\"TQSizeGrip\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING/\"TQDockWindowHandle\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQHIDEDOCK_OBJECT_NAME_STRING/\"TQHideDock\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTABLE_OBJECT_NAME_STRING/\"TQTable\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQWIZARD_OBJECT_NAME_STRING/\"TQWizard\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDATATABLE_OBJECT_NAME_STRING/\"TQDataTable\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDATABROWSER_OBJECT_NAME_STRING/\"TQDataBrowser\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQDATAVIEW_OBJECT_NAME_STRING/\"TQDataView\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQMAINWINDOW_OBJECT_NAME_STRING/\"TQMainWindow\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQWIDGETSTACK_OBJECT_NAME_STRING/\"TQWidgetStack\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQBUTTONGROUP_OBJECT_NAME_STRING/\"TQButtonGroup\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTEXTVIEW_OBJECT_NAME_STRING/\"TQTextView\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQTEXTBROWSER_OBJECT_NAME_STRING/\"TQTextBrowser\"/g' {} \; +find ./ -type f -iname "*.ui" -exec sed -i 's/TQLAYOUTWIDGET_OBJECT_NAME_STRING/\"TQLayoutWidget\"/g' {} \; + +find ./ -type f -iname "*.ui" -exec sed -i 's/TQMOTIFPLUSSTYLE_OBJECT_NAME_STRING/\"TQMotifPlusStyle\"/g' {} \; + +# Undo a few other problems +find ./ -type f -iname "*" -exec sed -i 's/tqrepaint\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/repaint\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqinvalidate\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/invalidate\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqparent\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/parent\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqmask\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/mask\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqlayout\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/layout\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqalignment\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/alignment\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqsizeHint\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/sizeHint\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqgeometry\([_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]\)/geometry\1/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/layoutengine_p\.h/tqlayoutengine_p\.h/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/Qt::Orientation\"/Orientation\"/g' {} \; + +# Undo some of the original changes that are no longer needed +find ./ -type f -iname "*" -exec sed -i 's/tqfind/find/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqreplace/replace/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqcontains/contains/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqparent/parent/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqmask/mask/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself2 b/tqtinterface/conversion_scripts/convert_qt_itself2 new file mode 100755 index 0000000..07c7e83 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself2 @@ -0,0 +1,5 @@ +#!/bin/bash + +ls -d * | sed 's/^q\(.*\)\.h\(.*\)$/mv "&" "tq\1\.h\2"/' | grep mv | sh +ls -d * | sed 's/^q\(.*\)\.c\(.*\)$/mv "&" "tq\1\.c\2"/' | grep mv | sh + diff --git a/tqtinterface/conversion_scripts/convert_qt_itself3 b/tqtinterface/conversion_scripts/convert_qt_itself3 new file mode 100755 index 0000000..b9b64dc --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself3 @@ -0,0 +1,3 @@ +#!/bin/bash + +ls -l | awk '{print "ln -s", $10, " ", $8, " && rm ", $8}' | sed 's/\(.*\) q\(.*\)\.h/\1 tq\2\.h/g' | sed 's/\(.*\)\/q\(.*\)\.h/\1\/tq\2\.h/g' | sh diff --git a/tqtinterface/conversion_scripts/convert_qt_itself4 b/tqtinterface/conversion_scripts/convert_qt_itself4 new file mode 100755 index 0000000..25914e3 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself4 @@ -0,0 +1,10 @@ +#/bin/bash + +for i in {1..50} +do + find ./ -type f -iname "*.pro" -exec sed -i 's/\(.*\)\/q\(.*\)\.c\(.*\)/\1\/tq\2\.c\3/g' {} \; + find ./ -type f -iname "*.pro" -exec sed -i 's/\(.*\)\/q\(.*\)\.h\(.*\)/\1\/tq\2\.h\3/g' {} \; + + find ./ -type f -iname "*.pri" -exec sed -i 's/\(.*\)\/q\(.*\)\.c\(.*\)/\1\/tq\2\.c\3/g' {} \; + find ./ -type f -iname "*.pri" -exec sed -i 's/\(.*\)\/q\(.*\)\.h\(.*\)/\1\/tq\2\.h\3/g' {} \; +done diff --git a/tqtinterface/conversion_scripts/convert_qt_itself5 b/tqtinterface/conversion_scripts/convert_qt_itself5 new file mode 100755 index 0000000..db4f735 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself5 @@ -0,0 +1,55 @@ +#!/bin/bash + +#find ./ -type f -iname "*" -exec sed -i 's/TQt::HorizontalLayout/HorizontalLayout/g' {} \; +#find ./ -type f -iname "*" -exec sed -i 's/TQt::VerticalLayout/VerticalLayout/g' {} \; +#find ./ -type f -iname "*" -exec sed -i 's/TQt::GridLayout/GridLayout/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Orientation/Qt::Orientation/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/setQt::Orientation/setOrientation/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQString::null/TQString()/g' {} \; +#find ./ -type f -iname "*" -exec sed -i 's/Dock/TQt::Dock/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::Qt::/Qt::/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Qt::Qt::/Qt::/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/tqtqlayout\.h/tqlayout\.h/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/_tqparent/_parent/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/_tqlayout/_layout/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/[ ,(]Horizontal/Qt::Horizontal/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/[ ,(]Vertical/Qt::Vertical/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::Horizontal/Qt::Horizontal/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::Vertical/Qt::Vertical/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/TQt::LeftButton/Qt::LeftButton/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::RightButton/Qt::RightButton/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::MidButton/Qt::MidButton/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::NoButton/Qt::NoButton/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/TQt::ISODate/Qt::ISODate/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::TextDate/Qt::TextDate/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQt::LocalDate/Qt::LocalDate/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/TQ_OS_/Q_OS_/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_BYTE_ORDER/Q_BYTE_ORDER/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_BIG_ENDIAN/Q_BIG_ENDIAN/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQtWIN/QtWIN/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/TQUANT/QUANT/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/FRETQ/FREQ/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/_SETQ_/_SEQ_/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/rtqfind/rfind/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/_ETQUAL/_EQUAL/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/ComplexETQ/ComplexEQ/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/STQRT/SQRT/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/STQUARE/SQUARE/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/ktqlayout/klayout/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqttableview/qttableview/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqiomanager/qiomanager/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/TStringToTQString/TStringToQString/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQStringToTString/QStringToTString/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/::qt_cast/::tqqt_cast/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/\"tqgeometry\"/\"geometry\"/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself6 b/tqtinterface/conversion_scripts/convert_qt_itself6 new file mode 100755 index 0000000..88624df --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself6 @@ -0,0 +1,10 @@ +#!/bin/bash + +find ./ -type f -iname "*" -exec sed -i 's/TQT_STATIC_CONST/QT_STATIC_CONST/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_SIGNALS/signals/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_SLOTS/slots/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_ASSERT/Q_ASSERT/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_UNUSED/Q_UNUSED/g' {} \; +#find ./ -type f -iname "*" -exec sed -i 's/TQ_PROPERTY/Q_PROPERTY/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/SIGTQUIT/SIGQUIT/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself7 b/tqtinterface/conversion_scripts/convert_qt_itself7 new file mode 100755 index 0000000..16b7b61 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself7 @@ -0,0 +1,83 @@ +#!/bin/bash + +find ./ -type f -iname "*" -exec sed -i 's/\"QPoint\"/TQPOINT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QByteArray\"/TQBYTEARRAY_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QPixmap\"/TQPIXMAP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QString\"/TQSTRING_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QStringList\"/TQSTRINGLIST_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QLayout\"/TQLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QBoxLayout\"/TQBOXLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QHBoxLayout\"/TQHBOXLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QVBoxLayout\"/TQVBOXLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QGridLayout\"/TQGRIDLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QHBox\"/TQHBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QVBox\"/TQVBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QGrid\"/TQGRID_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTabWidget\"/TQTABWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QCheckBox\"/TQCHECKBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QLineEdit\"/TQLINEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTextEdit\"/TQTEXTEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QObject\"/TQOBJECT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QWidget\"/TQWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QGLWidget\"/TQGLWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QLabel\"/TQLABEL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTimer\"/TQTIMER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QFrame\"/TQFRAME_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QAccel\"/TQACCEL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDialog\"/TQDIALOG_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDial\"/TQDIAL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QAction\"/TQACTION_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QActionGroup\"/TQACTIONGROUP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QLCDNumber\"/TQLCDNUMBER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QProgressBar\"/TQPROGRESSBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTabDialog\"/TQTABDIALOG_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTabWidget\"/TQTABWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDockWindow\"/TQDOCKWINDOW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QGroupBox\"/TQGROUPBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QComboBox\"/TQCOMBOBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QSpinBox\"/TQSPINBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QSpinWidget\"/TQSPINWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QListBox\"/TQLISTBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QToolBox\"/TQTOOLBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QToolBoxButton\"/TQTOOLBOXBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QVGroupBox\"/TQVGROUPBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QSplitter\"/TQSPLITTER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QSplitterHandle\"/TQSPLITTERHANDLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QButton\"/TQBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QGridView\"/TQGRIDVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QSlider\"/TQSLIDER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QPushButton\"/TQPUSHBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QToolButton\"/TQTOOLBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QRadioButton\"/TQRADIOBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QPopupMenu\"/TQPOPUPMENU_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QToolBar\"/TQTOOLBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QMenuBar\"/TQMENUBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTabBar\"/TQTABBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QListView\"/TQLISTVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QScrollBar\"/TQSCROLLBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QScrollView\"/TQSCROLLVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QRangeControl\"/TQRANGECONTROL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QCanvasItem\"/TQCANVASITEM_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QIconView\"/TQICONVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QMultiLineEdit\"/TQMULTILINEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QIntValidator\"/TQINTVALIDATOR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDateEdit\"/TQDATEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTimeEdit\"/TQTIMEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDateTimeEdit\"/TQDATETIMEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QHeader\"/TQHEADER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QSizeGrip\"/TQSIZEGRIP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDockWindowHandle\"/TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QHideDock\"/TQHIDEDOCK_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTable\"/TQTABLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QWizard\"/TQWIZARD_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDataTable\"/TQDATATABLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDataBrowser\"/TQDATABROWSER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QDataView\"/TQDATAVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QMainWindow\"/TQMAINWINDOW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QWidgetStack\"/TQWIDGETSTACK_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QButtonGroup\"/TQBUTTONGROUP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTextView\"/TQTEXTVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QTextBrowser\"/TQTEXTBROWSER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"QLayoutWidget\"/TQLAYOUTWIDGET_OBJECT_NAME_STRING/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/\"QMotifPlusStyle\"/TQMOTIFPLUSSTYLE_OBJECT_NAME_STRING/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself8 b/tqtinterface/conversion_scripts/convert_qt_itself8 new file mode 100755 index 0000000..f4d5632 --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself8 @@ -0,0 +1,86 @@ +#!/bin/bash + +#echo "Only run me if you know what you are doing!" +#exit 0 + +find ./ -type f -iname "*" -exec sed -i 's/\"TQPoint\"/TQPOINT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQByteArray\"/TQBYTEARRAY_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQPixmap\"/TQPIXMAP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQString\"/TQSTRING_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQStringList\"/TQSTRINGLIST_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQLayout\"/TQLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQBoxLayout\"/TQBOXLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQHBoxLayout\"/TQHBOXLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQVBoxLayout\"/TQVBOXLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQGridLayout\"/TQGRIDLAYOUT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQHBox\"/TQHBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQVBox\"/TQVBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQGrid\"/TQGRID_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTabWidget\"/TQTABWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQCheckBox\"/TQCHECKBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQLineEdit\"/TQLINEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTextEdit\"/TQTEXTEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQObject\"/TQOBJECT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQWidget\"/TQWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQGLWidget\"/TQGLWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQLabel\"/TQLABEL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTimer\"/TQTIMER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQFrame\"/TQFRAME_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQAccel\"/TQACCEL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDialog\"/TQDIALOG_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDial\"/TQDIAL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQAction\"/TQACTION_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQActionGroup\"/TQACTIONGROUP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQLCDNumber\"/TQLCDNUMBER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQProgressBar\"/TQPROGRESSBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTabDialog\"/TQTABDIALOG_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTabWidget\"/TQTABWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDockWindow\"/TQDOCKWINDOW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQGroupBox\"/TQGROUPBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQComboBox\"/TQCOMBOBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQSpinBox\"/TQSPINBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQSpinWidget\"/TQSPINWIDGET_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQListBox\"/TQLISTBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQToolBox\"/TQTOOLBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQToolBoxButton\"/TQTOOLBOXBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQVGroupBox\"/TQVGROUPBOX_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQSplitter\"/TQSPLITTER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQSplitterHandle\"/TQSPLITTERHANDLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQButton\"/TQBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQGridView\"/TQGRIDVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQSlider\"/TQSLIDER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQPushButton\"/TQPUSHBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQToolButton\"/TQTOOLBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQRadioButton\"/TQRADIOBUTTON_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQPopupMenu\"/TQPOPUPMENU_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQToolBar\"/TQTOOLBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQMenuBar\"/TQMENUBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTabBar\"/TQTABBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQListView\"/TQLISTVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQScrollBar\"/TQSCROLLBAR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQScrollView\"/TQSCROLLVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQRangeControl\"/TQRANGECONTROL_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQCanvasItem\"/TQCANVASITEM_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQIconView\"/TQICONVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQMultiLineEdit\"/TQMULTILINEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQIntValidator\"/TQINTVALIDATOR_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDateEdit\"/TQDATEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTimeEdit\"/TQTIMEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDateTimeEdit\"/TQDATETIMEEDIT_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQHeader\"/TQHEADER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQSizeGrip\"/TQSIZEGRIP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDockWindowHandle\"/TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQHideDock\"/TQHIDEDOCK_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTable\"/TQTABLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQWizard\"/TQWIZARD_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDataTable\"/TQDATATABLE_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDataBrowser\"/TQDATABROWSER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQDataView\"/TQDATAVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQMainWindow\"/TQMAINWINDOW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQWidgetStack\"/TQWIDGETSTACK_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQButtonGroup\"/TQBUTTONGROUP_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTextView\"/TQTEXTVIEW_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQTextBrowser\"/TQTEXTBROWSER_OBJECT_NAME_STRING/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\"TQLayoutWidget\"/TQLAYOUTWIDGET_OBJECT_NAME_STRING/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/\"TQMotifPlusStyle\"/TQMOTIFPLUSSTYLE_OBJECT_NAME_STRING/g' {} \; diff --git a/tqtinterface/conversion_scripts/convert_qt_itself9 b/tqtinterface/conversion_scripts/convert_qt_itself9 new file mode 100755 index 0000000..789877d --- /dev/null +++ b/tqtinterface/conversion_scripts/convert_qt_itself9 @@ -0,0 +1,57 @@ +#!/bin/bash + +find ./ -type f -iname "*" -exec sed -i 's/TQT_VERSION/\[\[\[TQT_VERSION IS DEPRECATED\]\]\]/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/CONSETQUENTIAL/CONSEQUENTIAL/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqfind\./find\./g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqdevice\./device\./g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqfind\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/find\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqreplace\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/replace\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqcontains\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/contains\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqfind \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/find \1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqreplace \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/replace \1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqcontains \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/contains \1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqstatus\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/status\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqStatus\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/Status\1/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/findRev/tqfindRev/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/findRef/tqfindRef/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/qMakePair/tqMakePair/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/\.arg(/\.tqarg(/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/::clipboard()/::tqclipboard()/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/tqStatusBar/StatusBar/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/sockettqStatus/socketStatus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/ranstqparent/ransparent/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/painttqdevice/paintdevice/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/staticTQString/staticQString/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/exittqStatus/exitStatus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/utqmask/umask/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQGpgME/QGpgME/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/xTQGantt/xQGantt/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQSync/QSync/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQtDebugMsg/QtDebugMsg/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQtWarningMsg/QtWarningMsg/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQtFatalMsg/QtFatalMsg/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQCStringList/QCStringList/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQLayoutStruct/QLayoutStruct/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_CHECK_PTR/Q_CHECK_PTR/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQUEST/QUEST/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQUENCE/QUENCE/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQPARTICI/QPARTICI/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/OPATQUE/OPAQUE/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TQ_ENUMS/Q_ENUMS/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/TTQ/TQ/g' {} \; + +find ./ -type f -iname "*" -exec sed -i 's/#include \"\(.*\)\.tqmoc\"/#include \"\1\.moc\"/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/#include <\(.*\)\.tqmoc>/#include <\1\.moc>/g' {} \; + +find ./ -type f -iname "*" -exec perl -i -p -e 's/TQ_OBJECT\n/Q_OBJECT\n TQ_OBJECT\n/' {} \; +find ./ -type f -iname "*" -exec perl -i -p -e 's/Q_OBJECT\nQ_OBJECT\n TQ_OBJECT\n/Q_OBJECT\n TQ_OBJECT\n/' {} \; + +# NOTE +# These should be rerun after manual Qt4 porting completion + +find ./ -type f -iname "*" -exec sed -i 's/Qt::StrongFocus/TQ_StrongFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Qt::NoFocus/TQ_NoFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Qt::WheelFocus/TQ_WheelFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Qt::ClickFocus/TQ_ClickFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Qt::TabFocus/TQ_TabFocus/g' {} \; +find ./ -type f -iname "*" -exec sed -i 's/Qt::FocusPolicy/TQ_FocusPolicy/g' {} \;