mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029674: Improvements in Inspector tool
- preferences for dock windows geometry, tree view columns and current view projection; - ViewControl package for common functionality between plugins; - processing Location and Orientation for external TopoDS_Shape object - 'F5' key to update content of each plugin - visibility column in tree view (used now only in ShapeView) - properties child item for context (presents tree of current Filters of context)
This commit is contained in:
@@ -37,9 +37,10 @@ TInspector_Communicator::TInspector_Communicator()
|
||||
static int argc = 1;
|
||||
static char* argv[] = { (char*)"", 0 };
|
||||
#if QT_VERSION > 0x050000
|
||||
TCollection_AsciiString aPlugindsDirName = OSD_Environment ("QTDIR").Value();
|
||||
if (!aPlugindsDirName.IsEmpty())
|
||||
QApplication::addLibraryPath (QString (aPlugindsDirName.ToCString()) + "/plugins");
|
||||
OSD_Environment anEnvironment ("QTDIR");
|
||||
TCollection_AsciiString aPlugindsDirName = anEnvironment.Value();
|
||||
aPlugindsDirName += "/plugins";
|
||||
QApplication::addLibraryPath (aPlugindsDirName.ToCString());
|
||||
#endif
|
||||
new QApplication (argc, argv);
|
||||
}
|
||||
@@ -58,3 +59,12 @@ void TInspector_Communicator::SetVisible (const bool theVisible)
|
||||
QApplication::processEvents();
|
||||
#endif
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Move
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TInspector_Communicator::Move (const int theXPosition, const int theYPosition)
|
||||
{
|
||||
myWindow->GetMainWindow()->move (theXPosition, theYPosition);
|
||||
}
|
||||
|
Reference in New Issue
Block a user