The console class This class manage all the stdio stuff. More...

#include <Console.h>

Public Types

enum  ConnectionMode { Direct = 0 , Queued =1 }
 
enum  ConsoleMode { Verbose = 1 }
 enumaration for the console modes More...
 
enum  FreeCAD_ConsoleMsgType { MsgType_Txt = 1 , MsgType_Log = 2 , MsgType_Wrn = 4 , MsgType_Err = 8 }
 

Public Member Functions

void AttachObserver (ILogger *pcObserver)
 Attaches an Observer to FCConsole. More...
 
void DetachObserver (ILogger *pcObserver)
 Detaches an Observer from FCConsole. More...
 
void EnableRefresh (bool enable)
 
virtual void Error (const char *pMsg,...)
 Prints a error Message. More...
 
ILoggerGet (const char *Name) const
 
int * GetLogLevel (const char *tag, bool create=true)
 
bool IsMsgTypeEnabled (const char *sObs, FreeCAD_ConsoleMsgType type) const
 Enables or disables message types of a certain console observer. More...
 
virtual void Log (const char *pMsg,...)
 Prints a log Message. More...
 
int LogLevel (int level) const
 
virtual void Message (const char *pMsg,...)
 Prints a Message. More...
 
void NotifyError (const char *sMsg)
 
void NotifyLog (const char *sMsg)
 
void NotifyMessage (const char *sMsg)
 
void NotifyWarning (const char *sMsg)
 
void Refresh ()
 
void SetConnectionMode (ConnectionMode mode)
 
void SetConsoleMode (ConsoleMode m)
 Change mode. More...
 
void SetDefaultLogLevel (int level)
 
ConsoleMsgFlags SetEnabledMsgType (const char *sObs, ConsoleMsgFlags type, bool b)
 Enables or disables message types of a certain console observer. More...
 
void UnsetConsoleMode (ConsoleMode m)
 Change mode. More...
 
virtual void Warning (const char *pMsg,...)
 Prints a warning Message. More...
 

Static Public Member Functions

static ConsoleSingletonInstance (void)
 singleton More...
 

Static Public Attributes

static const unsigned int BufferSize = 4024
 
static PyMethodDef Methods []
 

Protected Member Functions

 ConsoleSingleton (void)
 
virtual ~ConsoleSingleton ()
 

Static Protected Member Functions

static PyObjectsPyError (PyObject *self, PyObject *args)
 
static PyObjectsPyGetStatus (PyObject *self, PyObject *args)
 
static PyObjectsPyLog (PyObject *self, PyObject *args)
 
static PyObjectsPyMessage (PyObject *self, PyObject *args)
 
static PyObjectsPySetStatus (PyObject *self, PyObject *args)
 
static PyObjectsPyWarning (PyObject *self, PyObject *args)
 

Protected Attributes

ConnectionMode connectionMode
 

Friends

class ConsoleOutput
 

Detailed Description

The console class This class manage all the stdio stuff.

This includes Messages, Warnings, Log entries and Errors. The incoming Messages are distributed with the FCConsoleObserver. The FCConsole class itself makes no IO, it's more like a manager.

ConsoleSingleton is a singleton! That means you can access the only instance of the class from every where in c++ by simply using:
#include <Base/Console.h>
Base::Console().Log("Stage: %d",i);
virtual void Log(const char *pMsg,...)
Prints a log Message.
Definition: Console.cpp:334
ConsoleSingleton & Console(void)
Access to the Console This method is used to gain access to the one and only instance of the ConsoleS...
Definition: Console.h:623
ConsoleSingleton is able to switch between several modes to, e.g. switch the logging on or off, or treat Warnings as Errors, and so on...
See also
ConsoleObserver

Member Enumeration Documentation

◆ ConnectionMode

Enumerator
Direct 
Queued 

◆ ConsoleMode

enumaration for the console modes

Enumerator
Verbose 

◆ FreeCAD_ConsoleMsgType

Enumerator
MsgType_Txt 
MsgType_Log 
MsgType_Wrn 
MsgType_Err 

Constructor & Destructor Documentation

◆ ConsoleSingleton()

ConsoleSingleton::ConsoleSingleton ( void  )
protected

Referenced by Instance().

◆ ~ConsoleSingleton()

ConsoleSingleton::~ConsoleSingleton ( )
protectedvirtual

Member Function Documentation

◆ AttachObserver()

void ConsoleSingleton::AttachObserver ( ILogger pcObserver)

Attaches an Observer to FCConsole.

Attaches an Observer to Console Use this method to attach a ILogger derived class to the Console.

After the observer is attached all messages will also be forwarded to it.

See also
ILogger

Referenced by CmdTestConsoleOutput::activated(), Gui::DockWnd::ReportOutput::ReportOutput(), Gui::SplashObserver::SplashObserver(), and Gui::StatusBarObserver::StatusBarObserver().

◆ DetachObserver()

void ConsoleSingleton::DetachObserver ( ILogger pcObserver)

Detaches an Observer from FCConsole.

Detaches an Observer from Console Use this method to detach a ILogger derived class.

After detaching you can destruct the Observer or reinsert it later.

See also
ILogger

Referenced by CmdTestConsoleOutput::activated(), App::Application::destructObserver(), Gui::DockWnd::ReportOutput::~ReportOutput(), Gui::SplashObserver::~SplashObserver(), and Gui::StatusBarObserver::~StatusBarObserver().

◆ EnableRefresh()

◆ Error()

void ConsoleSingleton::Error ( const char *  pMsg,
  ... 
)
virtual

Prints a error Message.

Prints a Message This method issues an Error which makes some execution impossible.

Errors are used to get the users attention. That means when FreeCAD is running in GUI mode an Error Message Box pops up. In console mode a colored message is printed to the console! Don't use this carelessly. For information purposes the 'Log' or 'Message' methods are more appropriate.

You can use a printf like interface like:
Console().Error("Something really bad in %s happened\n",str);
virtual void Error(const char *pMsg,...)
Prints a error Message.
Definition: Console.cpp:312
See also
Message
Warning
Log

