aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cpppreprocessordialog.h
blob: afe73b60030a751ad973df024685b1e7e719efda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/filepath.h>

#include <QDialog>
#include <QString>

namespace TextEditor { class SnippetEditorWidget; }

namespace CppEditor::Internal {

class CppPreProcessorDialog : public QDialog
{
    Q_OBJECT

public:
    CppPreProcessorDialog(const Utils::FilePath &filePath, QWidget *parent);
    ~CppPreProcessorDialog() override;

    int exec() override;

    QString extraPreprocessorDirectives() const;

private:
    const Utils::FilePath m_filePath;
    const QString m_projectPartId;

    TextEditor::SnippetEditorWidget *m_editWidget;
};

} // CppEditor::Internal