Skip to content

Commit 1a9191c

Browse files
author
LukasBommes
committed
changed name in window title and about page
1 parent 1071b36 commit 1a9191c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/components/mainwindow.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def open_dataset(self):
203203
if not self.valid_dataset(dir):
204204
msg = QMessageBox()
205205
msg.setWindowTitle("Error")
206-
msg.setText("Not a valid PV Drone Inspect Dataset.")
206+
msg.setText("Not a valid PV Hawk Dataset.")
207207
msg.setIcon(QMessageBox.Critical)
208208
msg.exec()
209209
return
@@ -311,7 +311,7 @@ def app_mode_changed(self, app_mode):
311311
self.ui.actionClose_String_Annotation.setEnabled(False)
312312

313313
if app_mode is None or app_mode == "data_visualization":
314-
self.setWindowTitle("PV Drone Inspect Viewer")
314+
self.setWindowTitle("PV Hawk Viewer")
315315

316316

317317
@Slot(bool)
@@ -321,10 +321,10 @@ def defect_annotation_has_changes(self, has_changes):
321321
file_name = os.path.basename(self.model.annotation_editor_model.current_file_name)
322322
if has_changes:
323323
self.ui.actionSave_Defect_Annotation.setEnabled(True)
324-
self.setWindowTitle("PV Drone Inspect Viewer - {}*".format(file_name))
324+
self.setWindowTitle("PV Hawk Viewer - {}*".format(file_name))
325325
else:
326326
self.ui.actionSave_Defect_Annotation.setEnabled(False)
327-
self.setWindowTitle("PV Drone Inspect Viewer - {}".format(file_name))
327+
self.setWindowTitle("PV Hawk Viewer - {}".format(file_name))
328328

329329
@Slot()
330330
def new_defect_annotation(self):
@@ -387,17 +387,17 @@ def show_child_window(self, which):
387387
self.child_windows[which].show()
388388

389389
def about(self):
390-
gh1 = "LukasBommes/PV-Drone-Inspect"
391-
gh2 = "LukasBommes/PV-Drone-Inspect-Viewer"
392-
about_text = "PV Drone Inspect Viewer<br><br>" \
390+
gh1 = "LukasBommes/PV-Hawk"
391+
gh2 = "LukasBommes/PV-Hawk-Viewer"
392+
about_text = "PV Hawk Viewer<br><br>" \
393393
+ "Author: Lukas Bommes<br>" \
394394
+ "Organization: Helmholtz Institute Erlangen-Nürnberg for Renewable Energy (HI ERN)<br>" \
395395
+ "GitHub:<br>" \
396-
+ "PV Drone Inspect: <a href='https://github.com/{gh1}'>{gh1}</a><br>".format(gh1=gh1) \
397-
+ "PV Drone Inspect Viewer: <a href='https://github.com/{gh2}'>{gh2}</a><br>".format(gh2=gh2)
396+
+ "PV Hawk: <a href='https://github.com/{gh1}'>{gh1}</a><br>".format(gh1=gh1) \
397+
+ "PV Hawk Viewer: <a href='https://github.com/{gh2}'>{gh2}</a><br>".format(gh2=gh2)
398398
QMessageBox.about(
399399
self,
400-
"About PV Drone Inspect Viewer",
400+
"About PV Hawk Viewer",
401401
about_text
402402
)
403403

src/ui/mainwindow.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</rect>
1515
</property>
1616
<property name="windowTitle">
17-
<string>PV Drone Inspect Viewer</string>
17+
<string>PV Hawk Viewer</string>
1818
</property>
1919
<widget class="QWidget" name="centralwidget">
2020
<layout class="QGridLayout" name="gridLayout">

src/ui/ui_mainwindow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def setupUi(self, MainWindow):
129129
# setupUi
130130

131131
def retranslateUi(self, MainWindow):
132-
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"PV Drone Inspect Viewer", None))
132+
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"PV Hawk Viewer", None))
133133
self.actionOpen_Dataset.setText(QCoreApplication.translate("MainWindow", u"Open Dataset...", None))
134134
self.actionClose_Dataset.setText(QCoreApplication.translate("MainWindow", u"Close Dataset", None))
135135
self.actionQuit.setText(QCoreApplication.translate("MainWindow", u"Quit", None))

0 commit comments

Comments
 (0)