diff --git a/qt_ui/widgets/ato.py b/qt_ui/widgets/ato.py index 44199d9b..b71da84a 100644 --- a/qt_ui/widgets/ato.py +++ b/qt_ui/widgets/ato.py @@ -1,5 +1,4 @@ """Widgets for displaying air tasking orders.""" -import datetime import logging from contextlib import contextmanager from typing import ContextManager, Optional @@ -22,6 +21,7 @@ from PySide2.QtWidgets import ( QAction, QGroupBox, QHBoxLayout, + QLabel, QListView, QMenu, QPushButton, @@ -235,6 +235,12 @@ class QFlightPanel(QGroupBox): self.vbox = QVBoxLayout() self.setLayout(self.vbox) + self.tip = QLabel( + "To add flights to a package, edit the package by double clicking " + "it or pressing the edit button." + ) + self.vbox.addWidget(self.tip) + self.flight_list = QFlightList(game_model, package_model) self.vbox.addWidget(self.flight_list) @@ -437,6 +443,13 @@ class QPackagePanel(QGroupBox): self.vbox = QVBoxLayout() self.setLayout(self.vbox) + self.tip = QLabel( + "To create a new package, right click the mission target on the " + "map. To target airbase objectives, use\n" + "the attack button in the airbase view." + ) + self.vbox.addWidget(self.tip) + self.package_list = QPackageList(self.ato_model) self.vbox.addWidget(self.package_list) diff --git a/qt_ui/windows/QLiberationWindow.py b/qt_ui/windows/QLiberationWindow.py index e5bb8889..f1b69e9e 100644 --- a/qt_ui/windows/QLiberationWindow.py +++ b/qt_ui/windows/QLiberationWindow.py @@ -73,7 +73,10 @@ class QLiberationWindow(QMainWindow): hbox.addWidget(vbox) vbox.addWidget(self.liberation_map) vbox.addWidget(self.info_panel) - hbox.setSizes([100, 600]) + + # Will make the ATO sidebar as small as necessary to fit the content. In + # practice this means it is sized by the hints in the panel. + hbox.setSizes([1, 10000000]) vbox.setSizes([600, 100]) vbox = QVBoxLayout()