Exemplo n.º 1
0
    def actionsAuDebut(self):
        """
		Actions a realiser au demarage du programe
		"""
        # Recupere l'instance de TVDContext
        self.tvdContext = tvdcore.TVDContext()
        # Recupere les instances des classes utiles
        self.pluginManager = self.tvdContext.pluginManager
        self.downloadManager = self.tvdContext.downloadManager
        self.navigateur = Browser()
        # Variables

        # Ajout une callback pour le download manager
        self.telechargementsCallback = TelechargementsCallback(
            self.telechargementsWidget)
        self.downloadManager.addDownloadCallback(self.telechargementsCallback)
        # Demarre le download manager
        self.downloadManager.start()
        # Lance l'actualisation des plugins
        self.rafraichirTousLesPlugins()

        #
        # A deplacer
        #

        self.config = Configuration()
        self.afficherConfiguration()
Exemplo n.º 2
0
    def __init__(self, fStartDirect=True, windowType=None):
        # This has to be done before ShowBase is initialized
        self.configuration = Configuration()
        self.configuration.loadConfiguration()

        ShowBase.__init__(self, fStartDirect, windowType)

        self.gameStateMachine = GameStateMachine()
Exemplo n.º 3
0
# This file is part of pentoolbox.
# Please see LICENSE for details.

from core.Console import Console
from core.Configuration import Configuration
from core.Toolbox import Toolbox
from core.Installer import Installer

# First the output console is loaded.
# This will generate output messages.
console = Console()
console.banner()

# Then the configuration manager.
config = Configuration(console)
config.load_arguments()
config.load_core_config()
config.load_user_config()
config.load_saved_tools()

# We print some information to the screen...
console.dump_config(config)
console.dump_installed_tools(config)

# ...and ensure that's what the user asked for.
if not console.prompt():
    exit(1)

# Then we build the toolbox.
toolbox = Toolbox(config)
Exemplo n.º 4
0
from core.plugins.testers.CTest import CTest
from core.plugins.reporters.EmailReporter import EmailReporter
from core.helpers.GlobalMApp import mApp
from core.plugins.platforms.BlackLister import BlackLister

build, project = BuildProject(name='GammaRay',
                              version='0.1.0',
                              url='[email protected]:gammaray.git')
build.addPlugin(BlackLister(variable='QMAKESPEC', pattern='win32-g\+\+'))

sharedDebug = Environments(['Qt-4.7.?-Shared-Debug'], 'Qt 4 Shared Debug',
                           project)
#sharedDebug = Environments( [], 'Qt 4 Shared Debug', project )
sharedDebug.setOptional(True)
debug = Configuration(
    'Debug',
    sharedDebug,
)
cmakeDebug = CMakeBuilder()
cmakeDebug.addCMakeVariable(
    CMakeVariable('CMAKE_BUILD_TYPE', 'debug', 'STRING'))
debug.addPlugin(cmakeDebug)
debug.addPlugin(CTest())

sharedRelease = Environments(['Qt-4.7.?'], 'Qt 4 Shared Release', project)
#sharedRelease = Environments( [], 'Qt 4 Shared Release', project )
release = Configuration('Release', sharedRelease)
cmakeRelease = CMakeBuilder()
cmakeRelease.addCMakeVariable(
    CMakeVariable('CMAKE_BUILD_TYPE', 'release', 'STRING'))

release.addPlugin(cmakeRelease)