예제 #1
0
    def buildSplashScreen(self):
        from prymatex.widgets.splash import SplashScreen
        splash_image = resources.getImage('newsplash')
        splash = SplashScreen(splash_image)
        splash.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint
                              | QtCore.Qt.SplashScreen)

        splashFont = QtGui.QFont("Monospace", 11)
        splashFont.setStyleStrategy(QtGui.QFont.PreferAntialias)

        splash.setFont(splashFont)
        splash.setMask(splash_image.mask())

        return splash
예제 #2
0
    def buildSplashScreen(self):
        from prymatex.widgets.splash import SplashScreen
        splash_image = resources.getImage('newsplash')
        splash = SplashScreen(splash_image)
        splash.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.SplashScreen)
        
        splashFont = QtGui.QFont("Monospace", 11)
        splashFont.setStyleStrategy(QtGui.QFont.PreferAntialias)
 
        splash.setFont(splashFont)
        splash.setMask(splash_image.mask())
        
        return splash
예제 #3
0
파일: app.py 프로젝트: diegomvh/prymatex
    def buildSplashScreen(self):
        from prymatex.widgets.splash import SplashScreen
        splash_image = resources.getImage('prymatex-splash')
        splash = SplashScreen(splash_image)
        splash.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.SplashScreen)
        
        splashFont = QtGui.QFont()
        splashFont.setFamily("Arial")
        splashFont.setBold(True)
        splashFont.setPixelSize(9)
        splashFont.setStretch(125)
 
        splash.setFont(splashFont);
        splash.setMask(splash_image.mask())
        
        return splash
예제 #4
0
파일: app.py 프로젝트: D3f0/prymatex
    def loadGraphicalUserInterface(self):
        self.showMessage = self.logger.info
        if not self.options.no_splash:
            from prymatex.widgets.splash import SplashScreen
            splash_image = resources.get_image('newsplash')
            splash = SplashScreen(splash_image)
            splash.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.SplashScreen)

            splashFont = QtGui.QFont("Monospace", 11)
            splashFont.setStyleStrategy(QtGui.QFont.PreferAntialias)

            splash.setFont(splashFont)
            splash.setMask(splash_image.mask())
            splash.show()
            self.showMessage = splash.showMessage
        try:
            # Build Managers
            self.pluginManager = self.buildPluginManager()      # WARN: FIST Plugin Manager
            self.storageManager = self.buildStorageManager()    # Persistence system Manager
            self.supportManager = self.buildSupportManager()    # Support Manager
            self.fileManager = self.buildFileManager()          # File Manager
            self.projectManager = self.buildProjectManager()    # Project Manager
            self.schedulerManager =  self.buildSchedulerManager()
            self.serverManager = self.buildServerManager()

            # Load Bundles
            self.supportManager.loadSupport(self.showMessage)
            
            # Load Projects
            self.projectManager.loadProjects(self.showMessage)
            
            # Create Main Window
            main_window = self.buildMainWindow()
            
            # Change messages handler
            self.showMessage = main_window.showMessage

            # Load settings
            self.profileManager.loadSettings(self.showMessage)

            if not self.options.no_splash:
                splash.finish(main_window)

            main_window.show()
            self.logger.info("Application startup")
        except KeyboardInterrupt:
            self.logger.critical("Quit signal catched during application startup. Quiting...")
            self.quit()
예제 #5
0
파일: app.py 프로젝트: prymatex/prymatex
    def loadGraphicalUserInterface(self):
        self.showMessage = self.logger().info
        if not self.options.no_splash:
            from prymatex.widgets.splash import SplashScreen

            splash_image = self.resources().get_image("newsplash")
            splash = SplashScreen(splash_image)
            splash.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.SplashScreen)

            splashFont = QtGui.QFont("Monospace", 11)
            splashFont.setStyleStrategy(QtGui.QFont.PreferAntialias)

            splash.setFont(splashFont)
            splash.setMask(splash_image.mask())
            splash.show()
            self.showMessage = splash.showMessage
        try:
            # Load Packages
            self.packageManager.loadPackages(self.showMessage)
            # Load Resources
            self.resourceManager.loadResources(self.showMessage)
            # Load Bundles
            self.supportManager.loadSupport(self.showMessage)
            # Load Projects
            self.projectManager.loadProjects(self.showMessage)
            # Load Settings
            self.settingsManager.loadSettings(self.showMessage)

            # Restore State
            self.settingsManager.restoreApplicationState()
            window = self.currentWindow()
            if not window:
                window = self.createMainWindow(editor=True)

            # Change messages handler
            def show_message(app):
                def _show_message(*args, **kwargs):
                    app.currentWindow().showMessage(*args, **kwargs)

                return _show_message

            self.showMessage = show_message(self)

            if not self.options.no_splash:
                splash.finish(window)

            window.show()

            self.logger().info("Application startup")
        except KeyboardInterrupt:
            self.logger().critical("Quit signal catched during application startup. " "Quiting...")
            self.quit()