mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029025: TInspector include files are not installed to inc directory by CMake
TInspector headers are collected in 'inc/tools' directory. Extending DRAW Commands; Eliminating warnings; Improve Export to ShapeView dialog; Avoid crash with QML using;
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <TInspectorAPI_PluginParameters.hxx>
|
||||
#include <inspector/TInspectorAPI_PluginParameters.hxx>
|
||||
|
||||
#if OCC_VERSION_HEX <= 0x060901
|
||||
IMPLEMENT_STANDARD_HANDLE (TInspectorAPI_PluginParameters, Standard_Transient)
|
||||
@@ -31,11 +31,12 @@ TInspectorAPI_PluginParameters::TInspectorAPI_PluginParameters()
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : SetParameters
|
||||
// function : SetParameters
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TInspectorAPI_PluginParameters::SetParameters (const TCollection_AsciiString& thePluginName,
|
||||
const NCollection_List<Handle(Standard_Transient)>& theParameters)
|
||||
const NCollection_List<Handle(Standard_Transient)>& theParameters,
|
||||
const Standard_Boolean&)
|
||||
{
|
||||
if (theParameters.Size() > 0)
|
||||
myParameters.Bind (thePluginName, theParameters);
|
||||
@@ -44,7 +45,7 @@ void TInspectorAPI_PluginParameters::SetParameters (const TCollection_AsciiStrin
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : AddFileName
|
||||
// function : AddFileName
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TInspectorAPI_PluginParameters::AddFileName (const TCollection_AsciiString& thePluginName,
|
||||
@@ -61,7 +62,7 @@ void TInspectorAPI_PluginParameters::AddFileName (const TCollection_AsciiString&
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : SetFileNames
|
||||
// function : SetFileNames
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TInspectorAPI_PluginParameters::SetFileNames (const TCollection_AsciiString& thePluginName,
|
||||
@@ -70,12 +71,34 @@ void TInspectorAPI_PluginParameters::SetFileNames (const TCollection_AsciiString
|
||||
if (theFileNames.Size() > 0)
|
||||
myFileNames.Bind (thePluginName, theFileNames);
|
||||
else
|
||||
myFileNames.UnBind(thePluginName);
|
||||
|
||||
myFileNames.UnBind (thePluginName);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : FindParameters
|
||||
// function : SetSelectedNames
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TInspectorAPI_PluginParameters::SetSelectedNames (const TCollection_AsciiString& thePluginName,
|
||||
const NCollection_List<TCollection_AsciiString>& theItemNames)
|
||||
{
|
||||
mySelectedItemNames.Bind (thePluginName, theItemNames);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : SetSelected
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TInspectorAPI_PluginParameters::SetSelected (const TCollection_AsciiString& thePluginName,
|
||||
const NCollection_List<Handle(Standard_Transient)>& theObjects)
|
||||
{
|
||||
if (theObjects.Size() > 0)
|
||||
mySelectedObjects.Bind (thePluginName, theObjects);
|
||||
else
|
||||
mySelectedObjects.UnBind (thePluginName);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : FindParameters
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
bool TInspectorAPI_PluginParameters::FindParameters (const TCollection_AsciiString& thePluginName)
|
||||
@@ -84,7 +107,7 @@ bool TInspectorAPI_PluginParameters::FindParameters (const TCollection_AsciiStri
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Parameters
|
||||
// function : Parameters
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
const NCollection_List<Handle(Standard_Transient)>& TInspectorAPI_PluginParameters::Parameters
|
||||
@@ -94,7 +117,7 @@ const NCollection_List<Handle(Standard_Transient)>& TInspectorAPI_PluginParamete
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : FindFileNames
|
||||
// function : FindFileNames
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
bool TInspectorAPI_PluginParameters::FindFileNames (const TCollection_AsciiString& thePluginName)
|
||||
@@ -103,7 +126,7 @@ bool TInspectorAPI_PluginParameters::FindFileNames (const TCollection_AsciiStrin
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : FileNames
|
||||
// function : FileNames
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
const NCollection_List<TCollection_AsciiString>& TInspectorAPI_PluginParameters::FileNames
|
||||
@@ -111,3 +134,32 @@ const NCollection_List<TCollection_AsciiString>& TInspectorAPI_PluginParameters:
|
||||
{
|
||||
return myFileNames.Find (thePluginName);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : FindSelectedNames
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
bool TInspectorAPI_PluginParameters::FindSelectedNames (const TCollection_AsciiString& thePluginName)
|
||||
{
|
||||
return mySelectedItemNames.IsBound(thePluginName);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : GetSelectedNames
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
const NCollection_List<TCollection_AsciiString>& TInspectorAPI_PluginParameters::GetSelectedNames
|
||||
(const TCollection_AsciiString& thePluginName)
|
||||
{
|
||||
return mySelectedItemNames.Find (thePluginName);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : GetSelectedObjects
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
Standard_Boolean TInspectorAPI_PluginParameters::GetSelectedObjects (const TCollection_AsciiString& thePluginName,
|
||||
NCollection_List<Handle(Standard_Transient)>& theObjects)
|
||||
{
|
||||
return mySelectedObjects.Find (thePluginName, theObjects);
|
||||
}
|
||||
|
Reference in New Issue
Block a user