Skip to content

Commit

Permalink
Replace apostrophes (U+0027) used in snippets for grave accent (U+0060)
Browse files Browse the repository at this point in the history
Using apostrophes in the Markdown files causes bad rendering on html files.
  • Loading branch information
hasecilu committed Feb 18, 2024
1 parent 1f2bdc2 commit bee25ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions technical/ObjectDeletion.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ is not tidy.

There are two methods in the ViewProvider that deal with this situation.

'''c++
```c++
bool canDelete(App::DocumentObject *obj)
'''
```
is called when Std_Delete is asked to delete obj, BUT it is called for each of
obj's parent in the InList. This is where you would decide if you will allow
one of your children can be deleted. In effect, the is canDeleteMyChildObject().
Return true to allow the child to be deleted, or false to prevent the deletion.
'''c++
```c++
bool onDelete(const std::vector<std::string> & parms)
'''
```
is also called when when Std_Delete is asked to delete a DocumentObject, but in
this case it is the DocumentObject's ViewProvider that is called. Return true
to allow deletion of the DocumentObject, or false to prevent the deletion.
Expand Down
4 changes: 2 additions & 2 deletions technical/PropertyChanges.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Recommended reading:
- When a Property's value changes, its PropertyContainer (eventually a DocumentObject) executes the onChanged method with the Property as a parameter. This is where you will take appropriate action based on the new property value.
- Be cautious when inserting logic into onChanged and execute as it is possible to create a loop.

'''c++
```c++
void myFeature::execute()
{
MyProperty->setValue(foo());
Expand All @@ -26,7 +26,7 @@ void myFeature::onChanged(App::Property property)
execute();
}
}
'''
```
- The other interesting method involving property changes is mustExecute. This is where you control whether or not your object participates in the next recompute cycle.
Expand Down

0 comments on commit bee25ec

Please sign in to comment.