summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/antlr/README2
-rw-r--r--lib/antlr/TODO2
-rw-r--r--lib/antlr/antlr/ANTLRException.h (renamed from lib/antlr/antlr/ANTLRException.hpp)8
-rw-r--r--lib/antlr/antlr/ANTLRUtil.h (renamed from lib/antlr/antlr/ANTLRUtil.hpp)6
-rw-r--r--lib/antlr/antlr/AST.h (renamed from lib/antlr/antlr/AST.hpp)12
-rw-r--r--lib/antlr/antlr/ASTArray.h (renamed from lib/antlr/antlr/ASTArray.hpp)10
-rw-r--r--lib/antlr/antlr/ASTFactory.h (renamed from lib/antlr/antlr/ASTFactory.hpp)14
-rw-r--r--lib/antlr/antlr/ASTNULLType.h (renamed from lib/antlr/antlr/ASTNULLType.hpp)10
-rw-r--r--lib/antlr/antlr/ASTPair.h (renamed from lib/antlr/antlr/ASTPair.hpp)10
-rw-r--r--lib/antlr/antlr/ASTRefCount.h (renamed from lib/antlr/antlr/ASTRefCount.hpp)8
-rw-r--r--lib/antlr/antlr/BaseAST.h (renamed from lib/antlr/antlr/BaseAST.hpp)10
-rw-r--r--lib/antlr/antlr/BitSet.h (renamed from lib/antlr/antlr/BitSet.hpp)8
-rw-r--r--lib/antlr/antlr/CharBuffer.h (renamed from lib/antlr/antlr/CharBuffer.hpp)10
-rw-r--r--lib/antlr/antlr/CharInputBuffer.h (renamed from lib/antlr/antlr/CharInputBuffer.hpp)12
-rw-r--r--lib/antlr/antlr/CharScanner.h (renamed from lib/antlr/antlr/CharScanner.hpp)25
-rw-r--r--lib/antlr/antlr/CharStreamException.h (renamed from lib/antlr/antlr/CharStreamException.hpp)10
-rw-r--r--lib/antlr/antlr/CharStreamIOException.h (renamed from lib/antlr/antlr/CharStreamIOException.hpp)10
-rw-r--r--lib/antlr/antlr/CircularQueue.h (renamed from lib/antlr/antlr/CircularQueue.hpp)10
-rw-r--r--lib/antlr/antlr/CommonAST.h (renamed from lib/antlr/antlr/CommonAST.hpp)10
-rw-r--r--lib/antlr/antlr/CommonASTWithHiddenTokens.h (renamed from lib/antlr/antlr/CommonASTWithHiddenTokens.hpp)10
-rw-r--r--lib/antlr/antlr/CommonHiddenStreamToken.h (renamed from lib/antlr/antlr/CommonHiddenStreamToken.hpp)10
-rw-r--r--lib/antlr/antlr/CommonToken.h (renamed from lib/antlr/antlr/CommonToken.hpp)10
-rw-r--r--lib/antlr/antlr/IOException.h (renamed from lib/antlr/antlr/IOException.hpp)10
-rw-r--r--lib/antlr/antlr/InputBuffer.h (renamed from lib/antlr/antlr/InputBuffer.hpp)10
-rw-r--r--lib/antlr/antlr/LLkParser.h (renamed from lib/antlr/antlr/LLkParser.hpp)10
-rw-r--r--lib/antlr/antlr/LexerSharedInputState.h (renamed from lib/antlr/antlr/LexerSharedInputState.hpp)14
-rw-r--r--lib/antlr/antlr/Makefile.am2
-rw-r--r--lib/antlr/antlr/MismatchedCharException.h (renamed from lib/antlr/antlr/MismatchedCharException.hpp)12
-rw-r--r--lib/antlr/antlr/MismatchedTokenException.h (renamed from lib/antlr/antlr/MismatchedTokenException.hpp)16
-rw-r--r--lib/antlr/antlr/NoViableAltException.h (renamed from lib/antlr/antlr/NoViableAltException.hpp)14
-rw-r--r--lib/antlr/antlr/NoViableAltForCharException.h (renamed from lib/antlr/antlr/NoViableAltForCharException.hpp)12
-rw-r--r--lib/antlr/antlr/Parser.h (renamed from lib/antlr/antlr/Parser.hpp)20
-rw-r--r--lib/antlr/antlr/ParserSharedInputState.h (renamed from lib/antlr/antlr/ParserSharedInputState.hpp)12
-rw-r--r--lib/antlr/antlr/RecognitionException.h (renamed from lib/antlr/antlr/RecognitionException.hpp)10
-rw-r--r--lib/antlr/antlr/RefCount.h (renamed from lib/antlr/antlr/RefCount.hpp)8
-rw-r--r--lib/antlr/antlr/SemanticException.h (renamed from lib/antlr/antlr/SemanticException.hpp)10
-rw-r--r--lib/antlr/antlr/String.h (renamed from lib/antlr/antlr/String.hpp)8
-rw-r--r--lib/antlr/antlr/Token.h (renamed from lib/antlr/antlr/Token.hpp)10
-rw-r--r--lib/antlr/antlr/TokenBuffer.h (renamed from lib/antlr/antlr/TokenBuffer.hpp)12
-rw-r--r--lib/antlr/antlr/TokenRefCount.h (renamed from lib/antlr/antlr/TokenRefCount.hpp)8
-rw-r--r--lib/antlr/antlr/TokenStream.h (renamed from lib/antlr/antlr/TokenStream.hpp)10
-rw-r--r--lib/antlr/antlr/TokenStreamBasicFilter.h (renamed from lib/antlr/antlr/TokenStreamBasicFilter.hpp)12
-rw-r--r--lib/antlr/antlr/TokenStreamException.h (renamed from lib/antlr/antlr/TokenStreamException.hpp)10
-rw-r--r--lib/antlr/antlr/TokenStreamHiddenTokenFilter.h (renamed from lib/antlr/antlr/TokenStreamHiddenTokenFilter.hpp)10
-rw-r--r--lib/antlr/antlr/TokenStreamIOException.h (renamed from lib/antlr/antlr/TokenStreamIOException.hpp)10
-rw-r--r--lib/antlr/antlr/TokenStreamRecognitionException.h (renamed from lib/antlr/antlr/TokenStreamRecognitionException.hpp)10
-rw-r--r--lib/antlr/antlr/TokenStreamRetryException.h (renamed from lib/antlr/antlr/TokenStreamRetryException.hpp)10
-rw-r--r--lib/antlr/antlr/TokenStreamRewriteEngine.h (renamed from lib/antlr/antlr/TokenStreamRewriteEngine.hpp)12
-rw-r--r--lib/antlr/antlr/TokenStreamSelector.h (renamed from lib/antlr/antlr/TokenStreamSelector.hpp)10
-rw-r--r--lib/antlr/antlr/TokenWithIndex.h (renamed from lib/antlr/antlr/TokenWithIndex.hpp)12
-rw-r--r--lib/antlr/antlr/TreeParser.h (renamed from lib/antlr/antlr/TreeParser.hpp)20
-rw-r--r--lib/antlr/antlr/TreeParserSharedInputState.h (renamed from lib/antlr/antlr/TreeParserSharedInputState.hpp)10
-rw-r--r--lib/antlr/antlr/config.h (renamed from lib/antlr/antlr/config.hpp)6
-rw-r--r--lib/antlr/src/ANTLRUtil.cpp4
-rw-r--r--lib/antlr/src/ASTFactory.cpp10
-rw-r--r--lib/antlr/src/ASTNULLType.cpp6
-rw-r--r--lib/antlr/src/ASTRefCount.cpp4
-rw-r--r--lib/antlr/src/BaseAST.cpp6
-rw-r--r--lib/antlr/src/BitSet.cpp2
-rw-r--r--lib/antlr/src/CharBuffer.cpp2
-rw-r--r--lib/antlr/src/CharScanner.cpp4
-rw-r--r--lib/antlr/src/CommonAST.cpp6
-rw-r--r--lib/antlr/src/CommonASTWithHiddenTokens.cpp12
-rw-r--r--lib/antlr/src/CommonHiddenStreamToken.cpp2
-rw-r--r--lib/antlr/src/CommonToken.cpp4
-rw-r--r--lib/antlr/src/InputBuffer.cpp4
-rw-r--r--lib/antlr/src/LLkParser.cpp2
-rw-r--r--lib/antlr/src/MismatchedCharException.cpp6
-rw-r--r--lib/antlr/src/MismatchedTokenException.cpp4
-rw-r--r--lib/antlr/src/NoViableAltException.cpp4
-rw-r--r--lib/antlr/src/NoViableAltForCharException.cpp4
-rw-r--r--lib/antlr/src/Parser.cpp2
-rw-r--r--lib/antlr/src/RecognitionException.cpp4
-rw-r--r--lib/antlr/src/String.cpp2
-rw-r--r--lib/antlr/src/Token.cpp4
-rw-r--r--lib/antlr/src/TokenBuffer.cpp2
-rw-r--r--lib/antlr/src/TokenRefCount.cpp4
-rw-r--r--lib/antlr/src/TokenStreamBasicFilter.cpp2
-rw-r--r--lib/antlr/src/TokenStreamHiddenTokenFilter.cpp4
-rw-r--r--lib/antlr/src/TokenStreamRewriteEngine.cpp10
-rw-r--r--lib/antlr/src/TokenStreamSelector.cpp4
-rw-r--r--lib/antlr/src/TreeParser.cpp4
-rw-r--r--lib/cppparser/ast.cpp406
-rw-r--r--lib/cppparser/ast.h109
-rw-r--r--lib/cppparser/driver.cpp7
-rw-r--r--lib/cppparser/errors.cpp6
-rw-r--r--lib/cppparser/errors.h6
-rw-r--r--lib/cppparser/keywords.h2
-rw-r--r--lib/cppparser/lexer.cpp2
-rw-r--r--lib/cppparser/lexer.h4
-rw-r--r--lib/cppparser/parser.cpp155
-rw-r--r--lib/cppparser/parser.h2
-rw-r--r--lib/interfaces/KDevCoreIface.cpp4
-rw-r--r--lib/interfaces/KDevCoreIface.h2
-rw-r--r--lib/interfaces/KDevPartControllerIface.cpp6
-rw-r--r--lib/interfaces/KDevPartControllerIface.h2
-rw-r--r--lib/interfaces/extensions/Mainpage.dox2
-rw-r--r--lib/interfaces/extensions/codebrowserfrontend.h2
-rw-r--r--lib/interfaces/extensions/kdevappfrontend.h2
-rw-r--r--lib/interfaces/extensions/kdevmakefrontend.h2
-rw-r--r--lib/interfaces/extensions/kdevversioncontrol.h4
-rw-r--r--lib/interfaces/external/Mainpage.dox16
-rw-r--r--lib/interfaces/external/designer.h2
-rw-r--r--lib/interfaces/extras/kdevcompileroptions.h2
-rw-r--r--lib/interfaces/extras/kdevvcsintegrator.h2
-rw-r--r--lib/interfaces/katedocumentmanagerinterface.h2
-rw-r--r--lib/interfaces/kdevapi.h2
-rw-r--r--lib/interfaces/kdevcoderepository.h2
-rw-r--r--lib/interfaces/kdevcore.h8
-rw-r--r--lib/interfaces/kdevdesignerintegration.h2
-rw-r--r--lib/interfaces/kdevgenericfactory.h8
-rw-r--r--lib/interfaces/kdevlanguagesupport.cpp4
-rw-r--r--lib/interfaces/kdevlanguagesupport.h8
-rw-r--r--lib/interfaces/kdevpartcontroller.h2
-rw-r--r--lib/interfaces/kdevplugin.h2
-rw-r--r--lib/interfaces/kdevplugincontroller.cpp13
-rw-r--r--lib/interfaces/kdevplugincontroller.h2
-rw-r--r--lib/interfaces/kdevproject.cpp10
-rw-r--r--lib/interfaces/kdevproject.h2
-rw-r--r--lib/interfaces/kdevprojectiface.h2
-rw-r--r--lib/util/blockingkprocess.cpp28
-rw-r--r--lib/util/blockingkprocess.h2
-rw-r--r--lib/util/configwidgetproxy.cpp20
-rw-r--r--lib/util/configwidgetproxy.h12
-rw-r--r--lib/util/domutil.h2
-rw-r--r--lib/util/execcommand.cpp16
-rw-r--r--lib/util/execcommand.h2
-rw-r--r--lib/util/kdeveditorutil.cpp4
-rw-r--r--lib/util/kdeveditorutil.h3
-rw-r--r--lib/util/kdevjobtimer.cpp4
-rw-r--r--lib/util/kdevjobtimer.h2
-rw-r--r--lib/util/kdevshellwidget.cpp16
-rw-r--r--lib/util/kdevshellwidget.h4
-rw-r--r--lib/util/tdescriptactionmanager.cpp26
-rw-r--r--lib/util/tdescriptactionmanager.h4
-rw-r--r--lib/widgets/flagboxes.cpp4
-rw-r--r--lib/widgets/flagboxes.h10
-rw-r--r--lib/widgets/kcomboview.h2
-rw-r--r--lib/widgets/kdevhtmlpart.cpp48
-rw-r--r--lib/widgets/kdevhtmlpart.h2
-rw-r--r--lib/widgets/kdevtabwidget.cpp10
-rw-r--r--lib/widgets/ksavealldialog.cpp12
-rw-r--r--lib/widgets/ksavealldialog.h4
-rw-r--r--lib/widgets/processlinemaker.cpp8
-rw-r--r--lib/widgets/processlinemaker.h4
-rw-r--r--lib/widgets/processwidget.cpp24
-rw-r--r--lib/widgets/processwidget.h2
-rw-r--r--lib/widgets/propeditor/Mainpage.dox4
-rw-r--r--lib/widgets/propeditor/pcheckbox.cpp6
-rw-r--r--lib/widgets/propeditor/pcheckbox.h2
-rw-r--r--lib/widgets/propeditor/pcolorbutton.cpp8
-rw-r--r--lib/widgets/propeditor/pcolorbutton.h2
-rw-r--r--lib/widgets/propeditor/pcolorcombo.cpp6
-rw-r--r--lib/widgets/propeditor/pcolorcombo.h2
-rw-r--r--lib/widgets/propeditor/pcombobox.cpp6
-rw-r--r--lib/widgets/propeditor/pcombobox.h2
-rw-r--r--lib/widgets/propeditor/pcursoredit.h2
-rw-r--r--lib/widgets/propeditor/pdateedit.cpp8
-rw-r--r--lib/widgets/propeditor/pdateedit.h2
-rw-r--r--lib/widgets/propeditor/pdatetimeedit.cpp8
-rw-r--r--lib/widgets/propeditor/pdatetimeedit.h2
-rw-r--r--lib/widgets/propeditor/pdoublenuminput.cpp12
-rw-r--r--lib/widgets/propeditor/pdoublenuminput.h2
-rw-r--r--lib/widgets/propeditor/pdummywidget.h2
-rw-r--r--lib/widgets/propeditor/pfontbutton.cpp6
-rw-r--r--lib/widgets/propeditor/pfontbutton.h2
-rw-r--r--lib/widgets/propeditor/pfontcombo.cpp8
-rw-r--r--lib/widgets/propeditor/pfontcombo.h2
-rw-r--r--lib/widgets/propeditor/plineedit.cpp6
-rw-r--r--lib/widgets/propeditor/plineedit.h2
-rw-r--r--lib/widgets/propeditor/plinestyleedit.cpp6
-rw-r--r--lib/widgets/propeditor/plinestyleedit.h2
-rw-r--r--lib/widgets/propeditor/ppixmapedit.cpp6
-rw-r--r--lib/widgets/propeditor/ppixmapedit.h2
-rw-r--r--lib/widgets/propeditor/ppointedit.h2
-rw-r--r--lib/widgets/propeditor/prectedit.h2
-rw-r--r--lib/widgets/propeditor/propertyeditor.cpp18
-rw-r--r--lib/widgets/propeditor/propertyeditor.h2
-rw-r--r--lib/widgets/propeditor/propertylist.cpp4
-rw-r--r--lib/widgets/propeditor/propertylist.h4
-rw-r--r--lib/widgets/propeditor/propertywidget.h2
-rw-r--r--lib/widgets/propeditor/propertywidgetproxy.h2
-rw-r--r--lib/widgets/propeditor/psizeedit.h2
-rw-r--r--lib/widgets/propeditor/psizepolicyedit.h2
-rw-r--r--lib/widgets/propeditor/pspinbox.cpp8
-rw-r--r--lib/widgets/propeditor/pspinbox.h2
-rw-r--r--lib/widgets/propeditor/pstringlistedit.cpp6
-rw-r--r--lib/widgets/propeditor/pstringlistedit.h2
-rw-r--r--lib/widgets/propeditor/psymbolcombo.cpp12
-rw-r--r--lib/widgets/propeditor/psymbolcombo.h2
-rw-r--r--lib/widgets/propeditor/purledit.cpp8
-rw-r--r--lib/widgets/propeditor/purledit.h2
-rw-r--r--lib/widgets/propeditor/pyesnobutton.cpp6
-rw-r--r--lib/widgets/propeditor/pyesnobutton.h2
-rw-r--r--lib/widgets/propeditor/qeditlistbox.cpp14
-rw-r--r--lib/widgets/propeditor/qeditlistbox.h2
-rw-r--r--lib/widgets/qcomboview.cpp74
-rw-r--r--lib/widgets/qcomboview.h2
-rw-r--r--lib/widgets/resizablecombo.cpp2
-rw-r--r--lib/widgets/resizablecombo.h2
200 files changed, 1034 insertions, 1046 deletions
diff --git a/lib/antlr/README b/lib/antlr/README
index 6ca0913b..1f6d902d 100644
--- a/lib/antlr/README
+++ b/lib/antlr/README
@@ -64,7 +64,7 @@ and compile with an option to define away the word 'std', such as
CC .... -Dstd= ....
-Also in the antlr subdirectory there's a file config.hpp. Tweak this one to
+Also in the antlr subdirectory there's a file config.h. Tweak this one to
enable/disable the different bells and whistles used in the rest of the code.
Don't forget to submit those changes back to us (along with compiler info)
so we can incorporate them in our next release!
diff --git a/lib/antlr/TODO b/lib/antlr/TODO
index 51d104c3..0b97e6e5 100644
--- a/lib/antlr/TODO
+++ b/lib/antlr/TODO
@@ -10,7 +10,7 @@
* On Thu, Sep 21, 2000 at 12:33:48AM -0700, John Lambert <JohnL@jBASE.com> wrote:
> 1) The literal EOF is not defined and causes the define of EOF_CHAR in
- > CharScanner.hpp to fail.
+ > CharScanner.h to fail.
ANTLR with STL Port. Changing the EOF define to char_traits<char>::eof()
breaks things for gcc-2.95.2. Fix this in next release portably.
diff --git a/lib/antlr/antlr/ANTLRException.hpp b/lib/antlr/antlr/ANTLRException.h
index 426595a2..b67f5771 100644
--- a/lib/antlr/antlr/ANTLRException.hpp
+++ b/lib/antlr/antlr/ANTLRException.h
@@ -1,5 +1,5 @@
-#ifndef INC_ANTLRException_hpp__
-#define INC_ANTLRException_hpp__
+#ifndef INC_ANTLRException_h__
+#define INC_ANTLRException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,7 +8,7 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -56,4 +56,4 @@ private:
}
#endif
-#endif //INC_ANTLRException_hpp__
+#endif //INC_ANTLRException_h__
diff --git a/lib/antlr/antlr/ANTLRUtil.hpp b/lib/antlr/antlr/ANTLRUtil.h
index 4732588c..33f37792 100644
--- a/lib/antlr/antlr/ANTLRUtil.hpp
+++ b/lib/antlr/antlr/ANTLRUtil.h
@@ -1,5 +1,5 @@
-#ifndef INC_ANTLRUtil_hpp__
-#define INC_ANTLRUtil_hpp__
+#ifndef INC_ANTLRUtil_h__
+#define INC_ANTLRUtil_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,7 +8,7 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <iostream>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
diff --git a/lib/antlr/antlr/AST.hpp b/lib/antlr/antlr/AST.h
index b01a60a9..49d11b76 100644
--- a/lib/antlr/antlr/AST.hpp
+++ b/lib/antlr/antlr/AST.h
@@ -1,5 +1,5 @@
-#ifndef INC_AST_hpp__
-#define INC_AST_hpp__
+#ifndef INC_AST_h__
+#define INC_AST_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/ASTRefCount.hpp>
-#include <antlr/Token.hpp>
+#include <antlr/config.h>
+#include <antlr/ASTRefCount.h>
+#include <antlr/Token.h>
#include <vector>
#include <string>
@@ -163,4 +163,4 @@ inline bool operator<( RefAST l, RefAST r )
}
#endif
-#endif //INC_AST_hpp__
+#endif //INC_AST_h__
diff --git a/lib/antlr/antlr/ASTArray.hpp b/lib/antlr/antlr/ASTArray.h
index 2d224d32..134fc1fb 100644
--- a/lib/antlr/antlr/ASTArray.hpp
+++ b/lib/antlr/antlr/ASTArray.h
@@ -1,5 +1,5 @@
-#ifndef INC_ASTArray_hpp__
-#define INC_ASTArray_hpp__
+#ifndef INC_ASTArray_h__
+#define INC_ASTArray_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/AST.hpp>
+#include <antlr/config.h>
+#include <antlr/AST.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -42,4 +42,4 @@ public:
}
#endif
-#endif //INC_ASTArray_hpp__
+#endif //INC_ASTArray_h__
diff --git a/lib/antlr/antlr/ASTFactory.hpp b/lib/antlr/antlr/ASTFactory.h
index 968ab6c5..04d626d9 100644
--- a/lib/antlr/antlr/ASTFactory.hpp
+++ b/lib/antlr/antlr/ASTFactory.h
@@ -1,5 +1,5 @@
-#ifndef INC_ASTFactory_hpp__
-#define INC_ASTFactory_hpp__
+#ifndef INC_ASTFactory_h__
+#define INC_ASTFactory_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,10 +8,10 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/AST.hpp>
-#include <antlr/ASTArray.hpp>
-#include <antlr/ASTPair.hpp>
+#include <antlr/config.h>
+#include <antlr/AST.h>
+#include <antlr/ASTArray.h>
+#include <antlr/ASTPair.h>
#include <istream>
#include <utility>
@@ -162,4 +162,4 @@ private:
}
#endif
-#endif //INC_ASTFactory_hpp__
+#endif //INC_ASTFactory_h__
diff --git a/lib/antlr/antlr/ASTNULLType.hpp b/lib/antlr/antlr/ASTNULLType.h
index 867f5e5b..70d34cca 100644
--- a/lib/antlr/antlr/ASTNULLType.hpp
+++ b/lib/antlr/antlr/ASTNULLType.h
@@ -1,5 +1,5 @@
-#ifndef INC_ASTNULLType_hpp__
-#define INC_ASTNULLType_hpp__
+#ifndef INC_ASTNULLType_h__
+#define INC_ASTNULLType_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/AST.hpp>
+#include <antlr/config.h>
+#include <antlr/AST.h>
#include <iostream>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -61,4 +61,4 @@ public:
}
#endif
-#endif //INC_ASTNULLType_hpp__
+#endif //INC_ASTNULLType_h__
diff --git a/lib/antlr/antlr/ASTPair.hpp b/lib/antlr/antlr/ASTPair.h
index d6237902..a3f52959 100644
--- a/lib/antlr/antlr/ASTPair.hpp
+++ b/lib/antlr/antlr/ASTPair.h
@@ -1,5 +1,5 @@
-#ifndef INC_ASTPair_hpp__
-#define INC_ASTPair_hpp__
+#ifndef INC_ASTPair_h__
+#define INC_ASTPair_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/AST.hpp>
+#include <antlr/config.h>
+#include <antlr/AST.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -54,4 +54,4 @@ public:
}
#endif
-#endif //INC_ASTPair_hpp__
+#endif //INC_ASTPair_h__
diff --git a/lib/antlr/antlr/ASTRefCount.hpp b/lib/antlr/antlr/ASTRefCount.h
index f5ef4422..889ecc9d 100644
--- a/lib/antlr/antlr/ASTRefCount.hpp
+++ b/lib/antlr/antlr/ASTRefCount.h
@@ -1,5 +1,5 @@
-#ifndef INC_ASTRefCount_hpp__
-# define INC_ASTRefCount_hpp__
+#ifndef INC_ASTRefCount_h__
+# define INC_ASTRefCount_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,7 +8,7 @@
* $Id$
*/
-# include <antlr/config.hpp>
+# include <antlr/config.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -95,4 +95,4 @@ typedef ASTRefCount<AST> RefAST;
}
#endif
-#endif //INC_ASTRefCount_hpp__
+#endif //INC_ASTRefCount_h__
diff --git a/lib/antlr/antlr/BaseAST.hpp b/lib/antlr/antlr/BaseAST.h
index 1bfc4e56..bb797f24 100644
--- a/lib/antlr/antlr/BaseAST.hpp
+++ b/lib/antlr/antlr/BaseAST.h
@@ -1,5 +1,5 @@
-#ifndef INC_BaseAST_hpp__
-#define INC_BaseAST_hpp__
+#ifndef INC_BaseAST_h__
+#define INC_BaseAST_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/AST.hpp>
+#include <antlr/config.h>
+#include <antlr/AST.h>
#include <iostream>
@@ -190,4 +190,4 @@ inline bool BaseAST::equals(RefAST t) const
}
#endif
-#endif //INC_BaseAST_hpp__
+#endif //INC_BaseAST_h__
diff --git a/lib/antlr/antlr/BitSet.hpp b/lib/antlr/antlr/BitSet.h
index f7619232..696a91a0 100644
--- a/lib/antlr/antlr/BitSet.hpp
+++ b/lib/antlr/antlr/BitSet.h
@@ -1,5 +1,5 @@
-#ifndef INC_BitSet_hpp__
-#define INC_BitSet_hpp__
+#ifndef INC_BitSet_h__
+#define INC_BitSet_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,7 +8,7 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <vector>
#include <stdexcept>
@@ -57,4 +57,4 @@ public:
}
#endif
-#endif //INC_BitSet_hpp__
+#endif //INC_BitSet_h__
diff --git a/lib/antlr/antlr/CharBuffer.hpp b/lib/antlr/antlr/CharBuffer.h
index fe2b1bc5..647fe466 100644
--- a/lib/antlr/antlr/CharBuffer.hpp
+++ b/lib/antlr/antlr/CharBuffer.h
@@ -1,5 +1,5 @@
-#ifndef INC_CharBuffer_hpp__
-#define INC_CharBuffer_hpp__
+#ifndef INC_CharBuffer_h__
+#define INC_CharBuffer_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,11 +8,11 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <istream>
-#include <antlr/InputBuffer.hpp>
+#include <antlr/InputBuffer.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -53,4 +53,4 @@ private:
}
#endif
-#endif //INC_CharBuffer_hpp__
+#endif //INC_CharBuffer_h__
diff --git a/lib/antlr/antlr/CharInputBuffer.hpp b/lib/antlr/antlr/CharInputBuffer.h
index 543972a3..8d4b3369 100644
--- a/lib/antlr/antlr/CharInputBuffer.hpp
+++ b/lib/antlr/antlr/CharInputBuffer.h
@@ -1,5 +1,5 @@
-#ifndef INC_CharInputBuffer_hpp__
-# define INC_CharInputBuffer_hpp__
+#ifndef INC_CharInputBuffer_h__
+# define INC_CharInputBuffer_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-# include <antlr/config.hpp>
-# include <antlr/InputBuffer.hpp>
+# include <antlr/config.h>
+# include <antlr/InputBuffer.h>
# ifdef HAS_NOT_CCTYPE_H
# include <ctype.h>
@@ -21,12 +21,12 @@
namespace antlr {
#endif
-/** CharInputBuffer.hpp provides an InputBuffer for plain character arrays (buffers).
+/** CharInputBuffer.h provides an InputBuffer for plain character arrays (buffers).
*/
class CharInputBuffer : public InputBuffer
{
public:
- /** Construct a CharInputBuffer.hpp object with a char* buffer of 'size'
+ /** Construct a CharInputBuffer.h object with a char* buffer of 'size'
* if 'owner' is true, then the buffer will be delete[]-ed on destruction.
* @note it is assumed the buffer was allocated with new[]!
*/
diff --git a/lib/antlr/antlr/CharScanner.hpp b/lib/antlr/antlr/CharScanner.h
index f7e58520..2e2ffc7c 100644
--- a/lib/antlr/antlr/CharScanner.hpp
+++ b/lib/antlr/antlr/CharScanner.h
@@ -1,5 +1,5 @@
-#ifndef INC_CharScanner_hpp__
-#define INC_CharScanner_hpp__
+#ifndef INC_CharScanner_h__
+#define INC_CharScanner_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,9 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
+#include <functional>
#include <map>
#ifdef HAS_NOT_CCTYPE_H
@@ -26,13 +27,13 @@
# include <stdio.h>
#endif
-#include <antlr/TokenStream.hpp>
-#include <antlr/RecognitionException.hpp>
-#include <antlr/SemanticException.hpp>
-#include <antlr/MismatchedCharException.hpp>
-#include <antlr/InputBuffer.hpp>
-#include <antlr/BitSet.hpp>
-#include <antlr/LexerSharedInputState.hpp>
+#include <antlr/TokenStream.h>
+#include <antlr/RecognitionException.h>
+#include <antlr/SemanticException.h>
+#include <antlr/MismatchedCharException.h>
+#include <antlr/InputBuffer.h>
+#include <antlr/BitSet.h>
+#include <antlr/LexerSharedInputState.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -66,7 +67,7 @@ ANTLR_C_USING(strcasecmp)
/** Functor for the literals map
*/
-class ANTLR_API CharScannerLiteralsLess : public ANTLR_USE_NAMESPACE(std)binary_function<ANTLR_USE_NAMESPACE(std)string,ANTLR_USE_NAMESPACE(std)string,bool> {
+class ANTLR_API CharScannerLiteralsLess : public ANTLR_USE_NAMESPACE(std)function<bool(ANTLR_USE_NAMESPACE(std)string,ANTLR_USE_NAMESPACE(std)string)> {
private:
const CharScanner* scanner;
public:
@@ -573,4 +574,4 @@ inline bool CharScannerLiteralsLess::operator() (const ANTLR_USE_NAMESPACE(std)s
}
#endif
-#endif //INC_CharScanner_hpp__
+#endif //INC_CharScanner_h__
diff --git a/lib/antlr/antlr/CharStreamException.hpp b/lib/antlr/antlr/CharStreamException.h
index a49e3bbb..291593f2 100644
--- a/lib/antlr/antlr/CharStreamException.hpp
+++ b/lib/antlr/antlr/CharStreamException.h
@@ -1,5 +1,5 @@
-#ifndef INC_CharStreamException_hpp__
-#define INC_CharStreamException_hpp__
+#ifndef INC_CharStreamException_h__
+#define INC_CharStreamException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/ANTLRException.hpp>
+#include <antlr/config.h>
+#include <antlr/ANTLRException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -26,4 +26,4 @@ public:
}
#endif
-#endif //INC_CharStreamException_hpp__
+#endif //INC_CharStreamException_h__
diff --git a/lib/antlr/antlr/CharStreamIOException.hpp b/lib/antlr/antlr/CharStreamIOException.h
index e3e3111e..011aaf1f 100644
--- a/lib/antlr/antlr/CharStreamIOException.hpp
+++ b/lib/antlr/antlr/CharStreamIOException.h
@@ -1,5 +1,5 @@
-#ifndef INC_CharStreamIOException_hpp__
-#define INC_CharStreamIOException_hpp__
+#ifndef INC_CharStreamIOException_h__
+#define INC_CharStreamIOException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/CharStreamException.hpp>
+#include <antlr/config.h>
+#include <antlr/CharStreamException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -28,4 +28,4 @@ public:
}
#endif
-#endif //INC_CharStreamIOException_hpp__
+#endif //INC_CharStreamIOException_h__
diff --git a/lib/antlr/antlr/CircularQueue.hpp b/lib/antlr/antlr/CircularQueue.h
index 506b4f56..89c593a1 100644
--- a/lib/antlr/antlr/CircularQueue.hpp
+++ b/lib/antlr/antlr/CircularQueue.h
@@ -1,5 +1,5 @@
-#ifndef INC_CircularQueue_hpp__
-#define INC_CircularQueue_hpp__
+#ifndef INC_CircularQueue_h__
+#define INC_CircularQueue_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/Token.hpp>
+#include <antlr/config.h>
+#include <antlr/Token.h>
#include <vector>
#include <cassert>
@@ -97,4 +97,4 @@ private:
}
#endif
-#endif //INC_CircularQueue_hpp__
+#endif //INC_CircularQueue_h__
diff --git a/lib/antlr/antlr/CommonAST.hpp b/lib/antlr/antlr/CommonAST.h
index 091d7b6e..a89f5f01 100644
--- a/lib/antlr/antlr/CommonAST.hpp
+++ b/lib/antlr/antlr/CommonAST.h
@@ -1,5 +1,5 @@
-#ifndef INC_CommonAST_hpp__
-#define INC_CommonAST_hpp__
+#ifndef INC_CommonAST_h__
+#define INC_CommonAST_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/BaseAST.hpp>
+#include <antlr/config.h>
+#include <antlr/BaseAST.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -107,4 +107,4 @@ typedef ASTRefCount<CommonAST> RefCommonAST;
}
#endif
-#endif //INC_CommonAST_hpp__
+#endif //INC_CommonAST_h__
diff --git a/lib/antlr/antlr/CommonASTWithHiddenTokens.hpp b/lib/antlr/antlr/CommonASTWithHiddenTokens.h
index cac7c83e..01772835 100644
--- a/lib/antlr/antlr/CommonASTWithHiddenTokens.hpp
+++ b/lib/antlr/antlr/CommonASTWithHiddenTokens.h
@@ -1,5 +1,5 @@
-#ifndef INC_CommonASTWithHiddenTokens_hpp__
-#define INC_CommonASTWithHiddenTokens_hpp__
+#ifndef INC_CommonASTWithHiddenTokens_h__
+#define INC_CommonASTWithHiddenTokens_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/CommonAST.hpp>
+#include <antlr/config.h>
+#include <antlr/CommonAST.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -57,4 +57,4 @@ typedef ASTRefCount<CommonASTWithHiddenTokens> RefCommonASTWithHiddenTokens;
}
#endif
-#endif //INC_CommonASTWithHiddenTokens_hpp__
+#endif //INC_CommonASTWithHiddenTokens_h__
diff --git a/lib/antlr/antlr/CommonHiddenStreamToken.hpp b/lib/antlr/antlr/CommonHiddenStreamToken.h
index f3b78c44..8f0e2e38 100644
--- a/lib/antlr/antlr/CommonHiddenStreamToken.hpp
+++ b/lib/antlr/antlr/CommonHiddenStreamToken.h
@@ -1,5 +1,5 @@
-#ifndef INC_CommonHiddenStreamToken_hpp__
-#define INC_CommonHiddenStreamToken_hpp__
+#ifndef INC_CommonHiddenStreamToken_h__
+#define INC_CommonHiddenStreamToken_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/CommonToken.hpp>
+#include <antlr/config.h>
+#include <antlr/CommonToken.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -38,4 +38,4 @@ public:
}
#endif
-#endif //INC_CommonHiddenStreamToken_hpp__
+#endif //INC_CommonHiddenStreamToken_h__
diff --git a/lib/antlr/antlr/CommonToken.hpp b/lib/antlr/antlr/CommonToken.h
index 51d17b42..6f8d4973 100644
--- a/lib/antlr/antlr/CommonToken.hpp
+++ b/lib/antlr/antlr/CommonToken.h
@@ -1,5 +1,5 @@
-#ifndef INC_CommonToken_hpp__
-#define INC_CommonToken_hpp__
+#ifndef INC_CommonToken_h__
+#define INC_CommonToken_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/Token.hpp>
+#include <antlr/config.h>
+#include <antlr/Token.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -80,4 +80,4 @@ private:
}
#endif
-#endif //INC_CommonToken_hpp__
+#endif //INC_CommonToken_h__
diff --git a/lib/antlr/antlr/IOException.hpp b/lib/antlr/antlr/IOException.h
index 22566ecc..b616adf8 100644
--- a/lib/antlr/antlr/IOException.hpp
+++ b/lib/antlr/antlr/IOException.h
@@ -1,5 +1,5 @@
-#ifndef INC_IOException_hpp__
-#define INC_IOException_hpp__
+#ifndef INC_IOException_h__
+#define INC_IOException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/ANTLRException.hpp>
+#include <antlr/config.h>
+#include <antlr/ANTLRException.h>
#include <exception>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -42,4 +42,4 @@ public:
}
#endif
-#endif //INC_IOException_hpp__
+#endif //INC_IOException_h__
diff --git a/lib/antlr/antlr/InputBuffer.hpp b/lib/antlr/antlr/InputBuffer.h
index b979ef8c..f71f73e8 100644
--- a/lib/antlr/antlr/InputBuffer.hpp
+++ b/lib/antlr/antlr/InputBuffer.h
@@ -1,5 +1,5 @@
-#ifndef INC_InputBuffer_hpp__
-#define INC_InputBuffer_hpp__
+#ifndef INC_InputBuffer_h__
+#define INC_InputBuffer_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/CircularQueue.hpp>
+#include <antlr/config.h>
+#include <antlr/CircularQueue.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -143,4 +143,4 @@ inline void InputBuffer::syncConsume() {
}
#endif
-#endif //INC_InputBuffer_hpp__
+#endif //INC_InputBuffer_h__
diff --git a/lib/antlr/antlr/LLkParser.hpp b/lib/antlr/antlr/LLkParser.h
index 32acd3dd..d9d2d9fd 100644
--- a/lib/antlr/antlr/LLkParser.hpp
+++ b/lib/antlr/antlr/LLkParser.h
@@ -1,5 +1,5 @@
-#ifndef INC_LLkParser_hpp__
-#define INC_LLkParser_hpp__
+#ifndef INC_LLkParser_h__
+#define INC_LLkParser_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/Parser.hpp>
+#include <antlr/config.h>
+#include <antlr/Parser.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -64,4 +64,4 @@ public:
}
#endif
-#endif //INC_LLkParser_hpp__
+#endif //INC_LLkParser_h__
diff --git a/lib/antlr/antlr/LexerSharedInputState.hpp b/lib/antlr/antlr/LexerSharedInputState.h
index 2571bda3..3f5c26e5 100644
--- a/lib/antlr/antlr/LexerSharedInputState.hpp
+++ b/lib/antlr/antlr/LexerSharedInputState.h
@@ -1,5 +1,5 @@
-#ifndef INC_LexerSharedInputState_hpp__
-#define INC_LexerSharedInputState_hpp__
+#ifndef INC_LexerSharedInputState_h__
+#define INC_LexerSharedInputState_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,10 +8,10 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/InputBuffer.hpp>
-#include <antlr/RefCount.hpp>
-#include <antlr/CharBuffer.hpp>
+#include <antlr/config.h>
+#include <antlr/InputBuffer.h>
+#include <antlr/RefCount.h>
+#include <antlr/CharBuffer.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -153,4 +153,4 @@ typedef RefCount<LexerInputState> LexerSharedInputState;
}
#endif
-#endif //INC_LexerSharedInputState_hpp__
+#endif //INC_LexerSharedInputState_h__
diff --git a/lib/antlr/antlr/Makefile.am b/lib/antlr/antlr/Makefile.am
index 717c43c0..b866634c 100644
--- a/lib/antlr/antlr/Makefile.am
+++ b/lib/antlr/antlr/Makefile.am
@@ -1,2 +1,2 @@
-noinst_HEADERS = ANTLRException.hpp ANTLRUtil.hpp AST.hpp ASTArray.hpp ASTFactory.hpp ASTNULLType.hpp ASTPair.hpp ASTRefCount.hpp BaseAST.hpp BitSet.hpp CharBuffer.hpp CharInputBuffer.hpp CharScanner.hpp CharStreamException.hpp CharStreamIOException.hpp CircularQueue.hpp CommonAST.hpp CommonASTWithHiddenTokens.hpp CommonHiddenStreamToken.hpp CommonToken.hpp InputBuffer.hpp IOException.hpp LLkParser.hpp LexerSharedInputState.hpp MismatchedCharException.hpp MismatchedTokenException.hpp NoViableAltException.hpp NoViableAltForCharException.hpp Parser.hpp ParserSharedInputState.hpp RecognitionException.hpp RefCount.hpp SemanticException.hpp String.hpp Token.hpp TokenBuffer.hpp TokenStream.hpp TokenStreamBasicFilter.hpp TokenStreamException.hpp TokenStreamHiddenTokenFilter.hpp TokenStreamIOException.hpp TokenStreamRecognitionException.hpp TokenStreamRetryException.hpp TokenStreamSelector.hpp TreeParser.hpp TreeParserSharedInputState.hpp config.hpp
+noinst_HEADERS = ANTLRException.h ANTLRUtil.h AST.h ASTArray.h ASTFactory.h ASTNULLType.h ASTPair.h ASTRefCount.h BaseAST.h BitSet.h CharBuffer.h CharInputBuffer.h CharScanner.h CharStreamException.h CharStreamIOException.h CircularQueue.h CommonAST.h CommonASTWithHiddenTokens.h CommonHiddenStreamToken.h CommonToken.h InputBuffer.h IOException.h LLkParser.h LexerSharedInputState.h MismatchedCharException.h MismatchedTokenException.h NoViableAltException.h NoViableAltForCharException.h Parser.h ParserSharedInputState.h RecognitionException.h RefCount.h SemanticException.h String.h Token.h TokenBuffer.h TokenStream.h TokenStreamBasicFilter.h TokenStreamException.h TokenStreamHiddenTokenFilter.h TokenStreamIOException.h TokenStreamRecognitionException.h TokenStreamRetryException.h TokenStreamSelector.h TreeParser.h TreeParserSharedInputState.h config.h
diff --git a/lib/antlr/antlr/MismatchedCharException.hpp b/lib/antlr/antlr/MismatchedCharException.h
index cc77f9e4..2f0b9be4 100644
--- a/lib/antlr/antlr/MismatchedCharException.hpp
+++ b/lib/antlr/antlr/MismatchedCharException.h
@@ -1,5 +1,5 @@
-#ifndef INC_MismatchedCharException_hpp__
-#define INC_MismatchedCharException_hpp__
+#ifndef INC_MismatchedCharException_h__
+#define INC_MismatchedCharException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/RecognitionException.hpp>
-#include <antlr/BitSet.hpp>
+#include <antlr/config.h>
+#include <antlr/RecognitionException.h>
+#include <antlr/BitSet.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -99,4 +99,4 @@ public:
}
#endif
-#endif //INC_MismatchedCharException_hpp__
+#endif //INC_MismatchedCharException_h__
diff --git a/lib/antlr/antlr/MismatchedTokenException.hpp b/lib/antlr/antlr/MismatchedTokenException.h
index 47fb44e6..af3bdb8c 100644
--- a/lib/antlr/antlr/MismatchedTokenException.hpp
+++ b/lib/antlr/antlr/MismatchedTokenException.h
@@ -1,5 +1,5 @@
-#ifndef INC_MismatchedTokenException_hpp__
-#define INC_MismatchedTokenException_hpp__
+#ifndef INC_MismatchedTokenException_h__
+#define INC_MismatchedTokenException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,11 +8,11 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/RecognitionException.hpp>
-#include <antlr/BitSet.hpp>
-#include <antlr/Token.hpp>
-#include <antlr/AST.hpp>
+#include <antlr/config.h>
+#include <antlr/RecognitionException.h>
+#include <antlr/BitSet.h>
+#include <antlr/Token.h>
+#include <antlr/AST.h>
#include <vector>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -141,4 +141,4 @@ private:
}
#endif
-#endif //INC_MismatchedTokenException_hpp__
+#endif //INC_MismatchedTokenException_h__
diff --git a/lib/antlr/antlr/NoViableAltException.hpp b/lib/antlr/antlr/NoViableAltException.h
index 22236c90..492c7b06 100644
--- a/lib/antlr/antlr/NoViableAltException.hpp
+++ b/lib/antlr/antlr/NoViableAltException.h
@@ -1,5 +1,5 @@
-#ifndef INC_NoViableAltException_hpp__
-#define INC_NoViableAltException_hpp__
+#ifndef INC_NoViableAltException_h__
+#define INC_NoViableAltException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,10 +8,10 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/RecognitionException.hpp>
-#include <antlr/Token.hpp>
-#include <antlr/AST.hpp>
+#include <antlr/config.h>
+#include <antlr/RecognitionException.h>
+#include <antlr/Token.h>
+#include <antlr/AST.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -37,4 +37,4 @@ public:
}
#endif
-#endif //INC_NoViableAltException_hpp__
+#endif //INC_NoViableAltException_h__
diff --git a/lib/antlr/antlr/NoViableAltForCharException.hpp b/lib/antlr/antlr/NoViableAltForCharException.h
index 0b16a0ea..9c592544 100644
--- a/lib/antlr/antlr/NoViableAltForCharException.hpp
+++ b/lib/antlr/antlr/NoViableAltForCharException.h
@@ -1,5 +1,5 @@
-#ifndef INC_NoViableAltForCharException_hpp__
-# define INC_NoViableAltForCharException_hpp__
+#ifndef INC_NoViableAltForCharException_h__
+# define INC_NoViableAltForCharException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id$
*/
-# include <antlr/config.hpp>
-# include <antlr/RecognitionException.hpp>
-# include <antlr/CharScanner.hpp>
+# include <antlr/config.h>
+# include <antlr/RecognitionException.h>
+# include <antlr/CharScanner.h>
# ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr
@@ -38,4 +38,4 @@ protected:
}
# endif
-#endif //INC_NoViableAltForCharException_hpp__
+#endif //INC_NoViableAltForCharException_h__
diff --git a/lib/antlr/antlr/Parser.hpp b/lib/antlr/antlr/Parser.h
index f74be2a8..4c53c433 100644
--- a/lib/antlr/antlr/Parser.hpp
+++ b/lib/antlr/antlr/Parser.h
@@ -1,5 +1,5 @@
-#ifndef INC_Parser_hpp__
-#define INC_Parser_hpp__
+#ifndef INC_Parser_h__
+#define INC_Parser_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,17 +8,17 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <iostream>
#include <exception>
-#include <antlr/BitSet.hpp>
-#include <antlr/TokenBuffer.hpp>
-#include <antlr/RecognitionException.hpp>
-#include <antlr/MismatchedTokenException.hpp>
-#include <antlr/ASTFactory.hpp>
-#include <antlr/ParserSharedInputState.hpp>
+#include <antlr/BitSet.h>
+#include <antlr/TokenBuffer.h>
+#include <antlr/RecognitionException.h>
+#include <antlr/MismatchedTokenException.h>
+#include <antlr/ASTFactory.h>
+#include <antlr/ParserSharedInputState.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -316,4 +316,4 @@ private:
}
#endif
-#endif //INC_Parser_hpp__
+#endif //INC_Parser_h__
diff --git a/lib/antlr/antlr/ParserSharedInputState.hpp b/lib/antlr/antlr/ParserSharedInputState.h
index b011bc15..1c0a8152 100644
--- a/lib/antlr/antlr/ParserSharedInputState.hpp
+++ b/lib/antlr/antlr/ParserSharedInputState.h
@@ -1,5 +1,5 @@
-#ifndef INC_ParserSharedInputState_hpp__
-#define INC_ParserSharedInputState_hpp__
+#ifndef INC_ParserSharedInputState_h__
+#define INC_ParserSharedInputState_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenBuffer.hpp>
-#include <antlr/RefCount.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenBuffer.h>
+#include <antlr/RefCount.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -89,4 +89,4 @@ typedef RefCount<ParserInputState> ParserSharedInputState;
}
#endif
-#endif //INC_ParserSharedInputState_hpp__
+#endif //INC_ParserSharedInputState_h__
diff --git a/lib/antlr/antlr/RecognitionException.hpp b/lib/antlr/antlr/RecognitionException.h
index e61bc620..3d7604ee 100644
--- a/lib/antlr/antlr/RecognitionException.hpp
+++ b/lib/antlr/antlr/RecognitionException.h
@@ -1,5 +1,5 @@
-#ifndef INC_RecognitionException_hpp__
-# define INC_RecognitionException_hpp__
+#ifndef INC_RecognitionException_h__
+# define INC_RecognitionException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-# include <antlr/config.hpp>
-# include <antlr/ANTLRException.hpp>
+# include <antlr/config.h>
+# include <antlr/ANTLRException.h>
# ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr
@@ -63,4 +63,4 @@ namespace antlr
}
# endif
-#endif //INC_RecognitionException_hpp__
+#endif //INC_RecognitionException_h__
diff --git a/lib/antlr/antlr/RefCount.hpp b/lib/antlr/antlr/RefCount.h
index 8546a049..93df952e 100644
--- a/lib/antlr/antlr/RefCount.hpp
+++ b/lib/antlr/antlr/RefCount.h
@@ -1,5 +1,5 @@
-#ifndef INC_RefCount_hpp__
-#define INC_RefCount_hpp__
+#ifndef INC_RefCount_h__
+#define INC_RefCount_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/license.html
@@ -7,7 +7,7 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -77,4 +77,4 @@ public:
}
#endif
-#endif //INC_RefCount_hpp__
+#endif //INC_RefCount_h__
diff --git a/lib/antlr/antlr/SemanticException.hpp b/lib/antlr/antlr/SemanticException.h
index dc68d5a9..05c5c5fe 100644
--- a/lib/antlr/antlr/SemanticException.hpp
+++ b/lib/antlr/antlr/SemanticException.h
@@ -1,5 +1,5 @@
-#ifndef INC_SemanticException_hpp__
-#define INC_SemanticException_hpp__
+#ifndef INC_SemanticException_h__
+#define INC_SemanticException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/RecognitionException.hpp>
+#include <antlr/config.h>
+#include <antlr/RecognitionException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -37,4 +37,4 @@ public:
}
#endif
-#endif //INC_SemanticException_hpp__
+#endif //INC_SemanticException_h__
diff --git a/lib/antlr/antlr/String.hpp b/lib/antlr/antlr/String.h
index 7e6dde5a..7e406c1a 100644
--- a/lib/antlr/antlr/String.hpp
+++ b/lib/antlr/antlr/String.h
@@ -1,5 +1,5 @@
-#ifndef INC_String_hpp__
-#define INC_String_hpp__
+#ifndef INC_String_h__
+#define INC_String_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,7 +8,7 @@
* $Id$
*/
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -24,4 +24,4 @@ ANTLR_API ANTLR_USE_NAMESPACE(std)string charName( int ch );
}
#endif
-#endif //INC_String_hpp__
+#endif //INC_String_h__
diff --git a/lib/antlr/antlr/Token.hpp b/lib/antlr/antlr/Token.h
index cd56fc3c..88f747ba 100644
--- a/lib/antlr/antlr/Token.hpp
+++ b/lib/antlr/antlr/Token.h
@@ -1,5 +1,5 @@
-#ifndef INC_Token_hpp__
-#define INC_Token_hpp__
+#ifndef INC_Token_h__
+#define INC_Token_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenRefCount.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenRefCount.h>
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
@@ -105,4 +105,4 @@ inline bool operator<( RefToken l, RefToken r )
}
#endif
-#endif //INC_Token_hpp__
+#endif //INC_Token_h__
diff --git a/lib/antlr/antlr/TokenBuffer.hpp b/lib/antlr/antlr/TokenBuffer.h
index 3077eead..5832ef6e 100644
--- a/lib/antlr/antlr/TokenBuffer.hpp
+++ b/lib/antlr/antlr/TokenBuffer.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenBuffer_hpp__
-#define INC_TokenBuffer_hpp__
+#ifndef INC_TokenBuffer_h__
+#define INC_TokenBuffer_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenStream.hpp>
-#include <antlr/CircularQueue.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenStream.h>
+#include <antlr/CircularQueue.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -118,4 +118,4 @@ inline void TokenBuffer::syncConsume()
}
#endif
-#endif //INC_TokenBuffer_hpp__
+#endif //INC_TokenBuffer_h__
diff --git a/lib/antlr/antlr/TokenRefCount.hpp b/lib/antlr/antlr/TokenRefCount.h
index 9ccbb98c..6b2042b7 100644
--- a/lib/antlr/antlr/TokenRefCount.hpp
+++ b/lib/antlr/antlr/TokenRefCount.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenRefCount_hpp__
-# define INC_TokenRefCount_hpp__
+#ifndef INC_TokenRefCount_h__
+# define INC_TokenRefCount_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,7 +8,7 @@
* $Id:$
*/
-# include <antlr/config.hpp>
+# include <antlr/config.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -95,4 +95,4 @@ typedef TokenRefCount<Token> RefToken;
}
#endif
-#endif //INC_TokenRefCount_hpp__
+#endif //INC_TokenRefCount_h__
diff --git a/lib/antlr/antlr/TokenStream.hpp b/lib/antlr/antlr/TokenStream.h
index dbf83a8c..d7fc688b 100644
--- a/lib/antlr/antlr/TokenStream.hpp
+++ b/lib/antlr/antlr/TokenStream.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStream_hpp__
-#define INC_TokenStream_hpp__
+#ifndef INC_TokenStream_h__
+#define INC_TokenStream_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/Token.hpp>
+#include <antlr/config.h>
+#include <antlr/Token.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -31,4 +31,4 @@ public:
}
#endif
-#endif //INC_TokenStream_hpp__
+#endif //INC_TokenStream_h__
diff --git a/lib/antlr/antlr/TokenStreamBasicFilter.hpp b/lib/antlr/antlr/TokenStreamBasicFilter.h
index bcdb131c..51862169 100644
--- a/lib/antlr/antlr/TokenStreamBasicFilter.hpp
+++ b/lib/antlr/antlr/TokenStreamBasicFilter.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamBasicFilter_hpp__
-#define INC_TokenStreamBasicFilter_hpp__
+#ifndef INC_TokenStreamBasicFilter_h__
+#define INC_TokenStreamBasicFilter_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/BitSet.hpp>
-#include <antlr/TokenStream.hpp>
+#include <antlr/config.h>
+#include <antlr/BitSet.h>
+#include <antlr/TokenStream.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -43,4 +43,4 @@ public:
}
#endif
-#endif //INC_TokenStreamBasicFilter_hpp__
+#endif //INC_TokenStreamBasicFilter_h__
diff --git a/lib/antlr/antlr/TokenStreamException.hpp b/lib/antlr/antlr/TokenStreamException.h
index dbddb442..7bffddca 100644
--- a/lib/antlr/antlr/TokenStreamException.hpp
+++ b/lib/antlr/antlr/TokenStreamException.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamException_hpp__
-#define INC_TokenStreamException_hpp__
+#ifndef INC_TokenStreamException_h__
+#define INC_TokenStreamException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/ANTLRException.hpp>
+#include <antlr/config.h>
+#include <antlr/ANTLRException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -38,4 +38,4 @@ public:
}
#endif
-#endif //INC_TokenStreamException_hpp__
+#endif //INC_TokenStreamException_h__
diff --git a/lib/antlr/antlr/TokenStreamHiddenTokenFilter.hpp b/lib/antlr/antlr/TokenStreamHiddenTokenFilter.h
index ed007a7a..2597ce58 100644
--- a/lib/antlr/antlr/TokenStreamHiddenTokenFilter.hpp
+++ b/lib/antlr/antlr/TokenStreamHiddenTokenFilter.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamHiddenTokenFilter_hpp__
-#define INC_TokenStreamHiddenTokenFilter_hpp__
+#ifndef INC_TokenStreamHiddenTokenFilter_h__
+#define INC_TokenStreamHiddenTokenFilter_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenStreamBasicFilter.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenStreamBasicFilter.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -92,4 +92,4 @@ public:
}
#endif
-#endif //INC_TokenStreamHiddenTokenFilter_hpp__
+#endif //INC_TokenStreamHiddenTokenFilter_h__
diff --git a/lib/antlr/antlr/TokenStreamIOException.hpp b/lib/antlr/antlr/TokenStreamIOException.h
index fff72ced..db2d8677 100644
--- a/lib/antlr/antlr/TokenStreamIOException.hpp
+++ b/lib/antlr/antlr/TokenStreamIOException.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamIOException_hpp__
-#define INC_TokenStreamIOException_hpp__
+#ifndef INC_TokenStreamIOException_h__
+#define INC_TokenStreamIOException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenStreamException.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenStreamException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -37,4 +37,4 @@ private:
}
#endif
-#endif //INC_TokenStreamIOException_hpp__
+#endif //INC_TokenStreamIOException_h__
diff --git a/lib/antlr/antlr/TokenStreamRecognitionException.hpp b/lib/antlr/antlr/TokenStreamRecognitionException.h
index 687d7814..2c4b9548 100644
--- a/lib/antlr/antlr/TokenStreamRecognitionException.hpp
+++ b/lib/antlr/antlr/TokenStreamRecognitionException.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamRecognitionException_hpp__
-#define INC_TokenStreamRecognitionException_hpp__
+#ifndef INC_TokenStreamRecognitionException_h__
+#define INC_TokenStreamRecognitionException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenStreamException.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenStreamException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -54,4 +54,4 @@ private:
}
#endif
-#endif //INC_TokenStreamRecognitionException_hpp__
+#endif //INC_TokenStreamRecognitionException_h__
diff --git a/lib/antlr/antlr/TokenStreamRetryException.hpp b/lib/antlr/antlr/TokenStreamRetryException.h
index 5af21cde..bb3dcf2d 100644
--- a/lib/antlr/antlr/TokenStreamRetryException.hpp
+++ b/lib/antlr/antlr/TokenStreamRetryException.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamRetryException_hpp__
-#define INC_TokenStreamRetryException_hpp__
+#ifndef INC_TokenStreamRetryException_h__
+#define INC_TokenStreamRetryException_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenStreamException.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenStreamException.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -25,4 +25,4 @@ public:
}
#endif
-#endif //INC_TokenStreamRetryException_hpp__
+#endif //INC_TokenStreamRetryException_h__
diff --git a/lib/antlr/antlr/TokenStreamRewriteEngine.hpp b/lib/antlr/antlr/TokenStreamRewriteEngine.h
index 9fab08c2..20f3e8f4 100644
--- a/lib/antlr/antlr/TokenStreamRewriteEngine.hpp
+++ b/lib/antlr/antlr/TokenStreamRewriteEngine.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamRewriteEngine_hpp__
-#define INC_TokenStreamRewriteEngine_hpp__
+#ifndef INC_TokenStreamRewriteEngine_h__
+#define INC_TokenStreamRewriteEngine_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -16,11 +16,11 @@
#include <cassert>
#include <algorithm>
-#include <antlr/config.hpp>
+#include <antlr/config.h>
-#include <antlr/TokenStream.hpp>
-#include <antlr/TokenWithIndex.hpp>
-#include <antlr/BitSet.hpp>
+#include <antlr/TokenStream.h>
+#include <antlr/TokenWithIndex.h>
+#include <antlr/BitSet.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/antlr/TokenStreamSelector.hpp b/lib/antlr/antlr/TokenStreamSelector.h
index 1dab8797..2ed91d72 100644
--- a/lib/antlr/antlr/TokenStreamSelector.hpp
+++ b/lib/antlr/antlr/TokenStreamSelector.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenStreamSelector_hpp__
-#define INC_TokenStreamSelector_hpp__
+#ifndef INC_TokenStreamSelector_h__
+#define INC_TokenStreamSelector_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/TokenStream.hpp>
+#include <antlr/config.h>
+#include <antlr/TokenStream.h>
#include <map>
#include <stack>
@@ -84,4 +84,4 @@ public:
}
#endif
-#endif //INC_TokenStreamSelector_hpp__
+#endif //INC_TokenStreamSelector_h__
diff --git a/lib/antlr/antlr/TokenWithIndex.hpp b/lib/antlr/antlr/TokenWithIndex.h
index e4a3e37e..d7511996 100644
--- a/lib/antlr/antlr/TokenWithIndex.hpp
+++ b/lib/antlr/antlr/TokenWithIndex.h
@@ -1,5 +1,5 @@
-#ifndef INC_TokenWithIndex_hpp__
-#define INC_TokenWithIndex_hpp__
+#ifndef INC_TokenWithIndex_h__
+#define INC_TokenWithIndex_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,9 +8,9 @@
* $Id:$
*/
-#include <antlr/config.hpp>
-#include <antlr/CommonToken.hpp>
-#include <antlr/String.hpp>
+#include <antlr/config.h>
+#include <antlr/CommonToken.h>
+#include <antlr/String.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -81,4 +81,4 @@ typedef TokenRefCount<TokenWithIndex> RefTokenWithIndex;
}
#endif
-#endif //INC_CommonToken_hpp__
+#endif //INC_CommonToken_h__
diff --git a/lib/antlr/antlr/TreeParser.hpp b/lib/antlr/antlr/TreeParser.h
index aeee3f9d..ab293d49 100644
--- a/lib/antlr/antlr/TreeParser.hpp
+++ b/lib/antlr/antlr/TreeParser.h
@@ -1,5 +1,5 @@
-#ifndef INC_TreeParser_hpp__
-#define INC_TreeParser_hpp__
+#ifndef INC_TreeParser_h__
+#define INC_TreeParser_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,13 +8,13 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/AST.hpp>
-#include <antlr/ASTFactory.hpp>
-#include <antlr/BitSet.hpp>
-#include <antlr/RecognitionException.hpp>
-#include <antlr/MismatchedTokenException.hpp>
-#include <antlr/TreeParserSharedInputState.hpp>
+#include <antlr/config.h>
+#include <antlr/AST.h>
+#include <antlr/ASTFactory.h>
+#include <antlr/BitSet.h>
+#include <antlr/RecognitionException.h>
+#include <antlr/MismatchedTokenException.h>
+#include <antlr/TreeParserSharedInputState.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -152,4 +152,4 @@ private:
}
#endif
-#endif //INC_TreeParser_hpp__
+#endif //INC_TreeParser_h__
diff --git a/lib/antlr/antlr/TreeParserSharedInputState.hpp b/lib/antlr/antlr/TreeParserSharedInputState.h
index 76ec6840..3eb95641 100644
--- a/lib/antlr/antlr/TreeParserSharedInputState.hpp
+++ b/lib/antlr/antlr/TreeParserSharedInputState.h
@@ -1,5 +1,5 @@
-#ifndef INC_TreeParserSharedInputState_hpp__
-#define INC_TreeParserSharedInputState_hpp__
+#ifndef INC_TreeParserSharedInputState_h__
+#define INC_TreeParserSharedInputState_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -8,8 +8,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/RefCount.hpp>
+#include <antlr/config.h>
+#include <antlr/RefCount.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
@@ -42,4 +42,4 @@ typedef RefCount<TreeParserInputState> TreeParserSharedInputState;
}
#endif
-#endif //INC_TreeParserSharedInputState_hpp__
+#endif //INC_TreeParserSharedInputState_h__
diff --git a/lib/antlr/antlr/config.hpp b/lib/antlr/antlr/config.h
index db8fb28a..4d3456ec 100644
--- a/lib/antlr/antlr/config.hpp
+++ b/lib/antlr/antlr/config.h
@@ -1,5 +1,5 @@
-#ifndef INC_config_hpp__
-#define INC_config_hpp__
+#ifndef INC_config_h__
+#define INC_config_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
@@ -287,4 +287,4 @@
# define ANTLR_END_NAMESPACE
#endif
-#endif //INC_config_hpp__
+#endif //INC_config_h__
diff --git a/lib/antlr/src/ANTLRUtil.cpp b/lib/antlr/src/ANTLRUtil.cpp
index 30e7ba21..5df8db6d 100644
--- a/lib/antlr/src/ANTLRUtil.cpp
+++ b/lib/antlr/src/ANTLRUtil.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include <antlr/config.hpp>
-#include <antlr/IOException.hpp>
+#include <antlr/config.h>
+#include <antlr/IOException.h>
#include <iostream>
#include <cctype>
diff --git a/lib/antlr/src/ASTFactory.cpp b/lib/antlr/src/ASTFactory.cpp
index 98ce6b7a..55f1ce19 100644
--- a/lib/antlr/src/ASTFactory.cpp
+++ b/lib/antlr/src/ASTFactory.cpp
@@ -5,11 +5,11 @@
* $Id$
*/
-#include "antlr/CommonAST.hpp"
-#include "antlr/ANTLRException.hpp"
-#include "antlr/IOException.hpp"
-#include "antlr/ASTFactory.hpp"
-#include "antlr/ANTLRUtil.hpp"
+#include "antlr/CommonAST.h"
+#include "antlr/ANTLRException.h"
+#include "antlr/IOException.h"
+#include "antlr/ASTFactory.h"
+#include "antlr/ANTLRUtil.h"
#include <iostream>
#include <istream>
diff --git a/lib/antlr/src/ASTNULLType.cpp b/lib/antlr/src/ASTNULLType.cpp
index 7dd62724..cc3d839d 100644
--- a/lib/antlr/src/ASTNULLType.cpp
+++ b/lib/antlr/src/ASTNULLType.cpp
@@ -5,9 +5,9 @@
* $Id$
*/
-#include "antlr/config.hpp"
-#include "antlr/AST.hpp"
-#include "antlr/ASTNULLType.hpp"
+#include "antlr/config.h"
+#include "antlr/AST.h"
+#include "antlr/ASTNULLType.h"
#include <iostream>
diff --git a/lib/antlr/src/ASTRefCount.cpp b/lib/antlr/src/ASTRefCount.cpp
index 0ca54df0..13294fb8 100644
--- a/lib/antlr/src/ASTRefCount.cpp
+++ b/lib/antlr/src/ASTRefCount.cpp
@@ -4,8 +4,8 @@
*
* $Id$
*/
-#include "antlr/ASTRefCount.hpp"
-#include "antlr/AST.hpp"
+#include "antlr/ASTRefCount.h"
+#include "antlr/AST.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/BaseAST.cpp b/lib/antlr/src/BaseAST.cpp
index f10f1e16..b5d1814f 100644
--- a/lib/antlr/src/BaseAST.cpp
+++ b/lib/antlr/src/BaseAST.cpp
@@ -5,12 +5,12 @@
* $Id$
*/
-#include "antlr/config.hpp"
+#include "antlr/config.h"
#include <iostream>
-#include "antlr/AST.hpp"
-#include "antlr/BaseAST.hpp"
+#include "antlr/AST.h"
+#include "antlr/BaseAST.h"
ANTLR_USING_NAMESPACE(std)
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
diff --git a/lib/antlr/src/BitSet.cpp b/lib/antlr/src/BitSet.cpp
index 2a32404a..c04b96c5 100644
--- a/lib/antlr/src/BitSet.cpp
+++ b/lib/antlr/src/BitSet.cpp
@@ -4,7 +4,7 @@
*
* $Id$
*/
-#include "antlr/BitSet.hpp"
+#include "antlr/BitSet.h"
#include <string>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
diff --git a/lib/antlr/src/CharBuffer.cpp b/lib/antlr/src/CharBuffer.cpp
index a0e11eae..b5895e9f 100644
--- a/lib/antlr/src/CharBuffer.cpp
+++ b/lib/antlr/src/CharBuffer.cpp
@@ -5,7 +5,7 @@
* $Id$
*/
-#include "antlr/CharBuffer.hpp"
+#include "antlr/CharBuffer.h"
#include <iostream>
//#include <ios>
diff --git a/lib/antlr/src/CharScanner.cpp b/lib/antlr/src/CharScanner.cpp
index d5b1f753..63545468 100644
--- a/lib/antlr/src/CharScanner.cpp
+++ b/lib/antlr/src/CharScanner.cpp
@@ -7,8 +7,8 @@
#include <iostream>
-#include "antlr/CharScanner.hpp"
-#include "antlr/CommonToken.hpp"
+#include "antlr/CharScanner.h"
+#include "antlr/CommonToken.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/CommonAST.cpp b/lib/antlr/src/CommonAST.cpp
index e132c0aa..a44e222f 100644
--- a/lib/antlr/src/CommonAST.cpp
+++ b/lib/antlr/src/CommonAST.cpp
@@ -4,13 +4,13 @@
*
* $Id$
*/
-#include "antlr/config.hpp"
+#include "antlr/config.h"
#include <cstdlib>
#include <iostream>
-#include "antlr/CommonAST.hpp"
-#include "antlr/ANTLRUtil.hpp"
+#include "antlr/CommonAST.h"
+#include "antlr/ANTLRUtil.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/CommonASTWithHiddenTokens.cpp b/lib/antlr/src/CommonASTWithHiddenTokens.cpp
index b0e1a3dd..21a6be61 100644
--- a/lib/antlr/src/CommonASTWithHiddenTokens.cpp
+++ b/lib/antlr/src/CommonASTWithHiddenTokens.cpp
@@ -4,12 +4,12 @@
*
* $Id$
*/
-#include "antlr/config.hpp"
-#include "antlr/AST.hpp"
-#include "antlr/BaseAST.hpp"
-#include "antlr/CommonAST.hpp"
-#include "antlr/CommonASTWithHiddenTokens.hpp"
-#include "antlr/CommonHiddenStreamToken.hpp"
+#include "antlr/config.h"
+#include "antlr/AST.h"
+#include "antlr/BaseAST.h"
+#include "antlr/CommonAST.h"
+#include "antlr/CommonASTWithHiddenTokens.h"
+#include "antlr/CommonHiddenStreamToken.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/CommonHiddenStreamToken.cpp b/lib/antlr/src/CommonHiddenStreamToken.cpp
index 9396a43b..3ccb69bc 100644
--- a/lib/antlr/src/CommonHiddenStreamToken.cpp
+++ b/lib/antlr/src/CommonHiddenStreamToken.cpp
@@ -4,7 +4,7 @@
*
* $Id$
*/
-#include "antlr/CommonHiddenStreamToken.hpp"
+#include "antlr/CommonHiddenStreamToken.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/CommonToken.cpp b/lib/antlr/src/CommonToken.cpp
index a223b239..db5f4716 100644
--- a/lib/antlr/src/CommonToken.cpp
+++ b/lib/antlr/src/CommonToken.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/CommonToken.hpp"
-#include "antlr/String.hpp"
+#include "antlr/CommonToken.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/InputBuffer.cpp b/lib/antlr/src/InputBuffer.cpp
index c9eced7d..a65755d7 100644
--- a/lib/antlr/src/InputBuffer.cpp
+++ b/lib/antlr/src/InputBuffer.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/config.hpp"
-#include "antlr/InputBuffer.hpp"
+#include "antlr/config.h"
+#include "antlr/InputBuffer.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/LLkParser.cpp b/lib/antlr/src/LLkParser.cpp
index ab0d672a..c45447f5 100644
--- a/lib/antlr/src/LLkParser.cpp
+++ b/lib/antlr/src/LLkParser.cpp
@@ -5,7 +5,7 @@
* $Id$
*/
-#include "antlr/LLkParser.hpp"
+#include "antlr/LLkParser.h"
#include <iostream>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
diff --git a/lib/antlr/src/MismatchedCharException.cpp b/lib/antlr/src/MismatchedCharException.cpp
index e73dbf36..019743b0 100644
--- a/lib/antlr/src/MismatchedCharException.cpp
+++ b/lib/antlr/src/MismatchedCharException.cpp
@@ -5,9 +5,9 @@
* $Id$
*/
-#include "antlr/CharScanner.hpp"
-#include "antlr/MismatchedCharException.hpp"
-#include "antlr/String.hpp"
+#include "antlr/CharScanner.h"
+#include "antlr/MismatchedCharException.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/MismatchedTokenException.cpp b/lib/antlr/src/MismatchedTokenException.cpp
index 7fc349f7..52ceeec4 100644
--- a/lib/antlr/src/MismatchedTokenException.cpp
+++ b/lib/antlr/src/MismatchedTokenException.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/MismatchedTokenException.hpp"
-#include "antlr/String.hpp"
+#include "antlr/MismatchedTokenException.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/NoViableAltException.cpp b/lib/antlr/src/NoViableAltException.cpp
index 94da2cc4..67406df7 100644
--- a/lib/antlr/src/NoViableAltException.cpp
+++ b/lib/antlr/src/NoViableAltException.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/NoViableAltException.hpp"
-#include "antlr/String.hpp"
+#include "antlr/NoViableAltException.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/NoViableAltForCharException.cpp b/lib/antlr/src/NoViableAltForCharException.cpp
index 10d9447a..cee6afd9 100644
--- a/lib/antlr/src/NoViableAltForCharException.cpp
+++ b/lib/antlr/src/NoViableAltForCharException.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/NoViableAltForCharException.hpp"
-#include "antlr/String.hpp"
+#include "antlr/NoViableAltForCharException.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/Parser.cpp b/lib/antlr/src/Parser.cpp
index 640da7b6..83b7aaa3 100644
--- a/lib/antlr/src/Parser.cpp
+++ b/lib/antlr/src/Parser.cpp
@@ -5,7 +5,7 @@
* $Id$
*/
-#include "antlr/Parser.hpp"
+#include "antlr/Parser.h"
#include <iostream>
diff --git a/lib/antlr/src/RecognitionException.cpp b/lib/antlr/src/RecognitionException.cpp
index 9c185ccc..54d3df71 100644
--- a/lib/antlr/src/RecognitionException.cpp
+++ b/lib/antlr/src/RecognitionException.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/RecognitionException.hpp"
-#include "antlr/String.hpp"
+#include "antlr/RecognitionException.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/String.cpp b/lib/antlr/src/String.cpp
index ae70f479..6d8b43cf 100644
--- a/lib/antlr/src/String.cpp
+++ b/lib/antlr/src/String.cpp
@@ -5,7 +5,7 @@
* $Id$
*/
-#include "antlr/String.hpp"
+#include "antlr/String.h"
#include <cctype>
diff --git a/lib/antlr/src/Token.cpp b/lib/antlr/src/Token.cpp
index f8181634..44c1fcbe 100644
--- a/lib/antlr/src/Token.cpp
+++ b/lib/antlr/src/Token.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/Token.hpp"
-#include "antlr/String.hpp"
+#include "antlr/Token.h"
+#include "antlr/String.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TokenBuffer.cpp b/lib/antlr/src/TokenBuffer.cpp
index ed69d6e0..d329aa58 100644
--- a/lib/antlr/src/TokenBuffer.cpp
+++ b/lib/antlr/src/TokenBuffer.cpp
@@ -5,7 +5,7 @@
* $Id$
*/
-#include "antlr/TokenBuffer.hpp"
+#include "antlr/TokenBuffer.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TokenRefCount.cpp b/lib/antlr/src/TokenRefCount.cpp
index 0afb0f84..4493c0d7 100644
--- a/lib/antlr/src/TokenRefCount.cpp
+++ b/lib/antlr/src/TokenRefCount.cpp
@@ -4,8 +4,8 @@
*
* $Id:$
*/
-#include "antlr/TokenRefCount.hpp"
-#include "antlr/Token.hpp"
+#include "antlr/TokenRefCount.h"
+#include "antlr/Token.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TokenStreamBasicFilter.cpp b/lib/antlr/src/TokenStreamBasicFilter.cpp
index 982e8645..479ba76a 100644
--- a/lib/antlr/src/TokenStreamBasicFilter.cpp
+++ b/lib/antlr/src/TokenStreamBasicFilter.cpp
@@ -4,7 +4,7 @@
*
* $Id$
*/
-#include "antlr/TokenStreamBasicFilter.hpp"
+#include "antlr/TokenStreamBasicFilter.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TokenStreamHiddenTokenFilter.cpp b/lib/antlr/src/TokenStreamHiddenTokenFilter.cpp
index 431df0c3..f55c9fc5 100644
--- a/lib/antlr/src/TokenStreamHiddenTokenFilter.cpp
+++ b/lib/antlr/src/TokenStreamHiddenTokenFilter.cpp
@@ -4,8 +4,8 @@
*
* $Id$
*/
-#include "antlr/TokenStreamHiddenTokenFilter.hpp"
-#include "antlr/CommonHiddenStreamToken.hpp"
+#include "antlr/TokenStreamHiddenTokenFilter.h"
+#include "antlr/CommonHiddenStreamToken.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TokenStreamRewriteEngine.cpp b/lib/antlr/src/TokenStreamRewriteEngine.cpp
index 2f171eb6..8b0e8f3f 100644
--- a/lib/antlr/src/TokenStreamRewriteEngine.cpp
+++ b/lib/antlr/src/TokenStreamRewriteEngine.cpp
@@ -1,4 +1,4 @@
-#include <antlr/config.hpp>
+#include <antlr/config.h>
#include <string>
#include <list>
@@ -10,10 +10,10 @@
#include <sstream>
#include <cassert>
-#include <antlr/TokenStream.hpp>
-#include <antlr/TokenWithIndex.hpp>
-#include <antlr/BitSet.hpp>
-#include <antlr/TokenStreamRewriteEngine.hpp>
+#include <antlr/TokenStream.h>
+#include <antlr/TokenWithIndex.h>
+#include <antlr/BitSet.h>
+#include <antlr/TokenStreamRewriteEngine.h>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TokenStreamSelector.cpp b/lib/antlr/src/TokenStreamSelector.cpp
index 602e50dc..26d697bc 100644
--- a/lib/antlr/src/TokenStreamSelector.cpp
+++ b/lib/antlr/src/TokenStreamSelector.cpp
@@ -4,8 +4,8 @@
*
* $Id$
*/
-#include "antlr/TokenStreamSelector.hpp"
-#include "antlr/TokenStreamRetryException.hpp"
+#include "antlr/TokenStreamSelector.h"
+#include "antlr/TokenStreamRetryException.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/antlr/src/TreeParser.cpp b/lib/antlr/src/TreeParser.cpp
index 6b3f2ca1..dd48b37f 100644
--- a/lib/antlr/src/TreeParser.cpp
+++ b/lib/antlr/src/TreeParser.cpp
@@ -5,8 +5,8 @@
* $Id$
*/
-#include "antlr/TreeParser.hpp"
-#include "antlr/ASTNULLType.hpp"
+#include "antlr/TreeParser.h"
+#include "antlr/ASTNULLType.h"
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
diff --git a/lib/cppparser/ast.cpp b/lib/cppparser/ast.cpp
index 20cf0fc8..21c7f375 100644
--- a/lib/cppparser/ast.cpp
+++ b/lib/cppparser/ast.cpp
@@ -83,7 +83,7 @@ TQString nodeTypeToString( int type )
return "DoStatement";
case NodeType_ForStatement:
return "ForStatement";
- case NodeType_ForEachStatement: // qt4 [erbsland]
+ case NodeType_ForEachStatement:
return "ForEachStatement";
case NodeType_SwitchStatement:
return "SwitchStatement";
@@ -219,13 +219,13 @@ void NameAST::setGlobal( bool b )
void NameAST::setUnqualifiedName( ClassOrNamespaceNameAST::Node& unqualifiedName )
{
- m_unqualifiedName = unqualifiedName;
- if( m_unqualifiedName.get() ) m_unqualifiedName->setParent( this );
+ m_unqualifiedName = std::move(unqualifiedName);
+ if( m_unqualifiedName ) m_unqualifiedName->setParent( this );
}
void NameAST::addClassOrNamespaceName( ClassOrNamespaceNameAST::Node& classOrNamespaceName )
{
- if( !classOrNamespaceName.get() )
+ if( !classOrNamespaceName )
return;
classOrNamespaceName->setParent( this );
@@ -234,7 +234,7 @@ void NameAST::addClassOrNamespaceName( ClassOrNamespaceNameAST::Node& classOrNam
TQString NameAST::text() const
{
- if( !m_unqualifiedName.get() )
+ if( !m_unqualifiedName )
return TQString();
TQString str;
@@ -249,7 +249,7 @@ TQString NameAST::text() const
++it;
}
- if( m_unqualifiedName.get() )
+ if( m_unqualifiedName )
str += m_unqualifiedName->text();
return str;
@@ -268,7 +268,7 @@ LinkageBodyAST::LinkageBodyAST()
void LinkageBodyAST::addDeclaration( DeclarationAST::Node& ast )
{
- if( !ast.get() )
+ if( !ast )
return;
ast->setParent( this );
@@ -282,32 +282,32 @@ LinkageSpecificationAST::LinkageSpecificationAST()
void LinkageSpecificationAST::setExternType( AST::Node& externType )
{
- m_externType = externType;
- if( m_externType.get() ) m_externType->setParent( this );
+ m_externType = std::move(externType);
+ if( m_externType ) m_externType->setParent( this );
}
void LinkageSpecificationAST::setLinkageBody( LinkageBodyAST::Node& linkageBody )
{
- m_linkageBody = linkageBody;
- if( m_linkageBody.get() ) m_linkageBody->setParent( this );
+ m_linkageBody = std::move(linkageBody);
+ if( m_linkageBody ) m_linkageBody->setParent( this );
}
void LinkageSpecificationAST::setDeclaration( DeclarationAST::Node& decl )
{
- m_declaration = decl;
- if( m_declaration.get() ) m_declaration->setParent( this );
+ m_declaration = std::move(decl);
+ if( m_declaration ) m_declaration->setParent( this );
}
// ------------------------------------------------------------------------
TranslationUnitAST::TranslationUnitAST()
{
- ////kdDebug(9007) << "++ TranslationUnitAST::TranslationUnitAST()" << endl;
+ //kdDebug(9007) << "++ TranslationUnitAST::TranslationUnitAST()" << endl;
m_declarationList.setAutoDelete( true );
}
void TranslationUnitAST::addDeclaration( DeclarationAST::Node& ast )
{
- if( !ast.get() )
+ if( !ast )
return;
ast->setParent( this );
@@ -321,14 +321,14 @@ NamespaceAST::NamespaceAST()
void NamespaceAST::setNamespaceName( AST::Node& namespaceName )
{
- m_namespaceName = namespaceName;
- if( m_namespaceName.get() ) m_namespaceName->setParent( this );
+ m_namespaceName = std::move(namespaceName);
+ if( m_namespaceName ) m_namespaceName->setParent( this );
}
void NamespaceAST::setLinkageBody( LinkageBodyAST::Node& linkageBody )
{
- m_linkageBody = linkageBody;
- if( m_linkageBody.get() ) m_linkageBody->setParent( this );
+ m_linkageBody = std::move(linkageBody);
+ if( m_linkageBody ) m_linkageBody->setParent( this );
}
@@ -339,14 +339,14 @@ NamespaceAliasAST::NamespaceAliasAST()
void NamespaceAliasAST::setNamespaceName( AST::Node& namespaceName )
{
- m_namespaceName = namespaceName;
- if( m_namespaceName.get() ) m_namespaceName->setParent( this );
+ m_namespaceName = std::move(namespaceName);
+ if( m_namespaceName ) m_namespaceName->setParent( this );
}
void NamespaceAliasAST::setAliasName( NameAST::Node& name )
{
- m_aliasName = name;
- if( m_aliasName.get() ) m_aliasName->setParent( this );
+ m_aliasName = std::move(name);
+ if( m_aliasName ) m_aliasName->setParent( this );
}
// ------------------------------------------------------------------------
@@ -356,14 +356,14 @@ UsingAST::UsingAST()
void UsingAST::setTypeName( AST::Node& typeName )
{
- m_typeName = typeName;
- if( m_typeName.get() ) m_typeName->setParent( this );
+ m_typeName = std::move(typeName);
+ if( m_typeName ) m_typeName->setParent( this );
}
void UsingAST::setName( NameAST::Node& name )
{
- m_name = name;
- if( m_name.get() ) m_name->setParent( this );
+ m_name = std::move(name);
+ if( m_name ) m_name->setParent( this );
}
// ------------------------------------------------------------------------
@@ -373,8 +373,8 @@ UsingDirectiveAST::UsingDirectiveAST()
void UsingDirectiveAST::setName( NameAST::Node& name )
{
- m_name = name;
- if( m_name.get() ) m_name->setParent( this );
+ m_name = std::move(name);
+ if( m_name ) m_name->setParent( this );
}
TypedefAST::TypedefAST()
@@ -383,20 +383,20 @@ TypedefAST::TypedefAST()
void TypeSpecifierAST::setName( NameAST::Node& name )
{
- m_name = name;
- if( m_name.get() ) m_name->setParent( this );
+ m_name = std::move(name);
+ if( m_name ) m_name->setParent( this );
}
void TypedefAST::setTypeSpec( TypeSpecifierAST::Node& typeSpec )
{
- m_typeSpec = typeSpec;
- if( m_typeSpec.get() ) m_typeSpec->setParent( this );
+ m_typeSpec = std::move(typeSpec);
+ if( m_typeSpec ) m_typeSpec->setParent( this );
}
void TypedefAST::setInitDeclaratorList( InitDeclaratorListAST::Node& initDeclaratorList )
{
- m_initDeclaratorList = initDeclaratorList;
- if( m_initDeclaratorList.get() ) m_initDeclaratorList->setParent( this );
+ m_initDeclaratorList = std::move(initDeclaratorList);
+ if( m_initDeclaratorList ) m_initDeclaratorList->setParent( this );
}
// ------------------------------------------------------------------------
@@ -407,7 +407,7 @@ TemplateArgumentListAST::TemplateArgumentListAST()
void TemplateArgumentListAST::addArgument( AST::Node& arg )
{
- if( !arg.get() )
+ if( !arg )
return;
arg->setParent( this );
@@ -434,20 +434,20 @@ TemplateDeclarationAST::TemplateDeclarationAST()
void TemplateDeclarationAST::setExported( AST::Node& exported )
{
- m_exported = exported;
- if( m_exported.get() ) m_exported->setParent( this );
+ m_exported = std::move(exported);
+ if( m_exported ) m_exported->setParent( this );
}
void TemplateDeclarationAST::setTemplateParameterList( TemplateParameterListAST::Node& templateParameterList )
{
- m_templateParameterList = templateParameterList;
- if( m_templateParameterList.get() ) m_templateParameterList->setParent( this );
+ m_templateParameterList = std::move(templateParameterList);
+ if( m_templateParameterList ) m_templateParameterList->setParent( this );
}
void TemplateDeclarationAST::setDeclaration( DeclarationAST::Node& declaration )
{
- m_declaration = declaration;
- if( m_declaration.get() ) m_declaration->setParent( this );
+ m_declaration = std::move(declaration);
+ if( m_declaration ) m_declaration->setParent( this );
}
// ------------------------------------------------------------------------
@@ -457,23 +457,23 @@ ClassOrNamespaceNameAST::ClassOrNamespaceNameAST()
void ClassOrNamespaceNameAST::setName( AST::Node& name )
{
- m_name = name;
- if( m_name.get() ) m_name->setParent( this );
+ m_name = std::move(name);
+ if( m_name ) m_name->setParent( this );
}
void ClassOrNamespaceNameAST::setTemplateArgumentList( TemplateArgumentListAST::Node& templateArgumentList )
{
- m_templateArgumentList = templateArgumentList;
- if( m_templateArgumentList.get() ) m_templateArgumentList->setParent( this );
+ m_templateArgumentList = std::move(templateArgumentList);
+ if( m_templateArgumentList ) m_templateArgumentList->setParent( this );
}
TQString ClassOrNamespaceNameAST::text() const
{
- if( !m_name.get() )
+ if( !m_name )
return TQString();
TQString str = m_name->text();
- if( m_templateArgumentList.get() )
+ if( m_templateArgumentList )
str += TQString::fromLatin1("< ") + m_templateArgumentList->text() + TQString::fromLatin1(" >");
return str;
@@ -486,27 +486,27 @@ TypeSpecifierAST::TypeSpecifierAST()
void TypeSpecifierAST::setCvQualify( GroupAST::Node& cvQualify )
{
- m_cvQualify = cvQualify;
- if( m_cvQualify.get() ) m_cvQualify->setParent( this );
+ m_cvQualify = std::move(cvQualify);
+ if( m_cvQualify ) m_cvQualify->setParent( this );
}
void TypeSpecifierAST::setCv2Qualify( GroupAST::Node& cv2Qualify )
{
- m_cv2Qualify = cv2Qualify;
- if( m_cv2Qualify.get() ) m_cv2Qualify->setParent( this );
+ m_cv2Qualify = std::move(cv2Qualify);
+ if( m_cv2Qualify ) m_cv2Qualify->setParent( this );
}
TQString TypeSpecifierAST::text() const
{
TQString str;
- if( m_cvQualify.get() )
+ if( m_cvQualify )
str += m_cvQualify->text() + " ";
- if( m_name.get() )
+ if( m_name )
str += m_name->text();
- if( m_cv2Qualify.get() )
+ if( m_cv2Qualify )
str += TQString(" ") + m_cv2Qualify->text();
return str;
@@ -520,13 +520,13 @@ ClassSpecifierAST::ClassSpecifierAST()
void ClassSpecifierAST::setClassKey( AST::Node& classKey )
{
- m_classKey = classKey;
- if( m_classKey.get() ) m_classKey->setParent( this );
+ m_classKey = std::move(classKey);
+ if( m_classKey ) m_classKey->setParent( this );
}
void ClassSpecifierAST::addDeclaration( DeclarationAST::Node& declaration )
{
- if( !declaration.get() )
+ if( !declaration )
return;
declaration->setParent( this );
@@ -535,8 +535,8 @@ void ClassSpecifierAST::addDeclaration( DeclarationAST::Node& declaration )
void ClassSpecifierAST::setBaseClause( BaseClauseAST::Node& baseClause )
{
- m_baseClause = baseClause;
- if( m_baseClause.get() ) m_baseClause->setParent( this );
+ m_baseClause = std::move(baseClause);
+ if( m_baseClause ) m_baseClause->setParent( this );
}
// ------------------------------------------------------------------------
@@ -547,7 +547,7 @@ EnumSpecifierAST::EnumSpecifierAST()
void EnumSpecifierAST::addEnumerator( EnumeratorAST::Node& enumerator )
{
- if( !enumerator.get() )
+ if( !enumerator )
return;
enumerator->setParent( this );
@@ -562,13 +562,13 @@ ElaboratedTypeSpecifierAST::ElaboratedTypeSpecifierAST()
void ElaboratedTypeSpecifierAST::setKind( AST::Node& kind )
{
- m_kind = kind;
- if( m_kind.get() ) m_kind->setParent( this );
+ m_kind = std::move(kind);
+ if( m_kind ) m_kind->setParent( this );
}
TQString ElaboratedTypeSpecifierAST::text() const
{
- if( m_kind.get() )
+ if( m_kind )
return m_kind->text() + " " + TypeSpecifierAST::text();
return TypeSpecifierAST::text();
@@ -586,14 +586,14 @@ EnumeratorAST::EnumeratorAST()
void EnumeratorAST::setId( AST::Node& id )
{
- m_id = id;
- if( m_id.get() ) m_id->setParent( this );
+ m_id = std::move(id);
+ if( m_id ) m_id->setParent( this );
}
void EnumeratorAST::setExpr( AST::Node& expr )
{
- m_expr = expr;
- if( m_expr.get() ) m_expr->setParent( this );
+ m_expr = std::move(expr);
+ if( m_expr ) m_expr->setParent( this );
}
// ------------------------------------------------------------------------
@@ -604,7 +604,7 @@ BaseClauseAST::BaseClauseAST()
void BaseClauseAST::addBaseSpecifier( BaseSpecifierAST::Node& baseSpecifier )
{
- if( !baseSpecifier.get() )
+ if( !baseSpecifier )
return;
baseSpecifier->setParent( this );
@@ -618,20 +618,20 @@ BaseSpecifierAST::BaseSpecifierAST()
void BaseSpecifierAST::setIsVirtual( AST::Node& isVirtual )
{
- m_isVirtual = isVirtual;
- if( m_isVirtual.get() ) m_isVirtual->setParent( this );
+ m_isVirtual = std::move(isVirtual);
+ if( m_isVirtual ) m_isVirtual->setParent( this );
}
void BaseSpecifierAST::setAccess( AST::Node& access )
{
- m_access = access;
- if( m_access.get() ) m_access->setParent( this );
+ m_access = std::move(access);
+ if( m_access ) m_access->setParent( this );
}
void BaseSpecifierAST::setName( NameAST::Node& name )
{
- m_name = name;
- if( m_name.get() ) m_name->setParent( this );
+ m_name = std::move(name);
+ if( m_name ) m_name->setParent( this );
}
// ------------------------------------------------------------------------
@@ -641,32 +641,32 @@ SimpleDeclarationAST::SimpleDeclarationAST()
void SimpleDeclarationAST::setFunctionSpecifier( GroupAST::Node& functionSpecifier )
{
- m_functionSpecifier = functionSpecifier;
- if( m_functionSpecifier.get() ) m_functionSpecifier->setParent( this );
+ m_functionSpecifier = std::move(functionSpecifier);
+ if( m_functionSpecifier ) m_functionSpecifier->setParent( this );
}
void SimpleDeclarationAST::setStorageSpecifier( GroupAST::Node& storageSpecifier )
{
- m_storageSpecifier = storageSpecifier;
- if( m_storageSpecifier.get() ) m_storageSpecifier->setParent( this );
+ m_storageSpecifier = std::move(storageSpecifier);
+ if( m_storageSpecifier ) m_storageSpecifier->setParent( this );
}
void SimpleDeclarationAST::setTypeSpec( TypeSpecifierAST::Node& typeSpec )
{
- m_typeSpec = typeSpec;
- if( m_typeSpec.get() ) m_typeSpec->setParent( this );
+ m_typeSpec = std::move(typeSpec);
+ if( m_typeSpec ) m_typeSpec->setParent( this );
}
void SimpleDeclarationAST::setInitDeclaratorList( InitDeclaratorListAST::Node& initDeclaratorList )
{
- m_initDeclaratorList = initDeclaratorList;
- if( m_initDeclaratorList.get() ) m_initDeclaratorList->setParent( this );
+ m_initDeclaratorList = std::move(initDeclaratorList);
+ if( m_initDeclaratorList ) m_initDeclaratorList->setParent( this );
}
void SimpleDeclarationAST::setWinDeclSpec( GroupAST::Node& winDeclSpec )
{
- m_winDeclSpec = winDeclSpec;
- if( m_winDeclSpec.get() ) m_winDeclSpec->setParent( this );
+ m_winDeclSpec = std::move(winDeclSpec);
+ if( m_winDeclSpec ) m_winDeclSpec->setParent( this );
}
@@ -678,7 +678,7 @@ InitDeclaratorListAST::InitDeclaratorListAST()
void InitDeclaratorListAST::addInitDeclarator( InitDeclaratorAST::Node& decl )
{
- if( !decl.get() )
+ if( !decl )
return;
decl->setParent( this );
@@ -694,52 +694,52 @@ DeclaratorAST::DeclaratorAST()
void DeclaratorAST::setSubDeclarator( DeclaratorAST::Node& subDeclarator )
{
- m_subDeclarator = subDeclarator;
- if( m_subDeclarator.get() ) m_subDeclarator->setParent( this );
+ m_subDeclarator = std::move(subDeclarator);
+ if( m_subDeclarator ) m_subDeclarator->setParent( this );
}
void DeclaratorAST::setDeclaratorId( NameAST::Node& declaratorId )
{
- m_declaratorId = declaratorId;
- if( m_declaratorId.get() ) m_declaratorId->setParent( this );
+ m_declaratorId = std::move(declaratorId);
+ if( m_declaratorId ) m_declaratorId->setParent( this );
}
void DeclaratorAST::setBitfieldInitialization( AST::Node& bitfieldInitialization )
{
- m_bitfieldInitialization = bitfieldInitialization;
- if( m_bitfieldInitialization.get() ) m_bitfieldInitialization->setParent( this );
+ m_bitfieldInitialization = std::move(bitfieldInitialization);
+ if( m_bitfieldInitialization ) m_bitfieldInitialization->setParent( this );
}
void DeclaratorAST::addArrayDimension( AST::Node& arrayDimension )
{
- if( !arrayDimension.get() )
+ if( !arrayDimension )
return;
arrayDimension->setParent( this );
m_arrayDimensionList.append( arrayDimension.release() );
}
-void DeclaratorAST::setParameterDeclarationClause( ParameterDeclarationClauseAST::Node& parameterDeclarationClause )
+void DeclaratorAST::setParameterDeclarationClause( std::unique_ptr<class ParameterDeclarationClauseAST>& parameterDeclarationClause )
{
- m_parameterDeclarationClause = parameterDeclarationClause;
- if( m_parameterDeclarationClause.get() ) m_parameterDeclarationClause->setParent( this );
+ m_parameterDeclarationClause = std::move(parameterDeclarationClause);
+ if( m_parameterDeclarationClause ) m_parameterDeclarationClause->setParent( this );
}
void DeclaratorAST::setConstant( AST::Node& constant )
{
- m_constant = constant;
- if( m_constant.get() ) m_constant->setParent( this );
+ m_constant = std::move(constant);
+ if( m_constant ) m_constant->setParent( this );
}
void DeclaratorAST::setExceptionSpecification( GroupAST::Node& exceptionSpecification )
{
- m_exceptionSpecification = exceptionSpecification;
- if( m_exceptionSpecification.get() ) m_exceptionSpecification->setParent( this );
+ m_exceptionSpecification = std::move(exceptionSpecification);
+ if( m_exceptionSpecification ) m_exceptionSpecification->setParent( this );
}
void DeclaratorAST::addPtrOp( AST::Node& ptrOp )
{
- if( !ptrOp.get() )
+ if( !ptrOp )
return;
ptrOp->setParent( this );
@@ -753,14 +753,14 @@ InitDeclaratorAST::InitDeclaratorAST()
void InitDeclaratorAST::setDeclarator( DeclaratorAST::Node& declarator )
{
- m_declarator = declarator;
- if( m_declarator.get() ) m_declarator->setParent( this );
+ m_declarator = std::move(declarator);
+ if( m_declarator ) m_declarator->setParent( this );
}
void InitDeclaratorAST::setInitializer( AST::Node& initializer )
{
- m_initializer = initializer;
- if( m_initializer.get() ) m_initializer->setParent( this );
+ m_initializer = std::move(initializer);
+ if( m_initializer ) m_initializer->setParent( this );
}
// --------------------------------------------------------------------------
@@ -770,38 +770,38 @@ FunctionDefinitionAST::FunctionDefinitionAST()
void FunctionDefinitionAST::setFunctionSpecifier( GroupAST::Node& functionSpecifier )
{
- m_functionSpecifier = functionSpecifier;
- if( m_functionSpecifier.get() ) m_functionSpecifier->setParent( this );
+ m_functionSpecifier = std::move(functionSpecifier);
+ if( m_functionSpecifier ) m_functionSpecifier->setParent( this );
}
void FunctionDefinitionAST::setStorageSpecifier( GroupAST::Node& storageSpecifier )
{
- m_storageSpecifier = storageSpecifier;
- if( m_storageSpecifier.get() ) m_storageSpecifier->setParent( this );
+ m_storageSpecifier = std::move(storageSpecifier);
+ if( m_storageSpecifier ) m_storageSpecifier->setParent( this );
}
void FunctionDefinitionAST::setTypeSpec( TypeSpecifierAST::Node& typeSpec )
{
- m_typeSpec = typeSpec;
- if( m_typeSpec.get() ) m_typeSpec->setParent( this );
+ m_typeSpec = std::move(typeSpec);
+ if( m_typeSpec ) m_typeSpec->setParent( this );
}
void FunctionDefinitionAST::setInitDeclarator( InitDeclaratorAST::Node& initDeclarator )
{
- m_initDeclarator = initDeclarator;
- if( m_initDeclarator.get() ) m_initDeclarator->setParent( this );
+ m_initDeclarator = std::move(initDeclarator);
+ if( m_initDeclarator ) m_initDeclarator->setParent( this );
}
void FunctionDefinitionAST::setFunctionBody( StatementListAST::Node& functionBody )
{
- m_functionBody = functionBody;
- if( m_functionBody.get() ) m_functionBody->setParent( this );
+ m_functionBody = std::move(functionBody);
+ if( m_functionBody ) m_functionBody->setParent( this );
}
void FunctionDefinitionAST::setWinDeclSpec( GroupAST::Node& winDeclSpec )
{
- m_winDeclSpec = winDeclSpec;
- if( m_winDeclSpec.get() ) m_winDeclSpec->setParent( this );
+ m_winDeclSpec = std::move(winDeclSpec);
+ if( m_winDeclSpec ) m_winDeclSpec->setParent( this );
}
// --------------------------------------------------------------------------
@@ -812,7 +812,7 @@ StatementListAST::StatementListAST()
void StatementListAST::addStatement( StatementAST::Node& statement )
{
- if( !statement.get() )
+ if( !statement )
return;
statement->setParent( this );
@@ -826,20 +826,20 @@ IfStatementAST::IfStatementAST()
void IfStatementAST::setCondition( ConditionAST::Node& condition )
{
- m_condition = condition;
- if( m_condition.get() ) m_condition->setParent( this );
+ m_condition = std::move(condition);
+ if( m_condition ) m_condition->setParent( this );
}
void IfStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
void IfStatementAST::setElseStatement( StatementAST::Node& elseStatement )
{
- m_elseStatement = elseStatement;
- if( m_elseStatement.get() ) m_elseStatement->setParent( this );
+ m_elseStatement = std::move(elseStatement);
+ if( m_elseStatement ) m_elseStatement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -849,14 +849,14 @@ WhileStatementAST::WhileStatementAST()
void WhileStatementAST::setCondition( ConditionAST::Node& condition )
{
- m_condition = condition;
- if( m_condition.get() ) m_condition->setParent( this );
+ m_condition = std::move(condition);
+ if( m_condition ) m_condition->setParent( this );
}
void WhileStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -866,14 +866,14 @@ DoStatementAST::DoStatementAST()
void DoStatementAST::setCondition( ConditionAST::Node& condition )
{
- m_condition = condition;
- if( m_condition.get() ) m_condition->setParent( this );
+ m_condition = std::move(condition);
+ if( m_condition ) m_condition->setParent( this );
}
void DoStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -883,26 +883,26 @@ ForStatementAST::ForStatementAST()
void ForStatementAST::setCondition( ConditionAST::Node& condition )
{
- m_condition = condition;
- if( m_condition.get() ) m_condition->setParent( this );
+ m_condition = std::move(condition);
+ if( m_condition ) m_condition->setParent( this );
}
void ForStatementAST::setExpression( AST::Node& expression )
{
- m_expression = expression;
- if( m_expression.get() ) m_expression->setParent( this );
+ m_expression = std::move(expression);
+ if( m_expression ) m_expression->setParent( this );
}
void ForStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
void ForStatementAST::setInitStatement( StatementAST::Node& initStatement )
{
- m_initStatement = initStatement;
- if( m_initStatement.get() ) m_initStatement->setParent( this );
+ m_initStatement = std::move(initStatement);
+ if( m_initStatement ) m_initStatement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -912,20 +912,20 @@ ForEachStatementAST::ForEachStatementAST()
void ForEachStatementAST::setExpression( AST::Node& expression )
{
- m_expression = expression;
- if( m_expression.get() ) m_expression->setParent( this );
+ m_expression = std::move(expression);
+ if( m_expression ) m_expression->setParent( this );
}
void ForEachStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
void ForEachStatementAST::setInitStatement( StatementAST::Node& initStatement )
{
- m_initStatement = initStatement;
- if( m_initStatement.get() ) m_initStatement->setParent( this );
+ m_initStatement = std::move(initStatement);
+ if( m_initStatement ) m_initStatement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -935,14 +935,14 @@ SwitchStatementAST::SwitchStatementAST()
void SwitchStatementAST::setCondition( ConditionAST::Node& condition )
{
- m_condition = condition;
- if( m_condition.get() ) m_condition->setParent( this );
+ m_condition = std::move(condition);
+ if( m_condition ) m_condition->setParent( this );
}
void SwitchStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -953,7 +953,7 @@ CatchStatementListAST::CatchStatementListAST()
void CatchStatementListAST::addStatement( CatchStatementAST::Node& statement )
{
- if( !statement.get() )
+ if( !statement )
return;
statement->setParent( this );
@@ -967,14 +967,14 @@ CatchStatementAST::CatchStatementAST()
void CatchStatementAST::setCondition( ConditionAST::Node& condition )
{
- m_condition = condition;
- if( m_condition.get() ) m_condition->setParent( this );
+ m_condition = std::move(condition);
+ if( m_condition ) m_condition->setParent( this );
}
void CatchStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
// --------------------------------------------------------------------------
@@ -984,14 +984,14 @@ TryBlockStatementAST::TryBlockStatementAST()
void TryBlockStatementAST::setStatement( StatementAST::Node& statement )
{
- m_statement = statement;
- if( m_statement.get() ) m_statement->setParent( this );
+ m_statement = std::move(statement);
+ if( m_statement ) m_statement->setParent( this );
}
void TryBlockStatementAST::setCatchStatementList( CatchStatementListAST::Node& statementList )
{
- m_catchStatementList = statementList;
- if( m_catchStatementList.get() ) m_catchStatementList->setParent( this );
+ m_catchStatementList = std::move(statementList);
+ if( m_catchStatementList ) m_catchStatementList->setParent( this );
}
// --------------------------------------------------------------------------
@@ -1001,8 +1001,8 @@ DeclarationStatementAST::DeclarationStatementAST()
void DeclarationStatementAST::setDeclaration( DeclarationAST::Node& declaration )
{
- m_declaration = declaration;
- if( m_declaration.get() ) m_declaration->setParent( this );
+ m_declaration = std::move(declaration);
+ if( m_declaration ) m_declaration->setParent( this );
}
// --------------------------------------------------------------------------
@@ -1012,8 +1012,8 @@ ExpressionStatementAST::ExpressionStatementAST()
void ExpressionStatementAST::setExpression( AST::Node& expression )
{
- m_expression = expression;
- if( m_expression.get() ) m_expression->setParent( this );
+ m_expression = std::move(expression);
+ if( m_expression ) m_expression->setParent( this );
}
@@ -1024,32 +1024,32 @@ ParameterDeclarationAST::ParameterDeclarationAST()
void ParameterDeclarationAST::setTypeSpec( TypeSpecifierAST::Node& typeSpec )
{
- m_typeSpec = typeSpec;
- if( m_typeSpec.get() ) m_typeSpec->setParent( this );
+ m_typeSpec = std::move(typeSpec);
+ if( m_typeSpec ) m_typeSpec->setParent( this );
}
void ParameterDeclarationAST::setDeclarator( DeclaratorAST::Node& declarator )
{
- m_declarator = declarator;
- if( m_declarator.get() ) m_declarator->setParent( this );
+ m_declarator = std::move(declarator);
+ if( m_declarator ) m_declarator->setParent( this );
}
void ParameterDeclarationAST::setExpression( AST::Node& expression )
{
- m_expression = expression;
- if( m_expression.get() ) m_expression->setParent( this );
+ m_expression = std::move(expression);
+ if( m_expression ) m_expression->setParent( this );
}
TQString ParameterDeclarationAST::text() const
{
TQString str;
- if( m_typeSpec.get() )
+ if( m_typeSpec )
str += m_typeSpec->text() + " ";
- if( m_declarator.get() )
+ if( m_declarator )
str += m_declarator->text();
- if( m_expression.get() )
+ if( m_expression )
str += TQString( " = " ) + m_expression->text();
return str;
@@ -1063,7 +1063,7 @@ ParameterDeclarationListAST::ParameterDeclarationListAST()
void ParameterDeclarationListAST::addParameter( ParameterDeclarationAST::Node& parameter )
{
- if( !parameter.get() )
+ if( !parameter )
return;
parameter->setParent( this );
@@ -1091,24 +1091,24 @@ ParameterDeclarationClauseAST::ParameterDeclarationClauseAST()
void ParameterDeclarationClauseAST::setParameterDeclarationList( ParameterDeclarationListAST::Node& parameterDeclarationList )
{
- m_parameterDeclarationList = parameterDeclarationList;
- if( m_parameterDeclarationList.get() ) m_parameterDeclarationList->setParent( this );
+ m_parameterDeclarationList = std::move(parameterDeclarationList);
+ if( m_parameterDeclarationList ) m_parameterDeclarationList->setParent( this );
}
void ParameterDeclarationClauseAST::setEllipsis( AST::Node& ellipsis )
{
- m_ellipsis = ellipsis;
- if( m_ellipsis.get() ) m_ellipsis->setParent( this );
+ m_ellipsis = std::move(ellipsis);
+ if( m_ellipsis ) m_ellipsis->setParent( this );
}
TQString ParameterDeclarationClauseAST::text() const
{
TQString str;
- if( m_parameterDeclarationList.get() )
+ if( m_parameterDeclarationList )
str += m_parameterDeclarationList->text();
- if( m_ellipsis.get() )
+ if( m_ellipsis )
str += " ...";
return str;
@@ -1123,7 +1123,7 @@ GroupAST::GroupAST()
void GroupAST::addNode( AST::Node& node )
{
- if( !node.get() )
+ if( !node )
return;
node->setParent( this );
@@ -1151,7 +1151,7 @@ AccessDeclarationAST::AccessDeclarationAST()
void AccessDeclarationAST::addAccess( AST::Node& access )
{
- if( !access.get() )
+ if( !access )
return;
access->setParent( this );
@@ -1178,26 +1178,26 @@ TypeParameterAST::TypeParameterAST()
void TypeParameterAST::setKind( AST::Node& kind )
{
- m_kind = kind;
- if( m_kind.get() ) m_kind->setParent( this );
+ m_kind = std::move(kind);
+ if( m_kind ) m_kind->setParent( this );
}
-void TypeParameterAST::setTemplateParameterList( TemplateParameterListAST::Node& templateParameterList )
+void TypeParameterAST::setTemplateParameterList( std::unique_ptr<class TemplateParameterListAST>& templateParameterList )
{
- m_templateParameterList = templateParameterList;
- if( m_templateParameterList.get() ) m_templateParameterList->setParent( this );
+ m_templateParameterList = std::move(templateParameterList);
+ if( m_templateParameterList ) m_templateParameterList->setParent( this );
}
void TypeParameterAST::setName( NameAST::Node& name )
{
- m_name = name;
- if( m_name.get() ) m_name->setParent( this );
+ m_name = std::move(name);
+ if( m_name ) m_name->setParent( this );
}
void TypeParameterAST::setTypeId( AST::Node& typeId )
{
- m_typeId = typeId;
- if( m_typeId.get() ) m_typeId->setParent( this );
+ m_typeId = std::move(typeId);
+ if( m_typeId ) m_typeId->setParent( this );
}
// --------------------------------------------------------------------------
@@ -1207,14 +1207,14 @@ TemplateParameterAST::TemplateParameterAST()
void TemplateParameterAST::setTypeParameter( TypeParameterAST::Node& typeParameter )
{
- m_typeParameter = typeParameter;
- if( m_typeParameter.get() ) m_typeParameter->setParent( this );
+ m_typeParameter = std::move(typeParameter);
+ if( m_typeParameter ) m_typeParameter->setParent( this );
}
void TemplateParameterAST::setTypeValueParameter( ParameterDeclarationAST::Node& typeValueParameter )
{
- m_typeValueParameter = typeValueParameter;
- if( m_typeValueParameter.get() ) m_typeValueParameter->setParent( this );
+ m_typeValueParameter = std::move(typeValueParameter);
+ if( m_typeValueParameter ) m_typeValueParameter->setParent( this );
}
// --------------------------------------------------------------------------
@@ -1225,7 +1225,7 @@ TemplateParameterListAST::TemplateParameterListAST()
void TemplateParameterListAST::addTemplateParameter( TemplateParameterAST::Node& templateParameter )
{
- if( !templateParameter.get() )
+ if( !templateParameter )
return;
templateParameter->setParent( this );
@@ -1239,24 +1239,24 @@ ConditionAST::ConditionAST()
void ConditionAST::setTypeSpec( TypeSpecifierAST::Node& typeSpec )
{
- m_typeSpec = typeSpec;
- if( m_typeSpec.get() ) m_typeSpec->setParent( this );
+ m_typeSpec = std::move(typeSpec);
+ if( m_typeSpec ) m_typeSpec->setParent( this );
}
void ConditionAST::setDeclarator( DeclaratorAST::Node& declarator )
{
- m_declarator = declarator;
- if( m_declarator.get() ) m_declarator->setParent( this );
+ m_declarator = std::move(declarator);
+ if( m_declarator ) m_declarator->setParent( this );
}
void ConditionAST::setExpression( AST::Node& expression )
{
- m_expression = expression;
- if( m_expression.get() ) m_expression->setParent( this );
+ m_expression = std::move(expression);
+ if( m_expression ) m_expression->setParent( this );
}
void ClassSpecifierAST::setWinDeclSpec( GroupAST::Node & winDeclSpec )
{
- m_winDeclSpec = winDeclSpec;
- if( m_winDeclSpec.get() ) m_winDeclSpec->setParent( this );
+ m_winDeclSpec = std::move(winDeclSpec);
+ if( m_winDeclSpec ) m_winDeclSpec->setParent( this );
}
diff --git a/lib/cppparser/ast.h b/lib/cppparser/ast.h
index a55325bd..b6c2d64b 100644
--- a/lib/cppparser/ast.h
+++ b/lib/cppparser/ast.h
@@ -72,7 +72,7 @@ enum NodeType
NodeType_WhileStatement,
NodeType_DoStatement,
NodeType_ForStatement,
- NodeType_ForEachStatement, // qt4 [erbsland]
+ NodeType_ForEachStatement,
NodeType_SwitchStatement,
NodeType_CatchStatement,
NodeType_CatchStatementList,
@@ -155,7 +155,7 @@ class CommentAST {
class AST : public CommentAST
{
public:
- typedef std::auto_ptr<AST> Node;
+ typedef std::unique_ptr<AST> Node;
enum { Type=NodeType_Generic };
DECLARE_ALLOC( AST )
@@ -217,7 +217,7 @@ private:
class GroupAST: public AST
{
public:
- typedef std::auto_ptr<GroupAST> Node;
+ typedef std::unique_ptr<GroupAST> Node;
enum { Type = NodeType_Group };
DECLARE_ALLOC( GroupAST )
@@ -242,7 +242,7 @@ private:
class TemplateArgumentListAST: public AST
{
public:
- typedef std::auto_ptr<TemplateArgumentListAST> Node;
+ typedef std::unique_ptr<TemplateArgumentListAST> Node;
enum { Type = NodeType_TemplateArgumentList };
DECLARE_ALLOC( TemplateArgumentListAST )
@@ -266,7 +266,7 @@ private:
class ClassOrNamespaceNameAST: public AST
{
public:
- typedef std::auto_ptr<ClassOrNamespaceNameAST> Node;
+ typedef std::unique_ptr<ClassOrNamespaceNameAST> Node;
enum { Type = NodeType_ClassOrNamespaceName };
DECLARE_ALLOC( ClassOrNamespaceNameAST )
@@ -294,7 +294,7 @@ private:
class NameAST: public AST
{
public:
- typedef std::auto_ptr<NameAST> Node;
+ typedef std::unique_ptr<NameAST> Node;
enum { Type = NodeType_Name };
DECLARE_ALLOC( NameAST )
@@ -326,7 +326,7 @@ private:
class TypeParameterAST: public AST
{
public:
- typedef std::auto_ptr<TypeParameterAST> Node;
+ typedef std::unique_ptr<TypeParameterAST> Node;
enum { Type = NodeType_TypeParameter };
DECLARE_ALLOC( TypeParameterAST )
@@ -338,7 +338,7 @@ public:
void setKind( AST::Node& kind );
class TemplateParameterListAST* templateParameterList() { return m_templateParameterList.get(); }
- void setTemplateParameterList( std::auto_ptr<class TemplateParameterListAST>& templateParameterList );
+ void setTemplateParameterList( std::unique_ptr<class TemplateParameterListAST>& templateParameterList );
NameAST* name() { return m_name.get(); }
void setName( NameAST::Node& name );
@@ -348,7 +348,7 @@ public:
private:
AST::Node m_kind;
- std::auto_ptr<class TemplateParameterListAST> m_templateParameterList;
+ std::unique_ptr<class TemplateParameterListAST> m_templateParameterList;
NameAST::Node m_name;
AST::Node m_typeId;
@@ -360,7 +360,7 @@ private:
class DeclarationAST: public AST
{
public:
- typedef std::auto_ptr<DeclarationAST> Node;
+ typedef std::unique_ptr<DeclarationAST> Node;
enum { Type = NodeType_Declaration };
DECLARE_ALLOC( DeclarationAST )
@@ -376,7 +376,7 @@ private:
class AccessDeclarationAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<AccessDeclarationAST> Node;
+ typedef std::unique_ptr<AccessDeclarationAST> Node;
enum { Type = NodeType_AccessDeclaration };
DECLARE_ALLOC( AccessDeclarationAST )
@@ -400,7 +400,7 @@ private:
class TypeSpecifierAST: public AST
{
public:
- typedef std::auto_ptr<TypeSpecifierAST> Node;
+ typedef std::unique_ptr<TypeSpecifierAST> Node;
enum { Type = NodeType_TypeSpecifier };
DECLARE_ALLOC( TypeSpecifierAST )
@@ -432,7 +432,7 @@ private:
class BaseSpecifierAST: public AST
{
public:
- typedef std::auto_ptr<BaseSpecifierAST> Node;
+ typedef std::unique_ptr<BaseSpecifierAST> Node;
enum { Type = NodeType_BaseSpecifier };
DECLARE_ALLOC( BaseSpecifierAST )
@@ -462,7 +462,7 @@ private:
class BaseClauseAST: public AST
{
public:
- typedef std::auto_ptr<BaseClauseAST> Node;
+ typedef std::unique_ptr<BaseClauseAST> Node;
enum { Type = NodeType_BaseClause };
DECLARE_ALLOC( BaseClauseAST )
@@ -484,7 +484,7 @@ private:
class ClassSpecifierAST: public TypeSpecifierAST
{
public:
- typedef std::auto_ptr<ClassSpecifierAST> Node;
+ typedef std::unique_ptr<ClassSpecifierAST> Node;
enum { Type = NodeType_ClassSpecifier };
DECLARE_ALLOC( ClassSpecifierAST )
@@ -517,7 +517,7 @@ private:
class EnumeratorAST: public AST
{
public:
- typedef std::auto_ptr<EnumeratorAST> Node;
+ typedef std::unique_ptr<EnumeratorAST> Node;
enum { Type = NodeType_Enumerator };
DECLARE_ALLOC( EnumeratorAST )
@@ -543,7 +543,7 @@ private:
class EnumSpecifierAST: public TypeSpecifierAST
{
public:
- typedef std::auto_ptr<EnumSpecifierAST> Node;
+ typedef std::unique_ptr<EnumSpecifierAST> Node;
enum { Type = NodeType_EnumSpecifier };
DECLARE_ALLOC( EnumSpecifierAST )
@@ -565,7 +565,7 @@ private:
class ElaboratedTypeSpecifierAST: public TypeSpecifierAST
{
public:
- typedef std::auto_ptr<ElaboratedTypeSpecifierAST> Node;
+ typedef std::unique_ptr<ElaboratedTypeSpecifierAST> Node;
enum { Type = NodeType_ElaboratedTypeSpecifier };
DECLARE_ALLOC( ElaboratedTypeSpecifierAST )
@@ -590,7 +590,7 @@ private:
class LinkageBodyAST: public AST
{
public:
- typedef std::auto_ptr<LinkageBodyAST> Node;
+ typedef std::unique_ptr<LinkageBodyAST> Node;
enum { Type = NodeType_LinkageBody };
DECLARE_ALLOC( LinkageBodyAST )
@@ -612,7 +612,7 @@ private:
class LinkageSpecificationAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<LinkageSpecificationAST> Node;
+ typedef std::unique_ptr<LinkageSpecificationAST> Node;
enum { Type = NodeType_LinkageSpecification };
DECLARE_ALLOC( LinkageSpecificationAST )
@@ -642,7 +642,7 @@ private:
class NamespaceAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<NamespaceAST> Node;
+ typedef std::unique_ptr<NamespaceAST> Node;
enum { Type = NodeType_Namespace };
DECLARE_ALLOC( NamespaceAST )
@@ -668,7 +668,7 @@ private:
class NamespaceAliasAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<NamespaceAliasAST> Node;
+ typedef std::unique_ptr<NamespaceAliasAST> Node;
enum { Type = NodeType_NamespaceAlias };
DECLARE_ALLOC( NamespaceAliasAST )
@@ -694,7 +694,7 @@ private:
class UsingAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<UsingAST> Node;
+ typedef std::unique_ptr<UsingAST> Node;
enum { Type = NodeType_Using };
DECLARE_ALLOC( UsingAST )
@@ -720,7 +720,7 @@ private:
class UsingDirectiveAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<UsingDirectiveAST> Node;
+ typedef std::unique_ptr<UsingDirectiveAST> Node;
enum { Type = NodeType_UsingDirective };
DECLARE_ALLOC( UsingDirectiveAST )
@@ -742,7 +742,7 @@ private:
class DeclaratorAST: public AST
{
public:
- typedef std::auto_ptr<DeclaratorAST> Node;
+ typedef std::unique_ptr<DeclaratorAST> Node;
enum { Type = NodeType_Declarator };
DECLARE_ALLOC( DeclaratorAST )
@@ -754,7 +754,7 @@ public:
void addPtrOp( AST::Node& ptrOp );
DeclaratorAST* subDeclarator() { return m_subDeclarator.get(); }
- void setSubDeclarator( std::auto_ptr<DeclaratorAST>& subDeclarator );
+ void setSubDeclarator( Node& subDeclarator );
NameAST* declaratorId() { return m_declaratorId.get(); }
void setDeclaratorId( NameAST::Node& declaratorId );
@@ -766,7 +766,7 @@ public:
void addArrayDimension( AST::Node& arrayDimension );
class ParameterDeclarationClauseAST* parameterDeclarationClause() { return m_parameterDeclarationClause.get(); }
- void setParameterDeclarationClause( std::auto_ptr<class ParameterDeclarationClauseAST>& parameterDeclarationClause );
+ void setParameterDeclarationClause( std::unique_ptr<class ParameterDeclarationClauseAST>& parameterDeclarationClause );
// ### replace 'constant' with cvQualify
AST* constant() { return m_constant.get(); }
@@ -777,11 +777,11 @@ public:
private:
TQPtrList<AST> m_ptrOpList;
- std::auto_ptr<DeclaratorAST> m_subDeclarator;
+ Node m_subDeclarator;
NameAST::Node m_declaratorId;
AST::Node m_bitfieldInitialization;
TQPtrList<AST> m_arrayDimensionList;
- std::auto_ptr<class ParameterDeclarationClauseAST> m_parameterDeclarationClause;
+ std::unique_ptr<class ParameterDeclarationClauseAST> m_parameterDeclarationClause;
AST::Node m_constant;
GroupAST::Node m_exceptionSpecification;
@@ -793,7 +793,7 @@ private:
class ParameterDeclarationAST: public AST
{
public:
- typedef std::auto_ptr<ParameterDeclarationAST> Node;
+ typedef std::unique_ptr<ParameterDeclarationAST> Node;
enum { Type = NodeType_ParameterDeclaration };
DECLARE_ALLOC( ParameterDeclarationAST )
@@ -825,7 +825,7 @@ private:
class ParameterDeclarationListAST: public AST
{
public:
- typedef std::auto_ptr<ParameterDeclarationListAST> Node;
+ typedef std::unique_ptr<ParameterDeclarationListAST> Node;
enum { Type = NodeType_ParameterDeclarationList };
DECLARE_ALLOC( ParameterDeclarationListAST )
@@ -849,7 +849,7 @@ private:
class ParameterDeclarationClauseAST: public AST
{
public:
- typedef std::auto_ptr<ParameterDeclarationClauseAST> Node;
+ typedef std::unique_ptr<ParameterDeclarationClauseAST> Node;
enum { Type = NodeType_ParameterDeclarationClause };
DECLARE_ALLOC( ParameterDeclarationClauseAST )
@@ -878,7 +878,7 @@ private:
class InitDeclaratorAST: public AST
{
public:
- typedef std::auto_ptr<InitDeclaratorAST> Node;
+ typedef std::unique_ptr<InitDeclaratorAST> Node;
enum { Type = NodeType_InitDeclarator };
DECLARE_ALLOC( InitDeclaratorAST )
@@ -904,7 +904,7 @@ private:
class InitDeclaratorListAST: public AST
{
public:
- typedef std::auto_ptr<InitDeclaratorListAST> Node;
+ typedef std::unique_ptr<InitDeclaratorListAST> Node;
enum { Type = NodeType_InitDeclaratorList };
DECLARE_ALLOC( InitDeclaratorListAST )
@@ -926,7 +926,7 @@ private:
class TypedefAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<TypedefAST> Node;
+ typedef std::unique_ptr<TypedefAST> Node;
enum { Type = NodeType_Typedef };
DECLARE_ALLOC( TypedefAST )
@@ -952,7 +952,7 @@ private:
class TemplateParameterAST: public AST
{
public:
- typedef std::auto_ptr<TemplateParameterAST> Node;
+ typedef std::unique_ptr<TemplateParameterAST> Node;
enum { Type = NodeType_TemplateParameter };
DECLARE_ALLOC( TemplateParameterAST )
@@ -978,7 +978,7 @@ private:
class TemplateParameterListAST: public AST
{
public:
- typedef std::auto_ptr<TemplateParameterListAST> Node;
+ typedef std::unique_ptr<TemplateParameterListAST> Node;
enum { Type = NodeType_TemplateParameterList };
DECLARE_ALLOC( TemplateParameterListAST )
@@ -1000,7 +1000,7 @@ private:
class TemplateDeclarationAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<TemplateDeclarationAST> Node;
+ typedef std::unique_ptr<TemplateDeclarationAST> Node;
enum { Type = NodeType_TemplateDeclaration };
DECLARE_ALLOC( TemplateDeclarationAST )
@@ -1030,7 +1030,7 @@ private:
class SimpleDeclarationAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<SimpleDeclarationAST> Node;
+ typedef std::unique_ptr<SimpleDeclarationAST> Node;
enum { Type = NodeType_SimpleDeclaration };
DECLARE_ALLOC( SimpleDeclarationAST )
@@ -1068,7 +1068,7 @@ private:
class StatementAST: public AST
{
public:
- typedef std::auto_ptr<StatementAST> Node;
+ typedef std::unique_ptr<StatementAST> Node;
enum { Type = NodeType_Statement };
DECLARE_ALLOC( StatementAST )
@@ -1084,7 +1084,7 @@ private:
class ExpressionStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<ExpressionStatementAST> Node;
+ typedef std::unique_ptr<ExpressionStatementAST> Node;
enum { Type = NodeType_ExpressionStatement };
DECLARE_ALLOC( ExpressionStatementAST )
@@ -1106,7 +1106,7 @@ private:
class ConditionAST: public AST
{
public:
- typedef std::auto_ptr<ConditionAST> Node;
+ typedef std::unique_ptr<ConditionAST> Node;
enum { Type = NodeType_Condition };
DECLARE_ALLOC( ConditionAST )
@@ -1136,7 +1136,7 @@ private:
class IfStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<IfStatementAST> Node;
+ typedef std::unique_ptr<IfStatementAST> Node;
enum { Type = NodeType_IfStatement };
DECLARE_ALLOC( IfStatementAST )
@@ -1166,7 +1166,7 @@ private:
class WhileStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<WhileStatementAST> Node;
+ typedef std::unique_ptr<WhileStatementAST> Node;
enum { Type = NodeType_WhileStatement };
DECLARE_ALLOC( WhileStatementAST )
@@ -1192,7 +1192,7 @@ private:
class DoStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<DoStatementAST> Node;
+ typedef std::unique_ptr<DoStatementAST> Node;
enum { Type = NodeType_DoStatement };
DECLARE_ALLOC( DoStatementAST )
@@ -1218,7 +1218,7 @@ private:
class ForStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<ForStatementAST> Node;
+ typedef std::unique_ptr<ForStatementAST> Node;
enum { Type = NodeType_ForStatement };
DECLARE_ALLOC( ForStatementAST )
@@ -1249,11 +1249,10 @@ private:
void operator = ( const ForStatementAST& source );
};
-// qt4 [erbsland]
class ForEachStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<ForEachStatementAST> Node;
+ typedef std::unique_ptr<ForEachStatementAST> Node;
enum { Type = NodeType_ForEachStatement };
DECLARE_ALLOC( ForEachStatementAST )
@@ -1283,7 +1282,7 @@ private:
class SwitchStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<SwitchStatementAST> Node;
+ typedef std::unique_ptr<SwitchStatementAST> Node;
enum { Type = NodeType_SwitchStatement };
DECLARE_ALLOC( SwitchStatementAST )
@@ -1309,7 +1308,7 @@ private:
class StatementListAST: public StatementAST
{
public:
- typedef std::auto_ptr<StatementListAST> Node;
+ typedef std::unique_ptr<StatementListAST> Node;
enum { Type = NodeType_StatementList };
DECLARE_ALLOC( StatementListAST )
@@ -1331,7 +1330,7 @@ private:
class CatchStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<CatchStatementAST> Node;
+ typedef std::unique_ptr<CatchStatementAST> Node;
enum { Type = NodeType_CatchStatement };
DECLARE_ALLOC( CatchStatementAST )
@@ -1357,7 +1356,7 @@ private:
class CatchStatementListAST: public StatementAST
{
public:
- typedef std::auto_ptr<CatchStatementListAST> Node;
+ typedef std::unique_ptr<CatchStatementListAST> Node;
enum { Type = NodeType_CatchStatementList };
DECLARE_ALLOC( CatchStatementListAST )
@@ -1379,7 +1378,7 @@ private:
class TryBlockStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<TryBlockStatementAST> Node;
+ typedef std::unique_ptr<TryBlockStatementAST> Node;
enum { Type = NodeType_TryBlockStatement };
DECLARE_ALLOC( TryBlockStatementAST )
@@ -1405,7 +1404,7 @@ private:
class DeclarationStatementAST: public StatementAST
{
public:
- typedef std::auto_ptr<DeclarationStatementAST> Node;
+ typedef std::unique_ptr<DeclarationStatementAST> Node;
enum { Type = NodeType_DeclarationStatement };
DECLARE_ALLOC( DeclarationStatementAST )
@@ -1427,7 +1426,7 @@ private:
class FunctionDefinitionAST: public DeclarationAST
{
public:
- typedef std::auto_ptr<FunctionDefinitionAST> Node;
+ typedef std::unique_ptr<FunctionDefinitionAST> Node;
enum { Type = NodeType_FunctionDefinition };
DECLARE_ALLOC( FunctionDefinitionAST )
diff --git a/lib/cppparser/driver.cpp b/lib/cppparser/driver.cpp
index c1a6f55a..07491169 100644
--- a/lib/cppparser/driver.cpp
+++ b/lib/cppparser/driver.cpp
@@ -594,10 +594,10 @@ void Driver::setupLexer( Lexer * lexer ) {
lexer->addSkipWord( "EXPORT_DOCKCLASS" );
lexer->addSkipWord( "K_EXPORT_COMPONENT_FACTORY", SkipWordAndArguments );
lexer->addSkipWord( "K_SYCOCAFACTORY", SkipWordAndArguments );
- lexer->addSkipWord( "KDE_DEPRECATED" );
+ lexer->addSkipWord( "TDE_DEPRECATED" );
// qt
- lexer->addSkipWord( "Q_OBJECT" );
+ lexer->addSkipWord( "TQ_OBJECT" );
lexer->addSkipWord( "" );
lexer->addSkipWord( "TQ_OVERRIDE", SkipWordAndArguments );
lexer->addSkipWord( "TQ_ENUMS", SkipWordAndArguments );
@@ -614,14 +614,11 @@ void Driver::setupLexer( Lexer * lexer ) {
lexer->addSkipWord( "TQ_REFCOUNT" );
lexer->addSkipWord( "TQ_EXPLICIT" );
lexer->addSkipWord( "QMAC_PASCAL" );
- lexer->addSkipWord( "QT_STATIC_CONST" );
- lexer->addSkipWord( "QT_STATIC_CONST_IMPL" );
lexer->addSkipWord( "TQT_WIN_PAINTER_MEMBERS" );
lexer->addSkipWord( "TQT_NC_MSGBOX" );
lexer->addSkipWord( "TQ_VARIANT_AS", SkipWordAndArguments );
lexer->addSkipWord( "CALLBACK_CALL_TYPE" );
- // qt4 [erbsland]
lexer->addSkipWord( "TQ_DECLARE_FLAGS", SkipWordAndArguments );
lexer->addSkipWord( "TQ_DECLARE_OPERATORS_FOR_FLAGS", SkipWordAndArguments );
diff --git a/lib/cppparser/errors.cpp b/lib/cppparser/errors.cpp
index 5ce5058d..2622e7de 100644
--- a/lib/cppparser/errors.cpp
+++ b/lib/cppparser/errors.cpp
@@ -20,6 +20,6 @@
#include "errors.h"
#include <tdelocale.h>
-QT_STATIC_CONST_IMPL Error& Errors::InternalError = Error( 1, -1, i18n("Internal Error") );
-QT_STATIC_CONST_IMPL Error& Errors::SyntaxError = Error( 2, -1, i18n("Syntax Error before '%1'") );
-QT_STATIC_CONST_IMPL Error& Errors::ParseError = Error( 3, -1, i18n("Parse Error before '%1'") );
+const Error& Errors::InternalError = Error( 1, -1, i18n("Internal Error") );
+const Error& Errors::SyntaxError = Error( 2, -1, i18n("Syntax Error before '%1'") );
+const Error& Errors::ParseError = Error( 3, -1, i18n("Parse Error before '%1'") );
diff --git a/lib/cppparser/errors.h b/lib/cppparser/errors.h
index 26b63f2c..d4e65e0b 100644
--- a/lib/cppparser/errors.h
+++ b/lib/cppparser/errors.h
@@ -35,9 +35,9 @@ struct Error{
class Errors{
public:
- QT_STATIC_CONST Error& InternalError;
- QT_STATIC_CONST Error& SyntaxError;
- QT_STATIC_CONST Error& ParseError;
+ static const Error& InternalError;
+ static const Error& SyntaxError;
+ static const Error& ParseError;
};
diff --git a/lib/cppparser/keywords.h b/lib/cppparser/keywords.h
index 5c48324d..385342fe 100644
--- a/lib/cppparser/keywords.h
+++ b/lib/cppparser/keywords.h
@@ -9,7 +9,7 @@ INSERT( "k_dcop", Token_k_dcop );
INSERT( "k_dcop_signals", Token_k_dcop_signals );
// TQt Keywords
-INSERT( "Q_OBJECT", Token_Q_OBJECT );
+INSERT( "TQ_OBJECT", Token_TQ_OBJECT );
INSERT( "", Token_ );
INSERT( "signals", Token_signals );
INSERT( "slots", Token_slots );
diff --git a/lib/cppparser/lexer.cpp b/lib/cppparser/lexer.cpp
index 5325c80f..f5ec0015 100644
--- a/lib/cppparser/lexer.cpp
+++ b/lib/cppparser/lexer.cpp
@@ -514,7 +514,7 @@ void Lexer::resetSkipWords()
void Lexer::addSkipWord( const TQString& word, SkipType skipType, const TQString& str )
{
- m_words[ word ] = tqMakePair( skipType, str );
+ m_words[ word ] = qMakePair( skipType, str );
}
void Lexer::skip( int l, int r )
diff --git a/lib/cppparser/lexer.h b/lib/cppparser/lexer.h
index dd3e5824..b496afda 100644
--- a/lib/cppparser/lexer.h
+++ b/lib/cppparser/lexer.h
@@ -60,12 +60,12 @@ enum Type {
Token_k_dcop,
Token_k_dcop_signals,
- Token_Q_OBJECT,
+ Token_TQ_OBJECT,
Token_,
Token_signals,
Token_slots,
Token_emit,
- Token_foreach, // qt4 [erbsland]
+ Token_foreach,
Token_and,
Token_and_eq,
diff --git a/lib/cppparser/parser.cpp b/lib/cppparser/parser.cpp
index 5e394b27..9701b944 100644
--- a/lib/cppparser/parser.cpp
+++ b/lib/cppparser/parser.cpp
@@ -325,7 +325,7 @@ bool Parser::skipCommaExpression( AST::Node& node )
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -377,7 +377,7 @@ bool Parser::skipExpression( AST::Node& node )
{
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
}
return true;
@@ -428,7 +428,7 @@ bool Parser::parseName( NameAST::Node& node )
return false;
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -441,7 +441,7 @@ bool Parser::parseTranslationUnit( TranslationUnitAST::Node& node )
m_problems = 0;
TranslationUnitAST::Node tun = CreateNode<TranslationUnitAST>();
- node = tun;
+ node = std::move(tun);
if( lex->lookAhead(0) == Token_comment ) {
node->setComment( lex->lookAhead(0).text() );
nextToken();
@@ -539,7 +539,7 @@ bool Parser::parseDeclaration( DeclarationAST::Node& node )
ast->setTypeSpec( spec );
ast->setInitDeclaratorList( declarators );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -587,7 +587,7 @@ bool Parser::parseLinkageSpecification( DeclarationAST::Node& node )
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -604,7 +604,7 @@ bool Parser::parseLinkageBody( LinkageBodyAST::Node& node )
nextToken();
LinkageBodyAST::Node lba = CreateNode<LinkageBodyAST>();
- node = lba;
+ node = std::move(lba);
while( !lex->lookAhead(0).isNull() ){
int tk = lex->lookAhead( 0 );
@@ -665,7 +665,7 @@ bool Parser::parseNamespace( DeclarationAST::Node& node )
ast->setNamespaceName( namespaceName );
ast->setAliasName( name );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
} else {
reportError( i18n("namespace expected") );
@@ -684,7 +684,7 @@ bool Parser::parseNamespace( DeclarationAST::Node& node )
ast->setLinkageBody( linkageBody );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -727,7 +727,7 @@ bool Parser::parseUsing( DeclarationAST::Node& node )
ADVANCE( ';', ";" );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -754,7 +754,7 @@ bool Parser::parseUsingDirective( DeclarationAST::Node& node )
UsingDirectiveAST::Node ast = CreateNode<UsingDirectiveAST>();
ast->setName( name );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -774,7 +774,7 @@ bool Parser::parseOperatorFunctionId( AST::Node& node )
AST::Node op;
if( parseOperator(op) ){
AST::Node asn = CreateNode<AST>();
- node = asn;
+ node = std::move(asn);
UPDATE_POS( node, start, lex->index() );
return true;
} else {
@@ -798,7 +798,7 @@ bool Parser::parseOperatorFunctionId( AST::Node& node )
;
AST::Node asn = CreateNode<AST>();
- node = asn;
+ node = std::move(asn);
UPDATE_POS( node, start, lex->index() );
return true;
}
@@ -831,7 +831,7 @@ bool Parser::parseTemplateArgumentList( TemplateArgumentListAST::Node& node, boo
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -879,7 +879,7 @@ bool Parser::parseTypedef( DeclarationAST::Node& node )
ast->setTypeSpec( spec );
ast->setInitDeclaratorList( declarators );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -913,7 +913,7 @@ bool Parser::parseTemplateDeclaration( DeclarationAST::Node& node )
nextToken();
AST::Node n = CreateNode<AST>();
UPDATE_POS( n, startExport, lex->index() );
- exp = n;
+ exp = std::move(n);
}
if( lex->lookAhead(0) != Token_template ){
@@ -939,7 +939,7 @@ bool Parser::parseTemplateDeclaration( DeclarationAST::Node& node )
ast->setTemplateParameterList( params );
ast->setDeclaration( def );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1033,7 +1033,7 @@ bool Parser::parseCvQualify( GroupAST::Node& node )
////kdDebug(9007)<< "-----------------> token = " << lex->lookAhead(0).text() << endl;
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1090,7 +1090,7 @@ bool Parser::parseSimpleTypeSpecifier( TypeSpecifierAST::Node& node )
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1118,7 +1118,7 @@ bool Parser::parsePtrOperator( AST::Node& node )
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1283,7 +1283,7 @@ bool Parser::parseDeclarator( DeclaratorAST::Node& node )
update_pos:
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1380,7 +1380,7 @@ bool Parser::parseAbstractDeclarator( DeclaratorAST::Node& node )
UPDATE_POS:
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1439,7 +1439,7 @@ bool Parser::parseEnumSpecifier( TypeSpecifierAST::Node& node )
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1470,7 +1470,7 @@ bool Parser::parseTemplateParameterList( TemplateParameterListAST::Node& node )
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1498,7 +1498,7 @@ bool Parser::parseTemplateParameter( TemplateParameterAST::Node& node )
ok:
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1586,7 +1586,7 @@ bool Parser::parseTypeParameter( TypeParameterAST::Node& node )
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1615,7 +1615,7 @@ bool Parser::parseStorageClassSpecifier( GroupAST::Node& node )
return false;
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1644,7 +1644,7 @@ bool Parser::parseFunctionSpecifier( GroupAST::Node& node )
return false;
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1665,7 +1665,7 @@ bool Parser::parseTypeId( AST::Node& node )
parseAbstractDeclarator( decl );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1696,7 +1696,7 @@ bool Parser::parseInitDeclaratorList( InitDeclaratorListAST::Node& node )
////kdDebug(9007)<< "--- tok = " << lex->lookAhead(0).text() << " -- " << "Parser::parseInitDeclaratorList() -- end" << endl;
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1735,7 +1735,7 @@ good:
/// @todo add ellipsis
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1844,7 +1844,7 @@ bool Parser::parseParameterDeclarationList( ParameterDeclarationListAST::Node& n
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1887,7 +1887,7 @@ bool Parser::parseParameterDeclaration( ParameterDeclarationAST::Node& node )
ast->setExpression( expr );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1905,7 +1905,7 @@ bool Parser::parseClassSpecifier( TypeSpecifierAST::Node& node )
int kind = lex->lookAhead( 0 );
if( kind == Token_class || kind == Token_struct || kind == Token_union ){
AST::Node asn = CreateNode<AST>();
- classKey = asn;
+ classKey = std::move(asn);
nextToken();
UPDATE_POS( classKey, classKeyStart, lex->index() );
} else {
@@ -1968,7 +1968,7 @@ bool Parser::parseClassSpecifier( TypeSpecifierAST::Node& node )
nextToken();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -1984,7 +1984,7 @@ bool Parser::parseAccessSpecifier( AST::Node& node )
case Token_protected:
case Token_private: {
AST::Node asn = CreateNode<AST>();
- node = asn;
+ node = std::move(asn);
nextToken();
UPDATE_POS( node, start, lex->index() );
return true;
@@ -2005,7 +2005,7 @@ bool Parser::parseMemberSpecification( DeclarationAST::Node& node )
if( lex->lookAhead(0) == ';' ){
nextToken();
return true;
- } else if( lex->lookAhead(0) == Token_Q_OBJECT || lex->lookAhead(0) == Token_ || lex->lookAhead(0) == Token_K_DCOP ){
+ } else if( lex->lookAhead(0) == Token_TQ_OBJECT || lex->lookAhead(0) == Token_ || lex->lookAhead(0) == Token_K_DCOP ){
nextToken();
return true;
} else if( lex->lookAhead(0) == Token_signals || lex->lookAhead(0) == Token_k_dcop || lex->lookAhead(0) == Token_k_dcop_signals ){
@@ -2016,7 +2016,7 @@ bool Parser::parseMemberSpecification( DeclarationAST::Node& node )
ast->addAccess( n );
ADVANCE( ':', ":" );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
} else if( parseTypedef(node) ){
return true;
@@ -2037,7 +2037,7 @@ bool Parser::parseMemberSpecification( DeclarationAST::Node& node )
}
ADVANCE( ':', ":" );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2065,7 +2065,7 @@ bool Parser::parseMemberSpecification( DeclarationAST::Node& node )
ast->setTypeSpec( spec );
ast->setInitDeclaratorList( declarators );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2115,7 +2115,7 @@ bool Parser::parseElaboratedTypeSpecifier( TypeSpecifierAST::Node& node )
ast->setKind( kind );
ast->setName( name );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2149,7 +2149,7 @@ bool Parser::parseExceptionSpecification( GroupAST::Node& node )
ast->addNode( ellipsis );
nextToken();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
} else if( lex->lookAhead(0) == ')' ) {
node = CreateNode<GroupAST>();
} else {
@@ -2174,7 +2174,7 @@ bool Parser::parseEnumerator( EnumeratorAST::Node& node )
EnumeratorAST::Node ena = CreateNode<EnumeratorAST>();
- node = ena;
+ node = std::move(ena);
AST::Node id = CreateNode<AST>();
UPDATE_POS( id, start, lex->index() );
@@ -2219,7 +2219,7 @@ bool Parser::parseInitDeclarator( InitDeclaratorAST::Node& node )
ast->setDeclarator( decl );
ast->setInitializer( init );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2255,7 +2255,7 @@ bool Parser::parseBaseClause( BaseClauseAST::Node& node )
return false;
UPDATE_POS( bca, start, lex->index() );
- node = bca;
+ node = std::move(bca);
return true;
}
@@ -2346,7 +2346,7 @@ bool Parser::parseTypeIdList( GroupAST::Node& node )
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2383,7 +2383,7 @@ bool Parser::parseBaseSpecifier( BaseSpecifierAST::Node& node )
ast->setAccess( access );
ast->setName( name );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2491,7 +2491,7 @@ bool Parser::parseUnqualifiedName( ClassOrNamespaceNameAST::Node& node )
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2526,7 +2526,7 @@ bool Parser::skipExpressionStatement( StatementAST::Node& node )
ExpressionStatementAST::Node ast = CreateNode<ExpressionStatementAST>();
ast->setExpression( expr );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2620,7 +2620,7 @@ bool Parser::parseCondition( ConditionAST::Node& node )
ast->setExpression( expr );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2629,7 +2629,7 @@ bool Parser::parseCondition( ConditionAST::Node& node )
ast->setDeclarator( decl );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2644,7 +2644,7 @@ bool Parser::parseCondition( ConditionAST::Node& node )
ast->setExpression( expr );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2673,7 +2673,7 @@ bool Parser::parseWhileStatement( StatementAST::Node& node )
ast->setCondition( cond );
ast->setStatement( body );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2707,7 +2707,7 @@ bool Parser::parseDoStatement( StatementAST::Node& node )
ast->setStatement( body );
//ast->setCondition( condition );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2743,12 +2743,11 @@ bool Parser::parseForStatement( StatementAST::Node& node )
// ast->setExpression( expression );
ast->setStatement( body );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
-// qt4 [erbsland]
///@todo add the right parsing for the foreach statement
bool Parser::parseForEachStatement( StatementAST::Node& node )
{
@@ -2769,7 +2768,7 @@ bool Parser::parseForEachStatement( StatementAST::Node& node )
// add here the parser results
ast->setStatement( body );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2820,7 +2819,7 @@ bool Parser::parseCompoundStatement( StatementAST::Node& node )
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2862,7 +2861,7 @@ bool Parser::parseIfStatement( StatementAST::Node& node )
}
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2892,7 +2891,7 @@ bool Parser::parseSwitchStatement( StatementAST::Node& node )
ast->setCondition( cond );
ast->setStatement( stmt );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -2909,7 +2908,7 @@ bool Parser::parseLabeledStatement( StatementAST::Node& node )
StatementAST::Node stmt;
if( parseStatement(stmt) ){
- node = stmt;
+ node = std::move(stmt);
return true;
}
}
@@ -2933,7 +2932,7 @@ bool Parser::parseLabeledStatement( StatementAST::Node& node )
StatementAST::Node stmt;
if( parseStatement(stmt) ){
- node = stmt;
+ node = std::move(stmt);
return true;
}
}
@@ -2990,7 +2989,7 @@ bool Parser::parseBlockDeclaration( DeclarationAST::Node& node )
ast->setTypeSpec( spec );
ast->setInitDeclaratorList( declarators );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -3030,7 +3029,7 @@ bool Parser::parseDeclarationStatement( StatementAST::Node& node )
DeclarationStatementAST::Node ast = CreateNode<DeclarationStatementAST>();
ast->setDeclaration( decl );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
////kdDebug(9007)<< "---------------------> found a block declaration" << endl;
return true;
@@ -3094,7 +3093,7 @@ bool Parser::parseDeclarationInternal( DeclarationAST::Node& node )
SimpleDeclarationAST::Node ast = CreateNode<SimpleDeclarationAST>();
ast->setInitDeclaratorList( declarators );
ast->setText( toString(start, endSignature) );
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
return true;
@@ -3112,7 +3111,7 @@ bool Parser::parseDeclarationInternal( DeclarationAST::Node& node )
ast->setInitDeclarator( declarator );
ast->setFunctionBody( funBody );
ast->setText( toString(start, endSignature) );
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
return true;
}
@@ -3129,7 +3128,7 @@ bool Parser::parseDeclarationInternal( DeclarationAST::Node& node )
ast->setInitDeclarator( declarator );
ast->setText( toString(start, endSignature) );
ast->setFunctionBody( funBody );
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
return true;
}
@@ -3159,7 +3158,7 @@ start_decl:
if( parseInitDeclaratorList(declarators) ){
ADVANCE( ';', ";" );
DeclarationAST::Node ast = CreateNode<DeclarationAST>();
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
return true;
}
@@ -3220,7 +3219,7 @@ start_decl:
ast->setWinDeclSpec( winDeclSpec );
ast->setInitDeclaratorList( declarators );
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
}
return true;
@@ -3244,7 +3243,7 @@ start_decl:
ast->setTypeSpec( spec );
ast->setFunctionBody( funBody );
ast->setInitDeclarator( decl );
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
return true;
}
@@ -3292,7 +3291,7 @@ bool Parser::parseFunctionBody( StatementListAST::Node& node )
nextToken();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -3380,7 +3379,7 @@ bool Parser::parseTryBlockStatement( StatementAST::Node& node )
ast->setStatement( stmt );
ast->setCatchStatementList( list );
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -3906,7 +3905,7 @@ bool Parser::parseLogicalOrExpression( AST::Node& node, bool templArgs )
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -3951,7 +3950,7 @@ bool Parser::parseAssignmentExpression( AST::Node& node )
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -3962,7 +3961,7 @@ bool Parser::parseConstantExpression( AST::Node& node )
if( parseConditionalExpression(node) ){
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
return false;
@@ -3979,7 +3978,7 @@ bool Parser::parseExpression( AST::Node& node )
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -4001,7 +4000,7 @@ bool Parser::parseCommaExpression( AST::Node& node )
AST::Node ast = CreateNode<AST>();
UPDATE_POS( ast, start, lex->index() );
- node = ast;
+ node = std::move(ast);
return true;
}
@@ -4204,7 +4203,7 @@ bool Parser::parseIdentifierList( GroupAST::Node & node )
ADVANCE( Token_identifier, "identifier" );
}
- node = ast;
+ node = std::move(ast);
UPDATE_POS( node, start, lex->index() );
return true;
}
diff --git a/lib/cppparser/parser.h b/lib/cppparser/parser.h
index fbefd8c5..40173c86 100644
--- a/lib/cppparser/parser.h
+++ b/lib/cppparser/parser.h
@@ -368,7 +368,7 @@ public /*rules*/ :
bool parseWhileStatement( StatementAST::Node& node );
bool parseDoStatement( StatementAST::Node& node );
bool parseForStatement( StatementAST::Node& node );
- bool parseForEachStatement( StatementAST::Node& node ); // qt4 [erbsland]
+ bool parseForEachStatement( StatementAST::Node& node );
bool parseCompoundStatement( StatementAST::Node& node );
bool parseForInitStatement( StatementAST::Node& node );
bool parseIfStatement( StatementAST::Node& node );
diff --git a/lib/interfaces/KDevCoreIface.cpp b/lib/interfaces/KDevCoreIface.cpp
index aa70e01b..c86e3562 100644
--- a/lib/interfaces/KDevCoreIface.cpp
+++ b/lib/interfaces/KDevCoreIface.cpp
@@ -29,8 +29,8 @@
KDevCoreIface::KDevCoreIface(KDevCore *core)
: TQObject(core), DCOPObject("KDevCore"), m_core(core)
{
- connect( m_core, TQT_SIGNAL(projectOpened()), this, TQT_SLOT(forwardProjectOpened()) );
- connect( m_core, TQT_SIGNAL(projectClosed()), this, TQT_SLOT(forwardProjectClosed()) );
+ connect( m_core, TQ_SIGNAL(projectOpened()), this, TQ_SLOT(forwardProjectOpened()) );
+ connect( m_core, TQ_SIGNAL(projectClosed()), this, TQ_SLOT(forwardProjectClosed()) );
}
diff --git a/lib/interfaces/KDevCoreIface.h b/lib/interfaces/KDevCoreIface.h
index 612c8457..7a985931 100644
--- a/lib/interfaces/KDevCoreIface.h
+++ b/lib/interfaces/KDevCoreIface.h
@@ -29,7 +29,7 @@ class KDevCore;
class KDevCoreIface : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
diff --git a/lib/interfaces/KDevPartControllerIface.cpp b/lib/interfaces/KDevPartControllerIface.cpp
index 1b184453..60c9ef97 100644
--- a/lib/interfaces/KDevPartControllerIface.cpp
+++ b/lib/interfaces/KDevPartControllerIface.cpp
@@ -28,9 +28,9 @@
KDevPartControllerIface::KDevPartControllerIface(KDevPartController *pc)
: TQObject(pc), DCOPObject("KDevPartController"), m_controller(pc)
{
- connect(pc, TQT_SIGNAL(loadedFile(const KURL &)), this, TQT_SLOT(forwardLoadedFile(const KURL &)));
- connect(pc, TQT_SIGNAL(savedFile(const KURL &)), this, TQT_SLOT(forwardSavedFile(const KURL &)));
- connect(pc, TQT_SIGNAL(closedFile(const KURL &)), this, TQT_SLOT(forwardClosedFile(const KURL &)));
+ connect(pc, TQ_SIGNAL(loadedFile(const KURL &)), this, TQ_SLOT(forwardLoadedFile(const KURL &)));
+ connect(pc, TQ_SIGNAL(savedFile(const KURL &)), this, TQ_SLOT(forwardSavedFile(const KURL &)));
+ connect(pc, TQ_SIGNAL(closedFile(const KURL &)), this, TQ_SLOT(forwardClosedFile(const KURL &)));
}
diff --git a/lib/interfaces/KDevPartControllerIface.h b/lib/interfaces/KDevPartControllerIface.h
index 8c3647ea..b37bf1df 100644
--- a/lib/interfaces/KDevPartControllerIface.h
+++ b/lib/interfaces/KDevPartControllerIface.h
@@ -27,7 +27,7 @@ class KDevPartController;
class KDevPartControllerIface : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
diff --git a/lib/interfaces/extensions/Mainpage.dox b/lib/interfaces/extensions/Mainpage.dox
index 3b493fde..175909c3 100644
--- a/lib/interfaces/extensions/Mainpage.dox
+++ b/lib/interfaces/extensions/Mainpage.dox
@@ -38,7 +38,7 @@ those should be loaded at a time. This can be accomplished by:
@code
class KDevMyExtension: public KDevPlugin {
public:
- KDevMyExtension(const KDevPluginInfo *info, QObject* parent, const char* name)
+ KDevMyExtension(const KDevPluginInfo *info, TQObject* parent, const char* name)
:KDevPlugin(info, parent, name) {}
virtual void doSomething() = 0;
diff --git a/lib/interfaces/extensions/codebrowserfrontend.h b/lib/interfaces/extensions/codebrowserfrontend.h
index 49dd95a8..eddad758 100644
--- a/lib/interfaces/extensions/codebrowserfrontend.h
+++ b/lib/interfaces/extensions/codebrowserfrontend.h
@@ -26,7 +26,7 @@
namespace Extensions {
class KDevCodeBrowserFrontend : public KDevPlugin {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/extensions/kdevappfrontend.h b/lib/interfaces/extensions/kdevappfrontend.h
index 76952f35..f175ee92 100644
--- a/lib/interfaces/extensions/kdevappfrontend.h
+++ b/lib/interfaces/extensions/kdevappfrontend.h
@@ -56,7 +56,7 @@ if (apf) {
*/
class KDevAppFrontend : public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/extensions/kdevmakefrontend.h b/lib/interfaces/extensions/kdevmakefrontend.h
index 52afa3d3..ea869e30 100644
--- a/lib/interfaces/extensions/kdevmakefrontend.h
+++ b/lib/interfaces/extensions/kdevmakefrontend.h
@@ -52,7 +52,7 @@ if (mf) {
*/
class KDevMakeFrontend : public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/extensions/kdevversioncontrol.h b/lib/interfaces/extensions/kdevversioncontrol.h
index a19c6275..ede2cf91 100644
--- a/lib/interfaces/extensions/kdevversioncontrol.h
+++ b/lib/interfaces/extensions/kdevversioncontrol.h
@@ -134,7 +134,7 @@ if (vcs) {
*/
class KDevVersionControl: public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -184,7 +184,7 @@ Basic interface for providing info on file registered in a version control repos
*/
class KDevVCSFileInfoProvider: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructor.
diff --git a/lib/interfaces/external/Mainpage.dox b/lib/interfaces/external/Mainpage.dox
index 8c22ba73..7c97cf16 100644
--- a/lib/interfaces/external/Mainpage.dox
+++ b/lib/interfaces/external/Mainpage.dox
@@ -10,23 +10,23 @@ GUI Designer integration framework.
\section designerintegration Overview of GUI designer integration process
Each KPart that wants to act as a GUI Designer must implement @ref KInterfaceDesigner::Designer
-interface. It defines necessary Q_SIGNALS to communicate with an IDE and abstract virtual
+interface. It defines necessary signals to communicate with an IDE and abstract virtual
functions to determine designer type.
If a part which can "design" user interface files of a certain mimetype
implements this interface and sets itself as a default handler for that
mimetype then it becomes automatically integrated into TDevelop IDE.
-When a part is embedded into TDevelop shell, its Q_SIGNALS (defined in @ref
+When a part is embedded into TDevelop shell, its signals (defined in @ref
KInterfaceDesigner::Designer interface):
@code
- void addedFunction(DesignerType type, const QString &formName, Function function)
- void removedFunction(DesignerType type, const QString &formName, Function function)
- void editedFunction(DesignerType type, const QString &formName, Function oldFunction, Function function)
- void editFunction(DesignerType type, const QString &formName, const QString &functionName)
- void editSource(DesignerType type, const QString &formName);
+ void addedFunction(DesignerType type, const TQString &formName, Function function)
+ void removedFunction(DesignerType type, const TQString &formName, Function function)
+ void editedFunction(DesignerType type, const TQString &formName, Function oldFunction, Function function)
+ void editFunction(DesignerType type, const TQString &formName, const TQString &functionName)
+ void editSource(DesignerType type, const TQString &formName);
@endcode
-are connected to corresponding Q_SLOTS of TDevelop designer integration engine which can be implemented in TDevelop language support plugin.
+are connected to corresponding slots of TDevelop designer integration engine which can be implemented in TDevelop language support plugin.
Each language support which wants to use integrated designer, must reimplement
@code
diff --git a/lib/interfaces/external/designer.h b/lib/interfaces/external/designer.h
index b84e2268..73420496 100644
--- a/lib/interfaces/external/designer.h
+++ b/lib/interfaces/external/designer.h
@@ -64,7 +64,7 @@ implements this interface and sets itself as a default handler for that
mimetype then it becomes automatically integrated into TDevelop IDE.
*/
class Designer: public KParts::ReadWritePart{
- Q_OBJECT
+ TQ_OBJECT
public:
Designer(TQObject *parent, const char *name);
diff --git a/lib/interfaces/extras/kdevcompileroptions.h b/lib/interfaces/extras/kdevcompileroptions.h
index 6544c5d0..c6719e27 100644
--- a/lib/interfaces/extras/kdevcompileroptions.h
+++ b/lib/interfaces/extras/kdevcompileroptions.h
@@ -71,7 +71,7 @@ if ( plugin )
*/
class KDevCompilerOptions : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/extras/kdevvcsintegrator.h b/lib/interfaces/extras/kdevvcsintegrator.h
index 793070b3..41faf993 100644
--- a/lib/interfaces/extras/kdevvcsintegrator.h
+++ b/lib/interfaces/extras/kdevvcsintegrator.h
@@ -63,7 +63,7 @@ VCS integrator takes care about setting up VCS for new and existing projects.
It can, for example, perform checkout or import operations.
*/
class KDevVCSIntegrator: public TQObject {
- Q_OBJECT
+ TQ_OBJECT
public:
KDevVCSIntegrator(TQObject *parent = 0, const char *name = 0);
diff --git a/lib/interfaces/katedocumentmanagerinterface.h b/lib/interfaces/katedocumentmanagerinterface.h
index 8bdbdf8f..edc6d0af 100644
--- a/lib/interfaces/katedocumentmanagerinterface.h
+++ b/lib/interfaces/katedocumentmanagerinterface.h
@@ -32,7 +32,7 @@ This is an emulated interface to provide compatibility with Kate scripts.
*/
class KateDocumentManagerInterface : public TQObject, public DCOPObject {
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
public:
diff --git a/lib/interfaces/kdevapi.h b/lib/interfaces/kdevapi.h
index d1f4f5cc..ef756b69 100644
--- a/lib/interfaces/kdevapi.h
+++ b/lib/interfaces/kdevapi.h
@@ -46,7 +46,7 @@ class because @ref KDevPlugin already provides API convenience methods.
*/
class KDevApi: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructor.*/
diff --git a/lib/interfaces/kdevcoderepository.h b/lib/interfaces/kdevcoderepository.h
index 4e1dd765..fca20f32 100644
--- a/lib/interfaces/kdevcoderepository.h
+++ b/lib/interfaces/kdevcoderepository.h
@@ -47,7 +47,7 @@ symbol store like @ref CodeModel.
*/
class KDevCodeRepository : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructor.*/
diff --git a/lib/interfaces/kdevcore.h b/lib/interfaces/kdevcore.h
index fad2891a..e496576f 100644
--- a/lib/interfaces/kdevcore.h
+++ b/lib/interfaces/kdevcore.h
@@ -78,15 +78,15 @@ to if you reimplement TQWidget::contextMenuEvent method.
-# Connect KDevCore::contextMenu(TQPopupMenu *, const Context *) signal to that slot in
the constructor of your plugin:\n
@code
-connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
- this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+connect(core(), TQ_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQ_SLOT(contextMenu(TQPopupMenu *, const Context *)));
@endcode
-# Fill the menu in the slot you created, for example:\n
@code
if (context->hasType(Context::EditorContext))
{
const EditorContext *econtext = static_cast<const EditorContext*>(context);
- int id = popup->insertItem(i18n("My Menu Item 1"), this, TQT_SLOT(myMenuAction1()));
+ int id = popup->insertItem(i18n("My Menu Item 1"), this, TQ_SLOT(myMenuAction1()));
popup->setWhatsThis(id, i18n("What's this for my menu item 1"));
}
else if context->hasType(MyContext))
@@ -299,7 +299,7 @@ It defines:
*/
class KDevCore: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructor
diff --git a/lib/interfaces/kdevdesignerintegration.h b/lib/interfaces/kdevdesignerintegration.h
index 528926cb..d8658b48 100644
--- a/lib/interfaces/kdevdesignerintegration.h
+++ b/lib/interfaces/kdevdesignerintegration.h
@@ -50,7 +50,7 @@ and reimplement slots defined in the form.
*/
class KDevDesignerIntegration : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
/**Constructor.
diff --git a/lib/interfaces/kdevgenericfactory.h b/lib/interfaces/kdevgenericfactory.h
index 6f8d3dc9..7bca8db4 100644
--- a/lib/interfaces/kdevgenericfactory.h
+++ b/lib/interfaces/kdevgenericfactory.h
@@ -33,7 +33,7 @@ to create factories for TDevelop plugins. For example, for DummyPlugin
the factory can be created (in dummyplugin.cpp file) as:
@code
typedef KDevGenericFactory<DummyPlugin> DummyPluginFactory;
-K_EXPORT_COMPONENT_FACTORY(libkdevdummyplugin, DummyPluginFactory( data ) )
+K_EXPORT_COMPONENT_FACTORY(libkdevdummyplugin, DummyPluginFactory( pluginData ) )
@endcode
Data should be a const static object. This way it complies with the requirements
for data objecs of KDevGenericFactory constructor.
@@ -47,12 +47,12 @@ For example, dummyplugin.cpp file could contain:
@code
#include <kdevplugininfo.h>
-static const KDevPluginInfo data("KDevDummyPlugin");
+static const KDevPluginInfo pluginData("KDevDummyPlugin");
typedef KDevGenericFactory<DummyPlugin> DummyPluginFactory;
-K_EXPORT_COMPONENT_FACTORY(libkdevdummyplugin, DummyPluginFactory( data ) )
+K_EXPORT_COMPONENT_FACTORY(libkdevdummyplugin, DummyPluginFactory( pluginData ) )
DummyPlugin::DummyPlugin(TQObject *parent, const char *name, const TQStringList & )
- :KDevPlugin(&data, parent, name)
+ :KDevPlugin(&pluginData, parent, name)
{
}
@endcode
diff --git a/lib/interfaces/kdevlanguagesupport.cpp b/lib/interfaces/kdevlanguagesupport.cpp
index aa5b560c..a5609cf9 100644
--- a/lib/interfaces/kdevlanguagesupport.cpp
+++ b/lib/interfaces/kdevlanguagesupport.cpp
@@ -68,9 +68,9 @@ bool KDevLanguageSupport::shouldSplitDocument(const KURL &url)
return false;
}
-Qt::Orientation KDevLanguageSupport::splitOrientation() const
+TQt::Orientation KDevLanguageSupport::splitOrientation() const
{
- return Qt::Vertical;
+ return TQt::Vertical;
}
void KDevLanguageSupport::addClass()
diff --git a/lib/interfaces/kdevlanguagesupport.h b/lib/interfaces/kdevlanguagesupport.h
index 42221868..59b160b2 100644
--- a/lib/interfaces/kdevlanguagesupport.h
+++ b/lib/interfaces/kdevlanguagesupport.h
@@ -60,7 +60,7 @@ formatted name).
*/
class KDevLanguageSupport: public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -135,8 +135,8 @@ public:
virtual bool shouldSplitDocument( const KURL &url );
/**Returns the language parts Split View orientation.
- By default Qt::Vertical.*/
- virtual Qt::Orientation splitOrientation() const;
+ By default TQt::Vertical.*/
+ virtual TQt::Orientation splitOrientation() const;
/**Opens a "New class" dialog and adds the configured class to the sources.
Define NewClass feature if you reimplement this method.*/
@@ -255,7 +255,7 @@ signals:
void addedSourceInfo( const TQString& fileName );
/**Emitted when the language part changes the Split View orientation.*/
- void splitOrientationChanged( Qt::Orientation orientation );
+ void splitOrientationChanged( TQt::Orientation orientation );
};
#endif
diff --git a/lib/interfaces/kdevpartcontroller.h b/lib/interfaces/kdevpartcontroller.h
index fd8e6830..0229c7e7 100644
--- a/lib/interfaces/kdevpartcontroller.h
+++ b/lib/interfaces/kdevpartcontroller.h
@@ -55,7 +55,7 @@ GUI designers, etc.
*/
class KDevPartController: public KParts::PartManager
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/kdevplugin.h b/lib/interfaces/kdevplugin.h
index 5bdcaaf6..e2058fa8 100644
--- a/lib/interfaces/kdevplugin.h
+++ b/lib/interfaces/kdevplugin.h
@@ -106,7 +106,7 @@ from shell applications.
*/
class KDevPlugin: public TQObject, public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/kdevplugincontroller.cpp b/lib/interfaces/kdevplugincontroller.cpp
index 1cc6caa3..2a1b0770 100644
--- a/lib/interfaces/kdevplugincontroller.cpp
+++ b/lib/interfaces/kdevplugincontroller.cpp
@@ -27,8 +27,17 @@ KDevPluginController::KDevPluginController()
TDETrader::OfferList KDevPluginController::query(const TQString &serviceType,
const TQString &constraint)
{
- return TDETrader::self()->query(serviceType,
- TQString("%1 and [X-TDevelop-Version] == %2").arg(constraint).arg(TDEVELOP_PLUGIN_VERSION));
+ TQString versionConstraint =
+ TQString::fromLatin1("[X-TDevelop-Version] == %1").arg(TDEVELOP_PLUGIN_VERSION);
+
+ TQString newConstraint;
+ if (!constraint.isEmpty()) {
+ newConstraint = TQString("( %1 ) and %2").arg(constraint).arg(versionConstraint);
+ } else {
+ newConstraint = versionConstraint;
+ }
+
+ return TDETrader::self()->query(serviceType, newConstraint);
}
TDETrader::OfferList KDevPluginController::queryPlugins(const TQString &constraint)
diff --git a/lib/interfaces/kdevplugincontroller.h b/lib/interfaces/kdevplugincontroller.h
index d72563d5..c21cf58a 100644
--- a/lib/interfaces/kdevplugincontroller.h
+++ b/lib/interfaces/kdevplugincontroller.h
@@ -38,7 +38,7 @@ Plugin controller is responsible for quering, loading and unloading available pl
*/
class KDevPluginController: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/interfaces/kdevproject.cpp b/lib/interfaces/kdevproject.cpp
index e8616df1..3a49a8c6 100644
--- a/lib/interfaces/kdevproject.cpp
+++ b/lib/interfaces/kdevproject.cpp
@@ -40,14 +40,14 @@ struct KDevProject::Private {
KDevProject::KDevProject(const KDevPluginInfo *info, TQObject *parent, const char *name)
: KDevPlugin(info, parent, name), d(new KDevProject::Private())
{
- connect( this, TQT_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQT_SLOT(buildFileMap()) );
- connect( this, TQT_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQT_SLOT(buildFileMap()) );
+ connect( this, TQ_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQ_SLOT(buildFileMap()) );
+ connect( this, TQ_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQ_SLOT(buildFileMap()) );
- connect( this, TQT_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQT_SLOT(slotAddFilesToFileMap(const TQStringList& )) );
- connect( this, TQT_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQT_SLOT(slotRemoveFilesFromFileMap(const TQStringList& )) );
+ connect( this, TQ_SIGNAL(addedFilesToProject(const TQStringList& )), this, TQ_SLOT(slotAddFilesToFileMap(const TQStringList& )) );
+ connect( this, TQ_SIGNAL(removedFilesFromProject(const TQStringList& )), this, TQ_SLOT(slotRemoveFilesFromFileMap(const TQStringList& )) );
d->m_timer = new TQTimer(this);
- connect(d->m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotBuildFileMap()));
+ connect(d->m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotBuildFileMap()));
d->m_iface = new KDevProjectIface(this);
}
diff --git a/lib/interfaces/kdevproject.h b/lib/interfaces/kdevproject.h
index 256b0c0c..3fc6cf87 100644
--- a/lib/interfaces/kdevproject.h
+++ b/lib/interfaces/kdevproject.h
@@ -47,7 +47,7 @@ as a way of providing support for a build system (like it is done in TDevelop ID
*/
class KDevProject: public KDevPlugin
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructs a project plugin.
diff --git a/lib/interfaces/kdevprojectiface.h b/lib/interfaces/kdevprojectiface.h
index e30cd6cc..4908f9f2 100644
--- a/lib/interfaces/kdevprojectiface.h
+++ b/lib/interfaces/kdevprojectiface.h
@@ -33,7 +33,7 @@ DCOP Interface for the @ref KDevProject object.
*/
class KDevProjectIface : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
public:
diff --git a/lib/util/blockingkprocess.cpp b/lib/util/blockingkprocess.cpp
index b88b0cad..0c2b0650 100644
--- a/lib/util/blockingkprocess.cpp
+++ b/lib/util/blockingkprocess.cpp
@@ -22,12 +22,12 @@ BlockingTDEProcess::BlockingTDEProcess(TQObject *parent, const char *name)
m_timeoutValue = 60;
m_timer = 0L;
- connect(this, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
- connect(this, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
- connect(this, TQT_SIGNAL(processExited(TDEProcess *)),
- this, TQT_SLOT(slotProcessExited(TDEProcess *)));
+ connect(this, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQ_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
+ connect(this, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQ_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
+ connect(this, TQ_SIGNAL(processExited(TDEProcess *)),
+ this, TQ_SLOT(slotProcessExited(TDEProcess *)));
}
BlockingTDEProcess::BlockingTDEProcess()
@@ -37,12 +37,12 @@ BlockingTDEProcess::BlockingTDEProcess()
m_stdErr = "";
m_timeoutValue = 60;
m_timer = 0L;
- connect(this, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
- connect(this, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- this, TQT_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
- connect(this, TQT_SIGNAL(processExited(TDEProcess *)),
- this, TQT_SLOT(slotProcessExited(TDEProcess *)));
+ connect(this, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ this, TQ_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
+ connect(this, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQ_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
+ connect(this, TQ_SIGNAL(processExited(TDEProcess *)),
+ this, TQ_SLOT(slotProcessExited(TDEProcess *)));
}
@@ -55,7 +55,7 @@ bool BlockingTDEProcess::start(RunMode runmode, Communication comm)
{
m_timeout = false;
m_timer = new TQTimer();
- connect(m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeOut()));
+ connect(m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeOut()));
m_timer->start(m_timeoutValue*1000, true);
enter_loop();
delete m_timer;
@@ -95,7 +95,7 @@ void tqt_leave_modal( TQWidget *widget );
void BlockingTDEProcess::enter_loop()
{
TQWidget dummy(0,0,WType_Dialog | WShowModal);
- dummy.setFocusPolicy( TQ_NoFocus );
+ dummy.setFocusPolicy( TQWidget::NoFocus );
tqt_enter_modal(&dummy);
tqApp->enter_loop();
tqt_leave_modal(&dummy);
diff --git a/lib/util/blockingkprocess.h b/lib/util/blockingkprocess.h
index 8d164bef..b5a7e71e 100644
--- a/lib/util/blockingkprocess.h
+++ b/lib/util/blockingkprocess.h
@@ -30,7 +30,7 @@
class TQTimer;
class BlockingTDEProcess : public TDEProcess
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/util/configwidgetproxy.cpp b/lib/util/configwidgetproxy.cpp
index bea1c79a..16f578f0 100644
--- a/lib/util/configwidgetproxy.cpp
+++ b/lib/util/configwidgetproxy.cpp
@@ -34,8 +34,8 @@
ConfigWidgetProxy::ConfigWidgetProxy( KDevCore * core )
{
- connect( core, TQT_SIGNAL(configWidget(KDialogBase*)), this, TQT_SLOT(slotConfigWidget( KDialogBase*)) );
- connect( core, TQT_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQT_SLOT(slotProjectConfigWidget( KDialogBase*)) );
+ connect( core, TQ_SIGNAL(configWidget(KDialogBase*)), this, TQ_SLOT(slotConfigWidget( KDialogBase*)) );
+ connect( core, TQ_SIGNAL(projectConfigWidget(KDialogBase*)), this, TQ_SLOT(slotProjectConfigWidget( KDialogBase*)) );
}
ConfigWidgetProxy::~ConfigWidgetProxy()
@@ -43,12 +43,12 @@ ConfigWidgetProxy::~ConfigWidgetProxy()
void ConfigWidgetProxy::createGlobalConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon )
{
- _globalTitleMap.insert( pagenumber, tqMakePair( title, icon ) );
+ _globalTitleMap.insert( pagenumber, qMakePair( title, icon ) );
}
void ConfigWidgetProxy::createProjectConfigPage( TQString const & title, unsigned int pagenumber, TQString const & icon )
{
- _projectTitleMap.insert( pagenumber, tqMakePair( title, icon ) );
+ _projectTitleMap.insert( pagenumber, qMakePair( title, icon ) );
}
void ConfigWidgetProxy::removeConfigPage( int pagenumber )
@@ -66,8 +66,8 @@ void ConfigWidgetProxy::slotConfigWidget( KDialogBase * dlg )
++it;
}
- connect( dlg, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT( slotAboutToShowPage(TQWidget*)) );
- connect( dlg, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotConfigWidgetDestroyed()) );
+ connect( dlg, TQ_SIGNAL(aboutToShowPage(TQWidget*)), this, TQ_SLOT( slotAboutToShowPage(TQWidget*)) );
+ connect( dlg, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotConfigWidgetDestroyed()) );
}
void ConfigWidgetProxy::slotProjectConfigWidget( KDialogBase * dlg )
@@ -79,8 +79,8 @@ void ConfigWidgetProxy::slotProjectConfigWidget( KDialogBase * dlg )
++it;
}
- connect( dlg, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT( slotAboutToShowPage(TQWidget*)) );
- connect( dlg, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotConfigWidgetDestroyed()) );
+ connect( dlg, TQ_SIGNAL(aboutToShowPage(TQWidget*)), this, TQ_SLOT( slotAboutToShowPage(TQWidget*)) );
+ connect( dlg, TQ_SIGNAL(destroyed()), this, TQ_SLOT(slotConfigWidgetDestroyed()) );
}
void ConfigWidgetProxy::slotConfigWidgetDestroyed( )
@@ -95,11 +95,9 @@ void ConfigWidgetProxy::slotAboutToShowPage( TQWidget * page )
PageMap::Iterator it = _pageMap.find( page );
if ( it != _pageMap.end() )
{
- emit insertConfigWidget( static_cast<KDialogBase*>(TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))), page, it.data() );
+ emit insertConfigWidget( static_cast<KDialogBase*>(const_cast<TQObject*>(sender())), page, it.data() );
_pageMap.remove( it );
}
}
#include "configwidgetproxy.moc"
-
-// kate: space-indent off; indent-width 4; replace-tabs off; tab-width 4;
diff --git a/lib/util/configwidgetproxy.h b/lib/util/configwidgetproxy.h
index 7881f830..ee9a3fb0 100644
--- a/lib/util/configwidgetproxy.h
+++ b/lib/util/configwidgetproxy.h
@@ -47,8 +47,8 @@ A typical case looks like this:
_configProxy = new ConfigWidgetProxy( core() );
_configProxy->createGlobalConfigPage( i18n("My Part"), GLOBALDOC_OPTIONS, info()->icon() );
_configProxy->createProjectConfigPage( i18n("My Part"), PROJECTDOC_OPTIONS, info()->icon() );
-connect( _configProxy, TQT_SIGNAL(insertConfigWidget(const TQObject*, TQWidget*, unsigned int )),
- this, TQT_SLOT(insertConfigWidget(const TQObject*, TQWidget*, unsigned int )) );
+connect( _configProxy, TQ_SIGNAL(insertConfigWidget(const TQObject*, TQWidget*, unsigned int )),
+ this, TQ_SLOT(insertConfigWidget(const TQObject*, TQWidget*, unsigned int )) );
...
...
@@ -57,10 +57,10 @@ void MyPart::insertConfigWidget( TQObject const * dlg, TQWidget * page, unsigned
{
if ( pagenumber == PROJECTDOC_OPTIONS ) {
MyPartGlobalSettings * w = new MyPartGlobalSettings( this, page );
- connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotAccept()) );
+ connect( dlg, TQ_SIGNAL(okClicked()), w, TQ_SLOT(slotAccept()) );
} else if ( pagenumber == PROJECTDOC_OPTIONS ) {
MyPartProjectSettings * w = new MyPartProjectSettings( this, page );
- connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(slotAccept()) );
+ connect( dlg, TQ_SIGNAL(okClicked()), w, TQ_SLOT(slotAccept()) );
}
}
@endcode
@@ -70,7 +70,7 @@ KDevCore::projectConfigWidget() slots.
*/
class ConfigWidgetProxy : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
@@ -126,5 +126,3 @@ private:
};
#endif
-
-// kate: space-indent off; indent-width 4; replace-tabs off; tab-width 4;
diff --git a/lib/util/domutil.h b/lib/util/domutil.h
index e5614d49..9a0c24ad 100644
--- a/lib/util/domutil.h
+++ b/lib/util/domutil.h
@@ -174,7 +174,7 @@ public:
or "widget/property||2/string"
.
\verbatim
- <widget class=TQDIALOG_OBJECT_NAME_STRING>
+ <widget class="TQDialog">
<property name="name">
<cstring>KdevFormName</cstring>
</property>
diff --git a/lib/util/execcommand.cpp b/lib/util/execcommand.cpp
index 0e617762..6fb0f40c 100644
--- a/lib/util/execcommand.cpp
+++ b/lib/util/execcommand.cpp
@@ -39,12 +39,12 @@ ExecCommand::ExecCommand( const TQString& executable, const TQStringList& args,
*proc << executable;
*proc << args;
- connect( proc, TQT_SIGNAL(processExited(TDEProcess*)),
- this, TQT_SLOT(processExited()) );
- connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
- this, TQT_SLOT(receivedStdout(TDEProcess*,char*,int)) );
- connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
- this, TQT_SLOT(receivedStderr(TDEProcess*,char*,int)) );
+ connect( proc, TQ_SIGNAL(processExited(TDEProcess*)),
+ this, TQ_SLOT(processExited()) );
+ connect( proc, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
+ this, TQ_SLOT(receivedStdout(TDEProcess*,char*,int)) );
+ connect( proc, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
+ this, TQ_SLOT(receivedStderr(TDEProcess*,char*,int)) );
bool ok = proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
@@ -58,8 +58,8 @@ ExecCommand::ExecCommand( const TQString& executable, const TQStringList& args,
} else {
progressDlg = new KProgressDialog( 0, 0, i18n("Command running..."),
i18n("Please wait until the \"%1\" command finishes.").arg( executable ), false );
- connect( progressDlg, TQT_SIGNAL(cancelClicked()),
- this, TQT_SLOT(cancelClicked()) );
+ connect( progressDlg, TQ_SIGNAL(cancelClicked()),
+ this, TQ_SLOT(cancelClicked()) );
}
}
diff --git a/lib/util/execcommand.h b/lib/util/execcommand.h
index 7ea1ef5c..cc546e11 100644
--- a/lib/util/execcommand.h
+++ b/lib/util/execcommand.h
@@ -44,7 +44,7 @@ Command execution facilities.
*/
class ExecCommand : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
ExecCommand( const TQString& executable, const TQStringList& args,
diff --git a/lib/util/kdeveditorutil.cpp b/lib/util/kdeveditorutil.cpp
index 198e9a42..34893c73 100644
--- a/lib/util/kdeveditorutil.cpp
+++ b/lib/util/kdeveditorutil.cpp
@@ -83,7 +83,3 @@ TQString KDevEditorUtil::currentSelection( KTextEditor::Document * doc )
KTextEditor::SelectionInterface * selectIface = dynamic_cast<KTextEditor::SelectionInterface*>( doc );
return selectIface ? selectIface->selection() : TQString();
}
-
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs on;
-
diff --git a/lib/util/kdeveditorutil.h b/lib/util/kdeveditorutil.h
index 79a64fe1..0c117621 100644
--- a/lib/util/kdeveditorutil.h
+++ b/lib/util/kdeveditorutil.h
@@ -62,6 +62,3 @@ public:
};
#endif
-
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs on;
diff --git a/lib/util/kdevjobtimer.cpp b/lib/util/kdevjobtimer.cpp
index b0b78250..db095e55 100644
--- a/lib/util/kdevjobtimer.cpp
+++ b/lib/util/kdevjobtimer.cpp
@@ -15,7 +15,7 @@ KDevJobTimer::KDevJobTimer( void * payload, TQObject *parent, const char *name)
: TQTimer(parent, name)
{
m_payload = payload;
- connect( this, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()) );
+ connect( this, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotTimeout()) );
}
KDevJobTimer::~KDevJobTimer()
@@ -26,7 +26,7 @@ void KDevJobTimer::singleShot(int msec, TQObject * receiver, const char * member
{
KDevJobTimer * p = new KDevJobTimer( payload );
p->start( msec, true );
- connect( p, TQT_SIGNAL(timeout(void*)), receiver, member );
+ connect( p, TQ_SIGNAL(timeout(void*)), receiver, member );
}
void KDevJobTimer::slotTimeout()
diff --git a/lib/util/kdevjobtimer.h b/lib/util/kdevjobtimer.h
index b0fa829e..ed50e08d 100644
--- a/lib/util/kdevjobtimer.h
+++ b/lib/util/kdevjobtimer.h
@@ -16,7 +16,7 @@
class KDevJobTimer : public TQTimer
{
-Q_OBJECT
+TQ_OBJECT
public:
static void singleShot( int msec, TQObject * receiver, const char * member, void * payload );
diff --git a/lib/util/kdevshellwidget.cpp b/lib/util/kdevshellwidget.cpp
index b9220250..1db1b7e1 100644
--- a/lib/util/kdevshellwidget.cpp
+++ b/lib/util/kdevshellwidget.cpp
@@ -41,18 +41,18 @@ void KDevShellWidget::activate( )
KLibFactory *factory = KLibLoader::self()->factory("libkonsolepart");
if ( !factory ) return;
- m_konsolePart = (KParts::ReadOnlyPart *) factory->create( TQT_TQOBJECT(this), "libkonsolepart", "KParts::ReadOnlyPart" );
+ m_konsolePart = (KParts::ReadOnlyPart *) factory->create( this, "libkonsolepart", "KParts::ReadOnlyPart" );
if ( !m_konsolePart ) return;
- connect( m_konsolePart, TQT_SIGNAL( processExited(TDEProcess *) ), this, TQT_SLOT( processExited(TDEProcess *) ) );
- connect( m_konsolePart, TQT_SIGNAL( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) );
- connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) );
+ connect( m_konsolePart, TQ_SIGNAL( processExited(TDEProcess *) ), this, TQ_SLOT( processExited(TDEProcess *) ) );
+ connect( m_konsolePart, TQ_SIGNAL( receivedData( const TQString& ) ), this, TQ_SIGNAL( receivedData( const TQString& ) ) );
+ connect( m_konsolePart, TQ_SIGNAL(destroyed()), this, TQ_SLOT(partDestroyed()) );
- m_konsolePart->widget()->setFocusPolicy( TQ_WheelFocus );
+ m_konsolePart->widget()->setFocusPolicy( TQWidget::WheelFocus );
setFocusProxy( m_konsolePart->widget() );
m_konsolePart->widget()->setFocus();
- if ( m_konsolePart->widget()->inherits(TQFRAME_OBJECT_NAME_STRING) )
+ if ( m_konsolePart->widget()->inherits("TQFrame") )
((TQFrame*)m_konsolePart->widget())->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
m_konsolePart->widget()->show();
@@ -109,7 +109,7 @@ void KDevShellWidget::setAutoReactivateOnClose( bool doAutoActivate )
// reactivating with a non-working setting (the partDestroyed()
// slot will have ran before m_doAutoActivate is set)
if ( doAutoActivate )
- TQTimer::singleShot( 3000, this, TQT_SLOT(setAutoReactivateOnCloseDelayed()) );
+ TQTimer::singleShot( 3000, this, TQ_SLOT(setAutoReactivateOnCloseDelayed()) );
else
m_doAutoActivate = false;
}
@@ -121,5 +121,3 @@ void KDevShellWidget::setAutoReactivateOnCloseDelayed( )
#include "kdevshellwidget.moc"
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
diff --git a/lib/util/kdevshellwidget.h b/lib/util/kdevshellwidget.h
index 6bb6a8d7..88a6c563 100644
--- a/lib/util/kdevshellwidget.h
+++ b/lib/util/kdevshellwidget.h
@@ -26,7 +26,7 @@ namespace KParts
class KDevShellWidget : public TQVBox
{
-Q_OBJECT
+TQ_OBJECT
public:
@@ -97,5 +97,3 @@ private:
};
#endif
-
-// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
diff --git a/lib/util/tdescriptactionmanager.cpp b/lib/util/tdescriptactionmanager.cpp
index c4b44894..de10a9e0 100644
--- a/lib/util/tdescriptactionmanager.cpp
+++ b/lib/util/tdescriptactionmanager.cpp
@@ -52,7 +52,7 @@ KScriptAction::KScriptAction( const TQString &scriptDesktopFile, TQObject *inter
TDETrader::OfferList offers = TDETrader::self()->query( "KScriptRunner/KScriptRunner", scriptTypeQuery );
if ( !offers.isEmpty() )
{
- m_action = new TDEAction(m_scriptName, TDEShortcut(), this, TQT_SLOT(activate()), ac, "script");
+ m_action = new TDEAction(m_scriptName, TDEShortcut(), this, TQ_SLOT(activate()), ac, "script");
m_isValid = true;
m_timeout = new TQTimer(this);
TQString icon = desktop.readIcon();
@@ -60,7 +60,7 @@ KScriptAction::KScriptAction( const TQString &scriptDesktopFile, TQObject *inter
if( !icon.isEmpty() )
m_action->setIcon(icon);
m_action->setShortcutConfigurable(true);
- connect( m_timeout, TQT_SIGNAL(timeout()), TQT_SLOT(cleanup()) );
+ connect( m_timeout, TQ_SIGNAL(timeout()), TQ_SLOT(cleanup()) );
}
}
}
@@ -91,7 +91,7 @@ void KScriptAction::activate( )
m_interface->setScript(m_scriptFile);
else
m_interface->setScript(m_scriptFile, m_scriptMethod);
- connect(this, TQT_SIGNAL(done(KScriptClientInterface::Result, const TQVariant &)), this, TQT_SLOT(scriptFinished()));
+ connect(this, TQ_SIGNAL(done(KScriptClientInterface::Result, const TQVariant &)), this, TQ_SLOT(scriptFinished()));
}
else
{
@@ -152,16 +152,16 @@ TQPtrList< TDEAction > KScriptActionManager::scripts( TQObject * interface , con
{
actions.append(script->action());
m_actions.append(script);
- connect(script, TQT_SIGNAL(error( const TQString&)), this,
- TQT_SIGNAL(scriptError( const TQString&)));
- connect(script, TQT_SIGNAL(warning( const TQString&)), this,
- TQT_SIGNAL(scriptWarning( const TQString&)));
- connect(script, TQT_SIGNAL(output( const TQString&)), this,
- TQT_SIGNAL(scriptOutput( const TQString&)));
- connect(script, TQT_SIGNAL(progress( int )), this,
- TQT_SIGNAL(scriptProgress(int)));
- connect(script, TQT_SIGNAL(done( KScriptClientInterface::Result, const TQVariant &)),this,
- TQT_SIGNAL(scriptDone( KScriptClientInterface::Result, const TQVariant &)));
+ connect(script, TQ_SIGNAL(error( const TQString&)), this,
+ TQ_SIGNAL(scriptError( const TQString&)));
+ connect(script, TQ_SIGNAL(warning( const TQString&)), this,
+ TQ_SIGNAL(scriptWarning( const TQString&)));
+ connect(script, TQ_SIGNAL(output( const TQString&)), this,
+ TQ_SIGNAL(scriptOutput( const TQString&)));
+ connect(script, TQ_SIGNAL(progress( int )), this,
+ TQ_SIGNAL(scriptProgress(int)));
+ connect(script, TQ_SIGNAL(done( KScriptClientInterface::Result, const TQVariant &)),this,
+ TQ_SIGNAL(scriptDone( KScriptClientInterface::Result, const TQVariant &)));
}
else
delete script;
diff --git a/lib/util/tdescriptactionmanager.h b/lib/util/tdescriptactionmanager.h
index 20133310..9a610845 100644
--- a/lib/util/tdescriptactionmanager.h
+++ b/lib/util/tdescriptactionmanager.h
@@ -36,7 +36,7 @@ class TQTimer;
* @author ian geiser geiseri@sourcextreme.com
*/
class KScriptAction : public TQObject, public KScriptClientInterface {
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -92,7 +92,7 @@ private:
* @author ian geiser <geiseri@sourcextreme.com>
*/
class KScriptActionManager : public TQObject {
-Q_OBJECT
+TQ_OBJECT
public:
diff --git a/lib/widgets/flagboxes.cpp b/lib/widgets/flagboxes.cpp
index 7e643d66..87db2425 100644
--- a/lib/widgets/flagboxes.cpp
+++ b/lib/widgets/flagboxes.cpp
@@ -320,7 +320,7 @@ FlagPathEdit::FlagPathEdit( TQWidget * parent, TQString pathDelimiter,
layout->addWidget(edit);
details = new TQPushButton("...", this);
details->setMaximumWidth(30);
- connect(details, TQT_SIGNAL(clicked()), this, TQT_SLOT(showPathDetails()));
+ connect(details, TQ_SIGNAL(clicked()), this, TQ_SLOT(showPathDetails()));
layout->addWidget(details);
}
@@ -540,7 +540,7 @@ FlagListEdit::FlagListEdit( TQWidget * parent, TQString listDelimiter, FlagEditC
{
details = new TQPushButton("...", this);
details->setMaximumWidth(30);
- connect(details, TQT_SIGNAL(clicked()), this, TQT_SLOT(showListDetails()));
+ connect(details, TQ_SIGNAL(clicked()), this, TQ_SLOT(showListDetails()));
layout->addWidget(details);
}
diff --git a/lib/widgets/flagboxes.h b/lib/widgets/flagboxes.h
index 79c77fa7..89de805a 100644
--- a/lib/widgets/flagboxes.h
+++ b/lib/widgets/flagboxes.h
@@ -67,7 +67,7 @@ private:
/**List box item holding a compiler flag.*/
class FlagListBox : public TQListView
{
- Q_OBJECT
+ TQ_OBJECT
public:
FlagListBox( TQWidget *parent=0, const char *name=0 );
@@ -82,7 +82,7 @@ public:
/**Check box item holding a compiler flag.*/
class FlagCheckBox : public TQCheckBox
{
- Q_OBJECT
+ TQ_OBJECT
public:
FlagCheckBox(TQWidget *parent, FlagCheckBoxController *controller,
@@ -109,7 +109,7 @@ private:
/**Radiobutton item holding an option of a compiler flag.*/
class FlagRadioButton : public TQRadioButton
{
- Q_OBJECT
+ TQ_OBJECT
public:
FlagRadioButton(TQWidget *parent, FlagRadioButtonController *controller,
@@ -125,7 +125,7 @@ private:
/**Path editor if path is a compiler flag.*/
class FlagPathEdit: public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**If the pathDelimiter is not empty then path edit can contain a list of paths*/
@@ -155,7 +155,7 @@ private:
/**List editor if list is a compiler flag.*/
class FlagListEdit: public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**If the listDelimiter is not empty then list edit can contain a list of entries*/
diff --git a/lib/widgets/kcomboview.h b/lib/widgets/kcomboview.h
index f808c29c..2e52a216 100644
--- a/lib/widgets/kcomboview.h
+++ b/lib/widgets/kcomboview.h
@@ -54,7 +54,7 @@ class CustomCompleter : public TDECompletion {
class KComboView: public QComboView
{
- Q_OBJECT
+ TQ_OBJECT
public:
///The combo-view takes the ownership of the completer and deletes it on destruction
diff --git a/lib/widgets/kdevhtmlpart.cpp b/lib/widgets/kdevhtmlpart.cpp
index a8520e30..8fdec94e 100644
--- a/lib/widgets/kdevhtmlpart.cpp
+++ b/lib/widgets/kdevhtmlpart.cpp
@@ -24,54 +24,54 @@ KDevHTMLPart::KDevHTMLPart()
{
setXMLFile(locate("data", "tdevelop/kdevhtml_partui.rc"), true);
- connect(browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL &,const KParts::URLArgs &)),
- this, TQT_SLOT(openURLRequest(const KURL &)) );
+ connect(browserExtension(), TQ_SIGNAL(openURLRequestDelayed(const KURL &,const KParts::URLArgs &)),
+ this, TQ_SLOT(openURLRequest(const KURL &)) );
- connect(this, TQT_SIGNAL(started(TDEIO::Job *)), this, TQT_SLOT(slotStarted(TDEIO::Job* )));
- connect(this, TQT_SIGNAL(completed()), this, TQT_SLOT(slotCompleted()));
- connect(this, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotCancelled(const TQString &)));
+ connect(this, TQ_SIGNAL(started(TDEIO::Job *)), this, TQ_SLOT(slotStarted(TDEIO::Job* )));
+ connect(this, TQ_SIGNAL(completed()), this, TQ_SLOT(slotCompleted()));
+ connect(this, TQ_SIGNAL(canceled(const TQString &)), this, TQ_SLOT(slotCancelled(const TQString &)));
TDEActionCollection * actions = actionCollection();// new TDEActionCollection( this );
reloadAction = new TDEAction( i18n( "Reload" ), "reload", 0,
- this, TQT_SLOT( slotReload() ), actions, "doc_reload" );
+ this, TQ_SLOT( slotReload() ), actions, "doc_reload" );
reloadAction->setWhatsThis(i18n("<b>Reload</b><p>Reloads the current document."));
stopAction = new TDEAction( i18n( "Stop" ), "process-stop", 0,
- this, TQT_SLOT( slotStop() ), actions, "doc_stop" );
+ this, TQ_SLOT( slotStop() ), actions, "doc_stop" );
stopAction->setWhatsThis(i18n("<b>Stop</b><p>Stops the loading of current document."));
duplicateAction = new TDEAction( i18n( "Duplicate Tab" ), "window-new", 0,
- this, TQT_SLOT( slotDuplicate() ), actions, "doc_dup" );
+ this, TQ_SLOT( slotDuplicate() ), actions, "doc_dup" );
duplicateAction->setWhatsThis(i18n("<b>Duplicate window</b><p>Opens current document in a new window."));
- printAction = KStdAction::print(this, TQT_SLOT(slotPrint()), actions, "print_doc");
- copyAction = KStdAction::copy(this, TQT_SLOT(slotCopy()), actions, "copy_doc_selection");
+ printAction = KStdAction::print(this, TQ_SLOT(slotPrint()), actions, "print_doc");
+ copyAction = KStdAction::copy(this, TQ_SLOT(slotCopy()), actions, "copy_doc_selection");
- connect( this, TQT_SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, TQT_SLOT(popup(const TQString &, const TQPoint &)));
- connect(this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()));
+ connect( this, TQ_SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, TQ_SLOT(popup(const TQString &, const TQPoint &)));
+ connect(this, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotSelectionChanged()));
//BEGIN documentation history stuff
m_backAction = new TDEToolBarPopupAction(i18n("Back"), "back", 0,
- this, TQT_SLOT(slotBack()),
+ this, TQ_SLOT(slotBack()),
actions, "browser_back");
m_backAction->setEnabled( false );
m_backAction->setToolTip(i18n("Back"));
m_backAction->setWhatsThis(i18n("<b>Back</b><p>Moves backwards one step in the <b>documentation</b> browsing history."));
- connect(m_backAction->popupMenu(), TQT_SIGNAL(aboutToShow()),
- this, TQT_SLOT(slotBackAboutToShow()));
- connect(m_backAction->popupMenu(), TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotPopupActivated(int)));
+ connect(m_backAction->popupMenu(), TQ_SIGNAL(aboutToShow()),
+ this, TQ_SLOT(slotBackAboutToShow()));
+ connect(m_backAction->popupMenu(), TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotPopupActivated(int)));
m_forwardAction = new TDEToolBarPopupAction(i18n("Forward"), "forward", 0,
- this, TQT_SLOT(slotForward()),
+ this, TQ_SLOT(slotForward()),
actions, "browser_forward");
m_forwardAction->setEnabled( false );
m_forwardAction->setToolTip(i18n("Forward"));
m_forwardAction->setWhatsThis(i18n("<b>Forward</b><p>Moves forward one step in the <b>documentation</b> browsing history."));
- connect(m_forwardAction->popupMenu(), TQT_SIGNAL(aboutToShow()),
- this, TQT_SLOT(slotForwardAboutToShow()));
- connect(m_forwardAction->popupMenu(), TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotPopupActivated(int)));
+ connect(m_forwardAction->popupMenu(), TQ_SIGNAL(aboutToShow()),
+ this, TQ_SLOT(slotForwardAboutToShow()));
+ connect(m_forwardAction->popupMenu(), TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotPopupActivated(int)));
m_restoring = false;
m_Current = m_history.end();
@@ -479,9 +479,9 @@ void KDevHTMLPart::slotCopy( )
TQString text = selectedText();
text.replace( TQChar( 0xa0 ), ' ' );
TQClipboard *cb = TQApplication::clipboard();
- disconnect( cb, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotClearSelection() ) );
+ disconnect( cb, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( slotClearSelection() ) );
cb->setText(text);
- connect( cb, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( slotClearSelection() ) );
+ connect( cb, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( slotClearSelection() ) );
}
void KDevHTMLPart::slotSelectionChanged( )
diff --git a/lib/widgets/kdevhtmlpart.h b/lib/widgets/kdevhtmlpart.h
index 6c8f7dc3..080c66ca 100644
--- a/lib/widgets/kdevhtmlpart.h
+++ b/lib/widgets/kdevhtmlpart.h
@@ -43,7 +43,7 @@ It has it's own popup menu and font/zoom settings.
*/
class KDevHTMLPart : public TDEHTMLPart
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/widgets/kdevtabwidget.cpp b/lib/widgets/kdevtabwidget.cpp
index cadff807..7a9ed47b 100644
--- a/lib/widgets/kdevtabwidget.cpp
+++ b/lib/widgets/kdevtabwidget.cpp
@@ -22,8 +22,8 @@ KDevTabWidget::KDevTabWidget(TQWidget *parent, const char *name) : TQTabWidget(p
{
m_pTabBar = new KTabBar(this, "tabbar");
setTabBar(m_pTabBar);
- connect(m_pTabBar, TQT_SIGNAL(closeWindow(const TQWidget*)), this, TQT_SIGNAL(closeWindow(const TQWidget*)));
- connect(m_pTabBar, TQT_SIGNAL(closeOthers(TQWidget*)), this, TQT_SIGNAL(closeOthers(TQWidget*)));
+ connect(m_pTabBar, TQ_SIGNAL(closeWindow(const TQWidget*)), this, TQ_SIGNAL(closeWindow(const TQWidget*)));
+ connect(m_pTabBar, TQ_SIGNAL(closeOthers(TQWidget*)), this, TQ_SIGNAL(closeOthers(TQWidget*)));
}
KTabBar::KTabBar(TQWidget *parent, const char *name) : TQTabBar(parent,name)
@@ -34,8 +34,8 @@ KTabBar::KTabBar(TQWidget *parent, const char *name) : TQTabBar(parent,name)
if (closePixmap.isNull())
closePixmap = SmallIcon("window-close");
- m_pPopupMenu->insertItem(closePixmap, i18n("&Close"), this, TQT_SLOT(closeWindowSlot()));
- m_pPopupMenu->insertItem(i18n("Close &Others"), this, TQT_SLOT(closeOthersSlot()));
+ m_pPopupMenu->insertItem(closePixmap, i18n("&Close"), this, TQ_SLOT(closeWindowSlot()));
+ m_pPopupMenu->insertItem(i18n("Close &Others"), this, TQ_SLOT(closeOthersSlot()));
}
void KTabBar::closeWindowSlot()
@@ -50,7 +50,7 @@ void KTabBar::closeOthersSlot()
void KTabBar::mousePressEvent(TQMouseEvent *e)
{
- if(e->button() == Qt::RightButton) {
+ if(e->button() == TQt::RightButton) {
TQTab *tab = selectTab(e->pos() );
if( tab == 0L ) return;
diff --git a/lib/widgets/ksavealldialog.cpp b/lib/widgets/ksavealldialog.cpp
index 9690e8a4..a98ce92a 100644
--- a/lib/widgets/ksavealldialog.cpp
+++ b/lib/widgets/ksavealldialog.cpp
@@ -79,9 +79,9 @@ KSaveSelectDialog::KSaveSelectDialog( KURL::List const & filelist, KURL::List co
++it;
}
- connect( this, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(cancel()) );
- connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(save()) );
- connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(saveNone()) );
+ connect( this, TQ_SIGNAL(closeClicked()), this, TQ_SLOT(cancel()) );
+ connect( this, TQ_SIGNAL(okClicked()), this, TQ_SLOT(save()) );
+ connect( this, TQ_SIGNAL(user1Clicked()), this, TQ_SLOT(saveNone()) );
}
KSaveSelectDialog::~KSaveSelectDialog() {}
@@ -159,9 +159,9 @@ KSaveAllDialog::KSaveAllDialog( const TQStringList& filenames, TQWidget* parent
setButtonTip( User1, i18n("Lose all modifications") );
setButtonTip( Close, i18n("Cancels the action") );
- connect( this, TQT_SIGNAL(closeClicked()), this, TQT_SLOT(cancel()) );
- connect( this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(saveAll()) );
- connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(revert()) );
+ connect( this, TQ_SIGNAL(closeClicked()), this, TQ_SLOT(cancel()) );
+ connect( this, TQ_SIGNAL(okClicked()), this, TQ_SLOT(saveAll()) );
+ connect( this, TQ_SIGNAL(user1Clicked()), this, TQ_SLOT(revert()) );
}
KSaveAllDialog::~KSaveAllDialog()
diff --git a/lib/widgets/ksavealldialog.h b/lib/widgets/ksavealldialog.h
index fcd63fc0..59a16f87 100644
--- a/lib/widgets/ksavealldialog.h
+++ b/lib/widgets/ksavealldialog.h
@@ -35,7 +35,7 @@ Dialog to save selected files.
*/
class KSaveSelectDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -61,7 +61,7 @@ Dialog to save all files.
*/
class KSaveAllDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/widgets/processlinemaker.cpp b/lib/widgets/processlinemaker.cpp
index 113b206b..be881aa3 100644
--- a/lib/widgets/processlinemaker.cpp
+++ b/lib/widgets/processlinemaker.cpp
@@ -28,11 +28,11 @@ ProcessLineMaker::ProcessLineMaker()
ProcessLineMaker::ProcessLineMaker( const TDEProcess* proc )
{
- connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
- this, TQT_SLOT(slotReceivedStdout(TDEProcess*,char*,int)) );
+ connect(proc, TQ_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
+ this, TQ_SLOT(slotReceivedStdout(TDEProcess*,char*,int)) );
- connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
- this, TQT_SLOT(slotReceivedStderr(TDEProcess*,char*,int)) );
+ connect(proc, TQ_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
+ this, TQ_SLOT(slotReceivedStderr(TDEProcess*,char*,int)) );
}
void ProcessLineMaker::slotReceivedStdout( const char *buffer )
diff --git a/lib/widgets/processlinemaker.h b/lib/widgets/processlinemaker.h
index 19f714fa..c438e84e 100644
--- a/lib/widgets/processlinemaker.h
+++ b/lib/widgets/processlinemaker.h
@@ -34,7 +34,7 @@ Convenience class to catch output of TDEProcess.
*/
class ProcessLineMaker : public TQObject
{
-Q_OBJECT
+TQ_OBJECT
public:
@@ -64,5 +64,3 @@ private:
};
#endif
-
-//kate: replace-tabs off; indent-spaces off;
diff --git a/lib/widgets/processwidget.cpp b/lib/widgets/processwidget.cpp
index a4188643..7d8a4d3b 100644
--- a/lib/widgets/processwidget.cpp
+++ b/lib/widgets/processwidget.cpp
@@ -106,7 +106,7 @@ void ProcessListBoxItem::paint(TQPainter *p)
ProcessWidget::ProcessWidget(TQWidget *parent, const char *name)
: TDEListBox(parent, name)
{
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
// Don't override the palette, as that can mess up styles. Instead, draw
// the background ourselves (see ProcessListBoxItem::paint).
@@ -117,17 +117,17 @@ ProcessWidget::ProcessWidget(TQWidget *parent, const char *name)
procLineMaker = new ProcessLineMaker( childproc );
- connect( procLineMaker, TQT_SIGNAL(receivedStdoutLine(const TQCString&)),
- this, TQT_SLOT(insertStdoutLine(const TQCString&) ));
- connect( procLineMaker, TQT_SIGNAL(receivedStderrLine(const TQCString&)),
- this, TQT_SLOT(insertStderrLine(const TQCString&) ));
- connect( procLineMaker, TQT_SIGNAL(receivedPartialStdoutLine(const TQCString&)),
- this, TQT_SLOT(addPartialStdoutLine(const TQCString&) ));
- connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)),
- this, TQT_SLOT(addPartialStderrLine(const TQCString&) ));
-
- connect(childproc, TQT_SIGNAL(processExited(TDEProcess*)),
- this, TQT_SLOT(slotProcessExited(TDEProcess*) )) ;
+ connect( procLineMaker, TQ_SIGNAL(receivedStdoutLine(const TQCString&)),
+ this, TQ_SLOT(insertStdoutLine(const TQCString&) ));
+ connect( procLineMaker, TQ_SIGNAL(receivedStderrLine(const TQCString&)),
+ this, TQ_SLOT(insertStderrLine(const TQCString&) ));
+ connect( procLineMaker, TQ_SIGNAL(receivedPartialStdoutLine(const TQCString&)),
+ this, TQ_SLOT(addPartialStdoutLine(const TQCString&) ));
+ connect( procLineMaker, TQ_SIGNAL(receivedPartialStderrLine(const TQCString&)),
+ this, TQ_SLOT(addPartialStderrLine(const TQCString&) ));
+
+ connect(childproc, TQ_SIGNAL(processExited(TDEProcess*)),
+ this, TQ_SLOT(slotProcessExited(TDEProcess*) )) ;
}
diff --git a/lib/widgets/processwidget.h b/lib/widgets/processwidget.h
index a8279477..a80f3deb 100644
--- a/lib/widgets/processwidget.h
+++ b/lib/widgets/processwidget.h
@@ -57,7 +57,7 @@ private:
*/
class ProcessWidget : public TDEListBox
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/lib/widgets/propeditor/Mainpage.dox b/lib/widgets/propeditor/Mainpage.dox
index d77010d0..411a2ffe 100644
--- a/lib/widgets/propeditor/Mainpage.dox
+++ b/lib/widgets/propeditor/Mainpage.dox
@@ -76,7 +76,7 @@ A simple example on how to create a property editor and use it with one property
list->addProperty("My Group", new Property(Property::String, "Second Property",
"This is my second property", "Hello"));
list->addProperty(new Property(Property::Color, "Third Property",
- "This is my third property", QColor("green")));
+ "This is my third property", TQColor("green")));
m_editor->populateProperties(*list);
\endcode
@@ -94,7 +94,7 @@ More advanced example with property buffers and list intersection:
list->addProperty("My Group", new Property(Property::String, "Second Property",
"This is my second property", "Hello"));
list->addProperty(new Property(Property::Color, "Third Property",
- "This is my third property", QColor("green")));
+ "This is my third property", TQColor("green")));
PropertyList *list2 = new PropertyList;
list2->addProperty("My Group", new Property(Property::Integer, "First Property",
diff --git a/lib/widgets/propeditor/pcheckbox.cpp b/lib/widgets/propeditor/pcheckbox.cpp
index 6e9c06b7..951fad34 100644
--- a/lib/widgets/propeditor/pcheckbox.cpp
+++ b/lib/widgets/propeditor/pcheckbox.cpp
@@ -39,7 +39,7 @@ PCheckBox::PCheckBox(MultiProperty *property, TQWidget *parent, const char *name
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
+ connect(m_edit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(updateProperty(bool)));
}
TQVariant PCheckBox::value() const
@@ -49,9 +49,9 @@ TQVariant PCheckBox::value() const
void PCheckBox::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
+ disconnect(m_edit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(updateProperty(bool)));
m_edit->setChecked(value.toBool());
- connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
+ connect(m_edit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(updateProperty(bool)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pcheckbox.h b/lib/widgets/propeditor/pcheckbox.h
index ed2aea39..0131cf82 100644
--- a/lib/widgets/propeditor/pcheckbox.h
+++ b/lib/widgets/propeditor/pcheckbox.h
@@ -30,7 +30,7 @@ namespace PropertyLib{
@short %Property editor with checkbox.
*/
class PCheckBox: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
PCheckBox(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/pcolorbutton.cpp b/lib/widgets/propeditor/pcolorbutton.cpp
index 4b6ae5c4..9c42f4a6 100644
--- a/lib/widgets/propeditor/pcolorbutton.cpp
+++ b/lib/widgets/propeditor/pcolorbutton.cpp
@@ -39,10 +39,10 @@ PColorButton::PColorButton(MultiProperty* property, TQWidget* parent, const char
TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
#ifndef PURE_QT
m_edit = new KColorButton(this);
- connect(m_edit, TQT_SIGNAL(changed(const TQColor&)), this, TQT_SLOT(updateProperty(const TQColor&)));
+ connect(m_edit, TQ_SIGNAL(changed(const TQColor&)), this, TQ_SLOT(updateProperty(const TQColor&)));
#else
m_edit = new TQPushButton(this);
- connect(m_edit, TQT_SIGNAL(clicked()), this, TQT_SLOT(changeColor()));
+ connect(m_edit, TQ_SIGNAL(clicked()), this, TQ_SLOT(changeColor()));
#endif
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
@@ -78,9 +78,9 @@ void PColorButton::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect
void PColorButton::setValue(const TQVariant& value, bool emitChange)
{
#ifndef PURE_QT
- disconnect(m_edit, TQT_SIGNAL(changed(const TQColor&)), this, TQT_SLOT(updateProperty(const TQColor&)));
+ disconnect(m_edit, TQ_SIGNAL(changed(const TQColor&)), this, TQ_SLOT(updateProperty(const TQColor&)));
m_edit->setColor(value.toColor());
- connect(m_edit, TQT_SIGNAL(changed(const TQColor&)), this, TQT_SLOT(updateProperty(const TQColor&)));
+ connect(m_edit, TQ_SIGNAL(changed(const TQColor&)), this, TQ_SLOT(updateProperty(const TQColor&)));
#else
m_color = value.toColor();
m_edit->setText(m_color.name());
diff --git a/lib/widgets/propeditor/pcolorbutton.h b/lib/widgets/propeditor/pcolorbutton.h
index ab17b449..61f96fc4 100644
--- a/lib/widgets/propeditor/pcolorbutton.h
+++ b/lib/widgets/propeditor/pcolorbutton.h
@@ -35,7 +35,7 @@ namespace PropertyLib{
*/
class PColorButton: public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PColorButton(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/pcolorcombo.cpp b/lib/widgets/propeditor/pcolorcombo.cpp
index 23c61f46..78fd9dc3 100644
--- a/lib/widgets/propeditor/pcolorcombo.cpp
+++ b/lib/widgets/propeditor/pcolorcombo.cpp
@@ -34,7 +34,7 @@ PColorCombo::PColorCombo(MultiProperty *property, TQWidget *parent, const char *
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
}
TQVariant PColorCombo::value() const
@@ -44,9 +44,9 @@ TQVariant PColorCombo::value() const
void PColorCombo::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ disconnect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
m_edit->setColor(value.toColor());
- connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pcolorcombo.h b/lib/widgets/propeditor/pcolorcombo.h
index 052c287d..31588b7d 100644
--- a/lib/widgets/propeditor/pcolorcombo.h
+++ b/lib/widgets/propeditor/pcolorcombo.h
@@ -30,7 +30,7 @@ namespace PropertyLib{
@short %Property editor with color combobox.
*/
class PColorCombo: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
PColorCombo(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/pcombobox.cpp b/lib/widgets/propeditor/pcombobox.cpp
index a0749744..ca42cda6 100644
--- a/lib/widgets/propeditor/pcombobox.cpp
+++ b/lib/widgets/propeditor/pcombobox.cpp
@@ -45,7 +45,7 @@ void PComboBox::init(bool rw)
fillBox();
- connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
}
void PComboBox::fillBox()
@@ -68,9 +68,9 @@ void PComboBox::setValue(const TQVariant &value, bool emitChange)
{
if (!value.isNull())
{
- disconnect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ disconnect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
m_edit->setCurrentText(findDescription(value));
- connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pcombobox.h b/lib/widgets/propeditor/pcombobox.h
index c9da1ad9..fc246ea5 100644
--- a/lib/widgets/propeditor/pcombobox.h
+++ b/lib/widgets/propeditor/pcombobox.h
@@ -34,7 +34,7 @@ namespace PropertyLib{
@short %Property editor with combobox.
*/
class PComboBox: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
/**This constructor is used for read-only selection combo. It provides a value from valueList*/
diff --git a/lib/widgets/propeditor/pcursoredit.h b/lib/widgets/propeditor/pcursoredit.h
index 5ff9fbf3..9ff8320f 100644
--- a/lib/widgets/propeditor/pcursoredit.h
+++ b/lib/widgets/propeditor/pcursoredit.h
@@ -29,7 +29,7 @@ namespace PropertyLib{
*/
class PCursorEdit: public PComboBox
{
- Q_OBJECT
+ TQ_OBJECT
public:
PCursorEdit(MultiProperty* property, const TQStringVariantMap &spValues,
diff --git a/lib/widgets/propeditor/pdateedit.cpp b/lib/widgets/propeditor/pdateedit.cpp
index ed83dbb2..563552c3 100644
--- a/lib/widgets/propeditor/pdateedit.cpp
+++ b/lib/widgets/propeditor/pdateedit.cpp
@@ -33,7 +33,7 @@ PDateEdit::PDateEdit(MultiProperty* property, TQWidget* parent, const char* name
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(updateProperty(const TQDate&)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(const TQDate&)), this, TQ_SLOT(updateProperty(const TQDate&)));
}
TQVariant PDateEdit::value() const
@@ -46,14 +46,14 @@ void PDateEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r
p->setPen(TQt::NoPen);
p->setBrush(cg.background());
p->drawRect(r);
- p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDate().toString(Qt::LocalDate));
+ p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDate().toString(TQt::LocalDate));
}
void PDateEdit::setValue(const TQVariant& value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(updateProperty(const TQDate&)));
+ disconnect(m_edit, TQ_SIGNAL(valueChanged(const TQDate&)), this, TQ_SLOT(updateProperty(const TQDate&)));
m_edit->setDate(value.toDate());
- connect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(updateProperty(const TQDate&)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(const TQDate&)), this, TQ_SLOT(updateProperty(const TQDate&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pdateedit.h b/lib/widgets/propeditor/pdateedit.h
index 126a4023..edfe69ff 100644
--- a/lib/widgets/propeditor/pdateedit.h
+++ b/lib/widgets/propeditor/pdateedit.h
@@ -31,7 +31,7 @@ namespace PropertyLib{
*/
class PDateEdit : public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
PDateEdit(MultiProperty* property, TQWidget* parent=0, const char* name=0);
diff --git a/lib/widgets/propeditor/pdatetimeedit.cpp b/lib/widgets/propeditor/pdatetimeedit.cpp
index 3b8993d3..8f4c03d3 100644
--- a/lib/widgets/propeditor/pdatetimeedit.cpp
+++ b/lib/widgets/propeditor/pdatetimeedit.cpp
@@ -32,7 +32,7 @@ PDateTimeEdit::PDateTimeEdit(MultiProperty* property, TQWidget* parent, const ch
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(updateProperty(const TQDateTime&)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(const TQDateTime&)), this, TQ_SLOT(updateProperty(const TQDateTime&)));
}
TQVariant PDateTimeEdit::value() const
@@ -45,14 +45,14 @@ void PDateTimeEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRec
p->setPen(TQt::NoPen);
p->setBrush(cg.background());
p->drawRect(r);
- p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDateTime().toString(Qt::LocalDate));
+ p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDateTime().toString(TQt::LocalDate));
}
void PDateTimeEdit::setValue(const TQVariant& value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(updateProperty(const TQDateTime&)));
+ disconnect(m_edit, TQ_SIGNAL(valueChanged(const TQDateTime&)), this, TQ_SLOT(updateProperty(const TQDateTime&)));
m_edit->setDateTime(value.toDateTime());
- connect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(updateProperty(const TQDateTime&)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(const TQDateTime&)), this, TQ_SLOT(updateProperty(const TQDateTime&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pdatetimeedit.h b/lib/widgets/propeditor/pdatetimeedit.h
index 4b54714b..86affb59 100644
--- a/lib/widgets/propeditor/pdatetimeedit.h
+++ b/lib/widgets/propeditor/pdatetimeedit.h
@@ -31,7 +31,7 @@ namespace PropertyLib{
*/
class PDateTimeEdit : public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
PDateTimeEdit(MultiProperty* property, TQWidget* parent=0, const char* name=0);
diff --git a/lib/widgets/propeditor/pdoublenuminput.cpp b/lib/widgets/propeditor/pdoublenuminput.cpp
index 99b0151e..b244935f 100644
--- a/lib/widgets/propeditor/pdoublenuminput.cpp
+++ b/lib/widgets/propeditor/pdoublenuminput.cpp
@@ -38,10 +38,10 @@ PDoubleNumInput::PDoubleNumInput(MultiProperty *property, TQWidget *parent, cons
#ifndef PURE_QT
m_edit = new KDoubleNumInput(-999999.0, 999999.0, 0.0, 0.01, 2, this);
m_edit->setLabel(TQString());
- connect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(double)), this, TQ_SLOT(updateProperty(double)));
#else
m_edit = new TQFloatInput(-999999, 999999, 0.01, 2, this );
- connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
#endif
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
/* m_edit->setMinValue(-999999999);
@@ -59,13 +59,13 @@ TQVariant PDoubleNumInput::value() const
void PDoubleNumInput::setValue(const TQVariant &value, bool emitChange)
{
#ifndef PURE_QT
- disconnect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));
+ disconnect(m_edit, TQ_SIGNAL(valueChanged(double)), this, TQ_SLOT(updateProperty(double)));
m_edit->setValue(value.toDouble());
- connect(m_edit, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(updateProperty(double)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(double)), this, TQ_SLOT(updateProperty(double)));
#else
- disconnect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ disconnect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
m_edit->setValue(int(value.toDouble()*pow(m_edit->digits(),10)));
- connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
#endif
if (emitChange)
emit propertyChanged(m_property, value);
diff --git a/lib/widgets/propeditor/pdoublenuminput.h b/lib/widgets/propeditor/pdoublenuminput.h
index a398c498..65665ddc 100644
--- a/lib/widgets/propeditor/pdoublenuminput.h
+++ b/lib/widgets/propeditor/pdoublenuminput.h
@@ -35,7 +35,7 @@ namespace PropertyLib{
*/
class PDoubleNumInput: public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
PDoubleNumInput(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/pdummywidget.h b/lib/widgets/propeditor/pdummywidget.h
index dad94591..514af868 100644
--- a/lib/widgets/propeditor/pdummywidget.h
+++ b/lib/widgets/propeditor/pdummywidget.h
@@ -39,7 +39,7 @@ like TQValueList's or TQMap's stored in a variant.
*/
class PDummyWidget: public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PDummyWidget(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/pfontbutton.cpp b/lib/widgets/propeditor/pfontbutton.cpp
index 8932c4ae..7044e6c1 100644
--- a/lib/widgets/propeditor/pfontbutton.cpp
+++ b/lib/widgets/propeditor/pfontbutton.cpp
@@ -44,7 +44,7 @@ PFontButton::PFontButton(MultiProperty* property, TQWidget* parent, const char*
#endif
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(fontSelected(const TQFont& )), this, TQT_SLOT(updateProperty(const TQFont& )));
+ connect(m_edit, TQ_SIGNAL(fontSelected(const TQFont& )), this, TQ_SLOT(updateProperty(const TQFont& )));
}
TQVariant PFontButton::value() const
@@ -66,9 +66,9 @@ void PFontButton::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect&
void PFontButton::setValue(const TQVariant& value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(fontSelected(const TQFont&)), this, TQT_SLOT(updateProperty(const TQFont&)));
+ disconnect(m_edit, TQ_SIGNAL(fontSelected(const TQFont&)), this, TQ_SLOT(updateProperty(const TQFont&)));
m_edit->setFont(value.toFont());
- connect(m_edit, TQT_SIGNAL(fontSelected(const TQFont& )), this, TQT_SLOT(updateProperty(const TQFont& )));
+ connect(m_edit, TQ_SIGNAL(fontSelected(const TQFont& )), this, TQ_SLOT(updateProperty(const TQFont& )));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pfontbutton.h b/lib/widgets/propeditor/pfontbutton.h
index 3f7d54c6..818b5779 100644
--- a/lib/widgets/propeditor/pfontbutton.h
+++ b/lib/widgets/propeditor/pfontbutton.h
@@ -31,7 +31,7 @@ namespace PropertyLib{
*/
class PFontButton : public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
PFontButton(MultiProperty* property, TQWidget* parent = 0, const char* name = 0);
diff --git a/lib/widgets/propeditor/pfontcombo.cpp b/lib/widgets/propeditor/pfontcombo.cpp
index cb8a80b2..224e4bd0 100644
--- a/lib/widgets/propeditor/pfontcombo.cpp
+++ b/lib/widgets/propeditor/pfontcombo.cpp
@@ -46,9 +46,9 @@ PFontCombo::PFontCombo(MultiProperty *property, TQWidget *parent, const char *na
#ifdef PURE_QT
TQFontDatabase fonts;
m_edit->insertStringList(fonts.families());
- connect(m_edit, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(activated(const TQString &)), this, TQ_SLOT(updateProperty(const TQString&)));
#else
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
#endif
}
@@ -63,13 +63,13 @@ TQVariant PFontCombo::value() const
void PFontCombo::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ disconnect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
#ifndef PURE_QT
m_edit->setCurrentFont(value.toString());
#else
m_edit->setCurrentText(value.toString());
#endif
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pfontcombo.h b/lib/widgets/propeditor/pfontcombo.h
index e1a90b69..f208e18a 100644
--- a/lib/widgets/propeditor/pfontcombo.h
+++ b/lib/widgets/propeditor/pfontcombo.h
@@ -34,7 +34,7 @@ namespace PropertyLib{
@short %Property editor with font combo box.
*/
class PFontCombo: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
PFontCombo(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/plineedit.cpp b/lib/widgets/propeditor/plineedit.cpp
index f5e1ecb0..c27a6b74 100644
--- a/lib/widgets/propeditor/plineedit.cpp
+++ b/lib/widgets/propeditor/plineedit.cpp
@@ -32,7 +32,7 @@ PLineEdit::PLineEdit(MultiProperty *property, TQWidget *parent, const char *name
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
}
TQVariant PLineEdit::value() const
@@ -42,9 +42,9 @@ TQVariant PLineEdit::value() const
void PLineEdit::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ disconnect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
m_edit->setText(value.toString());
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/plineedit.h b/lib/widgets/propeditor/plineedit.h
index 4730a5c7..a5d57b98 100644
--- a/lib/widgets/propeditor/plineedit.h
+++ b/lib/widgets/propeditor/plineedit.h
@@ -30,7 +30,7 @@ namespace PropertyLib{
@short %Property editor with line edit.
*/
class PLineEdit: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
PLineEdit(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/plinestyleedit.cpp b/lib/widgets/propeditor/plinestyleedit.cpp
index 996b1d0e..baa6224b 100644
--- a/lib/widgets/propeditor/plinestyleedit.cpp
+++ b/lib/widgets/propeditor/plinestyleedit.cpp
@@ -140,7 +140,7 @@ PLineStyleEdit::PLineStyleEdit(MultiProperty* property, TQWidget* parent, const
m_edit->insertItem(TQPixmap(dashdot));
m_edit->insertItem(TQPixmap(dashdotdot));
- connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
}
TQVariant PLineStyleEdit::value() const
@@ -186,9 +186,9 @@ void PLineStyleEdit::setValue(const TQVariant& value, bool emitChange)
return;
if ((value.toInt() > 5) || (value.toInt() < 0))
return;
- disconnect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ disconnect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
m_edit->setCurrentItem(value.toInt());
- connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(activated(int)), this, TQ_SLOT(updateProperty(int)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/plinestyleedit.h b/lib/widgets/propeditor/plinestyleedit.h
index 2df5f3be..2c91e04a 100644
--- a/lib/widgets/propeditor/plinestyleedit.h
+++ b/lib/widgets/propeditor/plinestyleedit.h
@@ -30,7 +30,7 @@ namespace PropertyLib {
@short Line style editor
*/
class PLineStyleEdit : public PropertyWidget {
- Q_OBJECT
+ TQ_OBJECT
public:
PLineStyleEdit(MultiProperty* property, TQWidget* parent = 0, const char* name = 0);
diff --git a/lib/widgets/propeditor/ppixmapedit.cpp b/lib/widgets/propeditor/ppixmapedit.cpp
index 452b9637..0026ec31 100644
--- a/lib/widgets/propeditor/ppixmapedit.cpp
+++ b/lib/widgets/propeditor/ppixmapedit.cpp
@@ -61,7 +61,7 @@ PPixmapEdit::PPixmapEdit(MultiProperty* property, TQWidget* parent, const char*
m_popup->hide();
- connect(m_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateProperty()));
+ connect(m_button, TQ_SIGNAL(clicked()), this, TQ_SLOT(updateProperty()));
}
TQVariant PPixmapEdit::value() const
@@ -112,7 +112,7 @@ void PPixmapEdit::resizeEvent(TQResizeEvent *ev)
bool PPixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
{
- if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_edit))
+ if(o == m_edit)
{
if(ev->type() == TQEvent::MouseButtonPress)
{
@@ -131,7 +131,7 @@ bool PPixmapEdit::eventFilter(TQObject *o, TQEvent *ev)
}
if(ev->type() == TQEvent::KeyPress)
{
- TQKeyEvent* e = TQT_TQKEYEVENT(ev);
+ TQKeyEvent* e = static_cast<TQKeyEvent*>(ev);
if((e->key() == Key_Enter) || (e->key()== Key_Space) || (e->key() == Key_Return))
{
m_button->animateClick();
diff --git a/lib/widgets/propeditor/ppixmapedit.h b/lib/widgets/propeditor/ppixmapedit.h
index 1d95b6b5..5fdfebed 100644
--- a/lib/widgets/propeditor/ppixmapedit.h
+++ b/lib/widgets/propeditor/ppixmapedit.h
@@ -32,7 +32,7 @@ namespace PropertyLib{
*/
class PPixmapEdit : public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PPixmapEdit(MultiProperty* property, TQWidget* parent = 0, const char* name = 0);
diff --git a/lib/widgets/propeditor/ppointedit.h b/lib/widgets/propeditor/ppointedit.h
index b6f9f9ad..8ed1e7ae 100644
--- a/lib/widgets/propeditor/ppointedit.h
+++ b/lib/widgets/propeditor/ppointedit.h
@@ -31,7 +31,7 @@ namespace PropertyLib{
*/
class PPointEdit : public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
PPointEdit(MultiProperty* property, TQWidget* parent=0, const char* name=0);
diff --git a/lib/widgets/propeditor/prectedit.h b/lib/widgets/propeditor/prectedit.h
index 82abcda1..cd360ad0 100644
--- a/lib/widgets/propeditor/prectedit.h
+++ b/lib/widgets/propeditor/prectedit.h
@@ -31,7 +31,7 @@ namespace PropertyLib{
*/
class PRectEdit : public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PRectEdit(MultiProperty* property, TQWidget* parent=0, const char* name=0);
diff --git a/lib/widgets/propeditor/propertyeditor.cpp b/lib/widgets/propeditor/propertyeditor.cpp
index 987bb31b..0185b2e4 100644
--- a/lib/widgets/propeditor/propertyeditor.cpp
+++ b/lib/widgets/propeditor/propertyeditor.cpp
@@ -177,10 +177,10 @@ PropertyEditor::PropertyEditor(TQWidget *parent, const char *name)
header()->setClickEnabled(false);
- connect(header(), TQT_SIGNAL(sizeChange(int, int, int)),
- this, TQT_SLOT(updateEditorSize()));
- connect(this, TQT_SIGNAL(currentChanged(TQListViewItem*)),
- this, TQT_SLOT(slotClicked(TQListViewItem*)));
+ connect(header(), TQ_SIGNAL(sizeChange(int, int, int)),
+ this, TQ_SLOT(updateEditorSize()));
+ connect(this, TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQ_SLOT(slotClicked(TQListViewItem*)));
m_currentEditItem = 0;
m_doubleClickForEdit = true;
@@ -199,7 +199,7 @@ PropertyEditor::PropertyEditor(TQWidget *parent, const char *name)
m_undoButton->setSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::MinimumExpanding);
m_undoButton->resize(m_undoButton->height(), m_undoButton->height());
m_undoButton->hide();
- connect(m_undoButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(undo()));
+ connect(m_undoButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(undo()));
m_currentEditLayout = new TQGridLayout(m_currentEditArea, 1, 2, 0, 0);
// m_currentEditLayout->addWidget(m_undoButton, 0, 1);
}
@@ -214,7 +214,7 @@ void PropertyEditor::populateProperties(PropertyList *list)
if (list == 0)
return;
m_list = list;
- connect(m_list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(propertyValueChanged(Property*)));
+ connect(m_list, TQ_SIGNAL(propertyValueChanged(Property*)), this, TQ_SLOT(propertyValueChanged(Property*)));
const TQValueList<TQPair<TQString, TQValueList<TQString> > >& groups = m_list->propertiesOfGroup();
for (TQValueList<TQPair<TQString, TQValueList<TQString> > >::const_iterator it = groups.begin();
it != groups.end(); ++it)
@@ -288,7 +288,7 @@ void PropertyEditor::clearProperties()
hideEditor();
- disconnect(m_list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(propertyValueChanged(Property*)));
+ disconnect(m_list, TQ_SIGNAL(propertyValueChanged(Property*)), this, TQ_SLOT(propertyValueChanged(Property*)));
clear();
delete m_list;
m_list = 0;
@@ -445,8 +445,8 @@ Machine *PropertyEditor::machine(MultiProperty *property)
if (m_registeredForType[name] == 0)
{
m_registeredForType[name] = PropertyMachineFactory::getInstance()->machineForProperty(property);
- connect(m_registeredForType[name]->propertyEditor, TQT_SIGNAL(propertyChanged(MultiProperty*, const TQVariant&)),
- this, TQT_SLOT(propertyChanged(MultiProperty*, const TQVariant&)));
+ connect(m_registeredForType[name]->propertyEditor, TQ_SIGNAL(propertyChanged(MultiProperty*, const TQVariant&)),
+ this, TQ_SLOT(propertyChanged(MultiProperty*, const TQVariant&)));
m_registeredForType[name]->propertyEditor->reparent(m_currentEditArea, 0, m_currentEditArea->childrenRect().topLeft());
m_registeredForType[name]->propertyEditor->hide();
}
diff --git a/lib/widgets/propeditor/propertyeditor.h b/lib/widgets/propeditor/propertyeditor.h
index 852d795a..ad5d722c 100644
--- a/lib/widgets/propeditor/propertyeditor.h
+++ b/lib/widgets/propeditor/propertyeditor.h
@@ -56,7 +56,7 @@ creation of property widgets from the machine factory.
@see PropertyMachineFactory
*/
class PropertyEditor: public TDEListView{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructs the property editor.*/
diff --git a/lib/widgets/propeditor/propertylist.cpp b/lib/widgets/propeditor/propertylist.cpp
index a5b43a3f..6ef367c2 100644
--- a/lib/widgets/propeditor/propertylist.cpp
+++ b/lib/widgets/propeditor/propertylist.cpp
@@ -327,7 +327,7 @@ void PropertyBuffer::intersect(const PropertyList *list)
// tqWarning("intersect:: removing %s from intersection", it.key().ascii());
removeProperty(it.key());
}
- connect(list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(intersectedValueChanged(Property*)));
+ connect(list, TQ_SIGNAL(propertyValueChanged(Property*)), this, TQ_SLOT(intersectedValueChanged(Property*)));
}
void PropertyBuffer::intersectedValueChanged(Property *property)
@@ -359,7 +359,7 @@ PropertyBuffer::PropertyBuffer(PropertyList *list)
addToGroup(list->m_groupOfProperty[it.data()], mp);
m_list[it.key()] = mp;
}
- connect(list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(intersectedValueChanged(Property*)));
+ connect(list, TQ_SIGNAL(propertyValueChanged(Property*)), this, TQ_SLOT(intersectedValueChanged(Property*)));
}
}
diff --git a/lib/widgets/propeditor/propertylist.h b/lib/widgets/propeditor/propertylist.h
index 9cee76f8..1561b04d 100644
--- a/lib/widgets/propeditor/propertylist.h
+++ b/lib/widgets/propeditor/propertylist.h
@@ -54,7 +54,7 @@ alphabetically sorted list of properties or both at the same time.
*/
class PropertyList: public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -181,7 +181,7 @@ buf->intersect(list3);
/endcode
*/
class PropertyBuffer: public PropertyList{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructs a buffer from given property list.*/
diff --git a/lib/widgets/propeditor/propertywidget.h b/lib/widgets/propeditor/propertywidget.h
index 5071190b..857805da 100644
--- a/lib/widgets/propeditor/propertywidget.h
+++ b/lib/widgets/propeditor/propertywidget.h
@@ -47,7 +47,7 @@ A set of predefined widgets for predefined property types are available
in the library.
*/
class PropertyWidget: public TQWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
/**Constructs widget for property with name "propertyName".*/
diff --git a/lib/widgets/propeditor/propertywidgetproxy.h b/lib/widgets/propeditor/propertywidgetproxy.h
index 37bbadb8..fdbcfffb 100644
--- a/lib/widgets/propeditor/propertywidgetproxy.h
+++ b/lib/widgets/propeditor/propertywidgetproxy.h
@@ -41,7 +41,7 @@ depending on the property type.
*/
class PropertyWidgetProxy: public TQWidget
{
-Q_OBJECT
+TQ_OBJECT
TQ_PROPERTY( int propertyType READ propertyType WRITE setPropertyType DESIGNABLE true )
TQ_PROPERTY( PropertyType propertyType2 READ propertyType2 WRITE setPropertyType2 DESIGNABLE false )
diff --git a/lib/widgets/propeditor/psizeedit.h b/lib/widgets/propeditor/psizeedit.h
index 34acbb41..c4dba926 100644
--- a/lib/widgets/propeditor/psizeedit.h
+++ b/lib/widgets/propeditor/psizeedit.h
@@ -33,7 +33,7 @@ namespace PropertyLib{
*/
class PSizeEdit: public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PSizeEdit(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/psizepolicyedit.h b/lib/widgets/propeditor/psizepolicyedit.h
index 45ad5414..eb30bd64 100644
--- a/lib/widgets/propeditor/psizepolicyedit.h
+++ b/lib/widgets/propeditor/psizepolicyedit.h
@@ -33,7 +33,7 @@ namespace PropertyLib{
*/
class PSizePolicyEdit : public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
PSizePolicyEdit(MultiProperty* property, const TQStringVariantMap &spValues, TQWidget* parent=0, const char* name=0);
diff --git a/lib/widgets/propeditor/pspinbox.cpp b/lib/widgets/propeditor/pspinbox.cpp
index 755041c1..cb15bebb 100644
--- a/lib/widgets/propeditor/pspinbox.cpp
+++ b/lib/widgets/propeditor/pspinbox.cpp
@@ -34,7 +34,7 @@ PSpinBox::PSpinBox(MultiProperty *property, TQWidget *parent, const char *name)
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
}
PSpinBox::PSpinBox(MultiProperty *property, int minValue, int maxValue, int step, TQWidget *parent, const char *name)
@@ -44,7 +44,7 @@ PSpinBox::PSpinBox(MultiProperty *property, int minValue, int maxValue, int step
m_edit = new TQSpinBox(minValue, maxValue, step, this);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
}
TQVariant PSpinBox::value() const
@@ -54,9 +54,9 @@ TQVariant PSpinBox::value() const
void PSpinBox::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ disconnect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
m_edit->setValue(value.toInt());
- connect(m_edit, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateProperty(int)));
+ connect(m_edit, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateProperty(int)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pspinbox.h b/lib/widgets/propeditor/pspinbox.h
index ecb73907..11e184ff 100644
--- a/lib/widgets/propeditor/pspinbox.h
+++ b/lib/widgets/propeditor/pspinbox.h
@@ -30,7 +30,7 @@ namespace PropertyLib{
@short %Property editor with integer num input box.
*/
class PSpinBox: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
PSpinBox(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/pstringlistedit.cpp b/lib/widgets/propeditor/pstringlistedit.cpp
index b6f4b74e..9f2e1364 100644
--- a/lib/widgets/propeditor/pstringlistedit.cpp
+++ b/lib/widgets/propeditor/pstringlistedit.cpp
@@ -49,7 +49,7 @@ PStringListEdit::PStringListEdit(MultiProperty *property, TQWidget *parent, cons
pbSelect->setSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::MinimumExpanding);
l->addWidget(pbSelect);
- connect(pbSelect, TQT_SIGNAL(clicked()), this, TQT_SLOT(showEditor()));
+ connect(pbSelect, TQ_SIGNAL(clicked()), this, TQ_SLOT(showEditor()));
}
TQVariant PStringListEdit::value() const
@@ -87,8 +87,8 @@ void PStringListEdit::showEditor()
#endif
TQSpacerItem *si = new TQSpacerItem(30, 0, TQSizePolicy::Expanding, TQSizePolicy::Expanding);
- connect(pbOk, TQT_SIGNAL(clicked()), dia, TQT_SLOT(accept()));
- connect(pbCancel, TQT_SIGNAL(clicked()), dia, TQT_SLOT(reject()));
+ connect(pbOk, TQ_SIGNAL(clicked()), dia, TQ_SLOT(accept()));
+ connect(pbCancel, TQ_SIGNAL(clicked()), dia, TQ_SLOT(reject()));
dh->addItem(si);
dh->addWidget(pbOk);
diff --git a/lib/widgets/propeditor/pstringlistedit.h b/lib/widgets/propeditor/pstringlistedit.h
index 85b2ecc7..9986010d 100644
--- a/lib/widgets/propeditor/pstringlistedit.h
+++ b/lib/widgets/propeditor/pstringlistedit.h
@@ -34,7 +34,7 @@ namespace PropertyLib{
*/
class PStringListEdit: public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PStringListEdit(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/psymbolcombo.cpp b/lib/widgets/propeditor/psymbolcombo.cpp
index ee91ea48..7b7afec1 100644
--- a/lib/widgets/propeditor/psymbolcombo.cpp
+++ b/lib/widgets/propeditor/psymbolcombo.cpp
@@ -51,8 +51,8 @@ PSymbolCombo::PSymbolCombo(MultiProperty *property, TQWidget *parent, const char
m_select->hide();
#endif
- connect(m_select, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectChar()));
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_select, TQ_SIGNAL(clicked()), this, TQ_SLOT(selectChar()));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
}
TQVariant PSymbolCombo::value() const
@@ -67,9 +67,9 @@ void PSymbolCombo::setValue(const TQVariant &value, bool emitChange)
{
if (!(value.isNull()))
{
- disconnect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ disconnect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
m_edit->setText(TQChar(value.toInt()));
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
@@ -89,8 +89,8 @@ void PSymbolCombo::selectChar()
KPushButton *pbCancel = new KPushButton(KStdGuiItem::cancel(), dia);
TQSpacerItem *si = new TQSpacerItem(30, 0, TQSizePolicy::Expanding, TQSizePolicy::Expanding);
- connect(pbOk, TQT_SIGNAL(clicked()), dia, TQT_SLOT(accept()));
- connect(pbCancel, TQT_SIGNAL(clicked()), dia, TQT_SLOT(reject()));
+ connect(pbOk, TQ_SIGNAL(clicked()), dia, TQ_SLOT(accept()));
+ connect(pbCancel, TQ_SIGNAL(clicked()), dia, TQ_SLOT(reject()));
dh->addItem(si);
dh->addWidget(pbOk);
diff --git a/lib/widgets/propeditor/psymbolcombo.h b/lib/widgets/propeditor/psymbolcombo.h
index 52750fa1..c55eba58 100644
--- a/lib/widgets/propeditor/psymbolcombo.h
+++ b/lib/widgets/propeditor/psymbolcombo.h
@@ -33,7 +33,7 @@ namespace PropertyLib{
@short %Property editor with char selector.
*/
class PSymbolCombo: public PropertyWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
PSymbolCombo(MultiProperty *property, TQWidget *parent = 0, const char *name = 0);
diff --git a/lib/widgets/propeditor/purledit.cpp b/lib/widgets/propeditor/purledit.cpp
index 047c9997..d2df31e0 100644
--- a/lib/widgets/propeditor/purledit.cpp
+++ b/lib/widgets/propeditor/purledit.cpp
@@ -38,14 +38,14 @@ PUrlEdit::PUrlEdit(Mode mode, MultiProperty* property, TQWidget* parent, const c
m_edit = new KURLRequester(this);
l->addWidget(m_edit);
m_edit->setMode((KFile::Mode)mode);
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
#else
m_edit = new KLineEdit(this);
m_select = new TQPushButton("...",this);
l->addWidget(m_edit);
l->addWidget(m_select);
m_mode = mode;
- connect( m_select, TQT_SIGNAL(clicked()),this,TQT_SLOT(select()));
+ connect( m_select, TQ_SIGNAL(clicked()),this,TQ_SLOT(select()));
#endif
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
}
@@ -62,9 +62,9 @@ TQVariant PUrlEdit::value() const
void PUrlEdit::setValue(const TQVariant& value, bool emitChange)
{
#ifndef PURE_QT
- disconnect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ disconnect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
m_edit->setURL(value.toString());
- connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
+ connect(m_edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(updateProperty(const TQString&)));
#else
m_edit->setText(value.toString());
#endif
diff --git a/lib/widgets/propeditor/purledit.h b/lib/widgets/propeditor/purledit.h
index bed86853..027f3b7d 100644
--- a/lib/widgets/propeditor/purledit.h
+++ b/lib/widgets/propeditor/purledit.h
@@ -38,7 +38,7 @@ namespace PropertyLib{
*/
class PUrlEdit : public PropertyWidget
{
-Q_OBJECT
+TQ_OBJECT
public:
#ifndef PURE_QT
diff --git a/lib/widgets/propeditor/pyesnobutton.cpp b/lib/widgets/propeditor/pyesnobutton.cpp
index dae82868..2d4bfb57 100644
--- a/lib/widgets/propeditor/pyesnobutton.cpp
+++ b/lib/widgets/propeditor/pyesnobutton.cpp
@@ -40,7 +40,7 @@ PYesNoButton::PYesNoButton(MultiProperty* property, TQWidget* parent, const char
m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
+ connect(m_edit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(updateProperty(bool)));
}
TQVariant PYesNoButton::value() const
@@ -55,10 +55,10 @@ void PYesNoButton::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect
void PYesNoButton::setValue(const TQVariant& value, bool emitChange)
{
- disconnect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
+ disconnect(m_edit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(updateProperty(bool)));
m_edit->setDown(value.toBool());
value.toBool() ? m_edit->setText(i18n("Yes")) : m_edit->setText(i18n("No"));
- connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
+ connect(m_edit, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(updateProperty(bool)));
if (emitChange)
emit propertyChanged(m_property, value);
}
diff --git a/lib/widgets/propeditor/pyesnobutton.h b/lib/widgets/propeditor/pyesnobutton.h
index bb899186..4e41da47 100644
--- a/lib/widgets/propeditor/pyesnobutton.h
+++ b/lib/widgets/propeditor/pyesnobutton.h
@@ -31,7 +31,7 @@ namespace PropertyLib{
*/
class PYesNoButton : public PropertyWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
PYesNoButton(MultiProperty* property, TQWidget* parent = 0, const char* name = 0);
diff --git a/lib/widgets/propeditor/qeditlistbox.cpp b/lib/widgets/propeditor/qeditlistbox.cpp
index 683a0931..862de024 100644
--- a/lib/widgets/propeditor/qeditlistbox.cpp
+++ b/lib/widgets/propeditor/qeditlistbox.cpp
@@ -120,7 +120,7 @@ void QEditListBox::init( bool checkAtEntering, int buttons,
if ( buttons & Add ) {
servNewButton = new TQPushButton(i18n("&Add"), gb);
servNewButton->setEnabled(false);
- connect(servNewButton, TQT_SIGNAL(clicked()), TQT_SLOT(addItem()));
+ connect(servNewButton, TQ_SIGNAL(clicked()), TQ_SLOT(addItem()));
grid->addWidget(servNewButton, row++, 1);
}
@@ -128,7 +128,7 @@ void QEditListBox::init( bool checkAtEntering, int buttons,
if ( buttons & Remove ) {
servRemoveButton = new TQPushButton(i18n("&Remove"), gb);
servRemoveButton->setEnabled(false);
- connect(servRemoveButton, TQT_SIGNAL(clicked()), TQT_SLOT(removeItem()));
+ connect(servRemoveButton, TQ_SIGNAL(clicked()), TQ_SLOT(removeItem()));
grid->addWidget(servRemoveButton, row++, 1);
}
@@ -136,20 +136,20 @@ void QEditListBox::init( bool checkAtEntering, int buttons,
if ( buttons & UpDown ) {
servUpButton = new TQPushButton(i18n("Move &Up"), gb);
servUpButton->setEnabled(false);
- connect(servUpButton, TQT_SIGNAL(clicked()), TQT_SLOT(moveItemUp()));
+ connect(servUpButton, TQ_SIGNAL(clicked()), TQ_SLOT(moveItemUp()));
servDownButton = new TQPushButton(i18n("Move &Down"), gb);
servDownButton->setEnabled(false);
- connect(servDownButton, TQT_SIGNAL(clicked()), TQT_SLOT(moveItemDown()));
+ connect(servDownButton, TQ_SIGNAL(clicked()), TQ_SLOT(moveItemDown()));
grid->addWidget(servUpButton, row++, 1);
grid->addWidget(servDownButton, row++, 1);
}
- connect(m_lineEdit,TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SLOT(typedSomething(const TQString&)));
+ connect(m_lineEdit,TQ_SIGNAL(textChanged(const TQString&)),this,TQ_SLOT(typedSomething(const TQString&)));
- connect(m_lineEdit,TQT_SIGNAL(returnPressed()),this,TQT_SLOT(addItem()));
- connect(m_listBox, TQT_SIGNAL(highlighted(int)), TQT_SLOT(enableMoveButtons(int)));
+ connect(m_lineEdit,TQ_SIGNAL(returnPressed()),this,TQ_SLOT(addItem()));
+ connect(m_listBox, TQ_SIGNAL(highlighted(int)), TQ_SLOT(enableMoveButtons(int)));
// maybe supplied lineedit has some text already
typedSomething( m_lineEdit->text() );
diff --git a/lib/widgets/propeditor/qeditlistbox.h b/lib/widgets/propeditor/qeditlistbox.h
index b57c454e..91ef4c3c 100644
--- a/lib/widgets/propeditor/qeditlistbox.h
+++ b/lib/widgets/propeditor/qeditlistbox.h
@@ -44,7 +44,7 @@ class QEditListBoxPrivate;
class QEditListBox : public TQGroupBox
{
- Q_OBJECT
+ TQ_OBJECT
TQ_PROPERTY( TQStringList items READ items WRITE setItems )
diff --git a/lib/widgets/qcomboview.cpp b/lib/widgets/qcomboview.cpp
index cb44f32c..625e4d25 100644
--- a/lib/widgets/qcomboview.cpp
+++ b/lib/widgets/qcomboview.cpp
@@ -158,7 +158,7 @@ QComboView::QComboView( bool rw, TQWidget *parent, const char *name )
d->completeNow = FALSE;
d->completionTimer = new TQTimer( this );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
d->ed = 0;
if ( rw )
@@ -290,7 +290,7 @@ TQSize QComboView::sizeHint() const
maxW = w;
}
*/
- d->sizeHint = (style().tqsizeFromContents(TQStyle::CT_ComboBox, this,
+ d->sizeHint = (style().sizeFromContents(TQStyle::CT_ComboBox, this,
TQSize(maxW, maxH)).expandedTo(TQApplication::globalStrut()));
return d->sizeHint;
@@ -466,7 +466,7 @@ void QComboView::paintEvent( TQPaintEvent * )
void QComboView::mousePressEvent( TQMouseEvent *e )
{
- if ( e->button() != Qt::LeftButton )
+ if ( e->button() != TQt::LeftButton )
return;
if ( d->discardNextMousePress ) {
d->discardNextMousePress = FALSE;
@@ -491,7 +491,7 @@ void QComboView::mousePressEvent( TQMouseEvent *e )
d->arrowDown = TRUE;
repaint( FALSE );
}
- TQTimer::singleShot( 200, this, TQT_SLOT(internalClickTimeout()));
+ TQTimer::singleShot( 200, this, TQ_SLOT(internalClickTimeout()));
d->shortClick = TRUE;
}
}
@@ -850,7 +850,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
{
if ( !event )
return TRUE;
- else if ( TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(d->ed) ) {
+ else if ( object == d->ed ) {
if ( event->type() == TQEvent::KeyPress ) {
bool isAccepted = ( (TQKeyEvent*)event )->isAccepted();
keyPressEvent( (TQKeyEvent *)event );
@@ -887,15 +887,15 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
}
}
}
- } else if ( ( TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(d->listView()) ||
- TQT_BASE_OBJECT(object) == TQT_BASE_OBJECT(d->listView()->viewport()) )) {
+ } else if ( ( object == d->listView() ||
+ object == d->listView()->viewport() )) {
TQMouseEvent *e = (TQMouseEvent*)event;
switch( event->type() ) {
case TQEvent::MouseMove:
if ( !d->mouseWasInsidePopup ) {
// tqWarning("!d->mouseWasInsidePopup");
TQPoint pos = e->pos();
- if ( TQT_TQRECT_OBJECT(d->listView()->rect()).contains( pos ) )
+ if ( d->listView()->rect().contains( pos ) )
d->mouseWasInsidePopup = TRUE;
// Check if arrow button should toggle
if ( d->arrowPressed ) {
@@ -917,7 +917,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
}
}
}
- } else if ((e->state() & ( Qt::RightButton | Qt::LeftButton | Qt::MidButton ) ) == 0 &&
+ } else if ((e->state() & ( TQt::RightButton | TQt::LeftButton | TQt::MidButton ) ) == 0 &&
style().styleHint(TQStyle::SH_ComboBox_ListMouseTracking, this)) {
// tqWarning("event filter:: emu");
TQWidget *mouseW = TQApplication::widgetAt( e->globalPos(), TRUE );
@@ -935,7 +935,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonRelease:
- if ( TQT_TQRECT_OBJECT(d->listView()->rect()).contains( e->pos() ) ) {
+ if ( d->listView()->rect().contains( e->pos() ) ) {
TQMouseEvent tmp( TQEvent::MouseButtonDblClick,
e->pos(), e->button(), e->state() ) ;
// will hide popup
@@ -955,7 +955,7 @@ bool QComboView::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress:
- if ( !TQT_TQRECT_OBJECT(d->listView()->rect()).contains( e->pos() ) ) {
+ if ( !d->listView()->rect().contains( e->pos() ) ) {
TQPoint globalPos = d->listView()->mapToGlobal(e->pos());
if ( TQApplication::widgetAt( globalPos, TRUE ) == this ) {
d->discardNextMousePress = TRUE;
@@ -1241,16 +1241,16 @@ void QComboView::setListView( TQListView * newListView )
d->listView()->resize( 100, 10 );
*/
- connect( d->listView(), TQT_SIGNAL(returnPressed(TQListViewItem*)),
- TQT_SLOT(internalActivate(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(doubleClicked(TQListViewItem*)),
- TQT_SLOT(internalActivate(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(doubleClicked(TQListViewItem*)),
- TQT_SLOT(checkState(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(currentChanged(TQListViewItem*)),
- TQT_SLOT(internalHighlight(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(selectionChanged(TQListViewItem*)),
- TQT_SLOT(internalHighlight(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(returnPressed(TQListViewItem*)),
+ TQ_SLOT(internalActivate(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(doubleClicked(TQListViewItem*)),
+ TQ_SLOT(internalActivate(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(doubleClicked(TQListViewItem*)),
+ TQ_SLOT(checkState(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ TQ_SLOT(internalHighlight(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(selectionChanged(TQListViewItem*)),
+ TQ_SLOT(internalHighlight(TQListViewItem*)));
}
@@ -1359,7 +1359,7 @@ void QComboView::setEditable( bool y )
d->ed = 0;
}
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
updateGeometry();
update();
}
@@ -1386,16 +1386,16 @@ void QComboView::setUpListView()
d->listView()->header()->hide();
- connect( d->listView(), TQT_SIGNAL(returnPressed(TQListViewItem*)),
- TQT_SLOT(internalActivate(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(doubleClicked(TQListViewItem*)),
- TQT_SLOT(internalActivate(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(doubleClicked(TQListViewItem*)),
- TQT_SLOT(checkState(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(currentChanged(TQListViewItem*)),
- TQT_SLOT(internalHighlight(TQListViewItem*)));
- connect( d->listView(), TQT_SIGNAL(selectionChanged(TQListViewItem*)),
- TQT_SLOT(internalHighlight(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(returnPressed(TQListViewItem*)),
+ TQ_SLOT(internalActivate(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(doubleClicked(TQListViewItem*)),
+ TQ_SLOT(internalActivate(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(doubleClicked(TQListViewItem*)),
+ TQ_SLOT(checkState(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(currentChanged(TQListViewItem*)),
+ TQ_SLOT(internalHighlight(TQListViewItem*)));
+ connect( d->listView(), TQ_SIGNAL(selectionChanged(TQListViewItem*)),
+ TQ_SLOT(internalHighlight(TQListViewItem*)));
}
@@ -1430,20 +1430,20 @@ void QComboView::setLineEdit( TQLineEdit *edit )
d->ed = edit;
- if ( TQT_BASE_OBJECT(edit->parent()) != TQT_BASE_OBJECT(this) ) {
+ if ( edit->parent() != this ) {
edit->reparent( this, TQPoint(0,0), FALSE );
edit->setFont( font() );
}
- connect (edit, TQT_SIGNAL( textChanged( const TQString& ) ),
- this, TQT_SIGNAL( textChanged( const TQString& ) ) );
- connect( edit, TQT_SIGNAL(returnPressed()), TQT_SLOT(returnPressed()) );
+ connect (edit, TQ_SIGNAL( textChanged( const TQString& ) ),
+ this, TQ_SIGNAL( textChanged( const TQString& ) ) );
+ connect( edit, TQ_SIGNAL(returnPressed()), TQ_SLOT(returnPressed()) );
edit->setFrame( FALSE );
d->updateLinedGeometry();
edit->installEventFilter( this );
setFocusProxy( edit );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setUpListView();
diff --git a/lib/widgets/qcomboview.h b/lib/widgets/qcomboview.h
index 51d57eec..cff2ce68 100644
--- a/lib/widgets/qcomboview.h
+++ b/lib/widgets/qcomboview.h
@@ -40,7 +40,7 @@ in the same way as TQComboBox and have similar API.
*/
class TQ_EXPORT QComboView : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
TQ_ENUMS( Policy )
TQ_PROPERTY( bool editable READ editable WRITE setEditable )
diff --git a/lib/widgets/resizablecombo.cpp b/lib/widgets/resizablecombo.cpp
index ef96e724..c1dd08a3 100644
--- a/lib/widgets/resizablecombo.cpp
+++ b/lib/widgets/resizablecombo.cpp
@@ -89,7 +89,7 @@ void MyPushButton::mouseMoveEvent( TQMouseEvent * e )
MyPushButton::MyPushButton( ResizableCombo * parent, const char * name )
:TQPushButton(parent, name), m_resizing(false), m_combo(parent)
{
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
setFlat(true);
m_width = m_combo->m_combo->width();
}
diff --git a/lib/widgets/resizablecombo.h b/lib/widgets/resizablecombo.h
index 4852f3dc..1bb629a3 100644
--- a/lib/widgets/resizablecombo.h
+++ b/lib/widgets/resizablecombo.h
@@ -36,7 +36,7 @@ Resizable combo box.
Used to place resizable KComboBox onto toolbars.
*/
class ResizableCombo: public TQWidget{
- Q_OBJECT
+ TQ_OBJECT
public:
ResizableCombo(KComboView *view, TQWidget *parent = 0, const char *name = 0);