+ Add fillet dialog
+ fix undo/redo bug in edit PartDesign features + partially clean up module dependency in ViewProvider base class git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5108 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -58,13 +58,13 @@ void ViewProviderPad::setupContextMenu(QMenu* menu, QObject* receiver, const cha
|
||||
{
|
||||
QAction* act;
|
||||
act = menu->addAction(QObject::tr("Edit pad"), receiver, member);
|
||||
act->setData(QVariant((int)ViewProvider::Pad));
|
||||
act->setData(QVariant((int)ViewProvider::Default));
|
||||
PartGui::ViewProviderPart::setupContextMenu(menu, receiver, member);
|
||||
}
|
||||
|
||||
bool ViewProviderPad::setEdit(int ModNum)
|
||||
{
|
||||
if (ModNum == ViewProvider::Default || ModNum == ViewProvider::Pad) {
|
||||
if (ModNum == ViewProvider::Default ) {
|
||||
// When double-clicking on the item for this pad the
|
||||
// object unsets and sets its edit mode without closing
|
||||
// the task panel
|
||||
@@ -87,8 +87,8 @@ bool ViewProviderPad::setEdit(int ModNum)
|
||||
|
||||
// clear the selection (convenience)
|
||||
Gui::Selection().clearSelection();
|
||||
if (ModNum == 1)
|
||||
Gui::Command::openCommand("Change pad parameters");
|
||||
//if (ModNum == 1)
|
||||
// Gui::Command::openCommand("Change pad parameters");
|
||||
|
||||
// start the edit dialog
|
||||
if (padDlg)
|
||||
@@ -105,7 +105,7 @@ bool ViewProviderPad::setEdit(int ModNum)
|
||||
|
||||
void ViewProviderPad::unsetEdit(int ModNum)
|
||||
{
|
||||
if (ModNum == ViewProvider::Default || ModNum == ViewProvider::Pad) {
|
||||
if (ModNum == ViewProvider::Default) {
|
||||
// and update the pad
|
||||
//getSketchObject()->getDocument()->recompute();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user