| 1130 | } |
| 1131 | |
| 1132 | PyObject* ApplicationPy::sSendActiveView(PyObject* /*self*/, PyObject* args) |
| 1133 | { |
| 1134 | char* psCommandStr = nullptr; |
| 1135 | // NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast) |
| 1136 | PyObject* suppress = Py_False; |
| 1137 | if (!PyArg_ParseTuple(args, "s|O!", &psCommandStr, &PyBool_Type, &suppress)) { |
| 1138 | return nullptr; |
| 1139 | } |
| 1140 | |
| 1141 | requirePythonMainThread("FreeCADGui.SendMsgToActiveView"); |
| 1142 | |
| 1143 | if (!Application::Instance->sendMsgToActiveView(psCommandStr)) { |
| 1144 | if (!Base::asBoolean(suppress)) { |
| 1145 | Base::Console().warning("Unknown view command: %s\n", psCommandStr); |
| 1146 | } |
| 1147 | } |
| 1148 | |
| 1149 | Py_Return; |
| 1150 | } |
| 1151 | |
| 1152 | PyObject* ApplicationPy::sSendFocusView(PyObject* /*self*/, PyObject* args) |
| 1153 | { |
nothing calls this directly
no test coverage detected