Gui: Replace calls of FCMD_SET_EDIT with Gui::cmdSetEdit
This commit is contained in:
@@ -181,7 +181,7 @@
|
||||
if(__obj && __obj->isAttachedToDocument()) {\
|
||||
Gui::Command::doCommand(Gui::Command::Gui,\
|
||||
"Gui.ActiveDocument.setEdit(App.getDocument('%s').getObject('%s'), %i)",\
|
||||
__obj->getDocument()->getName(), __obj->getNameInDocument(), Gui::Application::Instance->getUserEditMode());\
|
||||
__obj->getDocument()->getName(), __obj->getNameInDocument(), 0);\
|
||||
}\
|
||||
}while(0)
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <App/Document.h>
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/CommandT.h>
|
||||
|
||||
#include "ViewProvider.h"
|
||||
|
||||
@@ -50,7 +50,7 @@ bool ViewProviderPart::doubleClicked()
|
||||
try {
|
||||
QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue()));
|
||||
Gui::Command::openCommand(text.toUtf8());
|
||||
FCMD_SET_EDIT(pcObject);
|
||||
Gui::cmdSetEdit(pcObject);
|
||||
return true;
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Application.h>
|
||||
#include <Gui/BitmapFactory.h>
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/CommandT.h>
|
||||
#include <Gui/Control.h>
|
||||
#include <Gui/Document.h>
|
||||
#include <Gui/MainWindow.h>
|
||||
@@ -63,7 +63,7 @@ bool ViewProvider::doubleClicked()
|
||||
try {
|
||||
QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue()));
|
||||
Gui::Command::openCommand(text.toUtf8());
|
||||
FCMD_SET_EDIT(pcObject);
|
||||
Gui::cmdSetEdit(pcObject);
|
||||
}
|
||||
catch (const Base::Exception&) {
|
||||
Gui::Command::abortCommand();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/CommandT.h>
|
||||
#include <Mod/PartDesign/App/FeatureBase.h>
|
||||
|
||||
#include "ViewProviderBase.h"
|
||||
@@ -54,7 +54,7 @@ bool ViewProviderBase::doubleClicked()
|
||||
std::string Msg("Edit ");
|
||||
Msg += base->Label.getValue();
|
||||
Gui::Command::openCommand(Msg.c_str());
|
||||
FCMD_SET_EDIT(base);
|
||||
Gui::cmdSetEdit(base);
|
||||
}
|
||||
catch (const Base::Exception&) {
|
||||
Gui::Command::abortCommand();
|
||||
|
||||
Reference in New Issue
Block a user