Commit 7071a3ac authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

add empty classes for output view

parent 2966b616
......@@ -93,6 +93,8 @@ target_sources(
katecommandbar.cpp
commandmodel.cpp
kateoutputview.cpp
)
# Executable only adds the main definition.
......
......@@ -19,6 +19,7 @@
#include "katedocmanager.h"
#include "katefileactions.h"
#include "katemwmodonhddialog.h"
#include "kateoutputview.h"
#include "katepluginmanager.h"
#include "katequickopen.h"
#include "katesavemodifieddialog.h"
......@@ -270,6 +271,17 @@ void KateMainWindow::setupMainWindow()
m_bottomViewBarContainer = new QWidget(centralWidget());
centralWidget()->layout()->addWidget(m_bottomViewBarContainer);
m_bottomContainerStack = new KateContainerStackedLayout(m_bottomViewBarContainer);
/**
* create generic output tool view
* is used to display output of e.g. plugins
*/
m_toolViewOutput = createToolView(nullptr /* toolview has no plugin it belongs to */,
QStringLiteral("output"),
KTextEditor::MainWindow::Bottom,
QIcon::fromTheme(QStringLiteral("output_win")),
i18n("Output"));
m_outputView = new KateOutputView(this, m_toolViewOutput);
}
void KateMainWindow::setupActions()
......
......@@ -39,6 +39,7 @@ typedef class QList<UDSEntry> UDSEntryList;
class KFileItem;
class KRecentFilesAction;
class KateOutputView;
class KateViewManager;
class KateMwModOnHdDialog;
......@@ -599,6 +600,16 @@ private:
};
QHash<KTextEditor::View *, BarState> m_bottomViewBarMapping;
/**
* generic output tool view
*/
QWidget *m_toolViewOutput = nullptr;
/**
* output widget contained in above tool view
*/
KateOutputView *m_outputView = nullptr;
public:
static void unsetModifiedOnDiscDialogIfIf(KateMwModOnHdDialog *diag)
{
......
/*
SPDX-FileCopyrightText: 2021 Christoph Cullmann <cullmann@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "kateoutputview.h"
KateOutputView::KateOutputView(KateMainWindow *mainWindow, QWidget *parent)
: QWidget(parent)
, m_mainWindow(mainWindow)
{
}
/*
SPDX-FileCopyrightText: 2021 Christoph Cullmann <cullmann@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef __KATE_OUTPUT_VIEW_H__
#define __KATE_OUTPUT_VIEW_H__
#include <QWidget>
class KateMainWindow;
/**
* Widget to output stuff e.g. for plugins.
*/
class KateOutputView : public QWidget
{
Q_OBJECT
public:
KateOutputView(KateMainWindow *mainWindow, QWidget *parent);
private:
/**
* the main window we belong to
* each main window has exactly one KateOutputView
*/
KateMainWindow *const m_mainWindow = nullptr;
};
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment