mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 23:15:56 +08:00
Stubbed undo ops for increase/decrease.
This commit is contained in:
parent
fa2ee0b8a1
commit
e0ff9411ba
@ -31,7 +31,7 @@ namespace Slic3r { namespace GUI {
|
|||||||
using UndoOperation = int;
|
using UndoOperation = int;
|
||||||
|
|
||||||
enum class UndoCmd {
|
enum class UndoCmd {
|
||||||
Remove, Add, Reset
|
Remove, Add, Reset, Increase, Decrease
|
||||||
};
|
};
|
||||||
|
|
||||||
using ObjIdx = unsigned int;
|
using ObjIdx = unsigned int;
|
||||||
@ -66,6 +66,9 @@ public:
|
|||||||
|
|
||||||
/// Push an undo op onto the stack.
|
/// Push an undo op onto the stack.
|
||||||
void add_undo_operation(UndoCmd cmd, std::vector<int>& obj_ids, Slic3r::Model& model);
|
void add_undo_operation(UndoCmd cmd, std::vector<int>& obj_ids, Slic3r::Model& model);
|
||||||
|
|
||||||
|
/// Undo for increase/decrease
|
||||||
|
void add_undo_operation(UndoCmd cmd, int obj_id, size_t copies);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<Slic3r::Print> print {std::make_shared<Print>(Slic3r::Print())};
|
std::shared_ptr<Slic3r::Print> print {std::make_shared<Print>(Slic3r::Print())};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user