Changeset 1188

Show
Ignore:
Timestamp:
04/02/07 23:10:36 (2 years ago)
Author:
arj..@yirdis.nl
Message:

updated properties on directories

Files:

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
  • 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  
    4040            self.args = args 
    4141 
     42 
     43def 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 
    4262def main(gaphor_file=None): 
    43     """Start the interactive application. 
     63    """ 
     64    Start the interactive application. 
    4465 
    4566    This involves importing plugins and creating the main window. 
     
    5677    from ui.mainwindow import MainWindow 
    5778 
    58     resource('PluginManager').bootstrap(
     79    resource('PluginManager').init(None
    5980 
    6081    ui.load_accel_map() 
  • gaphor/trunk/gaphor/application.py

    r1180 r1188  
    2020class _Application(object): 
    2121 
     22    # interface.implements(IApplication) 
     23     
    2224    def __init__(self): 
    2325        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  
    5353    A plugin represents one plugin loaded from the file system. 
    5454    """ 
    55     interface.implements(IService) 
    5655 
    5756    def __init__(self): 
     
    6564        self.module = None 
    6665        self.status = '' 
    67  
    68     def init(self, app): 
    69         self._app = app 
    7066 
    7167    def requirements_met(self, manager): 
     
    301297    """ 
    302298 
     299    interface.implements(IService) 
     300 
    303301    def __init__(self): 
    304302        self.plugins = odict() 
     
    310308        self.parser.setFeature(handler.feature_namespaces, 1) 
    311309        self.parser.setContentHandler(self.loader) 
     310 
     311    def init(self, app): 
     312        self._app = app 
     313        self.bootstrap() 
    312314 
    313315    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""" 
     2Setup script for Gaphor. 
     3 
     4Run 'python setup.py develop' to set up a development environment, including 
     5dependencies. 
     6 
     7Run 'python setup.py run' to start Gaphor directly (without install). 
     8""" 
    19 
    210import sys 
     
    8492 
    8593    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 #        ], 
    9594        'console_scripts': [ 
    9695            'gaphor = gaphor:main', 
     96        ], 
     97        'gaphor.services': [ 
     98            'undo_manager = gaphor.services.undomanager:UndoManager', 
     99            'plugin_manager = gaphor.services.pluginmanager:PluginManager', 
    97100        ], 
    98101    }, 
  • gaphor/trunk/tests

    • Property svn:ignore deleted
  • gaphor/trunk/utils

    • Property svn:ignore deleted