mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
use CreateDialog in main window
This commit is contained in:
parent
fca803aae4
commit
622c924cb1
1 changed files with 12 additions and 5 deletions
|
|
@ -22,7 +22,10 @@ for path in [
|
|||
from Qt import QtWidgets, QtCore
|
||||
|
||||
from control import PublisherController
|
||||
from widgets import SubsetAttributesWidget
|
||||
from widgets import (
|
||||
SubsetAttributesWidget,
|
||||
CreateDialog
|
||||
)
|
||||
|
||||
|
||||
class PublisherWindow(QtWidgets.QWidget):
|
||||
|
|
@ -30,8 +33,10 @@ class PublisherWindow(QtWidgets.QWidget):
|
|||
super(PublisherWindow, self).__init__(parent)
|
||||
|
||||
self._first_show = True
|
||||
# TODO Title, Icon, Stylesheet
|
||||
|
||||
controller = PublisherController()
|
||||
|
||||
# TODO Title, Icon, Stylesheet
|
||||
main_frame = QtWidgets.QWidget(self)
|
||||
|
||||
# Header
|
||||
|
|
@ -86,6 +91,8 @@ class PublisherWindow(QtWidgets.QWidget):
|
|||
main_layout = QtWidgets.QHBoxLayout(self)
|
||||
main_layout.addWidget(main_frame)
|
||||
|
||||
creator_window = CreateDialog(controller, self)
|
||||
|
||||
reset_btn.clicked.connect(self._on_reset_clicked)
|
||||
|
||||
create_btn.clicked.connect(self._on_create_clicked)
|
||||
|
|
@ -101,10 +108,10 @@ class PublisherWindow(QtWidgets.QWidget):
|
|||
self.validate_btn = validate_btn
|
||||
self.publish_btn = publish_btn
|
||||
|
||||
controller = PublisherController()
|
||||
|
||||
self.controller = controller
|
||||
|
||||
self.creator_window = creator_window
|
||||
|
||||
# DEBUGING
|
||||
self.set_context_label(
|
||||
"<project>/<hierarchy>/<asset>/<task>/<workfile>"
|
||||
|
|
@ -127,7 +134,7 @@ class PublisherWindow(QtWidgets.QWidget):
|
|||
self.reset()
|
||||
|
||||
def _on_create_clicked(self):
|
||||
print("Creation!!!")
|
||||
self.creator_window.show()
|
||||
|
||||
def _on_validate_clicked(self):
|
||||
print("Validation!!!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue