Changeset View
Changeset View
Standalone View
Standalone View
src/scriptengines/qml/plasmoid/appletinterface.h
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | 57 | { | |||
---|---|---|---|---|---|
143 | Q_PROPERTY(bool busy WRITE setBusy READ isBusy NOTIFY busyChanged) | 143 | Q_PROPERTY(bool busy WRITE setBusy READ isBusy NOTIFY busyChanged) | ||
144 | 144 | | |||
145 | /** | 145 | /** | ||
146 | * How the applet wants its background to be drawn. The containment may chose to ignore this hint. | 146 | * How the applet wants its background to be drawn. The containment may chose to ignore this hint. | ||
147 | */ | 147 | */ | ||
148 | Q_PROPERTY(Plasma::Types::BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints NOTIFY backgroundHintsChanged) | 148 | Q_PROPERTY(Plasma::Types::BackgroundHints backgroundHints WRITE setBackgroundHints READ backgroundHints NOTIFY backgroundHintsChanged) | ||
149 | 149 | | |||
150 | /** | 150 | /** | ||
151 | * The containment (and/or the user) may decide to use another kind of background instead (if supported by the applet) | ||||
152 | */ | ||||
153 | Q_PROPERTY(Plasma::Types::BackgroundHints effectiveBackgroundHints WRITE setEffectiveBackgroundHints READ effectiveBackgroundHints NOTIFY effectiveBackgroundHintsChanged) | ||||
154 | | ||||
155 | /** | ||||
151 | * Whether the Corona is immutable. The plasmoid implementation should avoid allowing "dangerous" modifications from the user when in an immutable mode | 156 | * Whether the Corona is immutable. The plasmoid implementation should avoid allowing "dangerous" modifications from the user when in an immutable mode | ||
152 | * | 157 | * | ||
153 | * This is true when immutability is not Mutable | 158 | * This is true when immutability is not Mutable | ||
154 | */ | 159 | */ | ||
155 | Q_PROPERTY(bool immutable READ immutable NOTIFY immutabilityChanged) | 160 | Q_PROPERTY(bool immutable READ immutable NOTIFY immutabilityChanged) | ||
156 | 161 | | |||
157 | /** | 162 | /** | ||
158 | * The immutability of the Corona. | 163 | * The immutability of the Corona. | ||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | 339 | //PROPERTY ACCESSORS------------------------------------------------------------------- | |||
363 | QObject *configuration() const; | 368 | QObject *configuration() const; | ||
364 | 369 | | |||
365 | bool isBusy() const; | 370 | bool isBusy() const; | ||
366 | void setBusy(bool busy); | 371 | void setBusy(bool busy); | ||
367 | 372 | | |||
368 | Plasma::Types::BackgroundHints backgroundHints() const; | 373 | Plasma::Types::BackgroundHints backgroundHints() const; | ||
369 | void setBackgroundHints(Plasma::Types::BackgroundHints hint); | 374 | void setBackgroundHints(Plasma::Types::BackgroundHints hint); | ||
370 | 375 | | |||
376 | Plasma::Types::BackgroundHints effectiveBackgroundHints() const; | ||||
377 | void setEffectiveBackgroundHints(Plasma::Types::BackgroundHints hint); | ||||
378 | | ||||
371 | void setAssociatedApplication(const QString &string); | 379 | void setAssociatedApplication(const QString &string); | ||
372 | QString associatedApplication() const; | 380 | QString associatedApplication() const; | ||
373 | 381 | | |||
374 | void setAssociatedApplicationUrls(const QList<QUrl> &urls); | 382 | void setAssociatedApplicationUrls(const QList<QUrl> &urls); | ||
375 | QList<QUrl> associatedApplicationUrls() const; | 383 | QList<QUrl> associatedApplicationUrls() const; | ||
376 | 384 | | |||
377 | void setStatus(const Plasma::Types::ItemStatus &status); | 385 | void setStatus(const Plasma::Types::ItemStatus &status); | ||
378 | Plasma::Types::ItemStatus status() const; | 386 | Plasma::Types::ItemStatus status() const; | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 434 | //PROPERTY change notifiers-------------- | |||
431 | void toolTipTextFormatChanged(); | 439 | void toolTipTextFormatChanged(); | ||
432 | void toolTipItemChanged(); | 440 | void toolTipItemChanged(); | ||
433 | void formFactorChanged(); | 441 | void formFactorChanged(); | ||
434 | void locationChanged(); | 442 | void locationChanged(); | ||
435 | void contextChanged(); | 443 | void contextChanged(); | ||
436 | void immutabilityChanged(); | 444 | void immutabilityChanged(); | ||
437 | void statusChanged(); | 445 | void statusChanged(); | ||
438 | void backgroundHintsChanged(); | 446 | void backgroundHintsChanged(); | ||
447 | void effectiveBackgroundHintsChanged(); | ||||
439 | void busyChanged(); | 448 | void busyChanged(); | ||
440 | void screenChanged(); | 449 | void screenChanged(); | ||
441 | void screenGeometryChanged(); | 450 | void screenGeometryChanged(); | ||
442 | void hideOnWindowDeactivateChanged(); | 451 | void hideOnWindowDeactivateChanged(); | ||
443 | void associatedApplicationChanged(); | 452 | void associatedApplicationChanged(); | ||
444 | void associatedApplicationUrlsChanged(); | 453 | void associatedApplicationUrlsChanged(); | ||
445 | void availableScreenRegionChanged(); | 454 | void availableScreenRegionChanged(); | ||
446 | void availableScreenRectChanged(); | 455 | void availableScreenRectChanged(); | ||
Show All 34 Lines | |||||
481 | //UI-specific members ------------------ | 490 | //UI-specific members ------------------ | ||
482 | 491 | | |||
483 | QString m_toolTipMainText; | 492 | QString m_toolTipMainText; | ||
484 | QString m_toolTipSubText; | 493 | QString m_toolTipSubText; | ||
485 | int m_toolTipTextFormat; | 494 | int m_toolTipTextFormat; | ||
486 | QPointer<QQuickItem> m_toolTipItem; | 495 | QPointer<QQuickItem> m_toolTipItem; | ||
487 | QVariantList m_args; | 496 | QVariantList m_args; | ||
488 | Plasma::Types::BackgroundHints m_backgroundHints; | 497 | Plasma::Types::BackgroundHints m_backgroundHints; | ||
498 | Plasma::Types::BackgroundHints m_effectiveBackgroundHints; | ||||
499 | bool m_effectiveBackgroundHintsInitialized = false; | ||||
489 | bool m_hideOnDeactivate : 1; | 500 | bool m_hideOnDeactivate : 1; | ||
490 | bool m_loading = false; | 501 | bool m_loading = false; | ||
491 | //this is used to build an emacs style shortcut | 502 | //this is used to build an emacs style shortcut | ||
492 | int m_oldKeyboardShortcut; | 503 | int m_oldKeyboardShortcut; | ||
493 | QObject *m_dummyNativeInterface; | 504 | QObject *m_dummyNativeInterface; | ||
494 | 505 | | |||
495 | friend class ContainmentInterface; | 506 | friend class ContainmentInterface; | ||
496 | //This is used by ContainmentInterface | 507 | //This is used by ContainmentInterface | ||
497 | QPointF m_positionBeforeRemoval; | 508 | QPointF m_positionBeforeRemoval; | ||
498 | }; | 509 | }; | ||
499 | 510 | | |||
500 | QML_DECLARE_TYPEINFO(AppletInterface, QML_HAS_ATTACHED_PROPERTIES) | 511 | QML_DECLARE_TYPEINFO(AppletInterface, QML_HAS_ATTACHED_PROPERTIES) | ||
501 | 512 | | |||
502 | #endif | 513 | #endif |