Changeset View
Changeset View
Standalone View
Standalone View
kate/kateviewmanager.h
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Line(s) | 274 | private: | |||
---|---|---|---|---|---|
295 | /** | 295 | /** | ||
296 | * View meta data | 296 | * View meta data | ||
297 | */ | 297 | */ | ||
298 | class ViewData { | 298 | class ViewData { | ||
299 | public: | 299 | public: | ||
300 | /** | 300 | /** | ||
301 | * Default constructor | 301 | * Default constructor | ||
302 | */ | 302 | */ | ||
303 | ViewData() | 303 | ViewData() = default; | ||
304 | : active(false) | | |||
305 | , lruAge(0) | | |||
306 | , activityResource(Q_NULLPTR) | | |||
307 | { | | |||
308 | } | | |||
309 | 304 | | |||
310 | /** | 305 | /** | ||
311 | * view active? | 306 | * view active? | ||
312 | */ | 307 | */ | ||
313 | bool active; | 308 | bool active = false; | ||
314 | 309 | | |||
315 | /** | 310 | /** | ||
316 | * lru age of the view | 311 | * lru age of the view | ||
317 | * important: smallest age ==> latest used view | 312 | * important: smallest age ==> latest used view | ||
318 | */ | 313 | */ | ||
319 | qint64 lruAge; | 314 | qint64 lruAge = 0; | ||
320 | 315 | | |||
321 | /** | 316 | /** | ||
322 | * activity resource for the view | 317 | * activity resource for the view | ||
323 | */ | 318 | */ | ||
324 | KActivities::ResourceInstance *activityResource; | 319 | KActivities::ResourceInstance *activityResource = nullptr; | ||
325 | }; | 320 | }; | ||
326 | 321 | | |||
327 | /** | 322 | /** | ||
328 | * central storage of all views known in the view manager | 323 | * central storage of all views known in the view manager | ||
329 | * maps the view to meta data | 324 | * maps the view to meta data | ||
330 | */ | 325 | */ | ||
331 | QHash<KTextEditor::View *, ViewData> m_views; | 326 | QHash<KTextEditor::View *, ViewData> m_views; | ||
332 | 327 | | |||
Show All 17 Lines |