FEM: Update data extraction dialog titles and spelling errors
This commit is contained in:
@@ -93,7 +93,7 @@ TaskPostExtraction::TaskPostExtraction(ViewProviderFemPostObject* view, QWidget*
|
||||
}
|
||||
}
|
||||
}
|
||||
// if we are here somethign went wrong!
|
||||
// if we are here something went wrong!
|
||||
throw Base::ImportError("Unable to import data extraction widget");
|
||||
};
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ class DataExtraction(_BasePostTaskPanel):
|
||||
def showData(self):
|
||||
|
||||
dialog = QtGui.QDialog(self.widget)
|
||||
dialog.setWindowTitle(f"Data of {self.Object.Label}")
|
||||
widget = vtk_table_view.VtkTableView(self.data_model)
|
||||
layout = QtGui.QVBoxLayout()
|
||||
layout.addWidget(widget)
|
||||
@@ -105,6 +106,7 @@ class DataExtraction(_BasePostTaskPanel):
|
||||
def showSummary(self):
|
||||
|
||||
dialog = QtGui.QDialog(self.widget)
|
||||
dialog.setWindowTitle(f"Data summary of {self.Object.Label}")
|
||||
widget = vtk_table_view.VtkTableView(self.summary_model)
|
||||
layout = QtGui.QVBoxLayout()
|
||||
layout.addWidget(widget)
|
||||
|
||||
@@ -484,6 +484,7 @@ class VPPostHistogram(view_base_fempostvisualization.VPPostVisualization):
|
||||
if not hasattr(self, "_plot") or not self._plot:
|
||||
main = FreeCADGui.getMainWindow()
|
||||
self._plot = Plot.Plot()
|
||||
self._plot.setWindowTitle(self.Object.Label)
|
||||
self._plot.setParent(main)
|
||||
self._plot.setWindowFlags(QtGui.Qt.Dialog)
|
||||
self._plot.resize(main.size().height()/2, main.size().height()/3) # keep it square
|
||||
|
||||
@@ -462,6 +462,7 @@ class VPPostLineplot(view_base_fempostvisualization.VPPostVisualization):
|
||||
if not hasattr(self, "_plot") or not self._plot:
|
||||
main = FreeCADGui.getMainWindow()
|
||||
self._plot = Plot.Plot()
|
||||
self._plot.setWindowTitle(self.Object.Label)
|
||||
self._plot.setParent(main)
|
||||
self._plot.setWindowFlags(QtGui.Qt.Dialog)
|
||||
self._plot.resize(main.size().height()/2, main.size().height()/3) # keep the aspect ratio
|
||||
|
||||
@@ -261,6 +261,7 @@ class VPPostTable(view_base_fempostvisualization.VPPostVisualization):
|
||||
main = FreeCADGui.getMainWindow()
|
||||
self._tableModel = vtv.VtkTableModel()
|
||||
self._tableview = vtv.VtkTableView(self._tableModel)
|
||||
self._tableview.setWindowTitle(self.Object.Label)
|
||||
self._tableview.setParent(main)
|
||||
self._tableview.setWindowFlags(QtGui.Qt.Dialog)
|
||||
self._tableview.resize(main.size().height()/2, main.size().height()/3) # keep the aspect ratio
|
||||
|
||||
Reference in New Issue
Block a user