Changeset View
Changeset View
Standalone View
Standalone View
src/kmainwindow.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | |||||
95 | * saveGlobalProperties(). To warn user that application or | 95 | * saveGlobalProperties(). To warn user that application or | ||
96 | * windows have unsaved data on close or logout, reimplement | 96 | * windows have unsaved data on close or logout, reimplement | ||
97 | * queryClose(). | 97 | * queryClose(). | ||
98 | * | 98 | * | ||
99 | * You have to implement session restoring also in your main() function. | 99 | * You have to implement session restoring also in your main() function. | ||
100 | * There are also kRestoreMainWindows convenience functions which | 100 | * There are also kRestoreMainWindows convenience functions which | ||
101 | * can do this for you and restore all your windows on next login. | 101 | * can do this for you and restore all your windows on next login. | ||
102 | * | 102 | * | ||
103 | * Note that KMainWindow uses KGlobal::ref() and KGlobal::deref() so that closing | | |||
104 | * the last mainwindow will quit the application unless there is still something | | |||
105 | * that holds a ref in KGlobal - like a KIO job, or a systray icon. | | |||
106 | * | | |||
107 | * @author Reginald Stadlbauer (reggie@kde.org) Stephan Kulow (coolo@kde.org), Matthias Ettrich (ettrich@kde.org), Chris Schlaeger (cs@kde.org), Sven Radej (radej@kde.org). Maintained by David Faure (faure@kde.org) | 103 | * @author Reginald Stadlbauer (reggie@kde.org) Stephan Kulow (coolo@kde.org), Matthias Ettrich (ettrich@kde.org), Chris Schlaeger (cs@kde.org), Sven Radej (radej@kde.org). Maintained by David Faure (faure@kde.org) | ||
108 | */ | 104 | */ | ||
109 | 105 | | |||
110 | class KXMLGUI_EXPORT KMainWindow : public QMainWindow | 106 | class KXMLGUI_EXPORT KMainWindow : public QMainWindow | ||
111 | { | 107 | { | ||
112 | friend class KMWSessionManager; | 108 | friend class KMWSessionManager; | ||
113 | friend class DockResizeListener; | 109 | friend class DockResizeListener; | ||
114 | XMLGUI_DECLARE_PRIVATE(KMainWindow) | 110 | XMLGUI_DECLARE_PRIVATE(KMainWindow) | ||
▲ Show 20 Lines • Show All 638 Lines • Show Last 20 Lines |