Skip to content

Commit de1c85c

Browse files
jaredwyjaredadobe
andauthored
Removing random_shuffle from algo in line with std. Porting a photoshop change back (#85)
Co-authored-by: jared wyles <[email protected]>
1 parent b71f5d0 commit de1c85c

File tree

4 files changed

+12
-72
lines changed

4 files changed

+12
-72
lines changed

adobe/algorithm.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#if !ADOBE_IS_DEPRECATED_ERROR(100039)
4343
#include <adobe/algorithm/pin.hpp>
4444
#endif
45-
#include <adobe/algorithm/random_shuffle.hpp>
4645
#include <adobe/algorithm/reduce.hpp>
4746
#include <adobe/algorithm/remove.hpp>
4847
#include <adobe/algorithm/replace.hpp>

adobe/algorithm/random_shuffle.hpp

-71
This file was deleted.

adobe/eve.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ class eve_t
195195
*/
196196

197197
void set_visible(iterator, bool);
198+
199+
/*!
200+
\brief set_layout_attributes
201+
*/
198202

203+
void set_layout_attributes(iterator, const layout_attributes_t&);
199204

200205
/*!
201206
\brief This call performs the layout, it will call each element to get its dimentions, solve the

source/eve.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ class eve_t::implementation_t : private extents_slices_t {
253253
iterator add_placeable(iterator parent, const layout_attributes_t& initial,
254254
bool is_container_type, poly_placeable_t& placeable, bool reverse);
255255
void set_visible(iterator, bool);
256+
void set_layout_attributes(iterator, const layout_attributes_t&);
256257

257258
private:
258259
void solve(slice_select_t select);
@@ -298,6 +299,10 @@ eve_t::iterator eve_t::add_placeable(iterator parent, const layout_attributes_t&
298299

299300
void eve_t::set_visible(iterator c, bool visible) { return object_m->set_visible(c, visible); }
300301

302+
void eve_t::set_layout_attributes(iterator c, const layout_attributes_t& geometry)
303+
{ return object_m->set_layout_attributes(c, geometry); }
304+
305+
301306
/**************************************************************************************************/
302307

303308
#if 0
@@ -340,6 +345,8 @@ eve_t::iterator eve_t::implementation_t::add_placeable(iterator parent,
340345

341346
void eve_t::implementation_t::set_visible(iterator c, bool visible) { c->visible_m = visible; }
342347

348+
void eve_t::implementation_t::set_layout_attributes(iterator c, const layout_attributes_t& geometry) { c->geometry_m = geometry; }
349+
343350
/**************************************************************************************************/
344351

345352
void eve_t::implementation_t::solve(slice_select_t select) {

0 commit comments

Comments
 (0)