Changeset View
Changeset View
Standalone View
Standalone View
src/kmainwindow.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | class KToolBar; | 42 | class KToolBar; | ||
43 | 43 | | |||
44 | // internal, not public API, may change any time | 44 | // internal, not public API, may change any time | ||
45 | #define XMLGUI_DECLARE_PRIVATE(classname) \ | 45 | #define XMLGUI_DECLARE_PRIVATE(classname) \ | ||
46 | inline classname ## Private *k_func() { return reinterpret_cast<classname ## Private *>(k_ptr); } \ | 46 | inline classname ## Private *k_func() { return reinterpret_cast<classname ## Private *>(k_ptr); } \ | ||
47 | inline const classname ## Private *k_func() const { return reinterpret_cast<classname ## Private *>(k_ptr); } \ | 47 | inline const classname ## Private *k_func() const { return reinterpret_cast<classname ## Private *>(k_ptr); } \ | ||
48 | friend class classname ## Private; | 48 | friend class classname ## Private; | ||
49 | 49 | | |||
50 | // This is mostly from KDE3. TODO KDE5: remove the constructor parameter. | 50 | // TODO KF6: remove | ||
51 | #define KDE_DEFAULT_WINDOWFLAGS 0 | 51 | #define KDE_DEFAULT_WINDOWFLAGS 0 | ||
52 | 52 | | |||
53 | /** | 53 | /** | ||
54 | * @class KMainWindow kmainwindow.h KMainWindow | 54 | * @class KMainWindow kmainwindow.h KMainWindow | ||
55 | * | 55 | * | ||
56 | * @short %KDE top level main window | 56 | * @short %KDE top level main window | ||
57 | * | 57 | * | ||
58 | * Top level widget that provides toolbars, a status line and a frame. | 58 | * Top level widget that provides toolbars, a status line and a frame. | ||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 115 | public: | |||
146 | * also describe the type of the window. If there can be several windows of the same | 146 | * also describe the type of the window. If there can be several windows of the same | ||
147 | * type, append '#' (hash) to the name, and KMainWindow will replace it with numbers to make | 147 | * type, append '#' (hash) to the name, and KMainWindow will replace it with numbers to make | ||
148 | * the names unique. For example, for a mail client which has one main window showing | 148 | * the names unique. For example, for a mail client which has one main window showing | ||
149 | * the mails and folders, and which can also have one or more windows for composing | 149 | * the mails and folders, and which can also have one or more windows for composing | ||
150 | * mails, the name for the folders window should be e.g. "mainwindow" and | 150 | * mails, the name for the folders window should be e.g. "mainwindow" and | ||
151 | * for the composer windows "composer#". | 151 | * for the composer windows "composer#". | ||
152 | * | 152 | * | ||
153 | */ | 153 | */ | ||
154 | explicit KMainWindow(QWidget *parent = nullptr, Qt::WindowFlags f = KDE_DEFAULT_WINDOWFLAGS); | 154 | explicit KMainWindow(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); | ||
155 | 155 | | |||
156 | /** | 156 | /** | ||
157 | * \brief Destructor. | 157 | * \brief Destructor. | ||
158 | * | 158 | * | ||
159 | * Will also destroy the toolbars, and menubar if | 159 | * Will also destroy the toolbars, and menubar if | ||
160 | * needed. | 160 | * needed. | ||
161 | */ | 161 | */ | ||
162 | virtual ~KMainWindow(); | 162 | virtual ~KMainWindow(); | ||
▲ Show 20 Lines • Show All 583 Lines • Show Last 20 Lines |