viewsdata:add isScheduledForMove flag

--it will help during Cut operations to identify
views that must be moved
work/spdx
Michail Vourlakos 4 years ago
parent 5e1758337c
commit 8b00409d14

@ -31,6 +31,7 @@ View::View()
View::View(View &&o)
: Generic(o),
isActive(o.isActive),
isScheduledForMove(o.isScheduledForMove),
onPrimary(o.onPrimary),
screen(o.screen),
screenEdgeMargin(o.screenEdgeMargin),
@ -48,6 +49,7 @@ View::View(View &&o)
View::View(const View &o)
: Generic(o),
isActive(o.isActive),
isScheduledForMove(o.isScheduledForMove),
onPrimary(o.onPrimary),
screen(o.screen),
screenEdgeMargin(o.screenEdgeMargin),
@ -67,6 +69,7 @@ View &View::operator=(const View &rhs)
id = rhs.id;
name = rhs.name;
isActive = rhs.isActive;
isScheduledForMove = rhs.isScheduledForMove;
onPrimary = rhs.onPrimary;
screen = rhs.screen;
screenEdgeMargin = rhs.screenEdgeMargin,
@ -87,6 +90,7 @@ View &View::operator=(View &&rhs)
id = rhs.id;
name = rhs.name;
isActive = rhs.isActive;
isScheduledForMove = rhs.isScheduledForMove;
onPrimary = rhs.onPrimary;
screen = rhs.screen;
screenEdgeMargin = rhs.screenEdgeMargin,
@ -107,6 +111,7 @@ bool View::operator==(const View &rhs) const
return (id == rhs.id)
&& (name == rhs.name)
//&& (isActive == rhs.isActive) /*activeness is a state and is not considered*/
//&& (isScheduledForMove == rhs.isScheduledForMove) /*changing layouts is a state and is not considered*/
&& (onPrimary == rhs.onPrimary)
&& (screen == rhs.screen)
&& (screenEdgeMargin == rhs.screenEdgeMargin)

@ -61,6 +61,9 @@ public:
Latte::Types::Alignment alignment{Latte::Types::Center};
GenericTable<Data::Generic> subcontainments;
//! View sub-states
bool isScheduledForMove{false};
bool isValid() const;
bool isCreated() const;
bool hasViewTemplateOrigin() const;

Loading…
Cancel
Save