2013-05-08 17:52:01 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-05-08 17:52:01 +02:00
|
|
|
**
|
|
|
|
|
** 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
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2013-05-08 17:52:01 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
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
|
|
|
|
2015-02-26 13:38:54 +01:00
|
|
|
#include <QActionGroup>
|
|
|
|
|
|
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;
|
|
|
|
|
Core::IDocument *document() 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
|
|
|
|
2013-05-08 17:52:01 +02:00
|
|
|
private slots:
|
|
|
|
|
void changeEditorPage(QAction *action);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
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
|