Referenced by MeshPartGui::Tessellation::accept(), ReverseEngineeringGui::Segmentation::accept(), TechDrawGui::TaskWeldingSymbol::accept(), Gui::PythonCommand::activated(), Gui::PythonGroupCommand::activated(), CmdTestConsoleOutput::activated(), Gui::StdCmdDownloadOnlineHelp::activated(), CmdSketcherConstrainBlock::activated(), CmdSketcherConstrainPerpendicular::activated(), CmdSketcherConstrainTangent::activated(), Gui::Application::activateWorkbench(), Sketcher::Sketch::addAngleAtPointConstraint(), TechDraw::DrawViewPart::addCenterLinesToGeom(), Sketcher::Sketch::addConstraints(), Sketcher::SketchObject::addCopy(), Sketcher::SketchObject::addExternal(), TechDraw::DrawProjGroup::addProjection(), Sketcher::Sketch::addSnellsLawConstraint(), Sketcher::SketchObject::addSymmetric(), Sketcher::Sketch::addTangentConstraint(), Gui::CommandManager::addTo(), TechDraw::DrawViewClipPy::addView(), TechDrawGui::QGVPage::addWeldSymbol(), Measure::Measurement::angle(), TechDraw::AOE::AOE(), TechDrawGui::TaskSectionView::apply(), CmdSketcherConstrainBlock::applyConstraint(), CmdSketcherConstrainPerpendicular::applyConstraint(), CmdSketcherConstrainTangent::applyConstraint(), TechDraw::DrawProjGroup::arrangeViewPointers(), TechDraw::BaseGeom::baseFactory(), TechDrawGui::QGIFace::buildPixHatch(), TechDraw::CenterLine::calcEndPoints(), Sketcher::SketchObject::carbonCopy(), SurfaceGui::GeomFillSurface::changeFillType(), ParameterManager::CheckDocument(), Cloud::Module::cloudRestore(), Gui::cmdAppObjectArgs(), Gui::cmdGuiObjectArgs(), Gui::MacroManager::commit(), TechDrawGui::QGIViewDimension::constructDimensionArc(), TechDrawGui::QGIViewDimension::constructDimensionLine(), Sketcher::SketchObject::convertToNURBS(), TechDrawGui::Grabber3d::copyActiveViewToSvgFile(), Gui::PythonCommand::createAction(), Gui::PythonGroupCommand::createAction(), TechDrawGui::TaskActiveView::createActiveView(), TechDrawGui::QGISVGTemplate::createClickHandles(), Gui::WidgetFactoryInst::createPreferencePage(), Gui::WidgetFactoryInst::createPrefWidget(), Gui::WidgetFactoryInst::createWidget(), Sketcher::SketchObject::decreaseBSplineDegree(), Sketcher::SketchObject::delAllExternal(), Sketcher::SketchObject::delExternal(), Measure::Measurement::delta(), Gui::doCommandT(), FemGui::ViewProviderFemPostObject::doubleClicked(), PartGui::ViewProviderPart::doubleClicked(), TechDrawGui::QGIViewDimension::draw(), SketcherGui::ViewProviderSketch::draw(), TechDrawGui::QGIViewDimension::drawAngle(), TechDrawGui::QGIViewDimension::drawDiameter(), TechDrawGui::QGIViewDimension::drawDistanceExecutive(), TechDrawGui::QGIViewDimension::drawRadiusExecutive(), TechDrawGui::TaskDetail::editByHighlight(), SpreadsheetGui::SheetView::editingFinished(), Gui::ViewProvider::eventCallback(), Import::FeatureImportIges::Execute(), Import::FeatureImportStep::Execute(), TechDraw::DrawSVGTemplate::execute(), Sketcher::SketchObject::execute(), TechDraw::DrawViewArch::execute(), TechDraw::DrawViewDetail::execute(), TechDraw::DrawViewDimension::execute(), TechDraw::DrawViewPart::execute(), TechDraw::DrawViewSection::execute(), Fem::FemVTKTools::exportFreeCADResult(), Part::AttachExtension::extensionOnChanged(), PartDesignGui::TaskTransformedParameters::fillAxisCombo(), PartDesignGui::TaskTransformedParameters::fillPlanesCombo(), TechDrawGui::QGIViewPart::geomToPainterPath(), TechDraw::DrawViewPartPy::getCenterLine(), TechDraw::DrawViewPartPy::getCenterLineBySelection(), TechDraw::DrawViewPartPy::getCosmeticEdge(), TechDraw::DrawViewPartPy::getCosmeticEdgeBySelection(), TechDraw::DrawGeomHatch::getDecodedSpecsFromFile(), TechDraw::DrawProjGroup::getDirsFromFront(), TechDraw::DrawSVGTemplatePy::getEditFieldContent(), TechDraw::DrawViewDimension::getPointsEdgeVert(), TechDraw::DrawViewDimension::getPointsOneEdge(), TechDraw::DrawViewDimension::getPointsTwoEdges(), TechDraw::DrawViewDimension::getPointsTwoVerts(), TechDraw::LineGroup::getRecordFromFile(), TechDraw::ShapeExtractor::getShapes(), TechDraw::ShapeExtractor::getShapesFused(), TechDraw::DrawViewSpreadsheet::getSheetImage(), TechDraw::DrawViewPart::getSourceShape(), TechDraw::DrawViewPart::getSourceShapeFused(), Fem::FemVTKTools::importFreeCADResult(), Fem::FemVTKTools::importVTKMesh(), Sketcher::SketchObject::increaseBSplineDegree(), Gui::Application::initApplication(), Gui::Command::invoke(), TechDraw::DrawProjectSplit::isOnEdge(), Measure::Measurement::length(), TechDraw::LineGroup::lineGroupFactory(), StartGui::Workbench::loadStartPage(), TechDrawGui::QGIFace::loadSvgHatch(), TechDrawGui::QGITile::makeSymbol(), SketcherGui::makeTangentToArcOfEllipseviaNewPoint(), SketcherGui::makeTangentToArcOfHyperbolaviaNewPoint(), SketcherGui::makeTangentToArcOfParabolaviaNewPoint(), SketcherGui::makeTangentToEllipseviaNewPoint(), Measure::Measurement::massCenter(), Sketcher::SketchObject::modifyBSplineKnotMultiplicity(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), Base::Subject< _MessageType >::Notify(), Gui::GUIApplication::notify(), Sketcher::SketchObject::onChanged(), Gui::ViewProviderOrigin::onChanged(), SketcherGui::ViewProviderSketch::onDelete(), Gui::Application::onLastWindowClosed(), Gui::GestureNavigationStyle::onRollGesture(), DrawSketchHandlerExternal::onSelectionChanged(), DrawSketchHandlerCarbonCopy::onSelectionChanged(), TechDrawGui::TaskLeaderLine::onTrackerClicked(), TechDrawGui::TaskCosVertex::onTrackerFinished(), TechDrawGui::TaskLeaderLine::onTrackerFinished(), App::Application::openDocuments(), Gui::Dialog::PreferenceUiForm::PreferenceUiForm(), DrawSketchHandlerBSpline::pressButton(), App::Application::processCmdLineFiles(), App::Application::processFiles(), TechDraw::GeometryObject::projectShape(), TechDraw::GeometryObject::projectShapeWithPolygonAlgo(), Measure::Measurement::radius(), Base::XMLReader::readFiles(), App::Document::readObjects(), Fem::FemVTKTools::readResult(), Fem::FemVTKTools::readVTKMesh(), PartDesignGui::ViewProviderTransformed::recomputeFeature(), DrawSketchHandlerLine::releaseButton(), DrawSketchHandlerBox::releaseButton(), DrawSketchHandlerLineSet::releaseButton(), DrawSketchHandlerArc::releaseButton(), DrawSketchHandler3PointArc::releaseButton(), DrawSketchHandlerCircle::releaseButton(), DrawSketchHandlerArcOfEllipse::releaseButton(), DrawSketchHandler3PointCircle::releaseButton(), DrawSketchHandlerPoint::releaseButton(), DrawSketchHandlerFillet::releaseButton(), DrawSketchHandlerTrimming::releaseButton(), DrawSketchHandlerExtend::releaseButton(), DrawSketchHandlerSlot::releaseButton(), DrawSketchHandlerRegularPolygon::releaseButton(), DrawSketchHandlerCopy::releaseButton(), DrawSketchHandlerRectangularArray::releaseButton(), DrawSketchHandlerArcOfHyperbola::releaseButton(), DrawSketchHandlerArcOfParabola::releaseButton(), DrawSketchHandlerBSpline::releaseButton(), TechDraw::DrawViewClipPy::removeView(), Base::PyException::ReportException(), Gui::View3DInventorViewer::resetEditingRoot(), App::PropertyContainer::Restore(), Part::PropertyGeometryList::Restore(), PartDesign::Fillet::Restore(), PartDesign::ProfileBased::Restore(), PartDesign::Transformed::Restore(), TechDraw::PropertyCenterLineList::Restore(), TechDraw::PropertyCosmeticEdgeList::Restore(), TechDraw::PropertyCosmeticVertexList::Restore(), TechDraw::PropertyGeomFormatList::Restore(), Part::Primitive::Restore(), PartDesign::Chamfer::Restore(), App::Document::restore(), Gui::Document::RestoreDocFile(), Fem::PropertyPostDataObject::RestoreDocFile(), Part::PropertyPartShape::RestoreDocFile(), App::ExtensionContainer::restoreExtensions(), Gui::ConsoleErrorTask::run(), Sandbox::PythonThread::run(), Gui::Application::runApplication(), TechDraw::CenterLine::Save(), App::PropertyContainer::Save(), Fem::PropertyPostDataObject::SaveDocFile(), Part::PropertyPartShape::SaveDocFile(), App::ExtensionContainer::saveExtensions(), TechDraw::CenterLine::scaledGeometry(), TechDraw::CosmeticVertexPy::setColor(), TechDraw::CenterLinePy::setEdges(), SketcherGui::ViewProviderSketch::setEdit(), TechDraw::DrawSVGTemplatePy::setEditFieldContent(), SketcherGui::ViewProviderSketch::setEditViewer(), TechDraw::CenterLinePy::setFaces(), TechDraw::CenterLinePy::setFormat(), TechDraw::CosmeticEdgePy::setFormat(), TechDraw::CenterLinePy::setPoints(), Gui::PropertyEditor::PropertyItem::setPropertyValue(), Gui::ViewProviderOrigin::setTemporaryVisibility(), Gui::Application::sExport(), Gui::Application::sInsert(), Sketcher::SketchObject::solve(), Gui::Application::sOpen(), sPyError(), Gui::NetworkRetriever::startDownload(), TechDrawGui::QGIViewSymbol::symbolToSvg(), Base::RedirectStdError::sync(), MeshPart::MeshingOutput::sync(), TechDrawGui::TaskActiveView::TaskActiveView(), PartDesignGui::TaskBoxPrimitives::TaskBoxPrimitives(), TechDrawGui::TaskCenterLine::TaskCenterLine(), TechDrawGui::TaskCosmeticLine::TaskCosmeticLine(), TechDrawGui::TaskCosVertex::TaskCosVertex(), TechDrawGui::TaskDetail::TaskDetail(), Gui::TaskView::TaskDialogPython::TaskDialogPython(), TechDrawGui::TaskLeaderLine::TaskLeaderLine(), TechDrawGui::TaskRichAnno::TaskRichAnno(), TechDrawGui::TaskSectionView::TaskSectionView(), TechDrawGui::TaskWeldingSymbol::TaskWeldingSymbol(), Gui::AutoSaver::timerEvent(), App::PropertyPythonObject::toString(), SketcherGui::ViewProviderSketch::unsetEdit(), PartDesignGui::ViewProviderAddSub::updateAddSubShapeIndicator(), Gui::ViewProviderVRMLObject::updateData(), FemGui::ViewProviderFemConstraintBearing::updateData(), PartGui::ViewProviderCurveNet::updateData(), TechDrawGui::TaskDetail::updateDetail(), PartDesignGui::ViewProviderBody::updateOriginDatumSize(), Gui::ViewProviderOriginGroupExtension::updateOriginSize(), Gui::OutputStderr::write(), Gui::PythonDebugStderr::write(), Fem::FemVTKTools::writeResult(), Fem::FemVTKTools::writeVTKMesh(), PartDesignGui::TaskBoxPrimitives::~TaskBoxPrimitives(), PartDesignGui::TaskLinearPatternParameters::~TaskLinearPatternParameters(), PartDesignGui::TaskMirroredParameters::~TaskMirroredParameters(), and PartDesignGui::TaskPolarPatternParameters::~TaskPolarPatternParameters().

