Skip to content
Snippets Groups Projects
  • Lorenz Haas's avatar
    d288e399
    CppEditor: Quick fix "Insert (Pure) Virtual Methods" · d288e399
    Lorenz Haas authored
    
    This quick fix inserts (pure) virtual functions of base classes to the
    current class. For selecting the functions which should be inserted and
    for choosing the insertion mode (only declarations or with definitions
    inside, outside or in the implementation file) a dialog is shown.
    
    Task-number: QTCREATORBUG-2210
    Task-number: QTCREATORBUG-2692
    Task-number: QTCREATORBUG-3908
    Task-number: QTCREATORBUG-5868
    Task-number: QTCREATORBUG-7982
    Change-Id: I8e94905afcae4778986f4c3925a494e0c6b3b8ee
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
    d288e399
    History
    CppEditor: Quick fix "Insert (Pure) Virtual Methods"
    Lorenz Haas authored
    
    This quick fix inserts (pure) virtual functions of base classes to the
    current class. For selecting the functions which should be inserted and
    for choosing the insertion mode (only declarations or with definitions
    inside, outside or in the implementation file) a dialog is shown.
    
    Task-number: QTCREATORBUG-2210
    Task-number: QTCREATORBUG-2692
    Task-number: QTCREATORBUG-3908
    Task-number: QTCREATORBUG-5868
    Task-number: QTCREATORBUG-7982
    Change-Id: I8e94905afcae4778986f4c3925a494e0c6b3b8ee
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
cppquickfixes.cpp 192.02 KiB
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** 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.
**
****************************************************************************/

#include "cppquickfixes.h"

#include "cppeditor.h"
#include "cppfunctiondecldeflink.h"
#include "cppquickfixassistant.h"

#include <coreplugin/icore.h>

#include <cpptools/cppclassesfilter.h>
#include <cpptools/cppcodestylesettings.h>
#include <cpptools/cpppointerdeclarationformatter.h>
#include <cpptools/cpptoolsconstants.h>
#include <cpptools/cpptoolsreuse.h>
#include <cpptools/insertionpointlocator.h>
#include <cpptools/symbolfinder.h>

#include <cplusplus/ASTPath.h>
#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cplusplus/CppRewriter.h>
#include <cplusplus/DependencyTable.h>
#include <cplusplus/TypeOfExpression.h>

#include <extensionsystem/pluginmanager.h>

#include <texteditor/fontsettings.h>
#include <texteditor/texteditorsettings.h>

#include <utils/qtcassert.h>

#include <QApplication>
#include <QCheckBox>
#include <QComboBox>
#include <QDialogButtonBox>
#include <QDir>
#include <QFileInfo>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QInputDialog>
#include <QItemDelegate>
#include <QLabel>
#include <QMessageBox>