2013-09-20 10:32:41 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2014-01-07 13:27:11 +01:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2013-09-20 10:32:41 +02:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
** 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
|
|
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef CPPFOLLOWSYMBOLUNDERCURSOR_H
|
|
|
|
|
#define CPPFOLLOWSYMBOLUNDERCURSOR_H
|
|
|
|
|
|
|
|
|
|
#include <cplusplus/CppDocument.h>
|
2014-09-26 09:14:03 +02:00
|
|
|
#include <texteditor/texteditor.h>
|
2013-09-20 10:32:41 +02:00
|
|
|
|
2013-07-04 20:11:10 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QTextCursor;
|
|
|
|
|
QT_END_NAMESPACE
|
2013-09-20 10:32:41 +02:00
|
|
|
|
|
|
|
|
namespace CppTools { class SymbolFinder; }
|
|
|
|
|
|
|
|
|
|
namespace CppEditor {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2014-07-30 16:30:31 +02:00
|
|
|
class CppEditorWidget;
|
2013-07-04 20:11:10 +02:00
|
|
|
class VirtualFunctionAssistProvider;
|
2013-09-20 10:32:41 +02:00
|
|
|
|
|
|
|
|
class FollowSymbolUnderCursor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
typedef TextEditor::BaseTextEditorWidget::Link Link;
|
|
|
|
|
|
2014-07-30 16:30:31 +02:00
|
|
|
FollowSymbolUnderCursor(CppEditorWidget *widget);
|
2013-07-04 20:11:10 +02:00
|
|
|
~FollowSymbolUnderCursor();
|
2013-09-20 10:32:41 +02:00
|
|
|
|
2013-07-04 20:11:10 +02:00
|
|
|
Link findLink(const QTextCursor &cursor, bool resolveTarget,
|
|
|
|
|
const CPlusPlus::Snapshot &snapshot,
|
|
|
|
|
const CPlusPlus::Document::Ptr &documentFromSemanticInfo,
|
|
|
|
|
CppTools::SymbolFinder *symbolFinder, bool inNextSplit);
|
2013-09-20 10:32:41 +02:00
|
|
|
|
2013-07-04 20:11:10 +02:00
|
|
|
VirtualFunctionAssistProvider *virtualFunctionAssistProvider();
|
|
|
|
|
void setVirtualFunctionAssistProvider(VirtualFunctionAssistProvider *provider);
|
2013-09-20 10:32:41 +02:00
|
|
|
|
|
|
|
|
private:
|
2014-07-30 16:30:31 +02:00
|
|
|
CppEditorWidget *m_widget;
|
2013-07-04 20:11:10 +02:00
|
|
|
VirtualFunctionAssistProvider *m_virtualFunctionAssistProvider;
|
2013-09-20 10:32:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace CppEditor
|
|
|
|
|
|
|
|
|
|
#endif // CPPFOLLOWSYMBOLUNDERCURSOR_H
|