Window
#include <Window.h>
Signals | |
void | activeViewChanged () |
void | themeChanged () |
void | windowClosed () |
Public Slots | |
void | activate () |
View * | activeView () const |
View * | addView (Document *document) |
void | close () |
QAction * | createAction (const QString &id, const QString &text=QString(), const QString &menuLocation=QString("tools/scripts")) |
QList< QDockWidget * > | dockers () const |
QMainWindow * | qwindow () const |
void | showView (View *view) |
QList< View * > | views () const |
Detailed Description
Window represents one Krita mainwindow.
A window can have any number of views open on any number of documents.
Constructor & Destructor Documentation
◆ Window()
|
explicit |
Definition at line 30 of file Window.cpp.
◆ ~Window()
|
override |
Definition at line 40 of file Window.cpp.
Member Function Documentation
◆ activate
|
slot |
activate activates this Window.
Definition at line 112 of file Window.cpp.
◆ activeView
|
slot |
- Returns
- the currently active view or 0 if no view is active
Definition at line 104 of file Window.cpp.
◆ activeViewChanged
|
signal |
Emitted when the active view changes.
◆ addView
Open a new view on the given document in this window.
Definition at line 83 of file Window.cpp.
◆ close
|
slot |
close the active window and all its Views.
If there are no Views left for a given Document, that Document will also be closed.
Definition at line 119 of file Window.cpp.
◆ createAction
|
slot |
createAction creates a QAction object and adds it to the action manager for this Window.
- Parameters
-
id The unique id for the action. This will be used to propertize the action if any .action file is present text The user-visible text of the action. If empty, the text from the .action file is used. menuLocation a /-separated string that describes which menu the action should be places in. Default is "tools/scripts"
- Returns
- the new action.
Definition at line 128 of file Window.cpp.
◆ dockers
|
slot |
dockers
- Returns
- a list of all the dockers belonging to this window
Definition at line 60 of file Window.cpp.
◆ operator!=()
Definition at line 50 of file Window.cpp.
◆ operator==()
bool Window::operator== | ( | const Window & | other | ) | const |
Definition at line 45 of file Window.cpp.
◆ qwindow
|
slot |
Return a handle to the QMainWindow widget.
This is useful to e.g. parent dialog boxes and message box.
Definition at line 55 of file Window.cpp.
◆ showView
Make the given view active in this window.
If the view does not belong to this window, nothing happens.
Definition at line 96 of file Window.cpp.
◆ themeChanged
|
signal |
Emitted when we change the color theme.
◆ views
- Returns
- a list of open views in this window
Definition at line 69 of file Window.cpp.
◆ windowClosed
|
signal |
Emitted when the window is closed.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:53 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.