KTextEditor
mainwindow.cpp
28 QMetaObject::invokeMethod(parent(), "window", Qt::DirectConnection, Q_RETURN_ARG(QWidget *, window));
36 QMetaObject::invokeMethod(parent(), "guiFactory", Qt::DirectConnection, Q_RETURN_ARG(KXMLGUIFactory *, guiFactory));
44 QMetaObject::invokeMethod(parent(), "views", Qt::DirectConnection, Q_RETURN_ARG(QList<KTextEditor::View *>, views));
52 QMetaObject::invokeMethod(parent(), "activeView", Qt::DirectConnection, Q_RETURN_ARG(KTextEditor::View *, view));
72 QMetaObject::invokeMethod(parent(), "openUrl", Qt::DirectConnection, Q_RETURN_ARG(KTextEditor::View *, view), Q_ARG(QUrl, url), Q_ARG(QString, encoding));
80 QMetaObject::invokeMethod(parent(), "closeView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(KTextEditor::View *, view));
87 QMetaObject::invokeMethod(parent(), "splitView", Qt::DirectConnection, Q_ARG(Qt::Orientation, orientation));
94 QMetaObject::invokeMethod(parent(), "closeSplitView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(KTextEditor::View *, view));
115 QMetaObject::invokeMethod(parent(), "createViewBar", Qt::DirectConnection, Q_RETURN_ARG(QWidget *, viewBar), Q_ARG(KTextEditor::View *, view));
122 QMetaObject::invokeMethod(parent(), "deleteViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View *, view));
128 QMetaObject::invokeMethod(parent(), "addWidgetToViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View *, view), Q_ARG(QWidget *, bar));
134 QMetaObject::invokeMethod(parent(), "showViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View *, view));
140 QMetaObject::invokeMethod(parent(), "hideViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View *, view));
180 QMetaObject::invokeMethod(parent(), "showToolView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QWidget *, widget));
188 QMetaObject::invokeMethod(parent(), "hideToolView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QWidget *, widget));
209 QMetaObject::invokeMethod(parent(), "pluginView", Qt::DirectConnection, Q_RETURN_ARG(QObject *, pluginView), Q_ARG(QString, name));
void deleteViewBar(KTextEditor::View *view)
Delete the view bar for the given view.
Definition: mainwindow.cpp:119
QWidget * createToolView(KTextEditor::Plugin *plugin, const QString &identifier, KTextEditor::MainWindow::ToolViewPosition pos, const QIcon &icon, const QString &text)
Create a new toolview with unique identifier at side pos with icon and caption text.
Definition: mainwindow.cpp:143
bool showPluginConfigPage(KTextEditor::Plugin *plugin, int page)
Shows the plugin's config page.
Definition: mainwindow.cpp:192
QList< KTextEditor::View * > views()
Get a list of all views for this main window.
Definition: mainwindow.cpp:40
QWidget * widget() override
A KParts derived class representing a text document.
Definition: document.h:185
KTextEditor::View * activateView(KTextEditor::Document *document)
Activate the view with the corresponding document.
Definition: mainwindow.cpp:56
KTextEditor::View * openUrl(const QUrl &url, const QString &encoding=QString())
Open the document url with the given encoding.
Definition: mainwindow.cpp:68
QWidget * createViewBar(KTextEditor::View *view)
Try to create a view bar for the given view.
Definition: mainwindow.cpp:111
void hideViewBar(KTextEditor::View *view)
Hide the view bar for the given view.
Definition: mainwindow.cpp:137
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:21
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
void addWidgetToViewBar(KTextEditor::View *view, QWidget *bar)
Add a widget to the view bar.
Definition: mainwindow.cpp:125
void showViewBar(KTextEditor::View *view)
Show the view bar for the given view.
Definition: mainwindow.cpp:131
bool viewsInSameSplitView(KTextEditor::View *view1, KTextEditor::View *view2)
Definition: mainwindow.cpp:98
Orientation
A text widget with KXMLGUIClient that represents a Document.
Definition: view.h:146
void splitView(Qt::Orientation orientation)
Split current view space according to orientation.
Definition: mainwindow.cpp:84
DirectConnection
QObject * parent() const const
bool moveToolView(QWidget *widget, KTextEditor::MainWindow::ToolViewPosition pos)
Move the toolview widget to position pos.
Definition: mainwindow.cpp:163
QObject * pluginView(const QString &name)
Get a plugin view for the plugin with with identifier name.
Definition: mainwindow.cpp:205
bool closeSplitView(KTextEditor::View *view)
Close the split view that contains the given view.
Definition: mainwindow.cpp:90
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Mar 2 2021 01:49:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Mar 2 2021 01:49:17 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.