◆ Get()

ILogger * ConsoleSingleton::Get ( const char *  Name) const

◆ GetLogLevel()

int * ConsoleSingleton::GetLogLevel ( const char *  tag,
bool  create = true 
)

◆ Instance()

ConsoleSingleton & ConsoleSingleton::Instance ( void  )
static

◆ IsMsgTypeEnabled()

bool ConsoleSingleton::IsMsgTypeEnabled ( const char *  sObs,
FreeCAD_ConsoleMsgType  type 
) const

Enables or disables message types of a certain console observer.

References Base::ILogger::bErr, Base::ILogger::bLog, Base::ILogger::bMsg, Base::ILogger::bWrn, Get(), MsgType_Err, MsgType_Log, MsgType_Txt, and MsgType_Wrn.

◆ Log()

void ConsoleSingleton::Log ( const char *  pMsg,
  ... 
)
virtual

Prints a log Message.

Prints a Message This method is appropriate for development and tracking purposes.

It can be used to track execution of algorithms and functions. The normal user doesn't need to see it, it's more for developers and experienced users. So in normal user mode the logging is switched off.

You can use a printf-like interface for example:
Console().Log("Execute part %d in algorithm %s\n",i,str);
See also
Message
Warning
Error

Referenced by Gui::Application::activateWorkbench(), TechDraw::GeometryObject::addGeomFromCompound(), TechDraw::DrawProjGroup::addProjection(), TechDraw::DrawProjGroup::arrangeViewPointers(), TechDraw::BSpline::asCircle(), TechDrawGui::ViewProviderPage::attach(), TechDrawGui::MDIViewPage::attachView(), Sketcher::SketchAnalysis::autoconstraint(), Gui::NS::AwaitingMoveState::AwaitingMoveState(), Gui::NS::AwaitingReleaseState::AwaitingReleaseState(), TechDraw::BezierSegment::BezierSegment(), TechDraw::BSpline::BSpline(), TechDraw::DrawViewPart::buildGeometryObject(), TechDraw::GeometryObject::calcBoundingBox(), TechDraw::DrawProjGroup::calculateAutomaticScale(), Gui::MacroManager::cancel(), Gui::ViewProvider::canDropObject(), TechDraw::GeometryUtils::chainGeoms(), Sketcher::SketchObject::changeConstraintsLocking(), PartDesignGui::TaskHoleParameters::changedObject(), TechDraw::DrawViewDimension::checkReferences2D(), TechDraw::DrawViewPart::checkXDirection(), Gui::MacroManager::commit(), App::PropertyFileIncluded::Copy(), TechDrawGui::Grabber3d::copyActiveViewToSvgFile(), TechDrawGui::TaskCenterLine::createCenterLine(), Mesh::GTSAlgos::createGTSSurface(), FemGui::ViewProviderFEMMeshBuilder::createMesh(), Gui::WidgetFactoryInst::createPreferencePage(), Gui::WidgetFactoryInst::createWidget(), Gui::WorkbenchManager::createWorkbench(), Gui::Dialog::ButtonModel::data(), App::Application::destruct(), TechDraw::DrawViewDetail::detailExec(), GCS::System::diagnose(), App::Document::Document(), MeshGui::ViewProviderMeshTransformDemolding::DragEndCallback(), TechDrawGui::QGIViewDimension::draw(), TechDrawGui::QGIViewBalloon::drawBalloon(), SketcherGui::ViewProviderSketch::editDoubleClicked(), Gui::ViewerEventFilter::eventFilter(), Drawing::FeaturePage::execute(), Fem::FemMeshShapeNetgenObject::execute(), Import::FeatureImportIges::Execute(), Import::FeatureImportStep::Execute(), Part::CurveNet::execute(), Part::ImportBrep::execute(), Part::ImportIges::execute(), Part::ImportStep::execute(), Raytracing::LuxProject::execute(), Raytracing::RayProject::execute(), TechDraw::DrawSVGTemplate::execute(), TechDraw::DrawViewDimension::execute(), TechDraw::DrawViewMulti::execute(), TechDraw::DrawViewSymbol::execute(), Fem::exportFemMeshCells(), Fem::exportFemMeshFaces(), Fem::FemVTKTools::exportFreeCADResult(), Fem::FemVTKTools::exportVTKMesh(), Gui::ViewProviderGroupExtension::extensionCanDropObject(), TechDraw::DrawGeomHatch::extractFace(), TechDraw::DrawViewPart::extractFaces(), Sketcher::SketchObject::fillet(), MeshCore::MeshAlgorithm::FillupHole(), MeshCore::MeshTopoAlgorithm::FillupHoles(), MeshCore::CylinderFit::Fit(), MeshGui::SoFCMeshFaceSet::generatePrimitives(), MeshGui::SoFCMeshObjectShape::generatePrimitives(), MeshGui::SoFCMeshSegmentShape::generatePrimitives(), Gui::NS::GestureState::GestureState(), TechDrawGui::DrawGuiUtil::get3DDirAndRot(), TechDraw::DrawProjGroup::getAnchorDirection(), TechDraw::DrawLeaderLine::getBaseScale(), TechDraw::DrawProjGroup::getBoundingBox(), TechDraw::BSpline::getCircleParms(), TechDrawGui::QGIView::getClipGroup(), TechDraw::DrawViewSection::getCSFromBase(), TechDraw::DrawProjectSplit::getEdges(), TechDraw::DrawSVGTemplate::getEditableTextsFromTemplate(), TechDraw::DrawViewPart::getFaceEdgesByIndex(), TechDraw::DrawGeomHatch::getFaceOverlay(), TechDraw::DrawViewPart::getGeomByIndex(), TechDraw::DrawUtil::getIndexFromName(), TechDrawGui::ViewProviderPage::getMDIViewPage(), Fem::FemMesh::getNodesBySolid(), TechDrawGui::Grabber3d::getPaperScale(), TechDraw::LineSet::getPatternStartPoint(), TechDrawGui::DrawGuiUtil::getProjDirFromFace(), TechDraw::DrawProjGroup::getProjItem(), TechDraw::DrawProjGroup::getProjObj(), TechDraw::DrawViewPart::getProjVertexByCosTag(), TechDraw::DrawViewPart::getProjVertexByIndex(), TechDraw::DrawView::getScale(), TechDraw::DrawLeaderLine::getScale(), TechDraw::DrawProjGroupItem::getScale(), TechDraw::DrawViewSection::getSectionCS(), TechDraw::ShapeExtractor::getShapesFromObject(), TechDraw::DrawGeomHatch::getTrimmedLines(), TechDraw::DrawPage::handleChangedPropertyType(), TechDraw::DrawView::handleChangedPropertyType(), PartGui::ViewProviderCurveNet::handleEvent(), TechDraw::DrawProjGroup::hasProjection(), Gui::NS::IdleState::IdleState(), Fem::FemVTKTools::importFreeCADResult(), Base::Type::importModule(), Part::ImportStepParts(), Fem::FemVTKTools::importVTKMesh(), Gui::GuiNativeEvent::initSpaceball(), Gui::NS::InteractState::InteractState(), Gui::Command::invoke(), TechDraw::DrawUtil::isCrazy(), Fem::FemPostPipeline::load(), Mesh::MeshObject::load(), Gui::NS::Event::log(), GCS::SolverReportingManager::LogToConsole(), MeshPart::CurveProjectorWithToolMesh::makeToolMesh(), TechDraw::mirrorShape(), TechDrawGui::QGIPrimPath::mousePressEvent(), TechDraw::moveShape(), Gui::GUIApplication::notify(), Gui::WindowParameter::OnChange(), TechDraw::DrawProjGroup::onChanged(), TechDraw::DrawViewSymbol::onChanged(), Gui::Document::onRelabel(), Gui::GestureNavigationStyle::onRollGesture(), TechDrawGui::MDIViewPage::onSelectionChanged(), Gui::Document::onUpdate(), Gui::View3DInventor::onUpdate(), Gui::MacroManager::open(), Gui::NS::PanState::PanState(), TechDraw::DrawViewPart::partExec(), TechDraw::EdgeWalker::perform(), Sketcher::SketchObject::port_reversedExternalArcs(), Gui::GestureNavigationStyle::EventQueue::post(), App::Application::processFiles(), TechDraw::DrawSVGTemplate::processTemplate(), MeshPart::CurveProjectorSimple::projectCurve(), MeshPart::CurveProjectorShape::projectCurve(), MeshPart::MeshProjection::projectEdgeToEdge(), TechDraw::GeometryObject::projectShape(), TechDraw::GeometryObject::projectShapeWithPolygonAlgo(), TechDraw::DrawProjGroup::purgeProjections(), Base::PyObjectBase::PyObjectBase(), TestJtReader::read(), Fem::FemVTKTools::readResult(), Fem::FemVTKTools::readVTKMesh(), App::Document::recompute(), TechDrawGui::TaskProjGroup::reject(), TechDrawGui::TaskLeaderLine::removeFeature(), TechDrawGui::TaskRichAnno::removeFeature(), TechDraw::DrawProjGroup::removeProjection(), TechDraw::rotateShape(), Gui::NS::RotateState::RotateState(), Gui::ConsoleLogTask::run(), App::Application::runApplication(), Gui::Application::runApplication(), Gui::AutoSaver::saveDocument(), TechDraw::scaleShape(), TechDrawGui::TaskProjGroup::scaleTypeChanged(), Gui::Application::setActiveDocument(), TechDrawGui::QGTracker::setCircleFromPoints(), FemGui::ViewProviderFemMeshPy::setNodeColor(), TechDrawGui::QGTracker::setPathFromPoints(), TechDrawGui::QGTracker::setSquareFromPoints(), Sketcher::Sketch::setUpSketch(), Gui::Application::slotDeleteDocument(), Sketcher::Sketch::solve(), TechDraw::EdgeWalker::sortStrip(), sPyLog(), FcLodHandler::startLod(), Gui::GUISingleApplication::Private::startServer(), Gui::NS::StickyPanState::StickyPanState(), Base::RedirectStdOutput::sync(), Base::RedirectStdLog::sync(), FemGui::TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(), FemGui::TaskPostDisplay::TaskPostDisplay(), FemGui::TaskPostScalarClip::TaskPostScalarClip(), FemGui::TaskPostWarpVector::TaskPostWarpVector(), Gui::NS::TiltState::TiltState(), Raytracing::PovTools::transferToArray(), SpaceNavigatorDevice::translateEvent(), MeshCore::AbstractPolygonTriangulator::TriangulatePolygon(), TechDraw::DrawPage::unsetupObject(), TechDraw::DrawProjGroup::updateChildrenEnforce(), TechDraw::DrawProjGroup::updateChildrenLock(), TechDraw::DrawProjGroup::updateChildrenScale(), TechDraw::DrawProjGroup::updateChildrenSource(), TechDrawGui::MDIViewPage::updateTemplate(), TechDrawGui::QGIRichAnno::updateView(), TechDraw::DrawProjGroup::updateViews(), PartGui::ViewProviderPartExt::updateVisual(), Gui::Application::viewActivated(), TechDraw::Wire::Wire(), Fem::FemMesh::write(), Fem::FemVTKTools::writeResult(), Raytracing::LuxTools::writeShape(), Raytracing::PovTools::writeShape(), Raytracing::PovTools::writeShapeCSV(), Fem::FemVTKTools::writeVTKMesh(), Fem::FemMesh::writeZ88(), Gui::GuiNativeEvent::x11EventFilter(), Gui::Application::~Application(), App::Document::~Document(), TechDraw::DrawTemplate::~DrawTemplate(), Gui::GuiNativeEvent::~GuiNativeEvent(), and Base::PyObjectBase::~PyObjectBase().

