KTextEditor
mainwindow.h
34 * For example the component can get a place to show view bar widgets (e.g. search&replace, goto line, ...).
35 * This is useful to e.g. have one place inside the window to show such stuff even if the application allows
38 * The application must pass a pointer to the MainWindow object to the createView method on view creation
41 * It must not reimplement this class but construct an instance and pass a pointer to a QObject that
285 * \return pointer to the plugin view if a plugin with \p name is loaded and has a view for this mainwindow,
320 * The host application should try to manage this like some KTextEditor::View (e.g. as a tab) and provide
345 * \brief returns the currently active widget. It can be a non-KTextEditor::View widget or a KTextEditor::View
351 * \brief activate @p widget. If the widget is not present in the window, it will be added to the window
KTextEditor::View * openUrl(const QUrl &url, const QString &encoding=QString())
Open the document url with the given encoding.
Definition mainwindow.cpp:73
void viewChanged(KTextEditor::View *view)
This signal is emitted whenever the active view changes.
friend class MainWindowPrivate
Private d-pointer class is our best friend ;)
Definition mainwindow.h:430
QList< KTextEditor::View * > views()
Get a list of all views for this main window.
Definition mainwindow.cpp:45
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
void widgetRemoved(QWidget *widget)
The widget was removed from this window.
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 unhandledShortcutOverride(QEvent *e)
This signal is emitted for every unhandled ShortcutOverride in the window.
void pluginViewCreated(const QString &name, QObject *pluginView)
This signal is emitted when the view of some Plugin is created for this main window.
void pluginViewDeleted(const QString &name, QObject *pluginView)
This signal is emitted when the view of some Plugin got deleted.
void splitView(Qt::Orientation orientation)
Split current view space according to orientation.
Definition mainwindow.cpp:89
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 viewCreated(KTextEditor::View *view)
This signal is emitted whenever a new view is created.
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
void widgetAdded(QWidget *widget)
The widget was added to this window.
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
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.