示例#1
0
    def __init__(self, shpParent):
        QtGui.QDialog.__init__(self)
        self.setupUi(self)
        self.shpParent = shpParent

        self.qtsCommon = qt_common.PyQtAppSupport(self)
        self.qtsTree = tree_simple.TreeSimple(self)
        self.qtsTable = table.Table(self)
        self.qtsOverride = override.Override(self)

        self.uiConnections()
        self.uiInitalize()
    def __init__(self, cParent, dlgConfigObj = None):
        #Default
        QtGui.QDialog.__init__(self)
        self.setupUi(self)
        self.sigConnection()
        self.dlgConfig = CustomDialogConfigure() if not dlgConfigObj else dlgConfigObj

        #Custom
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(cParent,'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common
        self.qtsCommon = qt_common.PyQtAppSupport(self, self.Config.AppInfo.IconPath)
        self.qtsList = list_box.List(self)
示例#3
0
    def __init__(self, cip, cParent=None):
        self.cParent = cParent
        self.cip = ConfigUIInput() if not cip else cip

        #InitalValues
        self.configFile = self.cip.iniPath
        self.writeFlag = self.cip.isEditable
        self.skipSections = self.cip.skipSections
        self.skipOptions = self.cip.skipOptions

        #Instance
        self.ui = config_ui_handle.ConfigUI(self)
        self.qtsCommon = qt_common.PyQtAppSupport(self.ui)
        self.qtsTree = tree_simple.TreeSimple(self.ui)
        self.qtsTable = table.Table(self.ui)
        self.qtsOverride = override.Override(self.ui)
示例#4
0
    def __init__(self, cParent):
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(
            cParent, 'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common

        QtGui.QMainWindow.__init__(self)
        self.setupUi(self)
        self.qtsCommon = qt_common.PyQtAppSupport(
            self, iconPath=self.Config.AppInfo.IconPath)
        self.qtsTree = tree_simple.TreeSimple(self)
        self.qtsTable = table.Table(self)
        self.qtsOverride = override.Override(self)

        self.uiInitalize()
        self.uiConnections()
        self.uiDesign()
示例#5
0
    def __init__(self, cParent):
        self.cParent = dummy_parent.DummyParent(cParent) if not hasattr(
            cParent, 'Config') else cParent
        self.App = self.cParent.App
        self.Config = self.cParent.Config
        self.Common = self.cParent.Common

        #Instance
        self.ui = lnp_ui_handle.LightNPrayUI(self)
        redirectPrint = 0 if self.Common.devmode else 1
        redirectErrors = 0 if self.Common.devmode else 1
        self.dev = DevConsolePlug.DevConsole(self.ui,
                                             ShowPrint=redirectPrint,
                                             ShowError=redirectErrors,
                                             StatusBar=self.ui.statusbar,
                                             AsDock=True)
        self.qtsCommon = qt_common.PyQtAppSupport(self.ui)
        self.qtsTree = tree_simple.TreeSimple(self.ui)
        self.qtsTable = table.Table(self.ui)
        self.qtsOverride = override.Override(self.ui)
        self.data = lighting_pass_uidata.exLightPassData(self)
        self.lightPassSel = PassDefSelections()
        self.ui.__class__.closeEvent = self.__littleHouseKeeping