◆ LogLevel()

int Base::ConsoleSingleton::LogLevel ( int  level) const

Referenced by Base::LogLevel::level().

◆ Message()

void ConsoleSingleton::Message ( const char *  pMsg,
  ... 
)
virtual

Prints a Message.

Prints a Message This method issues a Message.

Messages are used to show some non vital information. That means when FreeCAD is running in GUI mode a Message appears on the status bar. In console mode a message is printed to the console.

You can use a printf like interface like:
Console().Message("Doing something important %d times\n",i);
virtual void Message(const char *pMsg,...)
Prints a Message.
Definition: Console.cpp:255
See also
Warning
Error
Log

Referenced by StdCmdViewIvIssueCamPos::activated(), CmdSandboxEventLoop::activated(), TechDraw::DrawViewPart::add1CEToGE(), TechDraw::DrawViewPart::add1CLToGE(), TechDraw::DrawViewPart::add1CVToGV(), TechDraw::GeometryObject::addCosmeticVertex(), TechDraw::DrawUtil::angleWithX(), TechDrawGui::TaskSectionView::applyAligned(), TechDraw::BaseGeom::baseFactory(), PartGui::TaskMeasureLinear::buildDimension(), PartGui::TaskMeasureAngular::buildDimension(), TechDraw::CenterLine::calcEndPoints(), TechDraw::CenterLine::calcEndPoints2Lines(), TechDrawGui::TaskRichAnno::calcTextStartPos(), TechDraw::DrawUtil::copyFile(), TechDraw::DrawUtil::countEdges(), TechDraw::DrawUtil::countFaces(), TechDraw::DrawUtil::countWires(), TechDrawGui::QGISVGTemplate::createClickHandles(), Fem::createObjectByType(), MeshGui::ViewProviderMeshCurvature::curvatureInfoCallback(), TechDraw::DrawViewDetail::detailExec(), Part::TopoShapePy::distToShape(), TechDrawGui::QGIWeldSymbol::drawTile(), TechDrawGui::QGIViewPart::drawViewPart(), TechDraw::LineFormat::dump(), TechDraw::CosmeticVertex::dump(), TechDraw::CosmeticEdge::dump(), TechDraw::CenterLine::dump(), TechDraw::DashSpec::dump(), TechDraw::PATLineSpec::dump(), TechDraw::LineGroup::dump(), TechDraw::GeomFormat::dump(), TechDraw::Vertex::dump(), TechDraw::DrawUtil::dump1Vertex(), TechDraw::DrawViewPart::dumpCosEdges(), TechDraw::DrawViewPart::dumpCosVerts(), TechDraw::DrawUtil::dumpCS(), TechDraw::DrawUtil::dumpCS3(), TechDraw::DrawUtil::dumpEdge(), TechDraw::DrawUtil::dumpEdges(), TechDrawGui::QGEPath::dumpGhostPoints(), TechDraw::DrawProjGroup::dumpISO(), PartGui::dumpLinearResults(), TechDrawGui::QGEPath::dumpMarkerPos(), TechDrawGui::QGIViewPart::dumpPath(), TechDrawGui::DrawGuiUtil::dumpPointF(), TechDrawGui::QGIView::dumpRect(), TechDrawGui::DrawGuiUtil::dumpRectF(), TechDraw::DrawUtil::dumpVertexes(), TechDraw::DrawViewPart::dumpVerts(), TechDraw::Ellipse::Ellipse(), PartGui::evaluateAngularPreSelection(), Base::Debugger::exec(), Inspection::Feature::execute(), Sandbox::SandboxObject::execute(), Import::ImpExpDxfWrite::exportBCurve(), Import::ImpExpDxfWrite::exportBSpline(), MeshGui::ViewProviderMesh::faceInfo(), MeshGui::ViewProviderMesh::faceInfoCallback(), MeshGui::ViewProviderMesh::fillHoleCallback(), TechDraw::BaseGeom::findEndPoints(), TechDrawGui::QGIViewDimension::findIsoExt(), MeshCore::SphereFit::Fit(), TechDrawGui::TaskDetail::getAnchorScene(), TechDrawGui::QGILeaderLine::getAttachFromFeature(), TechDraw::CosmeticExtension::getCosmeticEdge(), TechDrawGui::QGEPath::getDeltasFromLeader(), TechDrawGui::ViewProviderPage::getDrawPage(), TechDraw::DrawProjectSplit::getEdges(), TechDraw::DrawSVGTemplate::getEditableTextsFromTemplate(), TechDraw::BaseGeom::getEndPoint(), MeshGui::ViewProviderMesh::getFacetsFromPolygon(), TechDraw::LineGroup::getGroupNamesFromFile(), Fem::getObjectByType(), MeshGui::CylinderFitParameter::getParameter(), TechDraw::PATLineSpec::getPatternList(), CDxfWrite::getPlateFile(), TechDraw::LineGroup::getRecordFromFile(), TechDraw::PATLineSpec::getSpecsForPattern(), TechDraw::BaseGeom::getStartPoint(), TechDraw::DrawViewPart::getViewAxis(), TechDraw::DrawProjGroupItem::getViewAxis(), TechDrawGui::QGILeaderLine::getWayPointsFromFeature(), TechDraw::DrawProjGroupItem::getXDirection(), TechDraw::ShapeExtractor::getXShapes(), TechDraw::DrawProjGroup::getXYPosition(), PartGui::goDimensionAngularNoTask(), MeshGui::ViewProviderMeshNode::handleEvent(), Fem::FemVTKTools::importFreeCADResult(), InspectionGui::ViewProviderInspection::inspectCallback(), TechDraw::DrawUtil::Intersect2d(), ModelRefine::FaceTypedBSpline::isEqual(), TechDraw::DrawProjectSplit::isOnEdge(), TechDraw::PATLineSpec::load(), Gui::MainWindow::loadUrls(), TechDraw::DrawViewPartPy::makeCenterLine(), TechDraw::DrawViewPartPy::makeCosmeticCircle(), TechDraw::DrawViewPartPy::makeCosmeticCircleArc(), TechDraw::DrawViewPartPy::makeCosmeticLine(), TechDraw::DrawViewPartPy::makeCosmeticLine3D(), TechDrawGui::QGILeaderLine::makeLeaderPath(), TechDraw::DrawViewSection::makeLineSets(), Part::TopoShape::makeLoft(), MeshGui::ViewProviderMesh::markPartCallback(), Gui::ViewProviderMeasureDistance::measureDistanceCallback(), MeshGui::DlgEvaluateMeshImp::on_analyzeSelfIntersectionButton_clicked(), Fem::ConstraintFluidBoundary::onChanged(), Sandbox::SandboxObject::onChanged(), PartDesignGui::ViewProviderBody::onChanged(), TechDraw::DrawPage::onChanged(), TechDrawGui::TaskDetail::onHighlightMoved(), FemGui::TaskCreateNodeSet::onSelectionChanged(), TechDrawGui::TaskLeaderLine::onTrackerClicked(), TechDrawGui::TaskCosVertex::onTrackerFinished(), TechDrawGui::TaskLeaderLine::onTrackerFinished(), MeshGui::ViewProviderMesh::partMeshCallback(), FemGui::TaskPostDataAlongLine::pointCallback(), FemGui::TaskPostDataAtPoint::pointCallback(), TechDrawGui::QGVPage::postProcessXml(), TechDraw::DrawSVGTemplate::processTemplate(), Part::ReadNames(), Fem::FemVTKTools::readResult(), TechDraw::DrawProjectSplit::removeDuplicateEdges(), TechDrawGui::TaskLeaderLine::removeFeature(), TechDraw::CosmeticExtension::replaceCenterLine(), TechDraw::DrawViewPartPy::replaceCenterLine(), TechDraw::CosmeticExtension::replaceCosmeticEdge(), TechDraw::DrawViewPartPy::replaceCosmeticEdge(), TechDraw::CosmeticExtension::replaceCosmeticVertex(), TechDraw::DrawViewPartPy::replaceCosmeticVertex(), TechDraw::CosmeticExtension::replaceGeomFormat(), Sandbox::SandboxObject::resetValue(), App::Document::Restore(), TechDrawGui::TaskProjGroup::restoreGroupState(), Part::TopoShape::revolve(), BarThread::run(), Gui::ConsoleMessageTask::run(), Sandbox::DocumentTestThread::run(), MeshTestJob::run(), Gui::Application::runApplication(), TechDraw::CenterLine::Save(), TechDraw::CenterLine::scaledGeometry(), TechDraw::DrawViewSection::sectionExec(), MeshGui::ViewProviderMesh::segmMeshCallback(), Sandbox::SandboxObject::setIntValue(), TechDrawGui::QGTracker::setPoint(), TechDrawGui::QGEPath::showMarkers(), TechDraw::DrawUtil::simpleMinDist(), TechDraw::DrawProjectSplit::split1Edge(), sPyMessage(), TechDrawGui::TaskCenterLine::TaskCenterLine(), TechDraw::DrawProjGroup::updateSecondaryDirs(), TechDrawGui::TaskWeldingSymbol::updateTiles(), Gui::OutputStdout::write(), and Fem::FemVTKTools::writeResult().

