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

Method notifyToggleRelativeMode

Tools/LayoutEditor/PropertyFieldPosition.cpp:174–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 void PropertyFieldPosition::notifyToggleRelativeMode()
175 {
176 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget);
177 // если нет контейнера, занчит мы не в режиме редактирования
178 if (widgetContainer == nullptr)
179 return;
180
181 widgetContainer->setRelativeMode(!widgetContainer->getRelativeMode());
182
183 updateButton();
184 updatePositionCaption();
185
186 UndoManager::getInstance().addValue(PR_PROPERTIES);
187 }
188
189 void PropertyFieldPosition::updateButton()
190 {

Callers

nothing calls this directly

Calls 4

setRelativeModeMethod · 0.80
getRelativeModeMethod · 0.80
addValueMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected