generalize preview mode

This commit is contained in:
Stefan Tröger
2015-05-31 07:34:38 +02:00
parent 31ac29501c
commit 254e2226ba
10 changed files with 410 additions and 230 deletions

View File

@@ -78,6 +78,9 @@ bool ViewProviderPipe::doubleClicked(void)
bool ViewProviderPipe::setEdit(int ModNum)
{
if (ModNum == ViewProvider::Default || ModNum == 1 ) {
setPreviewDisplayMode(true);
// When double-clicking on the item for this pad the
// object unsets and sets its edit mode without closing
// the task panel
@@ -117,6 +120,12 @@ bool ViewProviderPipe::setEdit(int ModNum)
}
}
void ViewProviderPipe::unsetEdit(int ModNum) {
setPreviewDisplayMode(false);
PartDesignGui::ViewProvider::unsetEdit(ModNum);
}
bool ViewProviderPipe::onDelete(const std::vector<std::string> &s)
{/*
PartDesign::Pipe* pcPipe = static_cast<PartDesign::Pipe*>(getObject());