|
Krita Source Code Documentation
|
#include <kritawidgetutils_export.h>#include <QMainWindow>#include <QMetaClassInfo>Go to the source code of this file.
Classes | |
| class | KisKMainWindow |
| KDE top level main window More... | |
Macros | |
| #define | KDE_RESTORE_MAIN_WINDOWS_NUM_TEMPLATE_ARGS 3 |
| #define | XMLGUI_DECLARE_PRIVATE(classname) |
Functions | |
| template<typename T > | |
| void | kRestoreMainWindows () |
| template<typename T0 , typename T1 > | |
| void | kRestoreMainWindows () |
| template<typename T0 , typename T1 , typename T2 > | |
| void | kRestoreMainWindows () |
| #define KDE_RESTORE_MAIN_WINDOWS_NUM_TEMPLATE_ARGS 3 |
Returns the maximal number of arguments that are actually supported by kRestoreMainWindows().
Definition at line 498 of file kmainwindow.h.
| #define XMLGUI_DECLARE_PRIVATE | ( | classname | ) |
Definition at line 33 of file kmainwindow.h.
|
inline |
Restores the last session. (To be used in your main function).
These functions work also if you have more than one kind of toplevel widget (each derived from KisKMainWindow, of course).
Imagine you have three kinds of toplevel widgets: the classes childMW1, childMW2 and childMW3. Than you can just do:
kRestoreMainWindows<>() will create (on the heap) as many instances of your main windows as have existed in the last session and call KisKMainWindow::restore() with the correct arguments. Note that also QWidget::show() is called implicitly.
Currently, these functions are provided for up to three template arguments. If you need more, tell us. To help you in deciding whether or not you can use kRestoreMainWindows, a define KDE_RESTORE_MAIN_WINDOWS_NUM_TEMPLATE_ARGS is provided.
Definition at line 531 of file kmainwindow.h.
References KisKMainWindow::canBeRestored(), and KisKMainWindow::classNameOfToplevel().
|
inline |
Definition at line 542 of file kmainwindow.h.
References KisKMainWindow::canBeRestored(), and KisKMainWindow::classNameOfToplevel().
|
inline |
Definition at line 558 of file kmainwindow.h.
References KisKMainWindow::canBeRestored(), and KisKMainWindow::classNameOfToplevel().