2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2013-05-08 17:52:01 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-05-08 17:52:01 +02:00
|
|
|
|
|
|
|
|
#include "androidmanifestdocument.h"
|
2013-11-01 16:02:24 +01:00
|
|
|
#include "androidmanifesteditorwidget.h"
|
2013-05-08 17:52:01 +02:00
|
|
|
|
|
|
|
|
#include <coreplugin/editormanager/ieditor.h>
|
2014-09-26 09:14:03 +02:00
|
|
|
#include <texteditor/texteditor.h>
|
2013-05-08 17:52:01 +02:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QToolBar;
|
2015-02-26 13:22:35 +01:00
|
|
|
class QActionGroup;
|
2013-05-08 17:52:01 +02:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace Android {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2013-11-01 16:02:24 +01:00
|
|
|
class AndroidManifestEditor : public Core::IEditor
|
2013-05-08 17:52:01 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2013-05-27 13:12:44 +02:00
|
|
|
|
2013-05-08 17:52:01 +02:00
|
|
|
public:
|
|
|
|
|
explicit AndroidManifestEditor(AndroidManifestEditorWidget *editorWidget);
|
|
|
|
|
|
2015-06-01 17:55:31 +02:00
|
|
|
QWidget *toolBar() override;
|
|
|
|
|
AndroidManifestEditorWidget *widget() const override;
|
2018-09-25 20:47:14 +03:00
|
|
|
Core::IDocument *document() const override;
|
2014-09-26 11:37:54 +02:00
|
|
|
TextEditor::TextEditorWidget *textEditor() const;
|
2013-05-27 13:12:44 +02:00
|
|
|
|
2015-06-01 17:55:31 +02:00
|
|
|
int currentLine() const override;
|
|
|
|
|
int currentColumn() const override;
|
|
|
|
|
void gotoLine(int line, int column = 0, bool centerLine = true) override;
|
2014-01-10 18:25:59 +01:00
|
|
|
|
2016-06-26 22:52:59 +03:00
|
|
|
private:
|
2013-05-08 17:52:01 +02:00
|
|
|
void changeEditorPage(QAction *action);
|
|
|
|
|
|
|
|
|
|
QString m_displayName;
|
2013-11-01 16:02:24 +01:00
|
|
|
QToolBar *m_toolBar;
|
2013-05-08 17:52:01 +02:00
|
|
|
QActionGroup *m_actionGroup;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Android
|