mirror of https://gitlab.com/pamhyr/pamhyr2
mesh on selection
parent
706a900c8e
commit
911a2bbbff
|
|
@ -55,7 +55,7 @@ class MeshingDialog(PamhyrDialog):
|
||||||
self._space_step = 50.0
|
self._space_step = 50.0
|
||||||
self._lplan = False
|
self._lplan = False
|
||||||
self._lm = "3"
|
self._lm = "3"
|
||||||
self._linear = False
|
self._linear = True
|
||||||
self._begin_cs = -1
|
self._begin_cs = -1
|
||||||
self._end_cs = -1
|
self._end_cs = -1
|
||||||
self._begin_dir = "un"
|
self._begin_dir = "un"
|
||||||
|
|
@ -89,8 +89,15 @@ class MeshingDialog(PamhyrDialog):
|
||||||
self.combobox_add_items("comboBox_begin_rk", profiles)
|
self.combobox_add_items("comboBox_begin_rk", profiles)
|
||||||
self.combobox_add_items("comboBox_end_rk", profiles)
|
self.combobox_add_items("comboBox_end_rk", profiles)
|
||||||
|
|
||||||
|
if len(self.parent.tableView.selectedIndexes()) <= 1:
|
||||||
self.set_combobox_text("comboBox_begin_rk", profiles[0])
|
self.set_combobox_text("comboBox_begin_rk", profiles[0])
|
||||||
self.set_combobox_text("comboBox_end_rk", profiles[-1])
|
self.set_combobox_text("comboBox_end_rk", profiles[-1])
|
||||||
|
else:
|
||||||
|
r = self.parent.tableView\
|
||||||
|
.selectionModel()\
|
||||||
|
.selectedRows()
|
||||||
|
self.set_combobox_text("comboBox_begin_rk", profiles[r[0].row()])
|
||||||
|
self.set_combobox_text("comboBox_end_rk", profiles[r[-1].row()])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def profiles(self):
|
def profiles(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue