Skip to content

Commit

Permalink
feat. again bring necessary features into UI after branch update
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed Jan 22, 2024
1 parent 06891c3 commit 7efd714
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions ORStools/gui/ORStoolsDialogUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,20 @@ def setupUi(self, ORStoolsDialogBase):
self.save_vertices.setObjectName("save_vertices")
self.gridLayout.addWidget(self.save_vertices, 2, 0, 1, 1)
self.verticalLayout_7.addWidget(self.widget)
self.checkBox_elevation_profile = QtWidgets.QCheckBox(self.qwidget)
self.checkBox_elevation_profile.setObjectName("checkBox_elevation_profile")
self.verticalLayout_7.addWidget(self.checkBox_elevation_profile)
self.label_elevation_profile = QtWidgets.QLabel(self.qwidget)
self.label_elevation_profile.setText("")
self.label_elevation_profile.setObjectName("label_elevation_profile")
self.verticalLayout_7.addWidget(self.label_elevation_profile)
self.advances_group = QgsCollapsibleGroupBox(self.qwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.advances_group.sizePolicy().hasHeightForWidth())
self.advances_group.setSizePolicy(sizePolicy)
self.advances_group.setMaximumSize(QtCore.QSize(16777215, 20))
self.advances_group.setMaximumSize(QtCore.QSize(16777215, 18))
self.advances_group.setCheckable(False)
self.advances_group.setChecked(False)
self.advances_group.setCollapsed(True)
Expand Down Expand Up @@ -402,7 +409,7 @@ def setupUi(self, ORStoolsDialogBase):
sizePolicy.setHeightForWidth(self.ors_log_group.sizePolicy().hasHeightForWidth())
self.ors_log_group.setSizePolicy(sizePolicy)
self.ors_log_group.setMinimumSize(QtCore.QSize(0, 0))
self.ors_log_group.setMaximumSize(QtCore.QSize(16777215, 20))
self.ors_log_group.setMaximumSize(QtCore.QSize(16777215, 18))
self.ors_log_group.setFlat(True)
self.ors_log_group.setCollapsed(True)
self.ors_log_group.setSaveCollapsedState(False)
Expand Down Expand Up @@ -485,6 +492,7 @@ def retranslateUi(self, ORStoolsDialogBase):
self.routing_fromline_clear.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>If waypoints are selected in the list, only these will be deleted. Else all waypoints will be deleted.</p></body></html>"))
self.routing_fromline_list.setToolTip(_translate("ORStoolsDialogBase", "Select waypoints from the map!"))
self.save_vertices.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>Save points in list to layer. Use the processing algorithms (batch jobs) to work with points from layers.</p></body></html>"))
self.checkBox_elevation_profile.setText(_translate("ORStoolsDialogBase", "Display elevation profile"))
self.advances_group.setTitle(_translate("ORStoolsDialogBase", "Advanced Configuration"))
self.optimization_group.setToolTip(_translate("ORStoolsDialogBase", "<html><head/><body><p>Enabling Traveling Salesman will omit all other advanced configuration and assume the preference to be <span style=\" font-weight:600;\">fastest</span>.</p></body></html>"))
self.optimization_group.setTitle(_translate("ORStoolsDialogBase", "Traveling Salesman"))
Expand Down
2 changes: 1 addition & 1 deletion ORStools/gui/ORStoolsDialogUI.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>412</width>
<height>868</height>
<height>686</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down

0 comments on commit 7efd714

Please sign in to comment.