View Issue Details

IDProjectCategoryView StatusLast Update
0004125FreeCADBugpublic2019-09-15 16:17
Reporterickby Assigned Towmayer  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.18 
Summary0004125: MDIViews not accessible corerctly
DescriptionSome MDI Views like Spreadsheet::SheetView and TechDraw::ViewPage are not accessible correctly by their type. That makes it impossible to access them from a document in python. This happens as init() is not called for the MDIView classes.
Steps To Reproduce1. Open New Document
2. Open Spreadsheet Workbench, add Spreadsheet
3. Double click spreadsheet to open it in the UI
4. Paste into python console: Gui.ActiveDocument.mdiViewsOfType("SpreadSheet::SheetView")
--> Type not known, but should be
5. Paste into python console: Gui.ActiveDocument.mdiViewsOfType("Gui::MDIView")
--> spreadSheet MDI view is not listed
6. Go into TechDraw Workbench, add Page
7. Paste into python console: Gui.ActiveDocument.mdiViewsOfType("TechDraw::PageView")
--> Type not known, but should be
7. Paste into python console: Gui.ActiveDocument.mdiViewsOfType("Gui::MDIView")
--> TechDraw MDI Page is listed as "None"


Additional InformationNo relevant code change yet in 0.19, hence behavior will be the same there
TagsNo tags attached.
FreeCAD Information

Activities

ickby

2019-09-13 07:51

developer   ~0013588

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

wmayer

2019-09-15 16:16

administrator   ~0013605

Fix committed to master branch.

Related Changesets

FreeCAD: master 1bfe0f3b

2019-09-15 16:15:44

wmayer

Details Diff
fixes 0004125: MDIViews not accessible correctly Affected Issues
0004125
mod - src/Gui/Application.cpp Diff File
mod - src/Gui/CMakeLists.txt Diff File
mod - src/Gui/MDIView.cpp Diff File
mod - src/Gui/MDIView.h Diff File
add - src/Gui/MDIViewPy.cpp Diff File
add - src/Gui/MDIViewPy.h Diff File
mod - src/Gui/TextDocumentEditorView.cpp Diff File
mod - src/Gui/TextDocumentEditorView.h Diff File
mod - src/Gui/View3DInventor.cpp Diff File
mod - src/Mod/Spreadsheet/Gui/AppSpreadsheetGui.cpp Diff File
mod - src/Mod/Spreadsheet/Gui/SpreadsheetView.cpp Diff File
mod - src/Mod/TechDraw/Gui/AppTechDrawGui.cpp Diff File
mod - src/Mod/TechDraw/Gui/MDIViewPage.cpp Diff File
mod - src/Mod/TechDraw/Gui/MDIViewPage.h Diff File

Issue History

Date Modified Username Field Change
2019-09-13 06:00 ickby New Issue
2019-09-13 07:51 ickby Note Added: 0013588
2019-09-15 16:16 wmayer Changeset attached => FreeCAD master 1bfe0f3b
2019-09-15 16:16 wmayer Note Added: 0013605
2019-09-15 16:16 wmayer Assigned To => wmayer
2019-09-15 16:16 wmayer Status new => closed
2019-09-15 16:16 wmayer Resolution open => fixed
2019-09-15 16:17 wmayer Fixed in Version => 0.19