Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/corona.h
Show All 36 Lines | |||||
37 | * @class Corona plasma/Corona.h <Plasma/Corona> | 37 | * @class Corona plasma/Corona.h <Plasma/Corona> | ||
38 | * | 38 | * | ||
39 | * @short A bookkeeping Scene for Plasma::Applets | 39 | * @short A bookkeeping Scene for Plasma::Applets | ||
40 | */ | 40 | */ | ||
41 | class PLASMA_EXPORT Corona : public QObject | 41 | class PLASMA_EXPORT Corona : public QObject | ||
42 | { | 42 | { | ||
43 | Q_OBJECT | 43 | Q_OBJECT | ||
44 | Q_PROPERTY(bool isStartupCompleted READ isStartupCompleted NOTIFY startupCompleted) | 44 | Q_PROPERTY(bool isStartupCompleted READ isStartupCompleted NOTIFY startupCompleted) | ||
45 | Q_PROPERTY(bool editMode READ isEditMode WRITE setEditMode NOTIFY editModeChanged) | ||||
45 | Q_PROPERTY(Package package READ package NOTIFY packageChanged) | 46 | Q_PROPERTY(Package package READ package NOTIFY packageChanged) | ||
46 | Q_PROPERTY(KPackage::Package kPackage READ kPackage NOTIFY kPackageChanged) | 47 | Q_PROPERTY(KPackage::Package kPackage READ kPackage NOTIFY kPackageChanged) | ||
47 | 48 | | |||
48 | public: | 49 | public: | ||
49 | explicit Corona(QObject *parent = nullptr); | 50 | explicit Corona(QObject *parent = nullptr); | ||
50 | ~Corona(); | 51 | ~Corona(); | ||
51 | 52 | | |||
52 | #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 6) | 53 | #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 6) | ||
▲ Show 20 Lines • Show All 332 Lines • ▼ Show 20 Line(s) | 326 | Q_SIGNALS: | |||
385 | */ | 386 | */ | ||
386 | void screenAdded(int id); | 387 | void screenAdded(int id); | ||
387 | 388 | | |||
388 | /** | 389 | /** | ||
389 | * emitted when the editMode state changes | 390 | * emitted when the editMode state changes | ||
390 | * @see isEditMode() | 391 | * @see isEditMode() | ||
391 | * @since 5.63 | 392 | * @since 5.63 | ||
392 | */ | 393 | */ | ||
393 | void editModeChanged(); | 394 | void editModeChanged(bool edit); | ||
394 | 395 | | |||
395 | #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 6) | 396 | #if PLASMA_ENABLE_DEPRECATED_SINCE(5, 6) | ||
396 | /** | 397 | /** | ||
397 | * Emitted when the package for this corona has been changed. | 398 | * Emitted when the package for this corona has been changed. | ||
398 | * Shells must support changing the shell package on the fly (for instance due to device form factor changing) | 399 | * Shells must support changing the shell package on the fly (for instance due to device form factor changing) | ||
399 | * | 400 | * | ||
400 | * @param package the new package that defines the Corona furniture and behavior | 401 | * @param package the new package that defines the Corona furniture and behavior | ||
401 | * @deprecated Since 5.6, use kPackageChanged instead | 402 | * @deprecated Since 5.6, use kPackageChanged instead | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |