Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SG-36261 new way to build resources #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build_resources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# YAML Configuration File for Qt Resource Building
#
# For more information:
# https://github.com/shotgunsoftware/tk-toolchain?tab=readme-ov-file#tk-build-qt-resources

- ui_src: resources
ui_files:
- submit_dialog
- batch_render_dialog
- submission_complete_dialog
- submission_failed_dialog
res_files:
- resources
py_dest: python/dialogs/ui
32 changes: 15 additions & 17 deletions python/dialogs/ui/batch_render_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,66 +8,64 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from sgtk.platform.qt import QtCore
from tank.platform.qt import QtCore
for name, cls in QtCore.__dict__.items():
if isinstance(cls, type): globals()[name] = cls

from sgtk.platform.qt import QtGui
from tank.platform.qt import QtGui
for name, cls in QtGui.__dict__.items():
if isinstance(cls, type): globals()[name] = cls

from . import resources_rc

from . import resources_rc

class Ui_BatchRenderDialog(object):
def setupUi(self, BatchRenderDialog):
if not BatchRenderDialog.objectName():
BatchRenderDialog.setObjectName("BatchRenderDialog")
BatchRenderDialog.setObjectName(u"BatchRenderDialog")
BatchRenderDialog.resize(352, 398)
self.verticalLayout = QVBoxLayout(BatchRenderDialog)
self.verticalLayout.setObjectName("verticalLayout")
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(20, 20, 20, -1)
self.label_2 = QLabel(BatchRenderDialog)
self.label_2.setObjectName("label_2")
self.label_2.setPixmap(QPixmap(":/tk-flame-export/batch_render_splash.png"))
self.label_2.setObjectName(u"label_2")
self.label_2.setPixmap(QPixmap(u":/tk-flame-export/batch_render_splash.png"))

self.verticalLayout.addWidget(self.label_2)

self.comments = QPlainTextEdit(BatchRenderDialog)
self.comments.setObjectName("comments")
self.comments.setObjectName(u"comments")
self.comments.setMinimumSize(QSize(300, 100))

self.verticalLayout.addWidget(self.comments)

