[FEM] add missing analysis deletion handling

as it was, one could delete the analysis container breaking everything. Now you get a warning.

- also fix typos
This commit is contained in:
Uwe
2022-03-24 15:56:08 +01:00
parent d3bd8141f9
commit 856c25da67
4 changed files with 62 additions and 30 deletions

View File

@@ -47,13 +47,15 @@ public:
virtual bool doubleClicked(void);
virtual std::vector<App::DocumentObject*> claimChildren(void)const;
// handling when object is deleted
virtual bool onDelete(const std::vector<std::string>&);
/// Asks the view provider if the given object can be deleted.
virtual bool canDelete(App::DocumentObject* obj) const;
//virtual std::vector<App::DocumentObject*> claimChildren3D(void)const;
void setupContextMenu(QMenu*, QObject*, const char*);
virtual bool onDelete(const std::vector<std::string> &);
/// A list of all possible display modes
virtual std::vector<std::string> getDisplayModes(void) const;
// shows solid in the tree