Exemplo n.º 1
0
 def _setupWindow(self):
     super(AovControl, self)._setupWindow()
     self.baseLayout = QtWidgets.QVBoxLayout()
     self.lightList = QtWidgets.QListWidget()
     self.aovList = QtWidgets.QListWidget()
     self.lightBox = QtWidgets.QGroupBox('Lights')
     self.aovBox = QtWidgets.QGroupBox('AOVs')
     self.lightBoxLayout = QtWidgets.QVBoxLayout(self.lightBox)
     self.aovBoxLayout = QtWidgets.QVBoxLayout(self.aovBox)
Exemplo n.º 2
0
    def _setupWindow(self):
        super(AttributeControl, self)._setupWindow()

        self.baseLayout = QtWidgets.QVBoxLayout()
        self.objectList = ListWidget()
        self.objectBox = QtWidgets.QGroupBox('Objects')
        self.objectBoxLayout = QtWidgets.QHBoxLayout()
        self.objectBoxControlLayout = QtWidgets.QVBoxLayout()
        self.controlBox = QtWidgets.QGroupBox('Control')
        self.controlBoxLayout = QtWidgets.QVBoxLayout()
        self.closeButton = QtWidgets.QPushButton('Close')
        self.tab = QtWidgets.QTabWidget()
        self.addObjectButton = QtWidgets.QPushButton(u'\u271A')
        self.removeObjectButton = QtWidgets.QPushButton(u'\u2716')
        self.refreshObjectButton = QtWidgets.QPushButton(u'\u267B')
        self.recursiveObjectButton = QtWidgets.QPushButton(u'\u272A')
Exemplo n.º 3
0
 def _groupWidgets(self, widgets, title):
     box = QtWidgets.QGroupBox(title)
     layout = QtWidgets.QVBoxLayout()
     box.setLayout(layout)
     addBorder(box)
     for widget in widgets:
         layout.addWidget(widget)
     return box
Exemplo n.º 4
0
 def _addWidgets(self):
     self.parentWidget.setLayout(self.baseLayout)
     self.objectBox.setLayout(self.objectBoxLayout)
     self.controlBox.setLayout(self.controlBoxLayout)
     self.baseLayout.addWidget(self.objectBox)
     self.baseLayout.addWidget(self.controlBox)
     self.baseLayout.addWidget(self.closeButton)
     self.objectBoxLayout.addWidget(self.objectList)
     self.objectBoxLayout.addLayout(self.objectBoxControlLayout)
     self.objectBoxControlLayout.addWidget(self.addObjectButton)
     self.objectBoxControlLayout.addWidget(self.removeObjectButton)
     self.objectBoxControlLayout.addWidget(self.refreshObjectButton)
     self.objectBoxControlLayout.addWidget(self.recursiveObjectButton)
     self.controlBoxLayout.addWidget(self.tab)
     self.transformLayout = QtWidgets.QVBoxLayout()
     self.meshLayout = QtWidgets.QVBoxLayout()
     self.lightLayout = QtWidgets.QVBoxLayout()
     self.otherLayout = QtWidgets.QVBoxLayout()
Exemplo n.º 5
0
 def _setupWindow(self):
     super(LightControl, self)._setupWindow()
     self.baseLayout = QtWidgets.QHBoxLayout()
     self.controlLayout = QtWidgets.QVBoxLayout()
     self.lightList = QtWidgets.QListWidget()
     self.lightBox = QtWidgets.QGroupBox('Lights')
     self.lightBoxLayout = QtWidgets.QVBoxLayout()
     self.controlBox = QtWidgets.QGroupBox('Control')
     self.controlBoxLayout = QtWidgets.QVBoxLayout(self.controlBox)
     self.cameraBox = QtWidgets.QGroupBox('View')
     self.cameraBoxLayout = QtWidgets.QVBoxLayout(self.cameraBox)
     self.checkBoxLayout = QtWidgets.QHBoxLayout()
     self.lightEnableCheckbox = QtWidgets.QCheckBox('Enabled')
     self.useKelvinCheckbox = QtWidgets.QCheckBox('Kelvin')
     self.selectLightCheckbox = QtWidgets.QCheckBox('Select')
     self.lookThroughLightCheckbox = QtWidgets.QCheckBox('Look Through')
     self.lightCheckboxLayout = QtWidgets.QHBoxLayout()
     self.refreshButton = QtWidgets.QPushButton('Refresh')
Exemplo n.º 6
0
    def _setupWidgets(self):
        self.layout = QtWidgets.QVBoxLayout()
        self.controlLayout = QtWidgets.QHBoxLayout()
        self.buttonLayout = QtWidgets.QHBoxLayout()
        self.minSlider = QtWidgets.QDoubleSpinBox()
        self.maxSlider = QtWidgets.QDoubleSpinBox()
        self.cancelButton = QtWidgets.QPushButton('Cancel')
        self.setButton = QtWidgets.QPushButton('Set')

        self._addWidgets()
        self._editWidgets()
Exemplo n.º 7
0
 def _setupWindow(self):
     centralWidget = QtWidgets.QWidget(self)
     self.setCentralWidget(centralWidget)
     self._mainLayout = QtWidgets.QVBoxLayout(centralWidget)
     self._mainLayout.setContentsMargins(2, 2, 2, 2)
     centralWidget.setLayout(self._mainLayout)
     self.parentWidget = QtWidgets.QGroupBox()
     self.parentWidget.setObjectName("parentWidgetBox")
     centralWidget.setObjectName('centralWidget')
     self._mainLayout.setObjectName('baseMainLayout')
     self._mainLayout.addWidget(self.parentWidget)
     self.setMenuBar(self.menuBar)
     self.statusBar()
Exemplo n.º 8
0
    def __setupTab(self, name, layout):
        main_widget = QtWidgets.QWidget()
        w = QtWidgets.QWidget()
        w.setLayout(layout)

        scroll_area = QtWidgets.QScrollArea()
        scroll_area.setFocusPolicy(QtCore.Qt.NoFocus)
        scroll_area.setWidgetResizable(True)
        scroll_area.setWidget(w)

        layout = QtWidgets.QVBoxLayout()
        layout.addWidget(scroll_area)

        main_widget.setLayout(layout)
        self.tab.addTab(main_widget, name)