+ 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:
jriegel
2011-11-09 23:23:10 +00:00
parent 11008812de
commit 72bfc3c74b
17 changed files with 556 additions and 28 deletions

View File

@@ -59,13 +59,13 @@ void ViewProviderRevolution::setupContextMenu(QMenu* menu, QObject* receiver, co
{
QAction* act;
act = menu->addAction(QObject::tr("Edit revolution"), receiver, member);
act->setData(QVariant((int)ViewProvider::Revolve));
act->setData(QVariant((int)ViewProvider::Default));
PartGui::ViewProviderPart::setupContextMenu(menu, receiver, member);
}
bool ViewProviderRevolution::setEdit(int ModNum)
{
if (ModNum == ViewProvider::Default || ModNum == ViewProvider::Revolve) {
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
@@ -88,8 +88,8 @@ bool ViewProviderRevolution::setEdit(int ModNum)
// clear the selection (convenience)
Gui::Selection().clearSelection();
if (ModNum == 1)
Gui::Command::openCommand("Change revolution parameters");
//if (ModNum == 1)
// Gui::Command::openCommand("Change revolution parameters");
// start the edit dialog
if (padDlg)
@@ -106,7 +106,7 @@ bool ViewProviderRevolution::setEdit(int ModNum)
void ViewProviderRevolution::unsetEdit(int ModNum)
{
if (ModNum == ViewProvider::Default || ModNum == ViewProvider::Revolve) {
if (ModNum == ViewProvider::Default) {
// and update the pad
//getSketchObject()->getDocument()->recompute();