data::view split moving flag in two values

--isMoveOrigin/isMoveDestination are flags used
to identify view records during Cut operation
work/spdx
Michail Vourlakos 4 years ago
parent a4df805520
commit c6ee04c8cf

@ -31,7 +31,8 @@ View::View()
View::View(View &&o)
: Generic(o),
isActive(o.isActive),
isScheduledForMove(o.isScheduledForMove),
isMoveOrigin(o.isMoveOrigin),
isMoveDestination(o.isMoveDestination),
onPrimary(o.onPrimary),
screen(o.screen),
screenEdgeMargin(o.screenEdgeMargin),
@ -49,7 +50,8 @@ View::View(View &&o)
View::View(const View &o)
: Generic(o),
isActive(o.isActive),
isScheduledForMove(o.isScheduledForMove),
isMoveOrigin(o.isMoveOrigin),
isMoveDestination(o.isMoveDestination),
onPrimary(o.onPrimary),
screen(o.screen),
screenEdgeMargin(o.screenEdgeMargin),
@ -69,7 +71,8 @@ View &View::operator=(const View &rhs)
id = rhs.id;
name = rhs.name;
isActive = rhs.isActive;
isScheduledForMove = rhs.isScheduledForMove;
isMoveOrigin = rhs.isMoveOrigin;
isMoveDestination = rhs.isMoveDestination;
onPrimary = rhs.onPrimary;
screen = rhs.screen;
screenEdgeMargin = rhs.screenEdgeMargin,
@ -90,7 +93,8 @@ View &View::operator=(View &&rhs)
id = rhs.id;
name = rhs.name;
isActive = rhs.isActive;
isScheduledForMove = rhs.isScheduledForMove;
isMoveOrigin = rhs.isMoveOrigin;
isMoveDestination = rhs.isMoveDestination;
onPrimary = rhs.onPrimary;
screen = rhs.screen;
screenEdgeMargin = rhs.screenEdgeMargin,
@ -111,7 +115,8 @@ 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*/
//&& (isMoveOrigin == rhs.isMoveOrigin) /*changing layouts is a state and is not considered*/
//&& (isMoveDestination == rhs.isMoveDestination) /*changing layouts is a state and is not considered*/
&& (onPrimary == rhs.onPrimary)
&& (screen == rhs.screen)
&& (screenEdgeMargin == rhs.screenEdgeMargin)

@ -62,7 +62,8 @@ public:
GenericTable<Data::Generic> subcontainments;
//! View sub-states
bool isScheduledForMove{false};
bool isMoveOrigin{false};
bool isMoveDestination{true};
bool isValid() const;
bool isCreated() const;

Loading…
Cancel
Save