Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::UndoRedo Namespace Reference

Classes

class  ImmutableObjectHistory
 
struct  Interval
 
struct  MutableHistoryInterval
 
class  MutableObjectHistory
 
class  ObjectHistory
 
class  ObjectHistoryBase
 
struct  Selection
 
struct  Snapshot
 
struct  SnapshotData
 
class  Stack
 
class  StackImpl
 

Typedefs

using InputArchive = cereal::UserDataAdapter< StackImpl, cereal::BinaryInputArchive >
 
using OutputArchive = cereal::UserDataAdapter< StackImpl, cereal::BinaryOutputArchive >
 

Enumerations

enum class  SnapshotType : unsigned char {
  Action , GizmoAction , Selection , ProjectSeparator ,
  EnteringGizmo , LeavingGizmoNoAction , LeavingGizmoWithAction
}
 

Functions

static bool snapshot_modifies_project (SnapshotType type)
 
static bool snapshot_modifies_project (const Snapshot &snapshot)
 

Variables

static std::string topmost_snapshot_name = "@@@ Topmost @@@"
 

Typedef Documentation

◆ InputArchive

using Slic3r::UndoRedo::InputArchive = typedef cereal::UserDataAdapter<StackImpl, cereal::BinaryInputArchive>

◆ OutputArchive

using Slic3r::UndoRedo::OutputArchive = typedef cereal::UserDataAdapter<StackImpl, cereal::BinaryOutputArchive>

Enumeration Type Documentation

◆ SnapshotType

enum class Slic3r::UndoRedo::SnapshotType : unsigned char
strong
Enumerator
Action 
GizmoAction 
Selection 
ProjectSeparator 
EnteringGizmo 
LeavingGizmoNoAction 
LeavingGizmoWithAction 
27 : unsigned char {
28 // Some action modifying project state, outside any EnteringGizmo / LeavingGizmo interval.
29 Action,
30 // Some action modifying project state, inside some EnteringGizmo / LeavingGizmo interval.
32 // Selection change at the Plater.
34 // New project, Reset project, Load project ...
36 // Entering a Gizmo, which opens a secondary Undo / Redo stack.
38 // Leaving a Gizmo, which closes a secondary Undo / Redo stack.
39 // No action modifying a project state was done between EnteringGizmo / LeavingGizmo.
41 // Leaving a Gizmo, which closes a secondary Undo / Redo stack.
42 // Some action modifying a project state was done between EnteringGizmo / LeavingGizmo.
44};
Definition UndoRedo.hpp:91

Function Documentation

◆ snapshot_modifies_project() [1/2]

static bool Slic3r::UndoRedo::snapshot_modifies_project ( const Snapshot snapshot)
inlinestatic
1073{
1075}
static bool snapshot_modifies_project(SnapshotType type)
Definition UndoRedo.cpp:1067
SnapshotType snapshot_type
Definition UndoRedo.hpp:53
SnapshotData snapshot_data
Definition UndoRedo.hpp:78

References Slic3r::UndoRedo::Snapshot::snapshot_data, snapshot_modifies_project(), and Slic3r::UndoRedo::SnapshotData::snapshot_type.

+ Here is the call graph for this function:

◆ snapshot_modifies_project() [2/2]

static bool Slic3r::UndoRedo::snapshot_modifies_project ( SnapshotType  type)
inlinestatic
1068{
1069 return type == SnapshotType::Action || type == SnapshotType::GizmoAction || type == SnapshotType::ProjectSeparator;
1070}

References Action, GizmoAction, and ProjectSeparator.

Referenced by Slic3r::UndoRedo::StackImpl::project_modified(), Slic3r::UndoRedo::StackImpl::release_snapshots(), and snapshot_modifies_project().

+ Here is the caller graph for this function:

Variable Documentation

◆ topmost_snapshot_name

std::string Slic3r::UndoRedo::topmost_snapshot_name = "@@@ Topmost @@@"
static