Changeset View
Changeset View
Standalone View
Standalone View
decorations/decorationbridge.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
55 | 55 | | |||
56 | std::unique_ptr<KDecoration2::DecoratedClientPrivate> createClient(KDecoration2::DecoratedClient *client, KDecoration2::Decoration *decoration) override; | 56 | std::unique_ptr<KDecoration2::DecoratedClientPrivate> createClient(KDecoration2::DecoratedClient *client, KDecoration2::Decoration *decoration) override; | ||
57 | std::unique_ptr<KDecoration2::DecorationSettingsPrivate> settings(KDecoration2::DecorationSettings *parent) override; | 57 | std::unique_ptr<KDecoration2::DecorationSettingsPrivate> settings(KDecoration2::DecorationSettings *parent) override; | ||
58 | void update(KDecoration2::Decoration *decoration, const QRect &geometry) override; | 58 | void update(KDecoration2::Decoration *decoration, const QRect &geometry) override; | ||
59 | 59 | | |||
60 | bool needsBlur() const { | 60 | bool needsBlur() const { | ||
61 | return m_blur; | 61 | return m_blur; | ||
62 | } | 62 | } | ||
63 | QString recommendedBorderSize() const { | ||||
64 | return m_recommendedBorderSize; | ||||
65 | } | ||||
63 | 66 | | |||
64 | bool showToolTips() const { | 67 | bool showToolTips() const { | ||
65 | return m_showToolTips; | 68 | return m_showToolTips; | ||
66 | } | 69 | } | ||
67 | 70 | | |||
68 | void reconfigure(); | 71 | void reconfigure(); | ||
69 | 72 | | |||
70 | const QSharedPointer<KDecoration2::DecorationSettings> &settings() const { | 73 | const QSharedPointer<KDecoration2::DecorationSettings> &settings() const { | ||
71 | return m_settings; | 74 | return m_settings; | ||
72 | } | 75 | } | ||
73 | 76 | | |||
74 | QString supportInformation() const; | 77 | QString supportInformation() const; | ||
75 | 78 | | |||
79 | Q_SIGNALS: | ||||
80 | void metaDataLoaded(); | ||||
81 | | ||||
76 | private: | 82 | private: | ||
77 | QString readPlugin(); | 83 | QString readPlugin(); | ||
78 | void loadMetaData(const QJsonObject &object); | 84 | void loadMetaData(const QJsonObject &object); | ||
79 | void findTheme(const QVariantMap &map); | 85 | void findTheme(const QVariantMap &map); | ||
80 | void initPlugin(); | 86 | void initPlugin(); | ||
81 | QString readTheme() const; | 87 | QString readTheme() const; | ||
82 | void readDecorationOptions(); | 88 | void readDecorationOptions(); | ||
83 | KPluginFactory *m_factory; | 89 | KPluginFactory *m_factory; | ||
84 | KSharedConfig::Ptr m_lnfConfig; | 90 | KSharedConfig::Ptr m_lnfConfig; | ||
85 | bool m_blur; | 91 | bool m_blur; | ||
86 | bool m_showToolTips; | 92 | bool m_showToolTips; | ||
93 | QString m_recommendedBorderSize; | ||||
87 | QString m_plugin; | 94 | QString m_plugin; | ||
88 | QString m_defaultTheme; | 95 | QString m_defaultTheme; | ||
89 | QString m_theme; | 96 | QString m_theme; | ||
90 | QSharedPointer<KDecoration2::DecorationSettings> m_settings; | 97 | QSharedPointer<KDecoration2::DecorationSettings> m_settings; | ||
91 | bool m_noPlugin; | 98 | bool m_noPlugin; | ||
92 | KWIN_SINGLETON(DecorationBridge) | 99 | KWIN_SINGLETON(DecorationBridge) | ||
93 | }; | 100 | }; | ||
94 | } // Decoration | 101 | } // Decoration | ||
95 | } // KWin | 102 | } // KWin | ||
96 | 103 | | |||
97 | #endif | 104 | #endif |