Observer that watches relabeled objects and make sure that the labels inside a document are unique. More...
Public Member Functions | |
| void | slotRelabelObject (const App::DocumentObject &, const App::Property &) |
| Checks the new label of the object and relabel it if needed to make it unique document-wide. | |
Static Public Member Functions | |
| static void | destruct () |
| Destructs the sole instance. | |
| static ObjectLabelObserver * | instance () |
| The one and only instance. | |
Observer that watches relabeled objects and make sure that the labels inside a document are unique.
Definition at line 143 of file Gui/Application.cpp.
| void Gui::ObjectLabelObserver::destruct | ( | void | ) | [static] |
Destructs the sole instance.
Definition at line 174 of file Gui/Application.cpp.
| ObjectLabelObserver * Gui::ObjectLabelObserver::instance | ( | ) | [static] |
The one and only instance.
Definition at line 167 of file Gui/Application.cpp.
Referenced by Gui::Application::Application().
| void Gui::ObjectLabelObserver::slotRelabelObject | ( | const App::DocumentObject & | obj, | |
| const App::Property & | prop | |||
| ) |
Checks the new label of the object and relabel it if needed to make it unique document-wide.
Definition at line 180 of file Gui/Application.cpp.
References App::DocumentObject::getDocument(), App::Document::getObjects(), Base::Tools::getUniqueName(), and App::DocumentObject::Label.
1.6.1