KTextEditor
mainwindow.cpp
33 QMetaObject::invokeMethod(parent(), "window", Qt::DirectConnection, Q_RETURN_ARG(QWidget*, window));
41 QMetaObject::invokeMethod(parent(), "guiFactory", Qt::DirectConnection, Q_RETURN_ARG(KXMLGUIFactory*, guiFactory));
49 QMetaObject::invokeMethod(parent(), "views", Qt::DirectConnection, Q_RETURN_ARG(QList<KTextEditor::View*>, views));
57 QMetaObject::invokeMethod(parent(), "activeView", Qt::DirectConnection, Q_RETURN_ARG(KTextEditor::View*, view));
77 QMetaObject::invokeMethod(parent(), "openUrl", Qt::DirectConnection, Q_RETURN_ARG(KTextEditor::View*, view), Q_ARG(QUrl, url), Q_ARG(QString, encoding));
85 QMetaObject::invokeMethod(parent(), "closeView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(KTextEditor::View*, view));
92 QMetaObject::invokeMethod(parent(), "splitView", Qt::DirectConnection, Q_ARG(Qt::Orientation, orientation));
99 QMetaObject::invokeMethod(parent(), "closeSplitView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(KTextEditor::View*, view));
120 QMetaObject::invokeMethod(parent(), "createViewBar", Qt::DirectConnection, Q_RETURN_ARG(QWidget*, viewBar), Q_ARG(KTextEditor::View*, view));
127 QMetaObject::invokeMethod(parent(), "deleteViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View*, view));
133 QMetaObject::invokeMethod(parent(), "addWidgetToViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View*, view), Q_ARG(QWidget*, bar));
139 QMetaObject::invokeMethod(parent(), "showViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View*, view));
145 QMetaObject::invokeMethod(parent(), "hideViewBar", Qt::DirectConnection, Q_ARG(KTextEditor::View*, view));
185 QMetaObject::invokeMethod(parent(), "showToolView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QWidget*, widget));
193 QMetaObject::invokeMethod(parent(), "hideToolView", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QWidget*, widget));
214 QMetaObject::invokeMethod(parent(), "pluginView", Qt::DirectConnection, Q_RETURN_ARG(QObject*, pluginView), Q_ARG(QString, name));
222 QMetaObject::invokeMethod(parent(), "addWidget", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QWidget*, widget));
230 QMetaObject::invokeMethod(parent(), "removeWidget", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QWidget*, widget));
238 QMetaObject::invokeMethod(parent(), "widgets", Qt::DirectConnection, Q_RETURN_ARG(QWidgetList, l));
246 QMetaObject::invokeMethod(parent(), "activeWidget", Qt::DirectConnection, Q_RETURN_ARG(QWidget*, w));
253 QMetaObject::invokeMethod(parent(), "activateWidget", Qt::DirectConnection, Q_ARG(QWidget*, widget));
260 QMetaObject::invokeMethod(parent(), "showMessage", Qt::DirectConnection, Q_RETURN_ARG(bool, success), Q_ARG(QVariantMap, message));
bool showPluginConfigPage(KTextEditor::Plugin *plugin, int page)
Shows the plugin's config page.
Definition mainwindow.cpp:197
KTextEditor::View * openUrl(const QUrl &url, const QString &encoding=QString())
Open the document url with the given encoding.
Definition mainwindow.cpp:73
QList< KTextEditor::View * > views()
Get a list of all views for this main window.
Definition mainwindow.cpp:45
bool moveToolView(QWidget *widget, KTextEditor::MainWindow::ToolViewPosition pos)
Move the toolview widget to position pos.
Definition mainwindow.cpp:168
void addWidgetToViewBar(KTextEditor::View *view, QWidget *bar)
Add a widget to the view bar.
Definition mainwindow.cpp:130
QWidget * createViewBar(KTextEditor::View *view)
Try to create a view bar for the given view.
Definition mainwindow.cpp:116
void hideViewBar(KTextEditor::View *view)
Hide the view bar for the given view.
Definition mainwindow.cpp:142
bool closeSplitView(KTextEditor::View *view)
Close the split view that contains the given view.
Definition mainwindow.cpp:95
KTextEditor::View * activateView(KTextEditor::Document *document)
Activate the view with the corresponding document.
Definition mainwindow.cpp:61
bool showMessage(const QVariantMap &message)
Display a message to the user.
Definition mainwindow.cpp:256
void splitView(Qt::Orientation orientation)
Split current view space according to orientation.
Definition mainwindow.cpp:89
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:148
bool viewsInSameSplitView(KTextEditor::View *view1, KTextEditor::View *view2)
Definition mainwindow.cpp:103
QWidgetList widgets()
returns the list of non-KTextEditorView widgets in this main window.
Definition mainwindow.cpp:234
void deleteViewBar(KTextEditor::View *view)
Delete the view bar for the given view.
Definition mainwindow.cpp:124
bool removeWidget(QWidget *widget)
remove this widget from this mainwindow.
Definition mainwindow.cpp:226
void showViewBar(KTextEditor::View *view)
Show the view bar for the given view.
Definition mainwindow.cpp:136
QObject * pluginView(const QString &name)
Get a plugin view for the plugin with with identifier name.
Definition mainwindow.cpp:210
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
QObject * parent() const const
DirectConnection
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:07:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.