MCPcopy Create free account
hub / github.com/MyGUI/mygui / addValue

Method addValue

Tools/LayoutEditor/UndoManager.cpp:62–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void UndoManager::addValue(int _property)
63 {
64 setUnsaved(true);
65
66 if ((_property != PR_DEFAULT) && (_property == mLastProperty))
67 {
68 delete mOperations.Front();
69 mOperations.PopFirst();
70 mOperations.Push(mEditorWidgets->savexmlDocument());
71 return;
72 }
73
74 mLastProperty = _property;
75
76 if (mPosition != 0)
77 {
78 mLastProperty = PR_DEFAULT;
79 while (mPosition)
80 {
81 delete mOperations.Front();
82 mOperations.PopFirst();
83 mPosition--;
84 }
85 }
86
87 if (mOperations.IsFull())
88 delete mOperations.Back();
89 mOperations.Push(mEditorWidgets->savexmlDocument());
90 mPosition = 0;
91 }
92
93 void UndoManager::commandUndo(const MyGUI::UString& _commandName, bool& _result)
94 {

Callers 15

notifyAddUserDataMethod · 0.80
notifyDeleteUserDataMethod · 0.80
notifyUpdateUserDataMethod · 0.80
initialiseMethod · 0.80
loadMethod · 0.80
saveMethod · 0.80
notifyActionSkinMethod · 0.80
notifyActionLayerMethod · 0.80
notifyActionNameMethod · 0.80
notifyActionTypeMethod · 0.80
notifyActionAlignMethod · 0.80
notifyActionTemplateMethod · 0.80

Calls 4

PopFirstMethod · 0.80
PushMethod · 0.80
savexmlDocumentMethod · 0.80
IsFullMethod · 0.80

Tested by

no test coverage detected