forked from qt-creator/qt-creator
Change-Id: I965d9667e0035f022774078894a9e8a9f3342db7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// 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 "androidmanifestdocument.h"
|
|
#include "androidmanifesteditorwidget.h"
|
|
|
|
#include <coreplugin/editormanager/ieditor.h>
|
|
#include <texteditor/texteditor.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class QToolBar;
|
|
class QActionGroup;
|
|
QT_END_NAMESPACE
|
|
|
|
namespace Android::Internal {
|
|
|
|
class AndroidManifestEditor : public Core::IEditor
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AndroidManifestEditor(AndroidManifestEditorWidget *editorWidget);
|
|
|
|
QWidget *toolBar() override;
|
|
Core::IDocument *document() const override;
|
|
TextEditor::TextEditorWidget *textEditor() const;
|
|
|
|
int currentLine() const override;
|
|
int currentColumn() const override;
|
|
void gotoLine(int line, int column = 0, bool centerLine = true) override;
|
|
|
|
private:
|
|
AndroidManifestEditorWidget *ownWidget() const;
|
|
void changeEditorPage(QAction *action);
|
|
|
|
QString m_displayName;
|
|
QToolBar *m_toolBar;
|
|
QActionGroup *m_actionGroup;
|
|
};
|
|
|
|
void setupAndroidManifestEditor();
|
|
|
|
} // Android::Internal
|