mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029748: Samples - Inspector tool - use recently opened files in TInspectorEXE
- recently files using in open file dialog - correction of TInspectorEXE title to show opened file path by Start
This commit is contained in:
@@ -222,6 +222,9 @@ void DFBrowser_Window::SetParent (void* theParent)
|
||||
QLayout* aLayout = myParent->layout();
|
||||
if (aLayout)
|
||||
aLayout->addWidget (GetMainWindow());
|
||||
|
||||
if (!myOpenedFileName.isEmpty())
|
||||
myParent->setObjectName(myOpenedFileName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,7 +250,6 @@ void DFBrowser_Window::FillActionsMenu (void* theMenu)
|
||||
// =======================================================================
|
||||
void DFBrowser_Window::GetPreferences (TInspectorAPI_PreferencesDataMap& theItem)
|
||||
{
|
||||
theItem.Clear();
|
||||
theItem.Bind ("geometry", TreeModel_Tools::ToString (myMainWindow->saveState()).toStdString().c_str());
|
||||
|
||||
QMap<QString, QString> anItems;
|
||||
@@ -498,6 +500,8 @@ void DFBrowser_Window::OpenFile (const TCollection_AsciiString& theFileName)
|
||||
|
||||
if (myParent)
|
||||
myParent->setObjectName (isSTEPFileName ? QString (TCollection_AsciiString (theFileName).ToCString()) : getWindowTitle());
|
||||
else
|
||||
myOpenedFileName = isSTEPFileName ? QString(TCollection_AsciiString(theFileName).ToCString()) : getWindowTitle();
|
||||
|
||||
if (anApplication.IsNull())
|
||||
{
|
||||
|
Reference in New Issue
Block a user