| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | /****************************************************************************
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | 
					
						
							|  |  |  | ** Contact: http://www.qt-project.org/legal
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** This file is part of Qt Creator. | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** Commercial License Usage | 
					
						
							|  |  |  | ** Licensees holding valid commercial Qt licenses may use this file in | 
					
						
							|  |  |  | ** accordance with the commercial license agreement provided with the | 
					
						
							|  |  |  | ** Software or, alternatively, in accordance with the terms contained in | 
					
						
							|  |  |  | ** a written agreement between you and Digia.  For licensing terms and | 
					
						
							|  |  |  | ** conditions see http://qt.digia.com/licensing.  For further information
 | 
					
						
							|  |  |  | ** use the contact form at http://qt.digia.com/contact-us.
 | 
					
						
							| 
									
										
										
										
											2008-12-02 14:17:16 +01:00
										 |  |  | ** | 
					
						
							| 
									
										
										
										
											2009-02-25 09:15:00 +01:00
										 |  |  | ** GNU Lesser General Public License Usage | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ** Alternatively, this file may be used under the terms of the GNU Lesser | 
					
						
							|  |  |  | ** General Public License version 2.1 as published by the Free Software | 
					
						
							|  |  |  | ** Foundation and appearing in the file LICENSE.LGPL included in the | 
					
						
							|  |  |  | ** packaging of this file.  Please review the following information to | 
					
						
							|  |  |  | ** ensure the GNU Lesser General Public License version 2.1 requirements | 
					
						
							|  |  |  | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 | 
					
						
							|  |  |  | ** | 
					
						
							|  |  |  | ** In addition, as a special exception, Digia gives you certain additional | 
					
						
							|  |  |  | ** rights.  These rights are described in the Digia Qt LGPL Exception | 
					
						
							| 
									
										
										
										
											2010-12-17 16:01:08 +01:00
										 |  |  | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | 
					
						
							|  |  |  | ** | 
					
						
							| 
									
										
										
										
											2012-10-02 09:12:39 +02:00
										 |  |  | ****************************************************************************/ | 
					
						
							| 
									
										
										
										
											2008-12-02 15:08:31 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | #ifndef CPPTOOLS_H
 | 
					
						
							|  |  |  | #define CPPTOOLS_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-10-10 21:00:48 +02:00
										 |  |  | #include "cpptools_global.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | #include <extensionsystem/iplugin.h>
 | 
					
						
							| 
									
										
										
										
											2009-01-14 15:08:46 +01:00
										 |  |  | #include <projectexplorer/projectexplorer.h>
 | 
					
						
							| 
									
										
										
										
											2009-06-02 14:56:03 +02:00
										 |  |  | #include <find/ifindfilter.h>
 | 
					
						
							|  |  |  | #include <utils/filesearch.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-15 10:42:41 +01:00
										 |  |  | #include <QTextDocument>
 | 
					
						
							|  |  |  | #include <QKeySequence>
 | 
					
						
							|  |  |  | #include <QSharedPointer>
 | 
					
						
							|  |  |  | #include <QFutureInterface>
 | 
					
						
							|  |  |  | #include <QPointer>
 | 
					
						
							|  |  |  | #include <QFutureWatcher>
 | 
					
						
							|  |  |  | #include <QHash>
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | QT_BEGIN_NAMESPACE | 
					
						
							|  |  |  | class QFileInfo; | 
					
						
							|  |  |  | class QDir; | 
					
						
							|  |  |  | QT_END_NAMESPACE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace CppTools { | 
					
						
							| 
									
										
										
										
											2011-02-03 15:48:14 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | class CppToolsSettings; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | namespace Internal { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CppModelManager; | 
					
						
							| 
									
										
										
										
											2009-04-29 09:04:59 +02:00
										 |  |  | struct CppFileSettings; | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | class CppToolsPlugin : public ExtensionSystem::IPlugin | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     Q_OBJECT | 
					
						
							| 
									
										
										
										
											2012-02-21 16:52:28 +01:00
										 |  |  |     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "CppTools.json") | 
					
						
							| 
									
										
										
										
											2011-07-13 18:02:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | public: | 
					
						
							|  |  |  |     CppToolsPlugin(); | 
					
						
							|  |  |  |     ~CppToolsPlugin(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-21 13:05:15 +02:00
										 |  |  |     bool initialize(const QStringList &arguments, QString *errorMessage); | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  |     void extensionsInitialized(); | 
					
						
							| 
									
										
										
										
											2010-07-13 13:36:47 +02:00
										 |  |  |     ShutdownFlag aboutToShutdown(); | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | private slots: | 
					
						
							|  |  |  |     void switchHeaderSource(); | 
					
						
							| 
									
										
										
										
											2011-11-14 15:08:25 +01:00
										 |  |  | #ifdef WITH_TESTS
 | 
					
						
							| 
									
										
										
										
											2012-09-22 14:24:43 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-11-14 15:08:25 +01:00
										 |  |  |     // codegen tests
 | 
					
						
							|  |  |  |     void test_codegen_public_in_empty_class(); | 
					
						
							|  |  |  |     void test_codegen_public_in_nonempty_class(); | 
					
						
							|  |  |  |     void test_codegen_public_before_protected(); | 
					
						
							|  |  |  |     void test_codegen_private_after_protected(); | 
					
						
							|  |  |  |     void test_codegen_protected_in_nonempty_class(); | 
					
						
							|  |  |  |     void test_codegen_protected_between_public_and_private(); | 
					
						
							|  |  |  |     void test_codegen_qtdesigner_integration(); | 
					
						
							|  |  |  |     void test_codegen_definition_empty_class(); | 
					
						
							|  |  |  |     void test_codegen_definition_first_member(); | 
					
						
							|  |  |  |     void test_codegen_definition_last_member(); | 
					
						
							|  |  |  |     void test_codegen_definition_middle_member(); | 
					
						
							| 
									
										
										
										
											2012-07-19 14:25:37 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-08-22 14:44:53 +02:00
										 |  |  |     void test_completion_forward_declarations_present(); | 
					
						
							| 
									
										
										
										
											2012-07-19 14:25:37 +02:00
										 |  |  |     void test_completion_basic_1(); | 
					
						
							|  |  |  |     void test_completion_template_1(); | 
					
						
							| 
									
										
										
										
											2012-10-08 13:23:21 +02:00
										 |  |  |     void test_completion_template_2(); | 
					
						
							|  |  |  |     void test_completion_template_3(); | 
					
						
							| 
									
										
										
										
											2012-10-18 15:06:13 +02:00
										 |  |  |     void test_completion_template_4(); | 
					
						
							|  |  |  |     void test_completion_template_5(); | 
					
						
							| 
									
										
										
										
											2012-11-21 09:56:31 +01:00
										 |  |  |     void test_completion_template_6(); | 
					
						
							| 
									
										
										
										
											2012-11-29 14:42:47 +01:00
										 |  |  |     void test_completion_template_7(); | 
					
						
							| 
									
										
										
										
											2012-08-15 12:50:01 +02:00
										 |  |  |     void test_completion_template_as_base(); | 
					
						
							|  |  |  |     void test_completion_template_as_base_data(); | 
					
						
							| 
									
										
										
										
											2012-09-22 14:24:43 +02:00
										 |  |  |     void test_completion_use_global_identifier_as_base_class(); | 
					
						
							|  |  |  |     void test_completion_use_global_identifier_as_base_class_data(); | 
					
						
							|  |  |  |     void test_completion_base_class_has_name_the_same_as_derived(); | 
					
						
							|  |  |  |     void test_completion_base_class_has_name_the_same_as_derived_data(); | 
					
						
							| 
									
										
										
										
											2012-09-30 23:19:53 +02:00
										 |  |  |     void test_completion_cyclic_inheritance(); | 
					
						
							|  |  |  |     void test_completion_cyclic_inheritance_data(); | 
					
						
							| 
									
										
										
										
											2012-10-13 15:27:42 +02:00
										 |  |  |     void test_completion_enclosing_template_class(); | 
					
						
							|  |  |  |     void test_completion_enclosing_template_class_data(); | 
					
						
							| 
									
										
										
										
											2012-09-22 14:24:43 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     void test_completion(); | 
					
						
							| 
									
										
										
										
											2011-11-14 15:08:25 +01:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | private: | 
					
						
							| 
									
										
										
										
											2009-04-29 09:04:59 +02:00
										 |  |  |     QSharedPointer<CppFileSettings> m_fileSettings; | 
					
						
							| 
									
										
										
										
											2011-02-03 15:48:14 +01:00
										 |  |  |     CppToolsSettings *m_settings; | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } // namespace Internal
 | 
					
						
							|  |  |  | } // namespace CppTools
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // CPPTOOLS_H
 |