From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/php/README.dox | 2 +- languages/php/data/phpfunctions | 68 +++++------ languages/php/doc/php.toc | 228 +++++++++++++++++------------------ languages/php/phpcodecompletion.cpp | 48 ++++---- languages/php/phpcodecompletion.h | 1 + languages/php/phpconfigdata.h | 1 + languages/php/phpconfigwidget.cpp | 6 +- languages/php/phpconfigwidget.h | 3 +- languages/php/phpconfigwidgetbase.ui | 98 +++++++-------- languages/php/phperrorview.cpp | 24 ++-- languages/php/phperrorview.h | 3 +- languages/php/phpfile.cpp | 54 ++++----- languages/php/phpfile.h | 1 + languages/php/phphtmlview.h | 1 + languages/php/phpinfodlg.ui | 14 +-- languages/php/phpnewclassdlg.cpp | 14 +-- languages/php/phpnewclassdlg.h | 3 +- languages/php/phpnewclassdlgbase.ui | 26 ++-- languages/php/phpparser.cpp | 8 +- languages/php/phpparser.h | 4 - languages/php/phpsupport_event.h | 6 +- languages/php/phpsupportpart.cpp | 8 +- languages/php/phpsupportpart.h | 5 +- 23 files changed, 313 insertions(+), 313 deletions(-) (limited to 'languages/php') diff --git a/languages/php/README.dox b/languages/php/README.dox index 14e69997..57d1b1b8 100644 --- a/languages/php/README.dox +++ b/languages/php/README.dox @@ -14,7 +14,7 @@ all include files from your script. \maintainer Escuder Nicolas \feature PHP language support -\feature Consult \ref LangSupportStatus for a up to date features/status of this programming language support part. +\feature Consult \ref LangSupporttqStatus for a up to date features/status of this programming language support part. \bug bugs in php support component at Bugzilla database diff --git a/languages/php/data/phpfunctions b/languages/php/data/phpfunctions index d0897bd5..d43bcb72 100644 --- a/languages/php/data/phpfunctions +++ b/languages/php/data/phpfunctions @@ -150,7 +150,7 @@ db:string dblist(void) db:int dbmopen(string filename, string mode) db:bool dbmclose(int dbm_identifier) db:int dbminsert(int dbm_identifier, string key, string value) -db:int dbmreplace(int dbm_identifier, string key, string value) +db:int dbmtqreplace(int dbm_identifier, string key, string value) db:string dbmfetch(int dbm_identifier, string key) db:int dbmexists(int dbm_identifier, string key) db:int dbmdelete(int dbm_identifier, string key) @@ -165,7 +165,7 @@ dba:string dba_firstkey(int handle) dba:string dba_nextkey(int handle) dba:bool dba_delete(string key, int handle) dba:bool dba_insert(string key, string value, int handle) -dba:bool dba_replace(string key, string value, int handle) +dba:bool dba_tqreplace(string key, string value, int handle) dba:bool dba_optimize(int handle) dba:bool dba_sync(int handle) dbase:int dbase_open(string name, int mode) @@ -184,7 +184,7 @@ domxml:string domxml_attrname([int dir_handle]) domxml:class domxml_node(string name) domxml:string domxml_lastchild([int node]) domxml:string domxml_parent([int node]) -domxml:string domxml_children([int node]) +domxml:string domxml_tqchildren([int node]) domxml:string domxml_getattr([int node,] string attrname) domxml:bool domxml_setattr([int node,] string attrname, string value) domxml:array domxml_attributes([int node]) @@ -199,7 +199,7 @@ domxml:string domxml_add_root([int doc_handle,] string name) domxml:class domxml_new_xmldoc(string version) domxml:string node_namespace([int node]) domxml:string node_attributes([int node]) -domxml:string node_children([int node]) +domxml:string node_tqchildren([int node]) domxml:class xmltree(string xmldoc) dotnet:int dotnet_load(string module_name) exif:string read_exif_data(string filename) @@ -341,11 +341,11 @@ hw:hwdoc hw_gettext(int link, int objid [, int rootid]) hw:void hw_edittext(int link, hwdoc doc) hw:hwdoc hw_getcgi(int link, int objid) hw:int hw_getremote(int link, int objid) -hw:[array|int] hw_getremotechildren(int link, string objrec) +hw:[array|int] hw_getremotetqchildren(int link, string objrec) hw:void hw_setlinkroot(int link, int rootid) hw:hwdoc hw_pipedocument(int link, int objid) hw:hwdoc hw_pipecgi(int link, int objid) -hw:void hw_insertdocument(int link, int parentid, hwdoc doc) +hw:void hw_insertdocument(int link, int tqparentid, hwdoc doc) hw:hwdoc hw_new_document(string objrec, string data, int size) hw:void hw_free_document(hwdoc doc) hw:void hw_outputdocument(hwdoc doc) @@ -358,10 +358,10 @@ hw:int hw_documentsize(hwdoc doc) hw:int hw_document_size(hwdoc doc) hw:string hw_documentattributes(hwdoc doc) hw:string hw_document_attributes(hwdoc doc) -hw:array hw_getparentsobj(int link, int objid) -hw:array hw_getparents(int link, int objid) -hw:array hw_children(int link, int objid) -hw:array hw_childrenobj(int link, int objid) +hw:array hw_gettqparentsobj(int link, int objid) +hw:array hw_gettqparents(int link, int objid) +hw:array hw_tqchildren(int link, int objid) +hw:array hw_tqchildrenobj(int link, int objid) hw:array hw_getchildcoll(int link, int objid) hw:array hw_getchildcollobj(int link, int objid) hw:int hw_docbyanchor(int link, int anchorid) @@ -379,8 +379,8 @@ hw:void hw_identify(int link, string username, string password) hw:array hw_objrec2array(string objrec, [array format]) hw:string hw_array2objrec(array objarr) hw:array hw_incollections(int link, array objids, array collids, int para) -hw:void hw_inscoll(int link, int parentid, array objarr) -hw:void hw_insdoc(int link, int parentid, string objrec [, string text]) +hw:void hw_inscoll(int link, int tqparentid, array objarr) +hw:void hw_insdoc(int link, int tqparentid, string objrec [, string text]) hw:int hw_getsrcbydestobj(int link, int destid) hw:int hw_mapid(int link, int serverid, int destid) hw:string hw_getrellink(int link, int rootid, int sourceid, int destid) @@ -559,7 +559,7 @@ ldap:array ldap_explode_dn(string dn, int with_attrib) ldap:string ldap_dn2ufn(string dn) ldap:int ldap_add(int link, string dn, array entry) ldap:int ldap_modify(int link, string dn, array entry) -ldap:int ldap_mod_replace(int link, string dn, array entry) +ldap:int ldap_mod_tqreplace(int link, string dn, array entry) ldap:int ldap_mod_add(int link, string dn, array entry) ldap:int ldap_mod_del(int link, string dn, array entry) ldap:int ldap_delete(int link, string dn) @@ -861,7 +861,7 @@ ovrimos:int ovrimos_rollback(int connection_id) ovrimos:int ovrimos_setoption(int conn_id|result_id, int which, int option, int value) pcre:int preg_match(string pattern, string subject [, array subpatterns]) pcre:int preg_match_all(string pattern, string subject, array subpatterns [, int order]) -pcre:string preg_replace(string|array regex, string|array replace, string|array subject [, int limit]) +pcre:string preg_tqreplace(string|array regex, string|array tqreplace, string|array subject [, int limit]) pcre:array preg_split(string pattern, string subject [, int limit [, int flags]]) pcre:string preg_quote(string str, string delim_char) pcre:array preg_grep(string regex, array input) @@ -928,7 +928,7 @@ pdf:void pdf_setgray(int pdfdoc, double value) pdf:void pdf_setrgbcolor_fill(int pdfdoc, double red, double green, double blue) pdf:void pdf_setrgbcolor_stroke(int pdfdoc, double red, double green, double blue) pdf:void pdf_setrgbcolor(int pdfdoc, double red, double green, double blue) -pdf:int pdf_add_outline(int pdfdoc, string text [, int parent, int open]); +pdf:int pdf_add_outline(int pdfdoc, string text [, int tqparent, int open]); pdf:void pdf_set_transition(int pdfdoc, int transition) pdf:void pdf_set_duration(int pdfdoc, double duration) pdf:int pdf_open_gif(int pdf, string giffile) @@ -1287,7 +1287,7 @@ file:int fseek(int fp, int offset [, int whence]) file:int mkdir(string pathname, int mode) file:int rmdir(string dirname) file:int readfile(string filename [, int use_include_path]) -file:int umask([int mask]) +file:int umask([int tqmask]) file:int fpassthru(int fp) file:int rename(string old_name, string new_name) file:int unlink(string filename) @@ -1403,15 +1403,15 @@ rand:int mt_getrandmax(void) quot_print:string quoted_printable_decode(string str) reg:int ereg(string pattern, string string [, array registers]) reg:int eregi(string pattern, string string [, array registers]) -reg:string ereg_replace(string pattern, string replacement, string string) -reg:string eregi_replace(string pattern, string replacement, string string]) +reg:string ereg_tqreplace(string pattern, string replacement, string string) +reg:string eregi_tqreplace(string pattern, string replacement, string string]) reg:array split(string pattern, string string [, int limit]) reg:array spliti(string pattern, string string [, int limit]) reg:string sql_regcase(string string) soundex:string soundex(string str) string:string bin2hex(string data) -string:int strspn(string str, string mask) -string:int strcspn(string str, string mask) +string:int strspn(string str, string tqmask) +string:int strcspn(string str, string tqmask) string:string rtrim(string str) string:string chop(string str) string:string trim(string str) @@ -1434,7 +1434,7 @@ string:int strrpos(string haystack, string needle) string:string strrchr(string haystack, string needle) string:string chunk_split(string str [, int chunklen [, string ending]]) string:string substr(string str, int start [, int length]) -string:string substr_replace(string str, string repl, int start [, int length]) +string:string substr_tqreplace(string str, string repl, int start [, int length]) string:string quotemeta(string str) string:int ord(string character) string:string chr(int ascii) @@ -1447,7 +1447,7 @@ string:string addcslashes(string str, string charlist) string:string addslashes(string str) string:string stripcslashes(string str) string:string stripslashes(string str) -string:string str_replace(string needle, string str, string haystack) +string:string str_tqreplace(string needle, string str, string haystack) string:string hebrev(string str [, int max_chars_per_line]) string:string hebrevc(string str [, int max_chars_per_line]) string:string nl2br(string str) @@ -1501,18 +1501,18 @@ swf:void swf_actiongotolabel(string label) swf:void swf_defineline(int objid, double x1, double y1, double x2, double y2, double width) swf:void swf_definerect(int objid, double x1, double y1, double x2, double y2, double width) swf:void swf_definepoly(int obj_id, array coords, int npoints, double width) -swf:void swf_startshape(int objid) -swf:void swf_shapelinesolid(double r, double g, double b, double a, double width) -swf:void swf_shapefilloff(void) -swf:void swf_shapefillsolid(double r, double g, double b, double a) -swf:void swf_shapefillbitmapclip(int bitmapid) -swf:void swf_shapefillbitmaptile(int bitmapid) -swf:void swf_shapemoveto(double x, double y) -swf:void swf_shapelineto(double x, double y) -swf:void swf_shapecurveto(double x1, double y1, double x2, double y2) -swf:void swf_shapecurveto3(double x1, double y1, double x2, double y2, double x3, double y3) -swf:void swf_shapearc(double x, double y, double r, double ang1, double ang2) -swf:void swf_endshape(void) +swf:void swf_starttqshape(int objid) +swf:void swf_tqshapelinesolid(double r, double g, double b, double a, double width) +swf:void swf_tqshapefilloff(void) +swf:void swf_tqshapefillsolid(double r, double g, double b, double a) +swf:void swf_tqshapefillbitmapclip(int bitmapid) +swf:void swf_tqshapefillbitmaptile(int bitmapid) +swf:void swf_tqshapemoveto(double x, double y) +swf:void swf_tqshapelineto(double x, double y) +swf:void swf_tqshapecurveto(double x1, double y1, double x2, double y2) +swf:void swf_tqshapecurveto3(double x1, double y1, double x2, double y2, double x3, double y3) +swf:void swf_tqshapearc(double x, double y, double r, double ang1, double ang2) +swf:void swf_endtqshape(void) swf:void swf_definefont(int fontid, string name) swf:void swf_setfont(int fontid) swf:void swf_fontsize(double height) diff --git a/languages/php/doc/php.toc b/languages/php/doc/php.toc index f09df62e..f3feeef8 100644 --- a/languages/php/doc/php.toc +++ b/languages/php/doc/php.toc @@ -557,11 +557,11 @@ - - - - - + + + + + @@ -688,7 +688,7 @@ - + @@ -806,7 +806,7 @@ - + @@ -1477,7 +1477,7 @@ - + @@ -1629,7 +1629,7 @@ - + @@ -1805,7 +1805,7 @@ - + @@ -1840,7 +1840,7 @@ - + @@ -2245,7 +2245,7 @@ - + @@ -2411,7 +2411,7 @@ - + @@ -2419,7 +2419,7 @@ - + @@ -3581,7 +3581,7 @@ - + @@ -3590,7 +3590,7 @@ - + @@ -3644,12 +3644,12 @@ - - - - - - + + + + + + @@ -3841,7 +3841,7 @@ - + @@ -3853,7 +3853,7 @@ - + @@ -3980,7 +3980,7 @@ - + @@ -4026,7 +4026,7 @@ - + @@ -4067,7 +4067,7 @@ - + @@ -4138,7 +4138,7 @@ - + @@ -4512,7 +4512,7 @@ - + @@ -4534,7 +4534,7 @@ - + @@ -4639,7 +4639,7 @@ - + @@ -4647,11 +4647,11 @@ - - + + - + @@ -4679,7 +4679,7 @@ - + @@ -4689,7 +4689,7 @@ - + @@ -4706,7 +4706,7 @@ - + @@ -4723,7 +4723,7 @@ - + @@ -4731,8 +4731,8 @@ - - + + @@ -4754,22 +4754,22 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -5063,7 +5063,7 @@ - + @@ -5096,7 +5096,7 @@ - + @@ -5124,20 +5124,20 @@ - - - - - - - - - - + + + + + + + + + + - + @@ -5288,7 +5288,7 @@ - + @@ -5318,8 +5318,8 @@ - - + + @@ -5356,12 +5356,12 @@ - - - - - - + + + + + + @@ -5373,8 +5373,8 @@ - - + + @@ -5509,7 +5509,7 @@ - + @@ -5517,7 +5517,7 @@ - + @@ -5594,8 +5594,8 @@ - - + + @@ -5625,11 +5625,11 @@ - - + + - + @@ -5661,7 +5661,7 @@ - + @@ -5672,7 +5672,7 @@ - + @@ -5696,11 +5696,11 @@ - + - + @@ -5727,11 +5727,11 @@ - + - + @@ -5743,7 +5743,7 @@ - + @@ -5788,7 +5788,7 @@ - + @@ -5929,7 +5929,7 @@ - + @@ -5951,7 +5951,7 @@ - + @@ -5970,12 +5970,12 @@ - + - + @@ -5992,7 +5992,7 @@ - + @@ -6250,7 +6250,7 @@ - + @@ -6304,12 +6304,12 @@ - - + + - + - + @@ -6364,10 +6364,10 @@ - + - + @@ -6401,7 +6401,7 @@ - + @@ -6494,7 +6494,7 @@ - + @@ -6571,7 +6571,7 @@ - + @@ -6856,12 +6856,12 @@ - + - - + + @@ -6916,7 +6916,7 @@ - + diff --git a/languages/php/phpcodecompletion.cpp b/languages/php/phpcodecompletion.cpp index b2b1eb33..8f0a9298 100644 --- a/languages/php/phpcodecompletion.cpp +++ b/languages/php/phpcodecompletion.cpp @@ -146,9 +146,9 @@ void PHPCodeCompletion::cursorPositionChanged(){ } if (m_config->getCodeHinting()) { - int pos1 = lineStr.findRev("(", col - 1); - int pos2 = lineStr.findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), pos1 - 1); - int pos3 = lineStr.findRev(")", col); + int pos1 = lineStr.tqfindRev("(", col - 1); + int pos2 = lineStr.tqfindRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), pos1 - 1); + int pos3 = lineStr.tqfindRev(")", col); if (pos1 > pos2 && pos1 != -1 && pos3 < pos1) { TQString line = lineStr.mid(pos2 + 1, pos1 - pos2 - 1).stripWhiteSpace(); @@ -163,7 +163,7 @@ void PHPCodeCompletion::cursorPositionChanged(){ return; } - int pos = lineStr.findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1); + int pos = lineStr.tqfindRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1); TQString line = lineStr.mid(pos + 1, col - pos).stripWhiteSpace(); if (checkForVariable(line, col)) { @@ -180,7 +180,7 @@ kdDebug(9018) << "end checkForGlobalFunction" << endl; return; } - pos = lineStr.stripWhiteSpace().findRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1); + pos = lineStr.stripWhiteSpace().tqfindRev(TQRegExp("[ \\t=;\\$\\.\\(\\)]"), col - 1); line = lineStr.mid(pos + 1, col - pos); if (checkForNew(line, col)) { @@ -214,7 +214,7 @@ bool PHPCodeCompletion::checkForStaticFunction(TQString line, int col) { kdDebug(9018) << "checkForStaticFunction" << endl; TQValueList list; - if (line.find("::") == -1) + if (line.tqfind("::") == -1) return false; TQRegExp Class("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)"); @@ -234,7 +234,7 @@ bool PHPCodeCompletion::checkForStaticFunction(TQString line, int col) { for (funcIt = funcList.begin(); funcIt != funcList.end(); ++funcIt) { FunctionDom nFunc = *funcIt; - if ((function.isEmpty() || nFunc->name().startsWith(function, FALSE)) && nFunc->isStatic()) { + if ((function.isEmpty() || nFunc->name().tqstartsWith(function, FALSE)) && nFunc->isStatic()) { KTextEditor::CompletionEntry e; e.prefix = nClass->name() + " ::"; e.text = nFunc->name(); @@ -267,7 +267,7 @@ bool PHPCodeCompletion::checkForNew(TQString line, int col){ kdDebug(9018) << "checkForNew" << endl; TQValueList list; - if (line.find("new ", 0, FALSE) == -1) + if (line.tqfind("new ", 0, FALSE) == -1) return false; TQRegExp New("[& \t]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)"); @@ -297,7 +297,7 @@ bool PHPCodeCompletion::checkForExtends(TQString line, int col){ kdDebug(9018) << "checkForExtends" << endl; TQValueList list; - if (line.find("extends", 0, FALSE) == -1) + if (line.tqfind("extends", 0, FALSE) == -1) return false; TQRegExp extends("[ \t]*extends[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|)"); @@ -316,12 +316,12 @@ bool PHPCodeCompletion::checkForVariable(TQString line, int col){ TQValueList list; TQString args; - if (line.find("->") == -1) { + if (line.tqfind("->") == -1) { return false; } if (line.left(2) != "->") { - int pos = line.findRev("->"); + int pos = line.tqfindRev("->"); args = line.mid(pos + 2, line.length() - pos); line = line.mid(0, pos); } @@ -362,10 +362,10 @@ TQValueList PHPCodeCompletion::getClasses(TQString ClassList::Iterator classIt; for (classIt = classList.begin(); classIt != classList.end(); ++classIt) { ClassDom nClass = *classIt; - if (name == NULL || name.isEmpty() || nClass->name().startsWith(name, FALSE)) { + if (name == NULL || name.isEmpty() || nClass->name().tqstartsWith(name, FALSE)) { KTextEditor::CompletionEntry e; - TQStringList::Iterator it = added.find(nClass->name()); + TQStringList::Iterator it = added.tqfind(nClass->name()); if (it == added.end()) { e.text = nClass->name(); list.append(e); @@ -383,7 +383,7 @@ TQValueList PHPCodeCompletion::getFunctionsAndVars if (classname.isEmpty()) { TQValueList::Iterator it; for( it = m_globalFunctions.begin(); it != m_globalFunctions.end(); ++it ) { - if((*it).text.startsWith(function, FALSE)){ + if((*it).text.tqstartsWith(function, FALSE)){ KTextEditor::CompletionEntry e; e = (*it); list.append(e); @@ -393,7 +393,7 @@ TQValueList PHPCodeCompletion::getFunctionsAndVars FunctionList methodList = m_model->globalNamespace()->functionList(); FunctionList::Iterator methodIt; for (methodIt = methodList.begin(); methodIt != methodList.end(); ++methodIt) { - if ((*methodIt)->name().startsWith(function, FALSE)){ + if ((*methodIt)->name().tqstartsWith(function, FALSE)){ KTextEditor::CompletionEntry e; e.text = (*methodIt)->name(); ArgumentDom pArg = (*methodIt)->argumentList().first(); @@ -416,7 +416,7 @@ TQValueList PHPCodeCompletion::getFunctionsAndVars FunctionList::Iterator methodIt; for (methodIt = methodList.begin(); methodIt != methodList.end(); ++methodIt) { FunctionDom pMethod = *methodIt; - if (function.isEmpty() || pMethod->name().startsWith(function, FALSE)) { + if (function.isEmpty() || pMethod->name().tqstartsWith(function, FALSE)) { KTextEditor::CompletionEntry e; ArgumentDom arg = pMethod->argumentList().first(); @@ -430,7 +430,7 @@ TQValueList PHPCodeCompletion::getFunctionsAndVars VariableList::Iterator attrIt; for (attrIt = attrList.begin(); attrIt != attrList.end(); ++attrIt) { VariableDom pVar = *attrIt; - if (function.isEmpty() || pVar->name().startsWith(function, FALSE)) { + if (function.isEmpty() || pVar->name().tqstartsWith(function, FALSE)) { KTextEditor::CompletionEntry e; e.prefix = nClass->name() + " ::"; e.text = pVar->name(); @@ -526,13 +526,13 @@ TQString PHPCodeCompletion::getCurrentClassName() { return Class.cap(2); } } - return TQString::null; + return TQString(); } TQString PHPCodeCompletion::getClassName(TQString varName, TQString classname) { kdDebug(9018) << "getClassName " << varName << "::" << classname << endl; - if (varName.find("$") == 0) + if (varName.tqfind("$") == 0) varName = varName.mid(1); if (varName.lower() == "this") @@ -577,7 +577,7 @@ TQString PHPCodeCompletion::getClassName(TQString varName, TQString classname) { for(int i = m_currentLine; i >= 0; i--){ TQString line = m_editInterface->textLine(i); - if (!line.isNull() && line.find(varName,0 , FALSE) != -1) { + if (!line.isNull() && line.tqfind(varName,0 , FALSE) != -1) { if (createmember.search(line) != -1) { TQString right = createmember.cap(1).stripWhiteSpace(); @@ -640,7 +640,7 @@ bool PHPCodeCompletion::checkForArgHint(TQString line, int col) { if (m_argWidgetShow == true) return false; - if (line.find("::") != -1) { + if (line.tqfind("::") != -1) { TQRegExp Static("([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)::([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)"); Static.setCaseSensitive(FALSE); @@ -658,8 +658,8 @@ bool PHPCodeCompletion::checkForArgHint(TQString line, int col) { } } - if (line.findRev("->") != -1) { - int pos1 = line.findRev("->"); + if (line.tqfindRev("->") != -1) { + int pos1 = line.tqfindRev("->"); TQString classname; TQString function = line.mid(pos1 + 2); @@ -706,7 +706,7 @@ kdDebug(9018) << "checkForArgHint 0 " << line << endl; } void PHPCodeCompletion::setStatusBar(TQString expr, TQString type) { - m_phpSupport->mainWindow()->statusBar()->message( i18n("Type of %1 is %2").arg(expr).arg(type), 1000 ); + m_phpSupport->mainWindow()->statusBar()->message( i18n("Type of %1 is %2").tqarg(expr).tqarg(type), 1000 ); } #include "phpcodecompletion.moc" diff --git a/languages/php/phpcodecompletion.h b/languages/php/phpcodecompletion.h index 505bdcbd..b036beb7 100644 --- a/languages/php/phpcodecompletion.h +++ b/languages/php/phpcodecompletion.h @@ -47,6 +47,7 @@ public: class PHPCodeCompletion : public TQObject { Q_OBJECT + TQ_OBJECT public: PHPCodeCompletion(PHPSupportPart *phpSupport, PHPConfigData *config); diff --git a/languages/php/phpconfigdata.h b/languages/php/phpconfigdata.h index 49c49da8..d43661e1 100644 --- a/languages/php/phpconfigdata.h +++ b/languages/php/phpconfigdata.h @@ -30,6 +30,7 @@ class PHPConfigData : public TQObject { Q_OBJECT + TQ_OBJECT signals: void configStored(); diff --git a/languages/php/phpconfigwidget.cpp b/languages/php/phpconfigwidget.cpp index 5b5dfda7..41f3c2fe 100644 --- a/languages/php/phpconfigwidget.cpp +++ b/languages/php/phpconfigwidget.cpp @@ -16,8 +16,8 @@ using namespace std; -PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* parent, const char* name, WFlags fl ) - : PHPConfigWidgetBase( parent, name, fl ) +PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* tqparent, const char* name, WFlags fl ) + : PHPConfigWidgetBase( tqparent, name, fl ) { configData = data; m_phpInfo = ""; @@ -77,7 +77,7 @@ PHPConfigWidget::PHPConfigWidget(PHPConfigData* data,TQWidget* parent, const ch */ PHPConfigWidget::~PHPConfigWidget() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } void PHPConfigWidget::accept() diff --git a/languages/php/phpconfigwidget.h b/languages/php/phpconfigwidget.h index c404643c..84425de9 100644 --- a/languages/php/phpconfigwidget.h +++ b/languages/php/phpconfigwidget.h @@ -9,9 +9,10 @@ class PHPConfigData; class PHPConfigWidget : public PHPConfigWidgetBase { Q_OBJECT + TQ_OBJECT public: - PHPConfigWidget( PHPConfigData* data,TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); + PHPConfigWidget( PHPConfigData* data,TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 ); ~PHPConfigWidget(); public slots: diff --git a/languages/php/phpconfigwidgetbase.ui b/languages/php/phpconfigwidgetbase.ui index 8cfae9dc..0c926873 100644 --- a/languages/php/phpconfigwidgetbase.ui +++ b/languages/php/phpconfigwidgetbase.ui @@ -1,6 +1,6 @@ PHPConfigWidgetBase - + PHPConfigWidgetBase @@ -19,11 +19,11 @@ unnamed - + TabWidget1 - + TabPage @@ -34,7 +34,7 @@ unnamed - + ButtonGroup1_2 @@ -45,7 +45,7 @@ unnamed - + useCurrentFile_radio @@ -59,7 +59,7 @@ true - + useDefaultFile_radio @@ -77,7 +77,7 @@ - + GroupBox13 @@ -88,7 +88,7 @@ unnamed - + codeCompletion_checkbox @@ -96,7 +96,7 @@ &Enable code completion - + codeHinting_checkbox @@ -106,7 +106,7 @@ - + GroupBox14 @@ -117,7 +117,7 @@ unnamed - + TextLabel1_3_3_2_2 @@ -133,7 +133,7 @@ include_path_edit - + realtimeParsing_checkbox @@ -153,14 +153,14 @@ Expanding - + 20 170 - + PixmapLabel1 @@ -181,7 +181,7 @@ - + tab @@ -192,7 +192,7 @@ unnamed - + select_label @@ -200,7 +200,7 @@ Please select how KDevelop should execute your scripts. - + ButtonGroup3 @@ -211,7 +211,7 @@ unnamed - + callPHPDirectly_radio @@ -222,7 +222,7 @@ Ca&lling the PHP interpreter directly - + TextLabel1 @@ -230,7 +230,7 @@ <font size="+1">The php executable is called directly. Ideal for developers who want to develop terminal or graphical applications in PHP. You need a correctly installed php cgi version.</font> - + WordBreak|AlignVCenter|AlignLeft @@ -238,7 +238,7 @@ You need a correctly installed php cgi version.</font> - + callWebserver_radio @@ -246,7 +246,7 @@ You need a correctly installed php cgi version.</font> Using an &existing webserver (local or remote) - + TextLabel1_4 @@ -254,7 +254,7 @@ You need a correctly installed php cgi version.</font> <font size="+1">Uses an existing webserver. The pages are previewed in the internal web browser. Please make sure that the webserver was compiled with PHP support.</font> - + WordBreak|AlignVCenter|AlignLeft @@ -272,7 +272,7 @@ the internal web browser. Please make sure that the webserver was compiled with Expanding - + 21 171 @@ -281,7 +281,7 @@ the internal web browser. Please make sure that the webserver was compiled with - + tab @@ -292,7 +292,7 @@ the internal web browser. Please make sure that the webserver was compiled with unnamed - + TextLabel1_2 @@ -318,7 +318,7 @@ the internal web browser. Please make sure that the webserver was compiled with Expanding - + 20 20 @@ -327,7 +327,7 @@ the internal web browser. Please make sure that the webserver was compiled with - + tab @@ -338,7 +338,7 @@ the internal web browser. Please make sure that the webserver was compiled with unnamed - + TextLabel1_3_2 @@ -349,9 +349,9 @@ the internal web browser. Please make sure that the webserver was compiled with exe_edit - + - layout7 + tqlayout7 @@ -362,11 +362,11 @@ the internal web browser. Please make sure that the webserver was compiled with exe_edit - + exe_button - + 22 0 @@ -379,7 +379,7 @@ the internal web browser. Please make sure that the webserver was compiled with ... - + about_button @@ -389,7 +389,7 @@ the internal web browser. Please make sure that the webserver was compiled with - + textLabel2 @@ -403,9 +403,9 @@ the internal web browser. Please make sure that the webserver was compiled with ini_edit - + - layout8 + tqlayout8 @@ -419,14 +419,14 @@ the internal web browser. Please make sure that the webserver was compiled with true - + phpini_button true - + 20 0 @@ -441,7 +441,7 @@ the internal web browser. Please make sure that the webserver was compiled with - + zend_checkbox @@ -449,9 +449,9 @@ the internal web browser. Please make sure that the webserver was compiled with Load &Zend extension: - + - layout9 + tqlayout9 @@ -465,14 +465,14 @@ the internal web browser. Please make sure that the webserver was compiled with false - + zend_button false - + 20 0 @@ -497,7 +497,7 @@ the internal web browser. Please make sure that the webserver was compiled with Expanding - + 20 343 @@ -550,12 +550,12 @@ the internal web browser. Please make sure that the webserver was compiled with kdialog.h - + slotAboutClicked() slotPHPExeButtonClicked() slotPHPIniButtonClicked() slotZendButtonClicked() - - - + + + diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp index e5d479ec..241adb44 100644 --- a/languages/php/phperrorview.cpp +++ b/languages/php/phperrorview.cpp @@ -56,13 +56,13 @@ class ProblemItem: public KListViewItem { public: - ProblemItem( TQListView* parent, const TQString& problem, + ProblemItem( TQListView* tqparent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) {} + : KListViewItem( tqparent, problem, file, line, column ) {} - ProblemItem( TQListViewItem* parent, const TQString& problem, + ProblemItem( TQListViewItem* tqparent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) {} + : KListViewItem( tqparent, problem, file, line, column ) {} int compare( TQListViewItem* item, int column, bool ascending ) const { if( column == 2 || column == 3 ){ @@ -77,8 +77,8 @@ public: }; -PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char* name ) - : TQWidget( parent, name ? name : "problemreporter" ), +PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ? name : "problemreporter" ), m_phpSupport( part ), m_document( 0 ), m_markIface( 0 ) @@ -133,8 +133,8 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char* m_gridLayout->addWidget(m_tabBar,0,0); m_gridLayout->addMultiCellWidget(m_widgetStack,1,1,0,2); - m_gridLayout->addWidget(m_filterLabel,0,1,Qt::AlignRight); - m_gridLayout->addWidget(m_filterEdit,0,2,Qt::AlignLeft); + m_gridLayout->addWidget(m_filterLabel,0,1,TQt::AlignRight); + m_gridLayout->addWidget(m_filterEdit,0,2,TQt::AlignLeft); connect( m_filterEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotFilter()) ); connect( m_filterEdit, TQT_SIGNAL(textChanged( const TQString & )), this, TQT_SLOT(slotFilter()) ); @@ -151,7 +151,7 @@ void PHPErrorView::slotFilter() if(!m_tabBar->isTabEnabled(4)) m_tabBar->setTabEnabled(4,true); - m_tabBar->tab(4)->setText(i18n("Filtered: %1").arg( m_filterEdit->text() )); + m_tabBar->tab(4)->setText(i18n("Filtered: %1").tqarg( m_filterEdit->text() )); m_tabBar->setCurrentTab(4); m_filteredList->clear(); @@ -166,7 +166,7 @@ void PHPErrorView::filterList(KListView* listview, const TQString& level) { TQListViewItemIterator it( listview ); while ( it.current() ) { - if ( it.current()->text(3).contains(m_filterEdit->text(),false)) + if ( it.current()->text(3).tqcontains(m_filterEdit->text(),false)) new KListViewItem(m_filteredList,level, it.current()->text(0),it.current()->text(1),it.current()->text(2),it.current()->text(3)); ++it; @@ -308,7 +308,7 @@ void PHPErrorView::reportProblem( int level, const TQString& fileName, int line, } TQString msg = text; - msg = msg.replace( TQRegExp("\n"), "" ); + msg = msg.tqreplace( TQRegExp("\n"), "" ); TQString relFileName = fileName; relFileName.remove(m_phpSupport->project()->projectDirectory()); @@ -390,7 +390,7 @@ TQString PHPErrorView::levelToString( int level ) const return TQString( i18n("Fixme") ); default: - return TQString::null; + return TQString(); } } diff --git a/languages/php/phperrorview.h b/languages/php/phperrorview.h index 48dbd846..ec41eb51 100644 --- a/languages/php/phperrorview.h +++ b/languages/php/phperrorview.h @@ -56,8 +56,9 @@ enum Errors class PHPErrorView: public TQWidget { Q_OBJECT + TQ_OBJECT public: - PHPErrorView( PHPSupportPart* part, TQWidget* parent=0, const char* name=0 ); + PHPErrorView( PHPSupportPart* part, TQWidget* tqparent=0, const char* name=0 ); virtual ~PHPErrorView(); void removeAllProblems( const TQString& filename ); diff --git a/languages/php/phpfile.cpp b/languages/php/phpfile.cpp index d54028da..6e258569 100644 --- a/languages/php/phpfile.cpp +++ b/languages/php/phpfile.cpp @@ -138,7 +138,7 @@ void PHPFile::Analyse() { } bool PHPFile::ParseClass(TQString line, int lineNo) { - if (line.find("class ", 0, FALSE) == -1) + if (line.tqfind("class ", 0, FALSE) == -1) return FALSE; TQRegExp Class("^[ \t]*(abstract|final|)[ \t]*class[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*(extends[ \t]*([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))?.*$"); @@ -159,7 +159,7 @@ bool PHPFile::ParseClass(TQString line, int lineNo) { } bool PHPFile::ParseFunction(TQString line, int lineNo) { - if (line.find("function", 0, FALSE) == -1) + if (line.tqfind("function", 0, FALSE) == -1) return FALSE; TQRegExp function("^[ \t]*(final|abstract|static|)[ \t]*(public|private|protected|)[ \t]*(static|)[ \t]*function[ \t&]*([_a-zA-Z\x7f-\xff][_a-zA-Z0-9\x7f-\xff]*)[ \t]*\\(([_a-zA-Z\x7f-\xff]*[_$, &'\\\"0-9A-Za-z\x7f-\xff\t-=]*)\\).*$"); @@ -198,7 +198,7 @@ bool PHPFile::ParseFunction(TQString line, int lineNo) { } bool PHPFile::ParseVariable(TQString line, int lineNo) { - if (line.find("var") == -1 && line.find("public") == -1 && line.find("private") == -1 && line.find("protected") == -1) + if (line.tqfind("var") == -1 && line.tqfind("public") == -1 && line.tqfind("private") == -1 && line.tqfind("protected") == -1) return FALSE; TQRegExp variable("^[ \t]*(var|public|private|protected|static)[ \t]*\\$([a-zA-Z_\x7f-\xff][0-9A-Za-z_\x7f-\xff]*)[ \t;=].*$"); @@ -227,7 +227,7 @@ bool PHPFile::ParseVariable(TQString line, int lineNo) { } bool PHPFile::ParseThisMember(TQString line, int lineNo) { - if (line.find("$this->", 0, FALSE) == -1) + if (line.tqfind("$this->", 0, FALSE) == -1) return FALSE; TQRegExp createthis; @@ -240,7 +240,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) { return TRUE; } - if (line.find("true", 0, FALSE) != -1 || line.find("false", 0, FALSE) != -1) { + if (line.tqfind("true", 0, FALSE) != -1 || line.tqfind("false", 0, FALSE) != -1) { createthis.setPattern("\\$(this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t]*(true|false)[ \t]*;"); if (createthis.search(line) != -1) { if (AddVariable(createthis.cap(1), "boolean", lineNo, TRUE) == FALSE) @@ -249,7 +249,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) { } } - if (line.find("new", 0, FALSE) != -1) { + if (line.tqfind("new", 0, FALSE) != -1) { createthis.setPattern("\\$this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)"); if (createthis.search(line) != -1) { if (AddVariable(createthis.cap(1), createthis.cap(2), lineNo, TRUE) == FALSE) @@ -258,7 +258,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) { } } - if (line.find("array", 0, FALSE) != -1) { + if (line.tqfind("array", 0, FALSE) != -1) { createthis.setPattern("\\$this->([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*(new|)[ \t&]*(array)[ \t]*[\\(;]+"); if (createthis.search(line) != -1) { if (AddVariable(createthis.cap(1), "array", lineNo, TRUE) == FALSE) @@ -271,7 +271,7 @@ bool PHPFile::ParseThisMember(TQString line, int lineNo) { } bool PHPFile::ParseMember(TQString line, int lineNo) { - if (line.find("$", 0, FALSE) == -1) + if (line.tqfind("$", 0, FALSE) == -1) return FALSE; /// @todo Ajouter plus de test .... @@ -293,7 +293,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) { return TRUE; } - if (line.find("true", 0, FALSE) != -1 || line.find("false", 0, FALSE) != -1) { + if (line.tqfind("true", 0, FALSE) != -1 || line.tqfind("false", 0, FALSE) != -1) { createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t]*(true|false)[ \t]*;"); if (createmember.search(line) != -1) { if (AddVariable(createmember.cap(1), "boolean", lineNo) == FALSE) @@ -302,7 +302,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) { } } - if (line.find("new", 0, FALSE) != -1) { + if (line.tqfind("new", 0, FALSE) != -1) { createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*new[ \t]+([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)"); if (createmember.search(line) != -1) { if (AddVariable(createmember.cap(1), createmember.cap(2), lineNo) == FALSE) @@ -311,7 +311,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) { } } - if (line.find("array", 0, FALSE) != -1) { + if (line.tqfind("array", 0, FALSE) != -1) { createmember.setPattern("\\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)[ \t]*=[ \t&]*(new|)[ \t&]*(array)[ \t]*[\\(;]+"); if (createmember.search(line) != -1) { if (AddVariable(createmember.cap(1), "array", lineNo) == FALSE) @@ -326,7 +326,7 @@ bool PHPFile::ParseMember(TQString line, int lineNo) { bool PHPFile::ParseReturn(TQString line, int lineNo) { TQString rettype; - if (line.find("return", 0, FALSE) == -1) + if (line.tqfind("return", 0, FALSE) == -1) return FALSE; TQRegExp typeex; @@ -337,7 +337,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) { TQString varname = typeex.cap(2).ascii(); rettype = varname; - if (varname.find("$") == 0) { + if (varname.tqfind("$") == 0) { /// @todo search in variable /* varname = varname.mid(1); @@ -346,7 +346,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) { while ( it != m_vars.end() ) { Action *p = *it++; - if (p->parent() == current && p->name() == varname) { + if (p->tqparent() == current && p->name() == varname) { rettype = p->args(); } } @@ -357,7 +357,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) { rettype = "null"; } - if (rettype.find("$") == 0) + if (rettype.tqfind("$") == 0) kdDebug(9018) << "ParseReturn value" << " " << rettype.latin1() << endl; } @@ -366,7 +366,7 @@ bool PHPFile::ParseReturn(TQString line, int lineNo) { } bool PHPFile::ParseTodo(TQString line, int lineNo) { - if (line.find("todo", 0, FALSE) == -1) + if (line.tqfind("todo", 0, FALSE) == -1) return FALSE; TQRegExp todo("/[/]+[ \t]*[@]*todo([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$"); @@ -381,7 +381,7 @@ bool PHPFile::ParseTodo(TQString line, int lineNo) { } bool PHPFile::ParseFixme(TQString line, int lineNo) { - if (line.find("fixme", 0, FALSE) == -1) + if (line.tqfind("fixme", 0, FALSE) == -1) return FALSE; TQRegExp fixme("/[/]+[ \t]*[@]*fixme([ \t]*:[ \t]*|[ \t]*)[ \t]*(.*)$"); @@ -411,14 +411,14 @@ void PHPFile::ParseSource() { line = (*it).local8Bit(); if (!line.isNull()) { - if (line.find("include", 0, FALSE) != -1 || line.find("require", 0, FALSE) != -1) { + if (line.tqfind("include", 0, FALSE) != -1 || line.tqfind("require", 0, FALSE) != -1) { if (includere.search(line) != -1) { TQStringList include_path; include_path = include_path.split(":", m_part->getIncludePath()); include_path.append(URLUtil::directory(fileName()) + "/"); include_path.append(""); - TQStringList list = includere.capturedTexts(); + TQStringList list = includere.tqcapturedTexts(); for ( TQStringList::Iterator it = include_path.begin(); it != include_path.end(); ++it ) { TQString abso = URLUtil::canonicalPath(*it + "/" + list[3]); @@ -432,16 +432,16 @@ void PHPFile::ParseSource() { if ( inMethod == TRUE ) { - bracketFuncOpen += line.contains("{"); - bracketFuncClose += line.contains("}"); + bracketFuncOpen += line.tqcontains("{"); + bracketFuncClose += line.tqcontains("}"); if (bracketFuncOpen == bracketFuncClose && bracketFuncOpen != 0 && bracketFuncClose != 0) { CloseFunction( lineNo ); } } if ( inMethod == FALSE ) { - bracketOpen += line.contains("{"); - bracketClose += line.contains("}"); + bracketOpen += line.tqcontains("{"); + bracketClose += line.tqcontains("}"); if (bracketOpen == bracketClose && bracketOpen != 0 && bracketClose != 0 && inClass == TRUE) { CloseClass( lineNo ); } @@ -449,8 +449,8 @@ void PHPFile::ParseSource() { if ( inClass == FALSE ) { if (ParseClass(line, lineNo) == TRUE) { - bracketOpen = line.contains("{"); - bracketClose = line.contains("}"); + bracketOpen = line.tqcontains("{"); + bracketClose = line.tqcontains("}"); } } @@ -459,8 +459,8 @@ void PHPFile::ParseSource() { } if (ParseFunction(line, lineNo) == TRUE) { - bracketFuncOpen = line.contains("{"); - bracketFuncClose = line.contains("}"); + bracketFuncOpen = line.tqcontains("{"); + bracketFuncClose = line.tqcontains("}"); } if ( inMethod == TRUE ) diff --git a/languages/php/phpfile.h b/languages/php/phpfile.h index b8aad71b..d790ca66 100644 --- a/languages/php/phpfile.h +++ b/languages/php/phpfile.h @@ -47,6 +47,7 @@ */ class PHPFile : public TQObject { Q_OBJECT + TQ_OBJECT public: PHPFile(PHPSupportPart *phpSupport, const TQString& fileName); diff --git a/languages/php/phphtmlview.h b/languages/php/phphtmlview.h index e135cfa7..91d4a195 100644 --- a/languages/php/phphtmlview.h +++ b/languages/php/phphtmlview.h @@ -27,6 +27,7 @@ class PHPSupportPart; class PHPHTMLView : public KDevHTMLPart { Q_OBJECT + TQ_OBJECT public: PHPHTMLView(PHPSupportPart *part); ~PHPHTMLView(); diff --git a/languages/php/phpinfodlg.ui b/languages/php/phpinfodlg.ui index 77de8304..5d048211 100644 --- a/languages/php/phpinfodlg.ui +++ b/languages/php/phpinfodlg.ui @@ -1,6 +1,6 @@ PHPInfoDlg - + PHPInfoDlg @@ -19,12 +19,12 @@ unnamed - + php_edit - + ok_button @@ -45,7 +45,7 @@ Expanding - + 20 20 @@ -62,7 +62,7 @@ Expanding - + 20 20 @@ -82,6 +82,6 @@ kdialog.h - - + + diff --git a/languages/php/phpnewclassdlg.cpp b/languages/php/phpnewclassdlg.cpp index 282e6c01..9227e8ff 100644 --- a/languages/php/phpnewclassdlg.cpp +++ b/languages/php/phpnewclassdlg.cpp @@ -30,7 +30,7 @@ using namespace std; -PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent, const char *name) : PHPNewClassDlgBase(parent,name,true) { +PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *tqparent, const char *name) : PHPNewClassDlgBase(tqparent,name,true) { m_filenameModified = false; KCompletion *comp = new KCompletion(); comp->setItems(baseClassNames); @@ -104,14 +104,14 @@ void PHPNewClassDlg::accept(){ // generate the sourcecode for the class if(m_baseClassEdit->text().isEmpty()){ - text = text.replace(TQRegExp("extends BASECLASS"),""); - text = text.replace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),""); + text = text.tqreplace(TQRegExp("extends BASECLASS"),""); + text = text.tqreplace(TQRegExp("BASECLASS\\:\\:BASECLASS\\(\\);"),""); }else{ - text = text.replace(TQRegExp("BASECLASS"),m_baseClassEdit->text()); + text = text.tqreplace(TQRegExp("BASECLASS"),m_baseClassEdit->text()); } - text = text.replace(TQRegExp("CLASSNAME"),m_classNameEdit->text()); - text = text.replace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper()); - text = text.replace(TQRegExp("AUTHOR"),"not implemented"); + text = text.tqreplace(TQRegExp("CLASSNAME"),m_classNameEdit->text()); + text = text.tqreplace(TQRegExp("FILENAME"),m_fileNameEdit->text().upper()); + text = text.tqreplace(TQRegExp("AUTHOR"),"not implemented"); file.setName(absFileName); if(file.open(IO_WriteOnly)){ diff --git a/languages/php/phpnewclassdlg.h b/languages/php/phpnewclassdlg.h index 14db74b2..a5bbcb55 100644 --- a/languages/php/phpnewclassdlg.h +++ b/languages/php/phpnewclassdlg.h @@ -27,8 +27,9 @@ class PHPNewClassDlg : public PHPNewClassDlgBase { Q_OBJECT + TQ_OBJECT public: - PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *parent=0, const char *name=0); + PHPNewClassDlg(const TQStringList& baseClassNames,const TQString& directory,TQWidget *tqparent=0, const char *name=0); ~PHPNewClassDlg(); protected slots: void classNameTextChanged(const TQString&); diff --git a/languages/php/phpnewclassdlgbase.ui b/languages/php/phpnewclassdlgbase.ui index 5b4df7c1..5084fb51 100644 --- a/languages/php/phpnewclassdlgbase.ui +++ b/languages/php/phpnewclassdlgbase.ui @@ -1,6 +1,6 @@ PHPNewClassDlgBase - + m_ClassDLG @@ -19,7 +19,7 @@ unnamed - + TextLabel1 @@ -40,14 +40,14 @@ Expanding - + 20 20 - + m_okButton @@ -58,7 +58,7 @@ true - + m_cancelButton @@ -76,7 +76,7 @@ m_classNameEdit - + TextLabel2 @@ -87,7 +87,7 @@ m_baseClassEdit - + TextLabel4 @@ -98,7 +98,7 @@ m_classTemplate - + TextLabel1_2 @@ -109,7 +109,7 @@ m_dirEdit - + TextLabel3 @@ -120,7 +120,7 @@ m_fileNameEdit - + m_dirButton @@ -141,7 +141,7 @@ m_dirEdit - + m_classTemplate @@ -193,8 +193,8 @@ class CLASSNAME extends BASECLASS { klineedit.h kdialog.h - - + + klineedit.h diff --git a/languages/php/phpparser.cpp b/languages/php/phpparser.cpp index a0f1179e..a4b5185e 100644 --- a/languages/php/phpparser.cpp +++ b/languages/php/phpparser.cpp @@ -50,7 +50,7 @@ bool PHPParser::hasFile( const TQString& fileName ) { // kdDebug(9018) << "hasFile " << fileName.latin1() << endl; TQString abso = URLUtil::canonicalPath(fileName); - TQMap::Iterator it = m_files.find(abso); + TQMap::Iterator it = m_files.tqfind(abso); if ( it == m_files.end() ) return false; @@ -67,7 +67,7 @@ void PHPParser::addFile( const TQString& fileName ) kdDebug(9018) << "addFile " << fileName.latin1() << endl; TQFileInfo fi( abso ); - if ((fi.extension().contains("inc") || fi.extension().contains("php") || fi.extension().contains("html") || fi.extension().contains("php3") || !fi.extension()) && !fi.extension().contains("~")) { + if ((fi.extension().tqcontains("inc") || fi.extension().tqcontains("php") || fi.extension().tqcontains("html") || fi.extension().tqcontains("php3") || !fi.extension()) && !fi.extension().tqcontains("~")) { m_files.insert(abso, new PHPFile(m_part, abso)); } } @@ -76,7 +76,7 @@ void PHPParser::removeFile( const TQString& fileName ) { // kdDebug(9018) << "removeFile " << fileName.latin1() << endl; TQString abso = URLUtil::canonicalPath(fileName); - TQMap::Iterator it = m_files.find(abso); + TQMap::Iterator it = m_files.tqfind(abso); if ( it != m_files.end()) { PHPFile *file = it.data(); @@ -104,7 +104,7 @@ void PHPParser::reparseFile( const TQString& fileName ) { kdDebug(9018) << "reparseFile" << endl; TQString abso = URLUtil::canonicalPath(fileName); - TQMap::Iterator it = m_files.find(abso); + TQMap::Iterator it = m_files.tqfind(abso); if ( it != m_files.end()) { PHPFile *file = it.data(); diff --git a/languages/php/phpparser.h b/languages/php/phpparser.h index 24687ea3..87093b06 100644 --- a/languages/php/phpparser.h +++ b/languages/php/phpparser.h @@ -21,11 +21,7 @@ #include -#if QT_VERSION < 0x030100 -#include -#else #include -#endif #include diff --git a/languages/php/phpsupport_event.h b/languages/php/phpsupport_event.h index 09c5f49e..28713efb 100644 --- a/languages/php/phpsupport_event.h +++ b/languages/php/phpsupport_event.h @@ -23,11 +23,7 @@ #include #include -#if QT_VERSION < 0x030100 -#include -#else #include -#endif enum { @@ -46,7 +42,7 @@ enum Event_AddFixme }; -class FileParseEvent: public QCustomEvent +class FileParseEvent: public TQCustomEvent { public: FileParseEvent(long event, const TQString& fileName ) diff --git a/languages/php/phpsupportpart.cpp b/languages/php/phpsupportpart.cpp index d31bc933..3dbf4211 100644 --- a/languages/php/phpsupportpart.cpp +++ b/languages/php/phpsupportpart.cpp @@ -69,8 +69,8 @@ using namespace std; static const KDevPluginInfo data("kdevphpsupport"); K_EXPORT_COMPONENT_FACTORY( libkdevphpsupport, PHPSupportFactory( data ) ) -PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStringList &) - : KDevLanguageSupport(&data, parent, name ? name : "PHPSupportPart") +PHPSupportPart::PHPSupportPart(TQObject *tqparent, const char *name, const TQStringList &) + : KDevLanguageSupport(&data, tqparent, name ? name : "PHPSupportPart") { m_htmlView = 0; m_parser = 0; @@ -354,7 +354,7 @@ void PHPSupportPart::slotReceivedPHPExeStdout (KProcess* /*proc*/, char* buffer, TQString buf = buffer; if (configData->getInvocationMode() == PHPConfigData::Shell) - buf.replace("\n", "
"); + buf.tqreplace("\n", "
"); m_htmlView->write(buf); } @@ -364,7 +364,7 @@ void PHPSupportPart::slotReceivedPHPExeStderr (KProcess* /*proc*/, char* buffer, TQString buf = buffer; if (configData->getInvocationMode() == PHPConfigData::Shell) - buf.replace("\n", "
"); + buf.tqreplace("\n", "
"); m_htmlView->write(buf); } diff --git a/languages/php/phpsupportpart.h b/languages/php/phpsupportpart.h index 9d294642..f2b0d79c 100644 --- a/languages/php/phpsupportpart.h +++ b/languages/php/phpsupportpart.h @@ -44,9 +44,10 @@ class PHPFile; class PHPSupportPart : public KDevLanguageSupport { Q_OBJECT + TQ_OBJECT public: - PHPSupportPart( TQObject *parent, const char *name, const TQStringList & ); + PHPSupportPart( TQObject *tqparent, const char *name, const TQStringList & ); ~PHPSupportPart(); PHPErrorView *ErrorView(); @@ -111,7 +112,7 @@ private: TQGuardedPtr progressBar; TQStringList::Iterator it; TQStringList files; - TQMap< TQString, QPair > pcs; + TQMap< TQString, TQPair > pcs; TQDataStream stream; TQFile file; -- cgit v1.2.1