def __init__(self, theParent, theProject): PagedDialog.__init__(self, theParent) logger.debug("Initialising GuiPreferences ...") self.setObjectName("GuiPreferences") self.mainConf = nw.CONFIG self.theParent = theParent self.theProject = theProject self.setWindowTitle("Preferences") self.tabGeneral = GuiConfigEditGeneralTab(self.theParent) self.tabProjects = GuiConfigEditProjectsTab(self.theParent) self.tabLayout = GuiConfigEditLayoutTab(self.theParent) self.tabEditing = GuiConfigEditEditingTab(self.theParent) self.tabAutoRep = GuiConfigEditAutoReplaceTab(self.theParent) self.addTab(self.tabGeneral, "General") self.addTab(self.tabProjects, "Projects") self.addTab(self.tabLayout, "Text Layout") self.addTab(self.tabEditing, "Editor") self.addTab(self.tabAutoRep, "Auto-Replace") self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) self.buttonBox.accepted.connect(self._doSave) self.buttonBox.rejected.connect(self._doClose) self.addControls(self.buttonBox) logger.debug("GuiPreferences initialisation complete") return
def __init__(self, theParent, theProject): PagedDialog.__init__(self, theParent) logger.debug("Initialising GuiPreferences ...") self.setObjectName("GuiPreferences") self.mainConf = nw.CONFIG self.theParent = theParent self.theProject = theProject self.setWindowTitle("Preferences") self.tabGeneral = GuiPreferencesGeneral(self.theParent) self.tabProjects = GuiPreferencesProjects(self.theParent) self.tabDocs = GuiPreferencesDocuments(self.theParent) self.tabEditor = GuiPreferencesEditor(self.theParent) self.tabSyntax = GuiPreferencesSyntax(self.theParent) self.tabAuto = GuiPreferencesAutomation(self.theParent) self.addTab(self.tabGeneral, "General") self.addTab(self.tabProjects, "Projects") self.addTab(self.tabDocs, "Documents") self.addTab(self.tabEditor, "Editor") self.addTab(self.tabSyntax, "Highlighting") self.addTab(self.tabAuto, "Automation") self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) self.buttonBox.accepted.connect(self._doSave) self.buttonBox.rejected.connect(self._doClose) self.addControls(self.buttonBox) logger.debug("GuiPreferences initialisation complete") return
def __init__(self, theParent, theProject): PagedDialog.__init__(self, theParent) logger.debug("Initialising GuiProjectSettings ...") self.setObjectName("GuiProjectSettings") self.mainConf = nw.CONFIG self.theParent = theParent self.theProject = theProject self.optState = theProject.optState self.theProject.countStatus() self.setWindowTitle("Project Settings") wW = self.mainConf.pxInt(570) wH = self.mainConf.pxInt(375) self.setMinimumWidth(wW) self.setMinimumHeight(wH) self.resize( self.mainConf.pxInt( self.optState.getInt("GuiProjectSettings", "winWidth", wW)), self.mainConf.pxInt( self.optState.getInt("GuiProjectSettings", "winHeight", wH))) self.tabMain = GuiProjectEditMain(self.theParent, self.theProject) self.tabStatus = GuiProjectEditStatus(self.theParent, self.theProject, True) self.tabImport = GuiProjectEditStatus(self.theParent, self.theProject, False) self.tabReplace = GuiProjectEditReplace(self.theParent, self.theProject) self.addTab(self.tabMain, "Settings") self.addTab(self.tabStatus, "Status") self.addTab(self.tabImport, "Importance") self.addTab(self.tabReplace, "Auto-Replace") self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) self.buttonBox.accepted.connect(self._doSave) self.buttonBox.rejected.connect(self._doClose) self.addControls(self.buttonBox) logger.debug("GuiProjectSettings initialisation complete") return
def __init__(self, theParent, theProject): PagedDialog.__init__(self, theParent) logger.debug("Initialising GuiProjectDetails ...") self.setObjectName("GuiProjectDetails") self.mainConf = nw.CONFIG self.theParent = theParent self.theProject = theProject self.optState = theProject.optState self.setWindowTitle(self.tr("Project Details")) wW = self.mainConf.pxInt(600) wH = self.mainConf.pxInt(400) self.setMinimumWidth(wW) self.setMinimumHeight(wH) self.resize( self.mainConf.pxInt( self.optState.getInt("GuiProjectDetails", "winWidth", wW)), self.mainConf.pxInt( self.optState.getInt("GuiProjectDetails", "winHeight", wH))) self.tabMain = GuiProjectDetailsMain(self.theParent, self.theProject) self.tabContents = GuiProjectDetailsContents(self.theParent, self.theProject) self.addTab(self.tabMain, self.tr("Overview")) self.addTab(self.tabContents, self.tr("Contents")) self.buttonBox = QDialogButtonBox(QDialogButtonBox.Close) self.buttonBox.button(QDialogButtonBox.Close).setText(self.tr("Close")) self.buttonBox.rejected.connect(self._doClose) self.addControls(self.buttonBox) logger.debug("GuiProjectDetails initialisation complete") return