Source code for openalea.oalab.plugin.builtin.applet
# -*- coding: utf-8 -*-
# -*- python -*-
#
# OpenAlea.OALab: Multi-Paradigm GUI
#
# Copyright 2014-2015 INRIA - CIRAD - INRA
#
# File author(s): Julien Coste <julien.coste@inria.fr>
#
# File contributor(s): Guillaume Baty <guillaume.baty@inria.fr>
#
# Distributed under the Cecill-C License.
# See accompanying file LICENSE.txt or copy at
# http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
#
# OpenAlea WebSite : http://openalea.gforge.inria.fr
#
###############################################################################
__revision__ = ""
from openalea.core.plugin import PluginDef
from openalea.core.authors import *
[docs]class AppletPlugin(object):
name_conversion = PluginDef.DROP_PLUGIN
@PluginDef
@PluginDef
[docs]class ControlManager(AppletPlugin):
label = 'Controls'
icon = 'controlmanager.png'
authors = [gbaty]
def __call__(self):
from openalea.oalab.control.manager import ControlManagerWidget
return ControlManagerWidget
@PluginDef
[docs]class EditorManager(AppletPlugin):
label = 'Model Editor'
icon = 'oxygen_text-x-python.png'
authors = [cpradal, dbarbeau, fboudon, gbaty, jchopard, jcoste, sdufourko, tcokelaer,
{'name': u"Et al.", 'note': u"See also IParadigmApplet and IModel authors"}
]
def __call__(self):
# Load and instantiate graphical component that actually provide feature
from openalea.oalab.paradigm.container import ModelEditorApplet
return ModelEditorApplet
@PluginDef
[docs]class FileBrowser(AppletPlugin):
label = 'File Browser'
icon = 'oxygen_system-file-manager.png'
authors = [jcoste, gbaty]
def __call__(self):
# Load and instantiate graphical component that actually provide feature
from openalea.oalab.widget.browser import FileBrowser
return FileBrowser
@PluginDef
@PluginDef
[docs]class HistoryWidget(AppletPlugin):
label = 'History'
icon = 'Crystal_Clear_app_clock.png'
authors = [jcoste]
def __call__(self):
# Load and instantiate graphical component that actually provide feature
from openalea.oalab.widget.history import HistoryWidget as History
return History
@PluginDef
[docs]class Logger(AppletPlugin):
icon = 'icon_logger2.png'
authors = [dbarbeau, cpradal]
def __call__(self):
# Load and instantiate graphical component that actually provide feature
from openalea.oalab.widget.logger import Logger as LoggerWidget
return LoggerWidget
@PluginDef
@PluginDef
@PluginDef
[docs]class ProjectManager(AppletPlugin):
label = 'Project'
icon = 'adwaita_accessories-dictionary.png'
authors = [jcoste, gbaty]
def __call__(self):
from openalea.oalab.project.projecteditor import ProjectEditorWidget
return ProjectEditorWidget
@PluginDef
@PluginDef
[docs]class SplitterApplet(AppletPlugin):
icon = 'oxygen_view-split-top-bottom.png'
label = 'Splitter'
authors = [gbaty]
def __call__(self):
from openalea.oalab.widget.splittablewindow import SplitterApplet
return SplitterApplet
@PluginDef
[docs]class Store(AppletPlugin):
def __call__(self):
from openalea.oalab.widget.store import Store
return Store
@PluginDef
[docs]class World(AppletPlugin):
icon = 'oxygen_world.png'
authors = [gbaty, jcoste, gcerutti]
def __call__(self):
# Load and instantiate graphical component that actually provide feature
from openalea.oalab.widget.world import WorldBrowser
return WorldBrowser
@PluginDef
[docs]class WorldControl(AppletPlugin):
label = 'World Controls'
icon = 'oxygen_world_control.png'
authors = [gcerutti, gbaty]
def __call__(self):
# Load and instantiate graphical component that actually provide feature
from openalea.oalab.widget.world import WorldControlPanel
return WorldControlPanel