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:
@@ -25,6 +25,8 @@
|
||||
#include <inspector/DFBrowser_SearchView.hxx>
|
||||
#include <inspector/DFBrowser_Window.hxx>
|
||||
|
||||
#include <inspector/ViewControl_Tools.hxx>
|
||||
|
||||
#include <TDF_Attribute.hxx>
|
||||
|
||||
#include <Standard_WarningsDisable.hxx>
|
||||
@@ -51,9 +53,9 @@ DFBrowser_AttributePaneStack::DFBrowser_AttributePaneStack (QObject* theParent)
|
||||
void DFBrowser_AttributePaneStack::CreateWidget (QWidget* theParent)
|
||||
{
|
||||
myAttributesStack = new QStackedWidget (theParent);
|
||||
DFBrowser_Window::SetWhiteBackground (myAttributesStack);
|
||||
ViewControl_Tools::SetWhiteBackground (myAttributesStack);
|
||||
myEmptyWidget = new QWidget (theParent);
|
||||
DFBrowser_Window::SetWhiteBackground (myEmptyWidget);
|
||||
ViewControl_Tools::SetWhiteBackground (myEmptyWidget);
|
||||
|
||||
myAttributesStack->addWidget (myEmptyWidget);
|
||||
|
||||
@@ -87,7 +89,7 @@ void DFBrowser_AttributePaneStack::SetPaneMode (const DFBrowser_AttributePaneTyp
|
||||
else
|
||||
{
|
||||
QItemSelectionModel* aSelectionModel = myModule->GetOCAFViewSelectionModel();
|
||||
QModelIndex anIndex = DFBrowser_Window::SingleSelected (aSelectionModel->selectedIndexes(), 0);
|
||||
QModelIndex anIndex = TreeModel_ModelBase::SingleSelected (aSelectionModel->selectedIndexes(), 0);
|
||||
SetCurrentItem (anIndex);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user