◆ NotifyError()

void ConsoleSingleton::NotifyError ( const char *  sMsg)

References Base::Error.

Referenced by Base::ConsoleOutput::customEvent().

◆ NotifyLog()

void ConsoleSingleton::NotifyLog ( const char *  sMsg)

References Base::Log.

Referenced by Base::ConsoleOutput::customEvent().

◆ NotifyMessage()

void ConsoleSingleton::NotifyMessage ( const char *  sMsg)

◆ NotifyWarning()

void ConsoleSingleton::NotifyWarning ( const char *  sMsg)

◆ Refresh()

void ConsoleSingleton::Refresh ( )

◆ SetConnectionMode()

void ConsoleSingleton::SetConnectionMode ( ConnectionMode  mode)

◆ SetConsoleMode()

void ConsoleSingleton::SetConsoleMode ( ConsoleMode  m)

Change mode.

sets the console in a special mode

References Verbose.

◆ SetDefaultLogLevel()

void Base::ConsoleSingleton::SetDefaultLogLevel ( int  level)

◆ SetEnabledMsgType()

ConsoleMsgFlags ConsoleSingleton::SetEnabledMsgType ( const char *  sObs,
ConsoleMsgFlags  type,
bool  b 
)

Enables or disables message types of a certain console observer.

type can be OR'ed with any of the FreeCAD_ConsoleMsgType flags to enable – if b is true – or to disable – if b is false – a console observer with name sObs.

