+ whitespace fixes
This commit is contained in:
parent
f8eb61fdf8
commit
994fbd072a
|
@ -460,7 +460,7 @@ PyObject* Application::sSendActiveView(PyObject * /*self*/, PyObject *args,PyObj
|
|||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sGetMainWindow(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -487,7 +487,7 @@ PyObject* Application::sUpdateGui(PyObject * /*self*/, PyObject *args,PyObject *
|
|||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sUpdateLocale(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -498,7 +498,7 @@ PyObject* Application::sUpdateLocale(PyObject * /*self*/, PyObject *args,PyObjec
|
|||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sGetLocale(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -507,7 +507,7 @@ PyObject* Application::sGetLocale(PyObject * /*self*/, PyObject *args,PyObject *
|
|||
|
||||
std::string locale = Translator::instance()->activeLanguage();
|
||||
return PyString_FromString(locale.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sCreateDialog(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -526,7 +526,7 @@ PyObject* Application::sCreateDialog(PyObject * /*self*/, PyObject *args,PyObjec
|
|||
}
|
||||
|
||||
return pPyResource;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sAddPreferencePage(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -545,7 +545,7 @@ PyObject* Application::sAddPreferencePage(PyObject * /*self*/, PyObject *args,Py
|
|||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sActivateWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -586,7 +586,7 @@ PyObject* Application::sActivateWorkbenchHandler(PyObject * /*self*/, PyObject *
|
|||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sAddWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -664,7 +664,7 @@ PyObject* Application::sRemoveWorkbenchHandler(PyObject * /*self*/, PyObject *ar
|
|||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sGetWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -681,13 +681,13 @@ PyObject* Application::sGetWorkbenchHandler(PyObject * /*self*/, PyObject *args,
|
|||
|
||||
Py_INCREF(pcWorkbench);
|
||||
return pcWorkbench;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sListWorkbenchHandlers(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
Py_INCREF(Instance->_pcWorkbenchDictionary);
|
||||
return Instance->_pcWorkbenchDictionary;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sActiveWorkbenchHandler(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -711,7 +711,7 @@ PyObject* Application::sActiveWorkbenchHandler(PyObject * /*self*/, PyObject *ar
|
|||
// object get incremented
|
||||
Py_INCREF(pcWorkbench);
|
||||
return pcWorkbench;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sAddResPath(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -842,7 +842,7 @@ PyObject* Application::sAddCommand(PyObject * /*self*/, PyObject *args,PyObject
|
|||
Application::Instance->commandManager().addCommand(new PythonCommand(pName,pcCmdObj,source.c_str()));
|
||||
#else
|
||||
try {
|
||||
Application::Instance->commandManager().addCommand(new PythonCommand(pName,pcCmdObj,pSource));
|
||||
Application::Instance->commandManager().addCommand(new PythonCommand(pName,pcCmdObj,pSource));
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
PyErr_SetString(Base::BaseExceptionFreeCADError, e.what());
|
||||
|
@ -873,7 +873,7 @@ PyObject* Application::sRunCommand(PyObject * /*self*/, PyObject *args,PyObject
|
|||
PyErr_Format(Base::BaseExceptionFreeCADError, "No such command '%s'", pName);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* Application::sDoCommand(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
|
||||
{
|
||||
|
@ -908,4 +908,4 @@ PyObject* Application::sShowDownloads(PyObject * /*self*/, PyObject *args,PyObje
|
|||
return NULL; // NULL triggers exception
|
||||
Gui::Dialog::DownloadManager::getInstance();
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user