OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::UndoRedo Namespace Reference

Classes

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

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

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

Variables

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

Typedef Documentation

◆ InputArchive

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

◆ OutputArchive

using Slic3r::UndoRedo::OutputArchive = 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 
32 : unsigned char {
33 // Some action modifying project state, outside any EnteringGizmo / LeavingGizmo interval.
34 Action,
35 // Some action modifying project state, inside some EnteringGizmo / LeavingGizmo interval.
37 // Selection change at the Plater.
39 // New project, Reset project, Load project ...
41 // Entering a Gizmo, which opens a secondary Undo / Redo stack.
43 // Leaving a Gizmo, which closes a secondary Undo / Redo stack.
44 // No action modifying a project state was done between EnteringGizmo / LeavingGizmo.
46 // Leaving a Gizmo, which closes a secondary Undo / Redo stack.
47 // Some action modifying a project state was done between EnteringGizmo / LeavingGizmo.
49};
@ Selection
Definition Shortcuts.hpp:72
Action
Definition UnsavedChangesDialog.hpp:258
@ ProjectSeparator
Definition UndoRedo.hpp:40
@ EnteringGizmo
Definition UndoRedo.hpp:42
@ LeavingGizmoNoAction
Definition UndoRedo.hpp:45
@ GizmoAction
Definition UndoRedo.hpp:36
@ LeavingGizmoWithAction
Definition UndoRedo.hpp:48

Function Documentation

◆ snapshot_modifies_project() [1/2]

bool Slic3r::UndoRedo::snapshot_modifies_project ( const Snapshot & snapshot)
inline
104{
105 return snapshot_modifies_project(snapshot.snapshot_data.snapshot_type) && (snapshot.name.empty() || snapshot.name.back() != '!');
106}
bool snapshot_modifies_project(SnapshotType type)
Definition UndoRedo.hpp:98
SnapshotType snapshot_type
Definition UndoRedo.hpp:58
SnapshotData snapshot_data
Definition UndoRedo.hpp:83
std::string name
Definition UndoRedo.hpp:80

References Slic3r::UndoRedo::Snapshot::name, 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]

bool Slic3r::UndoRedo::snapshot_modifies_project ( SnapshotType type)
inline
99{
101}
@ Action
Definition UndoRedo.hpp:34

References Action, GizmoAction, and ProjectSeparator.

Referenced by Slic3r::UndoRedo::StackImpl::has_real_change_from(), Slic3r::UndoRedo::StackImpl::has_redo_snapshot(), Slic3r::UndoRedo::StackImpl::has_undo_snapshot(), 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