|
Krita Source Code Documentation
|
#include <Window.h>
Inheritance diagram for Window:Classes | |
| struct | Private |
Public Slots | |
| void | activate () |
| activate activates this Window. | |
| View * | activeView () const |
| View * | addView (Document *document) |
| void | close () |
| close the active window and all its Views. If there are no Views left for a given Document, that Document will also be closed. | |
| QAction * | createAction (const QString &id, const QString &text=QString(), const QString &menuLocation=QString("tools/scripts")) |
| createAction creates a QAction object and adds it to the action manager for this Window. | |
| QList< QDockWidget * > | dockers () const |
| dockers | |
| QMainWindow * | qwindow () const |
| void | showView (View *v) |
| QList< View * > | views () const |
Signals | |
| void | activeViewChanged () |
| Emitted when the active view changes. | |
| void | themeChanged () |
| Emitted when we change the color theme. | |
| void | windowClosed () |
| Emitted when the window is closed. | |
Public Member Functions | |
| bool | operator!= (const Window &other) const |
| bool | operator== (const Window &other) const |
| Window (KisMainWindow *window, QObject *parent=0) | |
| ~Window () override | |
Private Attributes | |
| Private *const | d |
Window represents one Krita mainwindow. A window can have any number of views open on any number of documents.
|
explicit |
Definition at line 29 of file Window.cpp.
References activeViewChanged(), d, themeChanged(), Window::Private::window, and windowClosed().
|
override |
|
slot |
activate activates this Window.
Definition at line 112 of file Window.cpp.
References d, and Window::Private::window.
|
slot |
Definition at line 104 of file Window.cpp.
References d, and Window::Private::window.
|
signal |
Emitted when the active view changes.
Open a new view on the given document in this window
Definition at line 82 of file Window.cpp.
References d, and Window::Private::window.
|
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.
References d, KisPart::instance(), KisPart::removeMainWindow(), and Window::Private::window.
|
slot |
createAction creates a QAction object and adds it to the action manager for this Window.
| 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" |
Definition at line 128 of file Window.cpp.
References d, and Window::Private::window.
|
slot |
dockers
Definition at line 59 of file Window.cpp.
References d, KisMainWindow::dockWidgets(), and Window::Private::window.
| bool Window::operator!= | ( | const Window & | other | ) | const |
| bool Window::operator== | ( | const Window & | other | ) | const |
Definition at line 44 of file Window.cpp.
References d, and Window::Private::window.
|
slot |
Return a handle to the QMainWindow widget. This is useful to e.g. parent dialog boxes and message box.
Definition at line 54 of file Window.cpp.
References d, and Window::Private::window.
Make the given view active in this window. If the view does not belong to this window, nothing happens.
Definition at line 95 of file Window.cpp.
References d, v, and Window::Private::window.
|
signal |
Emitted when we change the color theme.
Definition at line 68 of file Window.cpp.
References d, KisPart::instance(), views(), and Window::Private::window.
|
signal |
Emitted when the window is closed.