mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0029018: Documentation - Provide user guide for Qt browser
Documentation is added in a new "Inspector" page of "User Guides". Inspector plugins has some improvements by the documentation needs. New DRAW scripts are implemented for 'tinspector' command.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <inspector/DFBrowserPane_Tools.hxx>
|
||||
|
||||
#include <AIS_DisplayMode.hxx>
|
||||
#include <CDM_CanCloseStatus.hxx>
|
||||
#include <Graphic3d_MaterialAspect.hxx>
|
||||
#include <Graphic3d_NameOfMaterial.hxx>
|
||||
#include <Standard_Version.hxx>
|
||||
@@ -34,8 +35,10 @@
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QPalette>
|
||||
#include <QStringList>
|
||||
#include <QStyle>
|
||||
#include <QWidget>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
@@ -99,6 +102,17 @@ QVariant DFBrowserPane_Tools::ShapeTypeInfo (const TopoDS_Shape& theShape)
|
||||
: QString (DFBrowserPane_Tools::ToName (DB_SHAPE_TYPE, theShape.ShapeType()).ToCString());
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : LightHighlightColor
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
QColor DFBrowserPane_Tools::LightHighlightColor()
|
||||
{
|
||||
QWidget aWidget;
|
||||
QPalette aPalette = aWidget.palette();
|
||||
return aPalette.highlight().color().lighter();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : ToName
|
||||
// purpose :
|
||||
@@ -127,6 +141,18 @@ TCollection_AsciiString DFBrowserPane_Tools::ToName (const DFBrowserPane_OcctEnu
|
||||
break;
|
||||
}
|
||||
case DB_ORIENTATION_TYPE: { TopAbs::Print((TopAbs_Orientation)theEnumId, aSStream); break; }
|
||||
case DB_CDM_CAN_CLOSE_STATUS:
|
||||
{
|
||||
switch (theEnumId)
|
||||
{
|
||||
case CDM_CCS_OK: return "OK";
|
||||
case CDM_CCS_NotOpen: return "NotOpen";
|
||||
case CDM_CCS_UnstoredReferenced: return "UnstoredReferenced";
|
||||
case CDM_CCS_ReferenceRejection: return "ReferenceRejection";
|
||||
default: return "UNKNOWN CDM_CanCloseStatus";
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: return "UNKNOWN PARAMETER";
|
||||
}
|
||||
return aSStream.str().c_str();
|
||||
|
Reference in New Issue
Block a user