self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setSpacing(4)
self.horizontalLayout.setObjectName("horizontalLayout")
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalSpacer = QSpacerItem(368, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

self.horizontalLayout.addItem(self.horizontalSpacer)

self.cancel = QPushButton(BatchRenderDialog)
self.cancel.setObjectName("cancel")
self.cancel.setObjectName(u"cancel")

self.horizontalLayout.addWidget(self.cancel)

self.submit = QPushButton(BatchRenderDialog)
self.submit.setObjectName("submit")
self.submit.setObjectName(u"submit")

self.horizontalLayout.addWidget(self.submit)


self.verticalLayout.addLayout(self.horizontalLayout)


self.retranslateUi(BatchRenderDialog)

QMetaObject.connectSlotsByName(BatchRenderDialog)
# setupUi

def retranslateUi(self, BatchRenderDialog):
BatchRenderDialog.setWindowTitle(QCoreApplication.translate("BatchRenderDialog", "Submit to Flow Production Tracking", None))
BatchRenderDialog.setWindowTitle(QCoreApplication.translate("BatchRenderDialog", u"Submit to Flow Production Tracking", None))
self.label_2.setText("")
self.cancel.setText(QCoreApplication.translate("BatchRenderDialog", "Skip", None))
self.submit.setText(QCoreApplication.translate("BatchRenderDialog", "Send to Flow Production Tracking Review", None))
self.cancel.setText(QCoreApplication.translate("BatchRenderDialog", u"Skip", None))
self.submit.setText(QCoreApplication.translate("BatchRenderDialog", u"Send to Flow Production Tracking Review", None))
# retranslateUi

12 changes: 6 additions & 6 deletions python/dialogs/ui/resources_rc.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 5.15.16
# Created by: The Resource Compiler for Qt version 5.15.2
# WARNING! All changes made in this file will be lost!

from sgtk.platform.qt import QtCore
from tank.platform.qt import QtCore

qt_resource_data = b"\
\x00\x00y\x87\
Expand Down Expand Up @@ -3467,13 +3467,13 @@
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00D\x00\x00\x00\x00\x00\x01\x00\x00y\x8b\
\x00\x00\x01\x8e\x80\xedc\xc6\
\x00\x00\x01\x92\xe3\xd2-D\
\x00\x00\x00\x94\x00\x00\x00\x00\x00\x01\x00\x00\xc8b\
\x00\x00\x01\x8e\x80\xec!\xd5\
\x00\x00\x01\x92\xe3\xd2-a\
\x00\x00\x00x\x00\x00\x00\x00\x00\x01\x00\x00\xba\x1f\
\x00\x00\x01\x8e\x80\xec!\xd0\
\x00\x00\x01\x92\xe3\xd2-G\
\x00\x00\x00$\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x8e\x80\xec!\xd5\
\x00\x00\x01\x92\xe3\xd2-b\
"

def qInitResources():
Expand Down
42 changes: 19 additions & 23 deletions python/dialogs/ui/submission_complete_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,50 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from sgtk.platform.qt import QtCore
from tank.platform.qt import QtCore
for name, cls in QtCore.__dict__.items():
if isinstance(cls, type): globals()[name] = cls

from sgtk.platform.qt import QtGui
from tank.platform.qt import QtGui
for name, cls in QtGui.__dict__.items():
if isinstance(cls, type): globals()[name] = cls

from . import resources_rc

from . import resources_rc

class Ui_SubmissionCompleteDialog(object):
def setupUi(self, SubmissionCompleteDialog):
if not SubmissionCompleteDialog.objectName():
SubmissionCompleteDialog.setObjectName("SubmissionCompleteDialog")
SubmissionCompleteDialog.setObjectName(u"SubmissionCompleteDialog")
SubmissionCompleteDialog.resize(569, 237)
self.verticalLayout = QVBoxLayout(SubmissionCompleteDialog)
self.verticalLayout.setObjectName("verticalLayout")
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(20, -1, 20, -1)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.label = QLabel(SubmissionCompleteDialog)
self.label.setObjectName("label")
self.label.setObjectName(u"label")
sizePolicy = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
self.label.setSizePolicy(sizePolicy)
self.label.setPixmap(QPixmap(":/tk-flame-export/success.png"))
self.label.setPixmap(QPixmap(u":/tk-flame-export/success.png"))
self.label.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)

self.horizontalLayout_3.addWidget(self.label)

self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.label_3 = QLabel(SubmissionCompleteDialog)
self.label_3.setObjectName("label_3")
self.label_3.setStyleSheet("QLabel { font-size: 18px; }")
self.label_3.setObjectName(u"label_3")
self.label_3.setStyleSheet(u"QLabel { font-size: 18px; }")
self.label_3.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)

self.verticalLayout_2.addWidget(self.label_3)

self.status = QLabel(SubmissionCompleteDialog)
self.status.setObjectName("status")
self.status.setObjectName(u"status")
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.MinimumExpanding)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
Expand All @@ -61,37 +62,32 @@ def setupUi(self, SubmissionCompleteDialog):

self.verticalLayout_2.addWidget(self.status)


self.horizontalLayout_3.addLayout(self.verticalLayout_2)


self.verticalLayout.addLayout(self.horizontalLayout_3)