The return value is an OR'ed value of all message types that have changed their state. For example

// switch off warnings and error messages
ConsoleMsgFlags ret = Base::Console().SetEnabledMsgType("myObs",
// do something without notifying observer myObs
...
// restore the former configuration again
Base::Console().SetEnabledMsgType("myObs", ret, true);
@ MsgType_Err
Definition: Console.h:553
@ MsgType_Wrn
Definition: Console.h:552
ConsoleMsgFlags SetEnabledMsgType(const char *sObs, ConsoleMsgFlags type, bool b)
Enables or disables message types of a certain console observer.
Definition: Console.cpp:176
Basic structures used by other FreeCAD components (C++ API)
Definition: Axis.h:30

switches off warnings and error messages and restore the state before the modification. If the observer sObs doesn't exist then nothing happens.

References Base::ILogger::bErr, Base::ILogger::bLog, Base::ILogger::bMsg, Base::ILogger::bWrn, Get(), MsgType_Err, MsgType_Log, MsgType_Txt, and MsgType_Wrn.

Referenced by Gui::MainWindow::loadWindowSettings(), and Gui::BitmapFactoryInst::pixmapFromSvg().

◆ sPyError()

PyObject * ConsoleSingleton::sPyError ( PyObject self,
PyObject args 
)
staticprotected

References Error(), and Instance().

◆ sPyGetStatus()

PyObject * ConsoleSingleton::sPyGetStatus ( PyObject self,
PyObject args 
)
staticprotected

◆ sPyLog()

PyObject * ConsoleSingleton::sPyLog ( PyObject self,
PyObject args 
)
staticprotected

References Instance(), and Log().

◆ sPyMessage()

PyObject * ConsoleSingleton::sPyMessage ( PyObject self,
PyObject args 
)
staticprotected

References Instance(), and Message().

◆ sPySetStatus()

PyObject * ConsoleSingleton::sPySetStatus ( PyObject self,
PyObject args 
)
staticprotected

◆ sPyWarning()

PyObject * ConsoleSingleton::sPyWarning ( PyObject self,
PyObject args 
)
staticprotected

References Instance(), and Warning().

◆ UnsetConsoleMode()

void ConsoleSingleton::UnsetConsoleMode ( ConsoleMode  m)

Change mode.

unsets the console from a special mode

References Verbose.

◆ Warning()

void ConsoleSingleton::Warning ( const char *  pMsg,
  ... 
)
virtual

Prints a warning Message.

Prints a Message This method issues a Warning.

Messages are used to get the users attention. That means when FreeCAD is in GUI mode a Message Box pops up. In console mode a colored message is returned to the console! Don't use this carelessly. For information purposes the 'Log' or 'Message' methods are more appropriate.

You can use a printf like interface like:
Console().Warning("Some defects in %s, loading anyway\n",str);
virtual void Warning(const char *pMsg,...)
Prints a warning Message.
Definition: Console.cpp:292
See also
Message
Error
Log

Referenced by Gui::TaskView::TaskView::accept(), FemGui::TaskDlgCreateNodeSet::accept(), FemGui::TaskDlgMeshShapeNetgen::accept(), FemGui::TaskDlgFemConstraintFluidBoundary::accept(), MeshGui::GmshWidget::accept(), ReverseEngineeringGui::Segmentation::accept(), RobotGui::TaskDlgEdge2Trac::accept(), Sketcher::Sketch::addEqualConstraint(), Sketcher::Sketch::addPerpendicularConstraint(), Gui::CommandManager::addTo(), TechDraw::DrawPage::addView(), Sketcher::SketchAnalysis::analyseMissingPointOnPointCoincident(), TechDraw::DrawUtil::angleWithX(), TechDraw::DrawProjGroup::arrangeViewPointers(), TechDrawGui::ViewProviderDrawingView::attach(), PartDesignGui::TaskFeaturePick::buildFeatures(), TechDrawGui::QGIFace::buildPixHatch(), TechDrawGui::QGIFace::buildSvgHatch(), Gui::PropertyEditor::PropertyEditor::buildUp(), TechDraw::CenterLine::calcEndPoints(), TechDraw::CenterLine::calcEndPoints2Lines(), TechDraw::CenterLine::calcEndPoints2Points(), Attacher::AttachEngine3D::calculateAttachedPlacement(), Attacher::AttachEngineLine::calculateAttachedPlacement(), TechDraw::CenterLine::CenterLineBuilder(), FemGui::TaskDlgMeshShapeNetgen::clicked(), RobotGui::TaskDlgEdge2Trac::clicked(), Base::ConsoleObserverFile::ConsoleObserverFile(), TechDrawGui::Grabber3d::copyActiveViewToSvgFile(), TechDrawGui::QGISVGTemplate::createClickHandles(), PartGui::ViewProvider2DObjectGrid::createGrid(), MeshPart::Mesher::createMesh(), Gui::DocumentItem::createNewItem(), Gui::WidgetFactoryInst::createPreferencePage(), Gui::WidgetFactoryInst::createWidget(), TechDrawGui::QGIFace::dashedPPath(), TechDraw::Preferences::defaultTemplate(), TechDraw::Preferences::defaultTemplateDir(), SketcherGui::ViewProviderSketch::deleteSelected(), TechDraw::DrawViewDetail::detailExec(), GCS::System::diagnose(), TechDrawGui::QGIViewAnnotation::drawAnnotation(), TechDrawGui::QGIViewClip::drawClip(), SketcherGui::ViewProviderSketch::drawConstraintIcons(), TechDrawGui::QGIViewSection::drawSectionFace(), Gui::ViewerEventFilter::eventFilter(), PartDesign::Transformed::execute(), Sketcher::SketchObjectSF::execute(), TechDraw::DrawViewDetail::execute(), TechDraw::DrawViewDimension::execute(), TechDraw::DrawViewPart::execute(), TechDraw::DrawViewSection::execute(), TechDraw::DrawViewSymbol::execute(), Import::ImpExpDxfWrite::exportShape(), TechDraw::DrawViewPart::extractFaces(), TechDraw::GeometryObject::extractGeometry(), Gui::PrefWidget::failedToRestore(), Gui::PrefWidget::failedToSave(), ParameterGrp::FindElement(), ParameterGrp::FindOrCreateElement(), TechDraw::DrawViewSection::findSectionPlaneIntersections(), TechDraw::DrawViewDimension::formatValue(), Path::Toolpath::getCycleTime(), TechDrawGui::QGEPath::getDeltasFromLeader(), TechDraw::DrawViewDimension::getDimValue(), TechDraw::DrawProjGroup::getDirsFromFront(), TechDraw::DrawLeaderLine::getKinkPoint(), Attacher::AttachEnginePy::getModeInfo(), TechDraw::DrawViewDimension::getPrefixSuffixSpec(), TechDrawGui::DrawGuiUtil::getProjDirFromFace(), TechDraw::DrawViewPart::getProjectionCS(), Attacher::AttachEnginePy::getRefTypeInfo(), TechDraw::DrawViewPart::getSourceShape(), TechDraw::DrawViewPart::getSourceShapeFused(), TechDraw::DrawLeaderLine::getTailPoint(), TechDraw::DrawLeaderLine::getTileOrigin(), AttacherGui::getUIStrings(), TechDraw::DrawProjGroupItem::getViewAxis(), TechDraw::DrawProjGroup::getViewIndex(), TechDrawGui::QGILeaderLine::getWayPointsFromFeature(), Gui::View3DInventorViewer::imageFromFramebuffer(), Gui::View3DInventorViewer::init(), TechDrawGui::TaskGeomHatch::initUi(), Sketcher::SketchObject::isCarbonCopyAllowed(), Sketcher::SketchObject::isExternalAllowed(), TechDraw::Preferences::lineGroupFile(), TechDrawGui::QGIFace::lineSetToFillItems(), Mesh::MeshObject::load(), MeshCore::MeshInput::LoadAny(), Gui::SelectionSingleton::notify(), Gui::Dialog::DlgCustomKeyboardImp::on_editShortcut_textChanged(), Gui::Dialog::DlgMacroExecuteImp::on_toolbarButton_clicked(), TechDraw::DrawViewDimension::onChanged(), TechDraw::DrawViewSymbol::onChanged(), App::Document::onChanged(), Import::ImpExpDxfRead::OnReadArc(), Import::ImpExpDxfRead::OnReadCircle(), Import::ImpExpDxfRead::OnReadEllipse(), Import::ImpExpDxfRead::OnReadSpline(), Gui::GestureNavigationStyle::onSetRotationCenter(), TechDrawGui::QGILeaderLine::onSourceChange(), Gui::BitmapFactoryInst::pixmap(), TechDraw::DrawGeomHatch::prefGeomHatchFile(), TechDraw::DrawHatch::prefSvgHatch(), TechDrawGui::MDIViewPage::printPdf(), App::Application::processCmdLineFiles(), App::Application::processFiles(), Gui::MayaGestureNavigationStyle::processSoEvent(), Base::ScriptFactorySingleton::ProduceScript(), Gui::PrefQuantitySpinBox::pushToHistory(), Gui::NS::GestureState::react(), Attacher::AttachEngine::readLinks(), SketcherGui::ViewProviderSketch::rebuildConstraintsVisual(), Gui::TaskView::TaskView::reject(), TechDrawGui::TaskRichAnno::removeFeature(), Gui::View3DInventorViewer::resetEditingRoot(), TechDraw::CosmeticEdge::Restore(), TechDraw::CenterLine::Restore(), App::PropertyPythonObject::Restore(), App::PropertyEnumeration::Restore(), App::PropertyLink::Restore(), App::PropertyLinkSubList::Restore(), Fem::PropertyPostDataObject::RestoreDocFile(), Part::PropertyPartShape::RestoreDocFile(), TechDrawGui::QGIProjGroup::rotateView(), Gui::ConsoleWarningTask::run(), Gui::PythonDebugger::runFile(), TechDraw::CosmeticEdge::Save(), MeshCore::MeshOutput::SaveOBJ(), MeshCore::MeshOutput::SaveOFF(), TechDrawGui::MDIViewPage::saveSVG(), TechDraw::CenterLine::scaledGeometry(), TechDraw::DrawViewSection::sectionExec(), Gui::Application::setActiveDocument(), SketcherGui::ViewProviderSketch::setEdit(), Gui::PrefWidget::setParamGrpPath(), Gui::SelectionSingleton::slotSelectionChanged(), Sketcher::SketchObject::solve(), TechDraw::LineGroup::split(), sPyWarning(), Gui::Application::sSendActiveView(), Gui::Application::sSendFocusView(), FemGui::TaskFemConstraintFluidBoundary::TaskFemConstraintFluidBoundary(), Gui::TaskView::TaskSelectLinkProperty::TaskSelectLinkProperty(), TechDraw::DrawPage::unsetupObject(), TechDraw::DrawProjGroupItem::unsetupObject(), TechDrawGui::QGILeaderLine::updateView(), TechDrawGui::QGIWeldSymbol::updateView(), TechDrawGui::PreferencesGui::weldingDirectory(), PartGui::DlgProjectionOnSurface::~DlgProjectionOnSurface(), DocOpenGuard::~DocOpenGuard(), and App::Application::TransactionSignaller::~TransactionSignaller().

Friends And Related Function Documentation

◆ ConsoleOutput

friend class ConsoleOutput
friend

Member Data Documentation

◆ BufferSize

const unsigned int Base::ConsoleSingleton::BufferSize = 4024
static

◆ connectionMode

ConnectionMode Base::ConsoleSingleton::connectionMode
protected

Referenced by SetConnectionMode().

◆ Methods

PyMethodDef ConsoleSingleton::Methods
static
Initial value:
= {
{"PrintMessage", (PyCFunction) ConsoleSingleton::sPyMessage, METH_VARARGS,
"PrintMessage(string) -- Print a message to the output"},
{"PrintLog", (PyCFunction) ConsoleSingleton::sPyLog, METH_VARARGS,
"PrintLog(string) -- Print a log message to the output"},
{"PrintError" , (PyCFunction) ConsoleSingleton::sPyError, METH_VARARGS,
"PrintError(string) -- Print an error message to the output"},
{"PrintWarning", (PyCFunction) ConsoleSingleton::sPyWarning, METH_VARARGS,
"PrintWarning -- Print a warning to the output"},
{"SetStatus", (PyCFunction) ConsoleSingleton::sPySetStatus, METH_VARARGS,
"Set the status for either Log, Msg, Wrn or Error for an observer"},
{"GetStatus", (PyCFunction) ConsoleSingleton::sPyGetStatus, METH_VARARGS,
"Get the status for either Log, Msg, Wrn or Error for an observer"},
{NULL, NULL, 0, NULL}
}
static PyObject * sPyMessage(PyObject *self, PyObject *args)
Definition: Console.cpp:477
static PyObject * sPySetStatus(PyObject *self, PyObject *args)
Definition: Console.cpp:690
static PyObject * sPyWarning(PyObject *self, PyObject *args)
Definition: Console.cpp:523
static PyObject * sPyError(PyObject *self, PyObject *args)
Definition: Console.cpp:569
static PyObject * sPyLog(PyObject *self, PyObject *args)
Definition: Console.cpp:615
static PyObject * sPyGetStatus(PyObject *self, PyObject *args)
Definition: Console.cpp:661

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Base/Console.h
  • Sources/FreeCAD/src/Base/Console.cpp