Changeset View
Changeset View
Standalone View
Standalone View
app/view/view.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | } | 64 | } | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | namespace Latte { | 67 | namespace Latte { | ||
68 | 68 | | |||
69 | class View : public PlasmaQuick::ContainmentView | 69 | class View : public PlasmaQuick::ContainmentView | ||
70 | { | 70 | { | ||
71 | Q_OBJECT | 71 | Q_OBJECT | ||
72 | | ||||
73 | Q_PROPERTY(Latte::Types::ViewType type READ type WRITE setType NOTIFY typeChanged) | ||||
74 | | ||||
72 | Q_PROPERTY(bool alternativesIsShown READ alternativesIsShown NOTIFY alternativesIsShownChanged) | 75 | Q_PROPERTY(bool alternativesIsShown READ alternativesIsShown NOTIFY alternativesIsShownChanged) | ||
73 | Q_PROPERTY(bool behaveAsPlasmaPanel READ behaveAsPlasmaPanel WRITE setBehaveAsPlasmaPanel NOTIFY behaveAsPlasmaPanelChanged) | 76 | Q_PROPERTY(bool behaveAsPlasmaPanel READ behaveAsPlasmaPanel WRITE setBehaveAsPlasmaPanel NOTIFY behaveAsPlasmaPanelChanged) | ||
74 | Q_PROPERTY(bool byPassWM READ byPassWM WRITE setByPassWM NOTIFY byPassWMChanged) | 77 | Q_PROPERTY(bool byPassWM READ byPassWM WRITE setByPassWM NOTIFY byPassWMChanged) | ||
75 | Q_PROPERTY(bool contextMenuIsShown READ contextMenuIsShown NOTIFY contextMenuIsShownChanged) | 78 | Q_PROPERTY(bool contextMenuIsShown READ contextMenuIsShown NOTIFY contextMenuIsShownChanged) | ||
76 | //! Because Latte uses animations, changing to edit mode it may be different than | 79 | //! Because Latte uses animations, changing to edit mode it may be different than | ||
77 | //! when the isUserConfiguring changes value | 80 | //! when the isUserConfiguring changes value | ||
78 | Q_PROPERTY(bool inEditMode READ inEditMode WRITE setInEditMode NOTIFY inEditModeChanged) | 81 | Q_PROPERTY(bool inEditMode READ inEditMode WRITE setInEditMode NOTIFY inEditModeChanged) | ||
79 | Q_PROPERTY(bool isPreferredForShortcuts READ isPreferredForShortcuts WRITE setIsPreferredForShortcuts NOTIFY isPreferredForShortcutsChanged) | 82 | Q_PROPERTY(bool isPreferredForShortcuts READ isPreferredForShortcuts WRITE setIsPreferredForShortcuts NOTIFY isPreferredForShortcutsChanged) | ||
Show All 22 Lines | |||||
102 | Q_PROPERTY(QRect screenGeometry READ screenGeometry NOTIFY screenGeometryChanged) | 105 | Q_PROPERTY(QRect screenGeometry READ screenGeometry NOTIFY screenGeometryChanged) | ||
103 | 106 | | |||
104 | public: | 107 | public: | ||
105 | View(Plasma::Corona *corona, QScreen *targetScreen = nullptr, bool byPassWM = false); | 108 | View(Plasma::Corona *corona, QScreen *targetScreen = nullptr, bool byPassWM = false); | ||
106 | virtual ~View(); | 109 | virtual ~View(); | ||
107 | 110 | | |||
108 | void init(); | 111 | void init(); | ||
109 | 112 | | |||
113 | Types::ViewType type() const; | ||||
114 | void setType(Types::ViewType type); | ||||
115 | | ||||
110 | bool alternativesIsShown() const; | 116 | bool alternativesIsShown() const; | ||
111 | void setAlternativesIsShown(bool show); | 117 | void setAlternativesIsShown(bool show); | ||
112 | 118 | | |||
113 | bool inDelete() const; | 119 | bool inDelete() const; | ||
114 | 120 | | |||
115 | bool onPrimary() const; | 121 | bool onPrimary() const; | ||
116 | void setOnPrimary(bool flag); | 122 | void setOnPrimary(bool flag); | ||
117 | 123 | | |||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 213 | signals: | |||
226 | void managedLayoutChanged(); | 232 | void managedLayoutChanged(); | ||
227 | void maxLengthChanged(); | 233 | void maxLengthChanged(); | ||
228 | void maxThicknessChanged(); | 234 | void maxThicknessChanged(); | ||
229 | void normalThicknessChanged(); | 235 | void normalThicknessChanged(); | ||
230 | void offsetChanged(); | 236 | void offsetChanged(); | ||
231 | void onPrimaryChanged(); | 237 | void onPrimaryChanged(); | ||
232 | void positionerChanged(); | 238 | void positionerChanged(); | ||
233 | void screenGeometryChanged(); | 239 | void screenGeometryChanged(); | ||
240 | void typeChanged(); | ||||
234 | void visibilityChanged(); | 241 | void visibilityChanged(); | ||
235 | void windowsTrackerChanged(); | 242 | void windowsTrackerChanged(); | ||
236 | void xChanged(); | 243 | void xChanged(); | ||
237 | void yChanged(); | 244 | void yChanged(); | ||
238 | 245 | | |||
239 | void absGeometryChanged(const QRect &geometry); | 246 | void absGeometryChanged(const QRect &geometry); | ||
240 | 247 | | |||
241 | private slots: | 248 | private slots: | ||
Show All 23 Lines | 263 | private: | |||
265 | bool m_onPrimary{true}; | 272 | bool m_onPrimary{true}; | ||
266 | int m_fontPixelSize{ -1}; | 273 | int m_fontPixelSize{ -1}; | ||
267 | int m_maxThickness{24}; | 274 | int m_maxThickness{24}; | ||
268 | int m_normalThickness{24}; | 275 | int m_normalThickness{24}; | ||
269 | int m_offset{0}; | 276 | int m_offset{0}; | ||
270 | float m_maxLength{1}; | 277 | float m_maxLength{1}; | ||
271 | 278 | | |||
272 | Types::Alignment m_alignment{Types::Center}; | 279 | Types::Alignment m_alignment{Types::Center}; | ||
280 | Types::ViewType m_type{Types::DockView}; | ||||
273 | 281 | | |||
274 | QRect m_localGeometry; | 282 | QRect m_localGeometry; | ||
275 | QRect m_absGeometry; | 283 | QRect m_absGeometry; | ||
276 | 284 | | |||
277 | Layout *m_managedLayout{nullptr}; | 285 | Layout *m_managedLayout{nullptr}; | ||
278 | QPointer<PlasmaQuick::ConfigView> m_configView; | 286 | QPointer<PlasmaQuick::ConfigView> m_configView; | ||
279 | 287 | | |||
280 | QPointer<ViewPart::ContextMenu> m_contextMenu; | 288 | QPointer<ViewPart::ContextMenu> m_contextMenu; | ||
Show All 14 Lines |