self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalSpacer = QSpacerItem(368, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

self.horizontalLayout.addItem(self.horizontalSpacer)

self.submit = QPushButton(SubmissionCompleteDialog)
self.submit.setObjectName("submit")
self.submit.setObjectName(u"submit")

self.horizontalLayout.addWidget(self.submit)


self.verticalLayout.addLayout(self.horizontalLayout)


self.retranslateUi(SubmissionCompleteDialog)

QMetaObject.connectSlotsByName(SubmissionCompleteDialog)
# setupUi

def retranslateUi(self, SubmissionCompleteDialog):
SubmissionCompleteDialog.setWindowTitle(QCoreApplication.translate("SubmissionCompleteDialog", "Flow Production Tracking Submission Complete", None))
SubmissionCompleteDialog.setWindowTitle(QCoreApplication.translate("SubmissionCompleteDialog", u"Flow Production Tracking Submission Complete", None))
self.label.setText("")
self.label_3.setText(QCoreApplication.translate("SubmissionCompleteDialog", "Submission Complete!", None))
self.status.setText(QCoreApplication.translate("SubmissionCompleteDialog", "TextLabel", None))
self.submit.setText(QCoreApplication.translate("SubmissionCompleteDialog", "Ok", None))
self.label_3.setText(QCoreApplication.translate("SubmissionCompleteDialog", u"Submission Complete!", None))
self.status.setText(QCoreApplication.translate("SubmissionCompleteDialog", u"TextLabel", None))
self.submit.setText(QCoreApplication.translate("SubmissionCompleteDialog", u"Ok", None))
# retranslateUi

40 changes: 18 additions & 22 deletions python/dialogs/ui/submission_failed_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,49 @@
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from sgtk.platform.qt import QtCore
from tank.platform.qt import QtCore
for name, cls in QtCore.__dict__.items():
if isinstance(cls, type): globals()[name] = cls

from sgtk.platform.qt import QtGui
from tank.platform.qt import QtGui
for name, cls in QtGui.__dict__.items():
if isinstance(cls, type): globals()[name] = cls

from . import resources_rc

from . import resources_rc

class Ui_SubmissionFailedDialog(object):
def setupUi(self, SubmissionFailedDialog):
if not SubmissionFailedDialog.objectName():
SubmissionFailedDialog.setObjectName("SubmissionFailedDialog")
SubmissionFailedDialog.setObjectName(u"SubmissionFailedDialog")
SubmissionFailedDialog.resize(491, 204)
self.verticalLayout = QVBoxLayout(SubmissionFailedDialog)
self.verticalLayout.setObjectName("verticalLayout")
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(20, -1, 20, -1)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.label_2 = QLabel(SubmissionFailedDialog)
self.label_2.setObjectName("label_2")
self.label_2.setObjectName(u"label_2")
sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
self.label_2.setPixmap(QPixmap(":/tk-flame-export/failure.png"))
self.label_2.setPixmap(QPixmap(u":/tk-flame-export/failure.png"))

self.horizontalLayout_3.addWidget(self.label_2)

self.verticalLayout_3 = QVBoxLayout()
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.label_3 = QLabel(SubmissionFailedDialog)
self.label_3.setObjectName("label_3")
self.label_3.setStyleSheet("QLabel { font-size: 18px; }")
self.label_3.setObjectName(u"label_3")
self.label_3.setStyleSheet(u"QLabel { font-size: 18px; }")
self.label_3.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignTop)

self.verticalLayout_3.addWidget(self.label_3)

self.status = QLabel(SubmissionFailedDialog)
self.status.setObjectName("status")
self.status.setObjectName(u"status")
sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.MinimumExpanding)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
Expand All @@ -61,37 +62,32 @@ def setupUi(self, SubmissionFailedDialog):

self.verticalLayout_3.addWidget(self.status)


self.horizontalLayout_3.addLayout(self.verticalLayout_3)


self.verticalLayout.addLayout(self.horizontalLayout_3)

self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalSpacer = QSpacerItem(368, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

self.horizontalLayout.addItem(self.horizontalSpacer)

self.submit = QPushButton(SubmissionFailedDialog)
self.submit.setObjectName("submit")
self.submit.setObjectName(u"submit")

self.horizontalLayout.addWidget(self.submit)


self.verticalLayout.addLayout(self.horizontalLayout)


self.retranslateUi(SubmissionFailedDialog)

QMetaObject.connectSlotsByName(SubmissionFailedDialog)
# setupUi

def retranslateUi(self, SubmissionFailedDialog):
SubmissionFailedDialog.setWindowTitle(QCoreApplication.translate("SubmissionFailedDialog", "Flow Production Tracking Submission Failed", None))
SubmissionFailedDialog.setWindowTitle(QCoreApplication.translate("SubmissionFailedDialog", u"Flow Production Tracking Submission Failed", None))
self.label_2.setText("")
self.label_3.setText(QCoreApplication.translate("SubmissionFailedDialog", "Something went wrong!", None))
self.label_3.setText(QCoreApplication.translate("SubmissionFailedDialog", u"Something went wrong!", None))
self.status.setText("")
self.submit.setText(QCoreApplication.translate("SubmissionFailedDialog", "Ok", None))
self.submit.setText(QCoreApplication.translate("SubmissionFailedDialog", u"Ok", None))
# retranslateUi

Loading