Changeset 1188
- Timestamp:
- 04/02/07 23:10:36 (2 years ago)
- Files:
-
- gaphor/trunk (modified) (1 prop)
- gaphor/trunk/data (modified) (1 prop)
- gaphor/trunk/data/pixmaps (modified) (1 prop)
- gaphor/trunk/doc (modified) (1 prop)
- gaphor/trunk/gaphor (modified) (1 prop)
- gaphor/trunk/gaphor/UML (modified) (1 prop)
- gaphor/trunk/gaphor/__init__.py (modified) (2 diffs)
- gaphor/trunk/gaphor/application.py (modified) (1 diff)
- gaphor/trunk/gaphor/diagram (modified) (1 prop)
- gaphor/trunk/gaphor/misc (modified) (1 prop)
- gaphor/trunk/gaphor/services/pluginmanager.py (modified) (4 diffs)
- gaphor/trunk/gaphor/ui (modified) (1 prop)
- gaphor/trunk/po (modified) (1 prop)
- gaphor/trunk/setup.py (modified) (2 diffs)
- gaphor/trunk/tests (modified) (1 prop)
- gaphor/trunk/utils (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk
- Property svn:ignore changed from
MANIFEST
*.pyc
*.pyo
*.gaphor
*.xml
aclocal.m4
build
dist
confdefs.h
config.cache
config.guess
config.h
config.log
config.status
config.sub
configure
configure.scan
libtool
ltconfig
ltmain.sh
stamp-h
stamp-h.in
stamp.h
config.h
config.h.in
install-sh
missing
mkinstalldirs
INSTALL
intl
ABOUT-NLS
COPYING
.lclintrc
mkChangeLog.stamp
ignore-too
mkChangeLog
py-compile
stamp-h1
depcomp
gaphor-*.tar.gz to
MANIFEST
build
dist
- Property svn:ignore changed from
gaphor/trunk/data
- Property svn:ignore deleted
gaphor/trunk/data/pixmaps
- Property svn:ignore deleted
gaphor/trunk/doc
- Property svn:ignore deleted
gaphor/trunk/gaphor
- Property svn:ignore deleted
gaphor/trunk/gaphor/UML
- Property svn:ignore deleted
gaphor/trunk/gaphor/__init__.py
r1170 r1188 40 40 self.args = args 41 41 42 43 def new_main(gaphor_file=None): 44 """ 45 Not yet used. see main() below. 46 """ 47 from gaphor.application import Application 48 Application.init() 49 50 # backwards compatible 51 main_window = resource("MainWindow", Application.main_window) 52 53 if gaphor_file: 54 main_window.set_filename(gaphor_file) 55 main_window.execute_action('FileRevert') 56 else: 57 main_window.execute_action('FileNew') 58 Application.run() 59 Application.shutdown() 60 61 42 62 def main(gaphor_file=None): 43 """Start the interactive application. 63 """ 64 Start the interactive application. 44 65 45 66 This involves importing plugins and creating the main window. … … 56 77 from ui.mainwindow import MainWindow 57 78 58 resource('PluginManager'). bootstrap()79 resource('PluginManager').init(None) 59 80 60 81 ui.load_accel_map() gaphor/trunk/gaphor/application.py
r1180 r1188 20 20 class _Application(object): 21 21 22 # interface.implements(IApplication) 23 22 24 def __init__(self): 23 25 self.services = { gaphor/trunk/gaphor/diagram
- Property svn:ignore deleted
gaphor/trunk/gaphor/misc
- Property svn:ignore deleted
gaphor/trunk/gaphor/services/pluginmanager.py
r1170 r1188 53 53 A plugin represents one plugin loaded from the file system. 54 54 """ 55 interface.implements(IService)56 55 57 56 def __init__(self): … … 65 64 self.module = None 66 65 self.status = '' 67 68 def init(self, app):69 self._app = app70 66 71 67 def requirements_met(self, manager): … … 301 297 """ 302 298 299 interface.implements(IService) 300 303 301 def __init__(self): 304 302 self.plugins = odict() … … 310 308 self.parser.setFeature(handler.feature_namespaces, 1) 311 309 self.parser.setContentHandler(self.loader) 310 311 def init(self, app): 312 self._app = app 313 self.bootstrap() 312 314 313 315 def bootstrap(self): gaphor/trunk/gaphor/ui
- Property svn:ignore deleted
gaphor/trunk/po
- Property svn:ignore deleted
gaphor/trunk/setup.py
r1168 r1188 1 """ 2 Setup script for Gaphor. 3 4 Run 'python setup.py develop' to set up a development environment, including 5 dependencies. 6 7 Run 'python setup.py run' to start Gaphor directly (without install). 8 """ 1 9 2 10 import sys … … 84 92 85 93 entry_points = { 86 # 'distutils.commands': [87 # 'build_uml = utils.command.build_uml:build_uml',88 # 'build_pot = utils.command.build_pot:build_pot',89 # 'build_mo = utils.command.build_mo:build_mo',90 # 'install_mo = utils.command.install_mo:install_mo',91 # 'build_version = utils.command.build_version:build_version',92 # 'install_version = utils.command.install_version:install_version',93 # 'run = utils.command.run :run ',94 # ],95 94 'console_scripts': [ 96 95 'gaphor = gaphor:main', 96 ], 97 'gaphor.services': [ 98 'undo_manager = gaphor.services.undomanager:UndoManager', 99 'plugin_manager = gaphor.services.pluginmanager:PluginManager', 97 100 ], 98 101 }, gaphor/trunk/tests
- Property svn:ignore deleted
gaphor/trunk/utils
- Property svn:ignore deleted
