show is_over in warsTree & fator resources paths
This commit is contained in:
parent
a9cd4c9e27
commit
d869017646
28 changed files with 783 additions and 628 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Form implementation generated from reading ui file '.\src\warchron\view\ui\ui_battle_result_dialog.ui'
|
||||
# Form implementation generated from reading ui file '.\src\warchron\view\ui\ui_battle_dialog.ui'
|
||||
#
|
||||
# Created by: PyQt6 UI code generator 6.7.1
|
||||
#
|
||||
|
|
@ -10,138 +10,128 @@ from PyQt6 import QtCore, QtGui, QtWidgets
|
|||
|
||||
|
||||
class Ui_battleDialog(object):
|
||||
def setupUi(self, battleResultDialog):
|
||||
battleResultDialog.setObjectName("battleResultDialog")
|
||||
battleResultDialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
|
||||
battleResultDialog.resize(668, 317)
|
||||
def setupUi(self, battleDialog):
|
||||
battleDialog.setObjectName("battleDialog")
|
||||
battleDialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
|
||||
battleDialog.resize(771, 315)
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(
|
||||
QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"),
|
||||
QtGui.QIcon.Mode.Normal,
|
||||
QtGui.QIcon.State.Off,
|
||||
)
|
||||
battleResultDialog.setWindowIcon(icon)
|
||||
self.gridLayout = QtWidgets.QGridLayout(battleResultDialog)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.label_7 = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
battleDialog.setWindowIcon(icon)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(battleDialog)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.label_7 = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label_7.setObjectName("label_7")
|
||||
self.gridLayout.addWidget(self.label_7, 0, 0, 1, 1)
|
||||
self.sectorComboBox = QtWidgets.QComboBox(parent=battleResultDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
self.horizontalLayout.addWidget(self.label_7)
|
||||
self.sectorComboBox = QtWidgets.QComboBox(parent=battleDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.sectorComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.sectorComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.sectorComboBox.setSizePolicy(sizePolicy)
|
||||
self.sectorComboBox.setObjectName("sectorComboBox")
|
||||
self.gridLayout.addWidget(self.sectorComboBox, 0, 1, 1, 1)
|
||||
self.label_5 = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
self.horizontalLayout.addWidget(self.sectorComboBox)
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout.addItem(spacerItem)
|
||||
self.label_5 = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label_5.setObjectName("label_5")
|
||||
self.gridLayout.addWidget(self.label_5, 0, 2, 1, 1)
|
||||
self.player1ComboBox = QtWidgets.QComboBox(parent=battleResultDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
self.horizontalLayout.addWidget(self.label_5)
|
||||
self.player1ComboBox = QtWidgets.QComboBox(parent=battleDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.player1ComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.player1ComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.player1ComboBox.setSizePolicy(sizePolicy)
|
||||
self.player1ComboBox.setObjectName("player1ComboBox")
|
||||
self.gridLayout.addWidget(self.player1ComboBox, 0, 3, 1, 1)
|
||||
self.label_6 = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
self.horizontalLayout.addWidget(self.player1ComboBox)
|
||||
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout.addItem(spacerItem1)
|
||||
self.label_6 = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label_6.setObjectName("label_6")
|
||||
self.gridLayout.addWidget(self.label_6, 0, 4, 1, 1)
|
||||
self.player2ComboBox = QtWidgets.QComboBox(parent=battleResultDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
self.horizontalLayout.addWidget(self.label_6)
|
||||
self.player2ComboBox = QtWidgets.QComboBox(parent=battleDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.player2ComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.player2ComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.player2ComboBox.setSizePolicy(sizePolicy)
|
||||
self.player2ComboBox.setObjectName("player2ComboBox")
|
||||
self.gridLayout.addWidget(self.player2ComboBox, 0, 5, 1, 1)
|
||||
spacerItem = QtWidgets.QSpacerItem(
|
||||
20,
|
||||
40,
|
||||
QtWidgets.QSizePolicy.Policy.Minimum,
|
||||
QtWidgets.QSizePolicy.Policy.Expanding,
|
||||
)
|
||||
self.gridLayout.addItem(spacerItem, 1, 1, 1, 1)
|
||||
self.label = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
self.horizontalLayout.addWidget(self.player2ComboBox)
|
||||
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout.addItem(spacerItem2)
|
||||
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||
self.verticalLayout.addItem(spacerItem3)
|
||||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.label = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
|
||||
self.winnerComboBox = QtWidgets.QComboBox(parent=battleResultDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
self.horizontalLayout_2.addWidget(self.label)
|
||||
self.winnerComboBox = QtWidgets.QComboBox(parent=battleDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.winnerComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.winnerComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.winnerComboBox.setSizePolicy(sizePolicy)
|
||||
self.winnerComboBox.setObjectName("winnerComboBox")
|
||||
self.gridLayout.addWidget(self.winnerComboBox, 2, 1, 1, 1)
|
||||
self.label_2 = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
|
||||
self.score = QtWidgets.QLineEdit(parent=battleResultDialog)
|
||||
self.score.setObjectName("score")
|
||||
self.gridLayout.addWidget(self.score, 3, 1, 1, 2)
|
||||
self.label_3 = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
self.horizontalLayout_2.addWidget(self.winnerComboBox)
|
||||
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout_2.addItem(spacerItem4)
|
||||
self.label_3 = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label_3.setObjectName("label_3")
|
||||
self.gridLayout.addWidget(self.label_3, 3, 3, 1, 1)
|
||||
self.victoryCondition = QtWidgets.QLineEdit(parent=battleResultDialog)
|
||||
self.horizontalLayout_2.addWidget(self.label_3)
|
||||
self.victoryCondition = QtWidgets.QLineEdit(parent=battleDialog)
|
||||
self.victoryCondition.setObjectName("victoryCondition")
|
||||
self.gridLayout.addWidget(self.victoryCondition, 3, 4, 1, 2)
|
||||
self.label_4 = QtWidgets.QLabel(parent=battleResultDialog)
|
||||
self.horizontalLayout_2.addWidget(self.victoryCondition)
|
||||
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout_2.addItem(spacerItem5)
|
||||
self.label_2 = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.horizontalLayout_2.addWidget(self.label_2)
|
||||
self.score = QtWidgets.QLineEdit(parent=battleDialog)
|
||||
self.score.setObjectName("score")
|
||||
self.horizontalLayout_2.addWidget(self.score)
|
||||
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout_2.addItem(spacerItem6)
|
||||
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||||
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||
self.label_4 = QtWidgets.QLabel(parent=battleDialog)
|
||||
self.label_4.setObjectName("label_4")
|
||||
self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1)
|
||||
self.battleComment = QtWidgets.QPlainTextEdit(parent=battleResultDialog)
|
||||
self.horizontalLayout_3.addWidget(self.label_4)
|
||||
self.battleComment = QtWidgets.QPlainTextEdit(parent=battleDialog)
|
||||
self.battleComment.setObjectName("battleComment")
|
||||
self.gridLayout.addWidget(self.battleComment, 4, 1, 1, 5)
|
||||
self.buttonBox = QtWidgets.QDialogButtonBox(parent=battleResultDialog)
|
||||
self.horizontalLayout_3.addWidget(self.battleComment)
|
||||
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
||||
self.buttonBox = QtWidgets.QDialogButtonBox(parent=battleDialog)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||
self.buttonBox.setStandardButtons(
|
||||
QtWidgets.QDialogButtonBox.StandardButton.Cancel
|
||||
| QtWidgets.QDialogButtonBox.StandardButton.Ok
|
||||
)
|
||||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||
self.buttonBox.setObjectName("buttonBox")
|
||||
self.gridLayout.addWidget(self.buttonBox, 5, 4, 1, 2)
|
||||
self.verticalLayout.addWidget(self.buttonBox)
|
||||
|
||||
self.retranslateUi(battleResultDialog)
|
||||
self.buttonBox.accepted.connect(battleResultDialog.accept) # type: ignore
|
||||
self.buttonBox.rejected.connect(battleResultDialog.reject) # type: ignore
|
||||
QtCore.QMetaObject.connectSlotsByName(battleResultDialog)
|
||||
self.retranslateUi(battleDialog)
|
||||
self.buttonBox.accepted.connect(battleDialog.accept) # type: ignore
|
||||
self.buttonBox.rejected.connect(battleDialog.reject) # type: ignore
|
||||
QtCore.QMetaObject.connectSlotsByName(battleDialog)
|
||||
|
||||
def retranslateUi(self, battleResultDialog):
|
||||
def retranslateUi(self, battleDialog):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
battleResultDialog.setWindowTitle(
|
||||
_translate("battleResultDialog", "Battle result")
|
||||
)
|
||||
self.label_7.setText(_translate("battleResultDialog", "Sector"))
|
||||
self.label_5.setText(_translate("battleResultDialog", "Player 1"))
|
||||
self.label_6.setText(_translate("battleResultDialog", "Player 2"))
|
||||
self.label.setText(_translate("battleResultDialog", "Winner"))
|
||||
self.label_2.setText(_translate("battleResultDialog", "Score"))
|
||||
self.label_3.setText(_translate("battleResultDialog", "Victory condition"))
|
||||
self.label_4.setText(_translate("battleResultDialog", "Comment"))
|
||||
battleDialog.setWindowTitle(_translate("battleDialog", "Battle result"))
|
||||
self.label_7.setText(_translate("battleDialog", "Sector"))
|
||||
self.label_5.setText(_translate("battleDialog", "Player 1"))
|
||||
self.label_6.setText(_translate("battleDialog", "Player 2"))
|
||||
self.label.setText(_translate("battleDialog", "Winner"))
|
||||
self.label_3.setText(_translate("battleDialog", "Victory condition"))
|
||||
self.label_2.setText(_translate("battleDialog", "Score"))
|
||||
self.label_4.setText(_translate("battleDialog", "Comment"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
battleResultDialog = QtWidgets.QDialog()
|
||||
ui = Ui_battleResultDialog()
|
||||
ui.setupUi(battleResultDialog)
|
||||
battleResultDialog.show()
|
||||
battleDialog = QtWidgets.QDialog()
|
||||
ui = Ui_battleDialog()
|
||||
ui.setupUi(battleDialog)
|
||||
battleDialog.show()
|
||||
sys.exit(app.exec())
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>battleResultDialog</class>
|
||||
<widget class="QDialog" name="battleResultDialog">
|
||||
<class>battleDialog</class>
|
||||
<widget class="QDialog" name="battleDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::ApplicationModal</enum>
|
||||
</property>
|
||||
|
|
@ -9,8 +9,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>668</width>
|
||||
<height>317</height>
|
||||
<width>771</width>
|
||||
<height>315</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
|
@ -20,59 +20,102 @@
|
|||
<iconset>
|
||||
<normaloff>../resources/warchron_logo.png</normaloff>../resources/warchron_logo.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Sector</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Sector</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="sectorComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Player 1</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="player1ComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Player 2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="player2ComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="sectorComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Player 1</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QComboBox" name="player1ComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Player 2</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QComboBox" name="player2ComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
|
@ -85,54 +128,101 @@
|
|||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Winner</string>
|
||||
</property>
|
||||
</widget>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Winner</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="winnerComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Victory condition</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="victoryCondition"/>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Score</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="score"/>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QComboBox" name="winnerComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Comment</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="battleComment"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Score</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" colspan="2">
|
||||
<widget class="QLineEdit" name="score"/>
|
||||
</item>
|
||||
<item row="3" column="3">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Victory condition</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="4" colspan="2">
|
||||
<widget class="QLineEdit" name="victoryCondition"/>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Comment</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" colspan="5">
|
||||
<widget class="QPlainTextEdit" name="battleComment"/>
|
||||
</item>
|
||||
<item row="5" column="4" colspan="2">
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
|
|
@ -149,7 +239,7 @@
|
|||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>battleResultDialog</receiver>
|
||||
<receiver>battleDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
|
|
@ -165,7 +255,7 @@
|
|||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>battleResultDialog</receiver>
|
||||
<receiver>battleDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
|
|
|
|||
|
|
@ -15,77 +15,58 @@ class Ui_choiceDialog(object):
|
|||
choiceDialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
|
||||
choiceDialog.resize(561, 246)
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(
|
||||
QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"),
|
||||
QtGui.QIcon.Mode.Normal,
|
||||
QtGui.QIcon.State.Off,
|
||||
)
|
||||
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
choiceDialog.setWindowIcon(icon)
|
||||
self.gridLayout = QtWidgets.QGridLayout(choiceDialog)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.formLayout = QtWidgets.QFormLayout(choiceDialog)
|
||||
self.formLayout.setObjectName("formLayout")
|
||||
self.label = QtWidgets.QLabel(parent=choiceDialog)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
|
||||
self.playerComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.playerComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.playerComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.playerComboBox.setSizePolicy(sizePolicy)
|
||||
self.playerComboBox.setObjectName("playerComboBox")
|
||||
self.gridLayout.addWidget(self.playerComboBox, 0, 1, 1, 1)
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.playerComboBox)
|
||||
self.label_2 = QtWidgets.QLabel(parent=choiceDialog)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
||||
self.priorityComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.priorityComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.priorityComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.priorityComboBox.setSizePolicy(sizePolicy)
|
||||
self.priorityComboBox.setObjectName("priorityComboBox")
|
||||
self.gridLayout.addWidget(self.priorityComboBox, 1, 1, 1, 1)
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.priorityComboBox)
|
||||
self.label_3 = QtWidgets.QLabel(parent=choiceDialog)
|
||||
self.label_3.setObjectName("label_3")
|
||||
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
|
||||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
|
||||
self.secondaryComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(
|
||||
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||||
)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(
|
||||
self.secondaryComboBox.sizePolicy().hasHeightForWidth()
|
||||
)
|
||||
sizePolicy.setHeightForWidth(self.secondaryComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.secondaryComboBox.setSizePolicy(sizePolicy)
|
||||
self.secondaryComboBox.setObjectName("secondaryComboBox")
|
||||
self.gridLayout.addWidget(self.secondaryComboBox, 2, 1, 1, 1)
|
||||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.secondaryComboBox)
|
||||
self.label_4 = QtWidgets.QLabel(parent=choiceDialog)
|
||||
self.label_4.setObjectName("label_4")
|
||||
self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
|
||||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
|
||||
self.choiceComment = QtWidgets.QPlainTextEdit(parent=choiceDialog)
|
||||
self.choiceComment.setObjectName("choiceComment")
|
||||
self.gridLayout.addWidget(self.choiceComment, 3, 1, 1, 1)
|
||||
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.choiceComment)
|
||||
self.buttonBox = QtWidgets.QDialogButtonBox(parent=choiceDialog)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||
self.buttonBox.setStandardButtons(
|
||||
QtWidgets.QDialogButtonBox.StandardButton.Cancel
|
||||
| QtWidgets.QDialogButtonBox.StandardButton.Ok
|
||||
)
|
||||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||
self.buttonBox.setObjectName("buttonBox")
|
||||
self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 2)
|
||||
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonBox)
|
||||
|
||||
self.retranslateUi(choiceDialog)
|
||||
self.buttonBox.accepted.connect(choiceDialog.accept) # type: ignore
|
||||
self.buttonBox.rejected.connect(choiceDialog.reject) # type: ignore
|
||||
self.buttonBox.accepted.connect(choiceDialog.accept) # type: ignore
|
||||
self.buttonBox.rejected.connect(choiceDialog.reject) # type: ignore
|
||||
QtCore.QMetaObject.connectSlotsByName(choiceDialog)
|
||||
|
||||
def retranslateUi(self, choiceDialog):
|
||||
|
|
@ -99,7 +80,6 @@ class Ui_choiceDialog(object):
|
|||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
choiceDialog = QtWidgets.QDialog()
|
||||
ui = Ui_choiceDialog()
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<iconset>
|
||||
<normaloff>../resources/warchron_logo.png</normaloff>../resources/warchron_logo.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
|
|
|
|||
|
|
@ -29,9 +29,6 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.addPlayerBtn = QtWidgets.QPushButton(parent=self.playersTab)
|
||||
icon1 = QtGui.QIcon()
|
||||
icon1.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/plus.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.addPlayerBtn.setIcon(icon1)
|
||||
self.addPlayerBtn.setObjectName("addPlayerBtn")
|
||||
self.horizontalLayout.addWidget(self.addPlayerBtn)
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
|
|
@ -54,9 +51,7 @@ class Ui_MainWindow(object):
|
|||
self.playersTable.setHorizontalHeaderItem(3, item)
|
||||
self.playersTable.horizontalHeader().setStretchLastSection(False)
|
||||
self.gridLayout.addWidget(self.playersTable, 1, 0, 1, 1)
|
||||
icon2 = QtGui.QIcon()
|
||||
icon2.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/users.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.tabWidget.addTab(self.playersTab, icon2, "")
|
||||
self.tabWidget.addTab(self.playersTab, "")
|
||||
self.warsTab = QtWidgets.QWidget()
|
||||
self.warsTab.setObjectName("warsTab")
|
||||
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.warsTab)
|
||||
|
|
@ -64,17 +59,14 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||
self.addWarBtn = QtWidgets.QPushButton(parent=self.warsTab)
|
||||
self.addWarBtn.setIcon(icon1)
|
||||
self.addWarBtn.setObjectName("addWarBtn")
|
||||
self.horizontalLayout_2.addWidget(self.addWarBtn)
|
||||
self.addCampaignBtn = QtWidgets.QPushButton(parent=self.warsTab)
|
||||
self.addCampaignBtn.setEnabled(False)
|
||||
self.addCampaignBtn.setIcon(icon1)
|
||||
self.addCampaignBtn.setObjectName("addCampaignBtn")
|
||||
self.horizontalLayout_2.addWidget(self.addCampaignBtn)
|
||||
self.addRoundBtn = QtWidgets.QPushButton(parent=self.warsTab)
|
||||
self.addRoundBtn.setEnabled(False)
|
||||
self.addRoundBtn.setIcon(icon1)
|
||||
self.addRoundBtn.setObjectName("addRoundBtn")
|
||||
self.horizontalLayout_2.addWidget(self.addRoundBtn)
|
||||
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
|
|
@ -125,6 +117,9 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_8.addWidget(self.warYear)
|
||||
self.verticalLayout_10.addLayout(self.horizontalLayout_8)
|
||||
self.groupBox = QtWidgets.QGroupBox(parent=self.pageWar)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.groupBox.setFont(font)
|
||||
self.groupBox.setObjectName("groupBox")
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
|
|
@ -132,10 +127,6 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||
self.addObjectiveBtn = QtWidgets.QPushButton(parent=self.groupBox)
|
||||
self.addObjectiveBtn.setEnabled(True)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.addObjectiveBtn.setFont(font)
|
||||
self.addObjectiveBtn.setIcon(icon1)
|
||||
self.addObjectiveBtn.setObjectName("addObjectiveBtn")
|
||||
self.horizontalLayout_3.addWidget(self.addObjectiveBtn)
|
||||
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
|
|
@ -191,13 +182,15 @@ class Ui_MainWindow(object):
|
|||
self.verticalLayout.addWidget(self.objectivesTable)
|
||||
self.verticalLayout_10.addWidget(self.groupBox)
|
||||
self.groupBox_2 = QtWidgets.QGroupBox(parent=self.pageWar)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.groupBox_2.setFont(font)
|
||||
self.groupBox_2.setObjectName("groupBox_2")
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
||||
self.addWarParticipantBtn = QtWidgets.QPushButton(parent=self.groupBox_2)
|
||||
self.addWarParticipantBtn.setIcon(icon1)
|
||||
self.addWarParticipantBtn.setObjectName("addWarParticipantBtn")
|
||||
self.horizontalLayout_5.addWidget(self.addWarParticipantBtn)
|
||||
spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
|
|
@ -229,9 +222,6 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_6.addItem(spacerItem10)
|
||||
self.endWarBtn = QtWidgets.QPushButton(parent=self.pageWar)
|
||||
self.endWarBtn.setEnabled(True)
|
||||
icon3 = QtGui.QIcon()
|
||||
icon3.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/flag-white.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.endWarBtn.setIcon(icon3)
|
||||
self.endWarBtn.setObjectName("endWarBtn")
|
||||
self.horizontalLayout_6.addWidget(self.endWarBtn)
|
||||
self.verticalLayout_10.addLayout(self.horizontalLayout_6)
|
||||
|
|
@ -258,6 +248,9 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_11.addWidget(self.campaignMonth)
|
||||
self.verticalLayout_7.addLayout(self.horizontalLayout_11)
|
||||
self.groupBox_3 = QtWidgets.QGroupBox(parent=self.pageCampaign)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.groupBox_3.setFont(font)
|
||||
self.groupBox_3.setObjectName("groupBox_3")
|
||||
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_3)
|
||||
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||
|
|
@ -265,7 +258,6 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_17.setObjectName("horizontalLayout_17")
|
||||
self.addSectorBtn = QtWidgets.QPushButton(parent=self.groupBox_3)
|
||||
self.addSectorBtn.setEnabled(True)
|
||||
self.addSectorBtn.setIcon(icon1)
|
||||
self.addSectorBtn.setObjectName("addSectorBtn")
|
||||
self.horizontalLayout_17.addWidget(self.addSectorBtn)
|
||||
spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
|
|
@ -295,13 +287,15 @@ class Ui_MainWindow(object):
|
|||
self.verticalLayout_5.addWidget(self.sectorsTable)
|
||||
self.verticalLayout_7.addWidget(self.groupBox_3)
|
||||
self.groupBox_4 = QtWidgets.QGroupBox(parent=self.pageCampaign)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.groupBox_4.setFont(font)
|
||||
self.groupBox_4.setObjectName("groupBox_4")
|
||||
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_4)
|
||||
self.verticalLayout_6.setObjectName("verticalLayout_6")
|
||||
self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_18.setObjectName("horizontalLayout_18")
|
||||
self.addCampaignParticipantBtn = QtWidgets.QPushButton(parent=self.groupBox_4)
|
||||
self.addCampaignParticipantBtn.setIcon(icon1)
|
||||
self.addCampaignParticipantBtn.setObjectName("addCampaignParticipantBtn")
|
||||
self.horizontalLayout_18.addWidget(self.addCampaignParticipantBtn)
|
||||
spacerItem13 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
|
|
@ -332,7 +326,6 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_10.addItem(spacerItem14)
|
||||
self.endCampaignBtn = QtWidgets.QPushButton(parent=self.pageCampaign)
|
||||
self.endCampaignBtn.setEnabled(True)
|
||||
self.endCampaignBtn.setIcon(icon3)
|
||||
self.endCampaignBtn.setObjectName("endCampaignBtn")
|
||||
self.horizontalLayout_10.addWidget(self.endCampaignBtn)
|
||||
self.verticalLayout_7.addLayout(self.horizontalLayout_10)
|
||||
|
|
@ -351,6 +344,9 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_14.addWidget(self.roundNb)
|
||||
self.verticalLayout_8.addLayout(self.horizontalLayout_14)
|
||||
self.groupBox_5 = QtWidgets.QGroupBox(parent=self.pageRound)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.groupBox_5.setFont(font)
|
||||
self.groupBox_5.setObjectName("groupBox_5")
|
||||
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_5)
|
||||
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||
|
|
@ -376,13 +372,13 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_13.addItem(spacerItem15)
|
||||
self.resolvePairingBtn = QtWidgets.QPushButton(parent=self.pageRound)
|
||||
self.resolvePairingBtn.setEnabled(False)
|
||||
icon4 = QtGui.QIcon()
|
||||
icon4.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/arrow-switch.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.resolvePairingBtn.setIcon(icon4)
|
||||
self.resolvePairingBtn.setObjectName("resolvePairingBtn")
|
||||
self.horizontalLayout_13.addWidget(self.resolvePairingBtn)
|
||||
self.verticalLayout_8.addLayout(self.horizontalLayout_13)
|
||||
self.groupBox_6 = QtWidgets.QGroupBox(parent=self.pageRound)
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(10)
|
||||
self.groupBox_6.setFont(font)
|
||||
self.groupBox_6.setObjectName("groupBox_6")
|
||||
self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.groupBox_6)
|
||||
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
|
||||
|
|
@ -413,19 +409,16 @@ class Ui_MainWindow(object):
|
|||
self.horizontalLayout_9.addItem(spacerItem16)
|
||||
self.endRoundBtn = QtWidgets.QPushButton(parent=self.pageRound)
|
||||
self.endRoundBtn.setEnabled(True)
|
||||
self.endRoundBtn.setIcon(icon3)
|
||||
self.endRoundBtn.setObjectName("endRoundBtn")
|
||||
self.horizontalLayout_9.addWidget(self.endRoundBtn)
|
||||
self.verticalLayout_8.addLayout(self.horizontalLayout_9)
|
||||
self.selectedDetailsStack.addWidget(self.pageRound)
|
||||
self.verticalLayout_3.addWidget(self.splitter)
|
||||
icon5 = QtGui.QIcon()
|
||||
icon5.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/swords-small.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.tabWidget.addTab(self.warsTab, icon5, "")
|
||||
self.tabWidget.addTab(self.warsTab, "")
|
||||
self.verticalLayout_9.addWidget(self.tabWidget)
|
||||
MainWindow.setCentralWidget(self.centralwidget)
|
||||
self.menubar = QtWidgets.QMenuBar(parent=MainWindow)
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 1235, 22))
|
||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 1235, 21))
|
||||
self.menubar.setObjectName("menubar")
|
||||
self.menuFile = QtWidgets.QMenu(parent=self.menubar)
|
||||
self.menuFile.setObjectName("menuFile")
|
||||
|
|
@ -438,52 +431,25 @@ class Ui_MainWindow(object):
|
|||
self.statusbar.setObjectName("statusbar")
|
||||
MainWindow.setStatusBar(self.statusbar)
|
||||
self.actionNew = QtGui.QAction(parent=MainWindow)
|
||||
icon6 = QtGui.QIcon()
|
||||
icon6.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/document.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionNew.setIcon(icon6)
|
||||
self.actionNew.setObjectName("actionNew")
|
||||
self.actionOpen = QtGui.QAction(parent=MainWindow)
|
||||
icon7 = QtGui.QIcon()
|
||||
icon7.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/folder.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionOpen.setIcon(icon7)
|
||||
self.actionOpen.setObjectName("actionOpen")
|
||||
self.actionSave = QtGui.QAction(parent=MainWindow)
|
||||
icon8 = QtGui.QIcon()
|
||||
icon8.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/disk.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionSave.setIcon(icon8)
|
||||
self.actionSave.setObjectName("actionSave")
|
||||
self.actionExit = QtGui.QAction(parent=MainWindow)
|
||||
icon9 = QtGui.QIcon()
|
||||
icon9.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/door--arrow.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionExit.setIcon(icon9)
|
||||
self.actionExit.setObjectName("actionExit")
|
||||
self.actionUndo = QtGui.QAction(parent=MainWindow)
|
||||
self.actionUndo.setEnabled(False)
|
||||
icon10 = QtGui.QIcon()
|
||||
icon10.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/arrow-curve-180-left.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionUndo.setIcon(icon10)
|
||||
self.actionUndo.setObjectName("actionUndo")
|
||||
self.actionRedo = QtGui.QAction(parent=MainWindow)
|
||||
self.actionRedo.setEnabled(False)
|
||||
icon11 = QtGui.QIcon()
|
||||
icon11.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/arrow-curve.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionRedo.setIcon(icon11)
|
||||
self.actionRedo.setObjectName("actionRedo")
|
||||
self.actionAbout = QtGui.QAction(parent=MainWindow)
|
||||
icon12 = QtGui.QIcon()
|
||||
icon12.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/question.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionAbout.setIcon(icon12)
|
||||
self.actionAbout.setObjectName("actionAbout")
|
||||
self.actionExport = QtGui.QAction(parent=MainWindow)
|
||||
self.actionExport.setEnabled(False)
|
||||
icon13 = QtGui.QIcon()
|
||||
icon13.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/notebook--arrow.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionExport.setIcon(icon13)
|
||||
self.actionExport.setObjectName("actionExport")
|
||||
self.actionSave_as = QtGui.QAction(parent=MainWindow)
|
||||
icon14 = QtGui.QIcon()
|
||||
icon14.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/disk--pencil.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
self.actionSave_as.setIcon(icon14)
|
||||
self.actionSave_as.setObjectName("actionSave_as")
|
||||
self.menuFile.addAction(self.actionNew)
|
||||
self.menuFile.addAction(self.actionOpen)
|
||||
|
|
@ -604,9 +570,9 @@ class Ui_MainWindow(object):
|
|||
item = self.battlesTable.horizontalHeaderItem(2)
|
||||
item.setText(_translate("MainWindow", "Player 2"))
|
||||
item = self.battlesTable.horizontalHeaderItem(3)
|
||||
item.setText(_translate("MainWindow", "Score"))
|
||||
item = self.battlesTable.horizontalHeaderItem(4)
|
||||
item.setText(_translate("MainWindow", "Victory condition"))
|
||||
item = self.battlesTable.horizontalHeaderItem(4)
|
||||
item.setText(_translate("MainWindow", "Score"))
|
||||
item = self.battlesTable.horizontalHeaderItem(5)
|
||||
item.setText(_translate("MainWindow", "Comment"))
|
||||
self.endRoundBtn.setText(_translate("MainWindow", "End round"))
|
||||
|
|
|
|||
|
|
@ -25,10 +25,6 @@
|
|||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="playersTab">
|
||||
<attribute name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/users.png</normaloff>../resources/users.png</iconset>
|
||||
</attribute>
|
||||
<attribute name="title">
|
||||
<string>Players</string>
|
||||
</attribute>
|
||||
|
|
@ -40,10 +36,6 @@
|
|||
<property name="text">
|
||||
<string>Add player</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -103,10 +95,6 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="warsTab">
|
||||
<attribute name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/swords-small.png</normaloff>../resources/swords-small.png</iconset>
|
||||
</attribute>
|
||||
<attribute name="title">
|
||||
<string>Wars</string>
|
||||
</attribute>
|
||||
|
|
@ -118,10 +106,6 @@
|
|||
<property name="text">
|
||||
<string>Add war</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -132,10 +116,6 @@
|
|||
<property name="text">
|
||||
<string>Add Campaign</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -146,10 +126,6 @@
|
|||
<property name="text">
|
||||
<string>Add Round</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -272,6 +248,11 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Objectives</string>
|
||||
</property>
|
||||
|
|
@ -283,18 +264,9 @@
|
|||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add objective</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -450,6 +422,11 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Participants</string>
|
||||
</property>
|
||||
|
|
@ -461,10 +438,6 @@
|
|||
<property name="text">
|
||||
<string>Add participant</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -552,10 +525,6 @@
|
|||
<property name="text">
|
||||
<string>End war</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/flag-white.png</normaloff>../resources/flag-white.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
@ -607,6 +576,11 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_3">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Sectors</string>
|
||||
</property>
|
||||
|
|
@ -621,10 +595,6 @@
|
|||
<property name="text">
|
||||
<string>Add Sector</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -698,6 +668,11 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_4">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Participants</string>
|
||||
</property>
|
||||
|
|
@ -709,10 +684,6 @@
|
|||
<property name="text">
|
||||
<string>Add participant</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/plus.png</normaloff>../resources/plus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
@ -797,10 +768,6 @@
|
|||
<property name="text">
|
||||
<string>End campaign</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/flag-white.png</normaloff>../resources/flag-white.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
@ -827,6 +794,11 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_5">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Choices</string>
|
||||
</property>
|
||||
|
|
@ -891,16 +863,17 @@
|
|||
<property name="text">
|
||||
<string>Resolve pairing</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/arrow-switch.png</normaloff>../resources/arrow-switch.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>10</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Battles</string>
|
||||
</property>
|
||||
|
|
@ -936,12 +909,12 @@
|
|||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Score</string>
|
||||
<string>Victory condition</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Victory condition</string>
|
||||
<string>Score</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
|
|
@ -977,10 +950,6 @@
|
|||
<property name="text">
|
||||
<string>End round</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/flag-white.png</normaloff>../resources/flag-white.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
@ -1002,7 +971,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1235</width>
|
||||
<height>22</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
|
@ -1037,10 +1006,6 @@
|
|||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<action name="actionNew">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/document.png</normaloff>../resources/document.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>New</string>
|
||||
</property>
|
||||
|
|
@ -1049,10 +1014,6 @@
|
|||
</property>
|
||||
</action>
|
||||
<action name="actionOpen">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/folder.png</normaloff>../resources/folder.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open</string>
|
||||
</property>
|
||||
|
|
@ -1061,10 +1022,6 @@
|
|||
</property>
|
||||
</action>
|
||||
<action name="actionSave">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/disk.png</normaloff>../resources/disk.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save</string>
|
||||
</property>
|
||||
|
|
@ -1073,10 +1030,6 @@
|
|||
</property>
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/door--arrow.png</normaloff>../resources/door--arrow.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Exit</string>
|
||||
</property>
|
||||
|
|
@ -1088,10 +1041,6 @@
|
|||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/arrow-curve-180-left.png</normaloff>../resources/arrow-curve-180-left.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Undo</string>
|
||||
</property>
|
||||
|
|
@ -1103,10 +1052,6 @@
|
|||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/arrow-curve.png</normaloff>../resources/arrow-curve.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Redo</string>
|
||||
</property>
|
||||
|
|
@ -1115,10 +1060,6 @@
|
|||
</property>
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/question.png</normaloff>../resources/question.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>About</string>
|
||||
</property>
|
||||
|
|
@ -1127,19 +1068,11 @@
|
|||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/notebook--arrow.png</normaloff>../resources/notebook--arrow.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Export</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave_as">
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>../resources/disk--pencil.png</normaloff>../resources/disk--pencil.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save as...</string>
|
||||
</property>
|
||||
|
|
|
|||
|
|
@ -17,25 +17,25 @@ class Ui_objectiveDialog(object):
|
|||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
objectiveDialog.setWindowIcon(icon)
|
||||
self.gridLayout = QtWidgets.QGridLayout(objectiveDialog)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.formLayout = QtWidgets.QFormLayout(objectiveDialog)
|
||||
self.formLayout.setObjectName("formLayout")
|
||||
self.label = QtWidgets.QLabel(parent=objectiveDialog)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
|
||||
self.objectiveName = QtWidgets.QLineEdit(parent=objectiveDialog)
|
||||
self.objectiveName.setObjectName("objectiveName")
|
||||
self.gridLayout.addWidget(self.objectiveName, 0, 1, 1, 1)
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.objectiveName)
|
||||
self.label_2 = QtWidgets.QLabel(parent=objectiveDialog)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
||||
self.objectiveDescription = QtWidgets.QTextEdit(parent=objectiveDialog)
|
||||
self.objectiveDescription.setObjectName("objectiveDescription")
|
||||
self.gridLayout.addWidget(self.objectiveDescription, 1, 1, 1, 1)
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.objectiveDescription)
|
||||
self.buttonBox = QtWidgets.QDialogButtonBox(parent=objectiveDialog)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||
self.buttonBox.setObjectName("buttonBox")
|
||||
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
|
||||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonBox)
|
||||
|
||||
self.retranslateUi(objectiveDialog)
|
||||
self.buttonBox.accepted.connect(objectiveDialog.accept) # type: ignore
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<iconset>
|
||||
<normaloff>../resources/warchron_logo.png</normaloff>../resources/warchron_logo.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
|
|
|
|||
|
|
@ -13,33 +13,34 @@ class Ui_sectorDialog(object):
|
|||
def setupUi(self, sectorDialog):
|
||||
sectorDialog.setObjectName("sectorDialog")
|
||||
sectorDialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
|
||||
sectorDialog.resize(602, 338)
|
||||
sectorDialog.resize(888, 338)
|
||||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
sectorDialog.setWindowIcon(icon)
|
||||
self.gridLayout = QtWidgets.QGridLayout(sectorDialog)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.verticalLayout_5 = QtWidgets.QVBoxLayout(sectorDialog)
|
||||
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
|
||||
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||
self.label_2 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
|
||||
self.verticalLayout_4.addWidget(self.label_2)
|
||||
self.label = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label.setObjectName("label")
|
||||
self.verticalLayout_4.addWidget(self.label)
|
||||
self.label_7 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_7.setObjectName("label_7")
|
||||
self.verticalLayout_4.addWidget(self.label_7)
|
||||
self.horizontalLayout_6.addLayout(self.verticalLayout_4)
|
||||
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||
self.sectorName = QtWidgets.QLineEdit(parent=sectorDialog)
|
||||
self.sectorName.setText("")
|
||||
self.sectorName.setObjectName("sectorName")
|
||||
self.gridLayout.addWidget(self.sectorName, 0, 1, 1, 1)
|
||||
self.label_3 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_3.setObjectName("label_3")
|
||||
self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1)
|
||||
self.majorComboBox = QtWidgets.QComboBox(parent=sectorDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.majorComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.majorComboBox.setSizePolicy(sizePolicy)
|
||||
self.majorComboBox.setObjectName("majorComboBox")
|
||||
self.gridLayout.addWidget(self.majorComboBox, 0, 3, 1, 1)
|
||||
self.label = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
|
||||
self.verticalLayout_3.addWidget(self.sectorName)
|
||||
self.roundComboBox = QtWidgets.QComboBox(parent=sectorDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
|
|
@ -47,10 +48,39 @@ class Ui_sectorDialog(object):
|
|||
sizePolicy.setHeightForWidth(self.roundComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.roundComboBox.setSizePolicy(sizePolicy)
|
||||
self.roundComboBox.setObjectName("roundComboBox")
|
||||
self.gridLayout.addWidget(self.roundComboBox, 1, 1, 1, 1)
|
||||
self.verticalLayout_3.addWidget(self.roundComboBox)
|
||||
self.sectorMission = QtWidgets.QLineEdit(parent=sectorDialog)
|
||||
self.sectorMission.setText("")
|
||||
self.sectorMission.setObjectName("sectorMission")
|
||||
self.verticalLayout_3.addWidget(self.sectorMission)
|
||||
self.horizontalLayout_6.addLayout(self.verticalLayout_3)
|
||||
self.horizontalLayout.addLayout(self.horizontalLayout_6)
|
||||
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout.addItem(spacerItem)
|
||||
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
||||
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||
self.label_3 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_3.setObjectName("label_3")
|
||||
self.verticalLayout_2.addWidget(self.label_3)
|
||||
self.label_4 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_4.setObjectName("label_4")
|
||||
self.gridLayout.addWidget(self.label_4, 1, 2, 1, 1)
|
||||
self.verticalLayout_2.addWidget(self.label_4)
|
||||
self.label_5 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_5.setObjectName("label_5")
|
||||
self.verticalLayout_2.addWidget(self.label_5)
|
||||
self.horizontalLayout_5.addLayout(self.verticalLayout_2)
|
||||
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||
self.verticalLayout.setObjectName("verticalLayout")
|
||||
self.majorComboBox = QtWidgets.QComboBox(parent=sectorDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.majorComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.majorComboBox.setSizePolicy(sizePolicy)
|
||||
self.majorComboBox.setObjectName("majorComboBox")
|
||||
self.verticalLayout.addWidget(self.majorComboBox)
|
||||
self.minorComboBox = QtWidgets.QComboBox(parent=sectorDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
|
|
@ -58,17 +88,7 @@ class Ui_sectorDialog(object):
|
|||
sizePolicy.setHeightForWidth(self.minorComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.minorComboBox.setSizePolicy(sizePolicy)
|
||||
self.minorComboBox.setObjectName("minorComboBox")
|
||||
self.gridLayout.addWidget(self.minorComboBox, 1, 3, 1, 1)
|
||||
self.label_7 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_7.setObjectName("label_7")
|
||||
self.gridLayout.addWidget(self.label_7, 2, 0, 1, 1)
|
||||
self.sectorMission = QtWidgets.QLineEdit(parent=sectorDialog)
|
||||
self.sectorMission.setText("")
|
||||
self.sectorMission.setObjectName("sectorMission")
|
||||
self.gridLayout.addWidget(self.sectorMission, 2, 1, 1, 1)
|
||||
self.label_5 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_5.setObjectName("label_5")
|
||||
self.gridLayout.addWidget(self.label_5, 2, 2, 1, 1)
|
||||
self.verticalLayout.addWidget(self.minorComboBox)
|
||||
self.influenceComboBox = QtWidgets.QComboBox(parent=sectorDialog)
|
||||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
|
|
@ -76,18 +96,26 @@ class Ui_sectorDialog(object):
|
|||
sizePolicy.setHeightForWidth(self.influenceComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.influenceComboBox.setSizePolicy(sizePolicy)
|
||||
self.influenceComboBox.setObjectName("influenceComboBox")
|
||||
self.gridLayout.addWidget(self.influenceComboBox, 2, 3, 1, 1)
|
||||
self.verticalLayout.addWidget(self.influenceComboBox)
|
||||
self.horizontalLayout_5.addLayout(self.verticalLayout)
|
||||
self.horizontalLayout.addLayout(self.horizontalLayout_5)
|
||||
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||
self.horizontalLayout.addItem(spacerItem1)
|
||||
self.verticalLayout_5.addLayout(self.horizontalLayout)
|
||||
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
|
||||
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||
self.label_6 = QtWidgets.QLabel(parent=sectorDialog)
|
||||
self.label_6.setObjectName("label_6")
|
||||
self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1)
|
||||
self.horizontalLayout_4.addWidget(self.label_6)
|
||||
self.sectorDescription = QtWidgets.QPlainTextEdit(parent=sectorDialog)
|
||||
self.sectorDescription.setObjectName("sectorDescription")
|
||||
self.gridLayout.addWidget(self.sectorDescription, 3, 1, 1, 3)
|
||||
self.horizontalLayout_4.addWidget(self.sectorDescription)
|
||||
self.verticalLayout_5.addLayout(self.horizontalLayout_4)
|
||||
self.buttonBox = QtWidgets.QDialogButtonBox(parent=sectorDialog)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||
self.buttonBox.setObjectName("buttonBox")
|
||||
self.gridLayout.addWidget(self.buttonBox, 4, 2, 1, 2)
|
||||
self.verticalLayout_5.addWidget(self.buttonBox)
|
||||
|
||||
self.retranslateUi(sectorDialog)
|
||||
self.buttonBox.accepted.connect(sectorDialog.accept) # type: ignore
|
||||
|
|
@ -98,10 +126,10 @@ class Ui_sectorDialog(object):
|
|||
_translate = QtCore.QCoreApplication.translate
|
||||
sectorDialog.setWindowTitle(_translate("sectorDialog", "Sector"))
|
||||
self.label_2.setText(_translate("sectorDialog", "Name"))
|
||||
self.label_3.setText(_translate("sectorDialog", "Major objective"))
|
||||
self.label.setText(_translate("sectorDialog", "Round"))
|
||||
self.label_4.setText(_translate("sectorDialog", "Minor opportunity"))
|
||||
self.label_7.setText(_translate("sectorDialog", "Mission"))
|
||||
self.label_3.setText(_translate("sectorDialog", "Major objective"))
|
||||
self.label_4.setText(_translate("sectorDialog", "Minor opportunity"))
|
||||
self.label_5.setText(_translate("sectorDialog", "Influence"))
|
||||
self.label_6.setText(_translate("sectorDialog", "Description"))
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>602</width>
|
||||
<width>888</width>
|
||||
<height>338</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
|
@ -20,114 +20,172 @@
|
|||
<iconset>
|
||||
<normaloff>../resources/warchron_logo.png</normaloff>../resources/warchron_logo.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Round</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Mission</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QLineEdit" name="sectorName">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="roundComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="sectorMission">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Major objective</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Minor opportunity</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Influence</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QComboBox" name="majorComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="minorComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="influenceComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="sectorName">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Description</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="sectorDescription"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Major objective</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QComboBox" name="majorComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Round</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="roundComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Minor opportunity</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3">
|
||||
<widget class="QComboBox" name="minorComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Mission</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="sectorMission">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Influence</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="3">
|
||||
<widget class="QComboBox" name="influenceComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Description</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" colspan="3">
|
||||
<widget class="QPlainTextEdit" name="sectorDescription"/>
|
||||
</item>
|
||||
<item row="4" column="2" colspan="2">
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
|
|
|
|||
|
|
@ -17,27 +17,27 @@ class Ui_warDialog(object):
|
|||
icon = QtGui.QIcon()
|
||||
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||
warDialog.setWindowIcon(icon)
|
||||
self.gridLayout = QtWidgets.QGridLayout(warDialog)
|
||||
self.gridLayout.setObjectName("gridLayout")
|
||||
self.formLayout = QtWidgets.QFormLayout(warDialog)
|
||||
self.formLayout.setObjectName("formLayout")
|
||||
self.label = QtWidgets.QLabel(parent=warDialog)
|
||||
self.label.setObjectName("label")
|
||||
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
|
||||
self.warName = QtWidgets.QLineEdit(parent=warDialog)
|
||||
self.warName.setObjectName("warName")
|
||||
self.gridLayout.addWidget(self.warName, 0, 1, 1, 1)
|
||||
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.warName)
|
||||
self.label_2 = QtWidgets.QLabel(parent=warDialog)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
||||
self.warYear = QtWidgets.QSpinBox(parent=warDialog)
|
||||
self.warYear.setMinimum(1970)
|
||||
self.warYear.setMaximum(3000)
|
||||
self.warYear.setObjectName("warYear")
|
||||
self.gridLayout.addWidget(self.warYear, 1, 1, 1, 1)
|
||||
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.warYear)
|
||||
self.buttonBox = QtWidgets.QDialogButtonBox(parent=warDialog)
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||
self.buttonBox.setObjectName("buttonBox")
|
||||
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
|
||||
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonBox)
|
||||
|
||||
self.retranslateUi(warDialog)
|
||||
self.buttonBox.accepted.connect(warDialog.accept) # type: ignore
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<iconset>
|
||||
<normaloff>../resources/warchron_logo.png</normaloff>../resources/warchron_logo.png</iconset>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue