Changeset 225

Show
Ignore:
Timestamp:
11/05/07 12:14:36 (14 months ago)
Author:
fdb
Message:

New progress sheet, compatibility for leopard. Stop button doesn't work, I will need to turn around some code.

Location:
nodebox/trunk
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • nodebox/trunk/libs/pathmatics/setup.py

    r75 r225  
    11from distutils.core import setup, Extension 
    22 
    3  
    4 CFLAGS=[ 
    5     "-DMACOSX", 
    6     "-DAPPLE_RUNTIME", 
    7     "-no-cpp-precomp", 
    8     "-Wno-long-double", 
    9     "-g", 
    10  
    11     # Loads of warning flags 
    12     "-Wall", "-Wstrict-prototypes", "-Wmissing-prototypes", 
    13     "-Wformat=2", "-W", "-Wshadow", 
    14     "-Wpointer-arith", #"-Wwrite-strings", 
    15     "-Wmissing-declarations", 
    16     "-Wnested-externs", 
    17     "-Wno-long-long", 
    18     "-Wno-import", 
    19      
    20     # Universal binary flags 
    21     "-arch", "i386", 
    22     "-arch", "ppc", 
    23     "-isysroot", "/Developer/SDKs/MacOSX10.4u.sdk", 
    24     ] 
    25  
    26 BASE_LDFLAGS = [ 
    27     # Universal binary flags 
    28     "-arch", "i386", 
    29     "-arch", "ppc", 
    30     "-isysroot", "/Developer/SDKs/MacOSX10.4u.sdk", 
    31 ] 
    32  
    33 cPathmatics = Extension("cPathmatics", sources = ["pathmatics.c"],  
    34     extra_compile_args=CFLAGS, extra_link_args=BASE_LDFLAGS) 
     3cPathmatics = Extension("cPathmatics", sources = ["pathmatics.c"]) 
    354 
    365setup (name = "pathmatics", 
  • nodebox/trunk/src/Changes.txt

    r190 r225  
    22------------- 
    33* Color objects still worked in CMYK when used as a fill/stroke. 
     4* Progress bar changed for Leopard compatibility. 
    45 
    56NodeBox 1.9.1 
  • nodebox/trunk/src/macbuild.sh

    r155 r225  
    22# Builds the NodeBox Mac OS X distribution folder. 
    33 
     4# Remove dist and build 
     5rm -rf dist 
     6rm -rf build 
     7 
    48# First, make the help files. 
    59cd ../helpsrc 
    6 python2.3 makehelp.py 
     10python makehelp.py 
    711 
    812# Now build the application. 
     
    1014# but not Python itself. 
    1115cd ../src 
    12 python2.3 macsetup.py py2app --semi-standalone 
     16python macsetup.py py2app 
    1317 
    1418# Due to a bug in PyObjC, the included site.py file is incorrect. 
  • nodebox/trunk/src/nodebox/gui/mac/__init__.py

    r159 r225  
    1515from nodebox.gui.mac import PyDETextView 
    1616from nodebox.gui.mac.util import errorAlert 
     17from nodebox.gui.mac.progressbar import ProgressBar 
    1718from nodebox import util 
    1819from nodebox.util import QTSupport 
     
    6970    # pageCount 
    7071    # pageCountAccessory 
     72    # When the ExportSheet is loaded, we also add: 
     73    # exportSheet 
     74    # exportSheetIndicator 
    7175 
    7276    path = None 
     
    500504                self.canvas.save(fname, format) 
    501505        elif pages > 1: 
    502             pb = EasyDialogs.ProgressBar(title="Generating %s PDF files..." % pages, maxval=pages) 
     506            pb = ProgressBar(title="Generating %s PDF files..." % pages, maxval=pages) 
    503507            try: 
    504508                if not self.cleanRun(self._execScript): return 
     
    524528                        self._frame += 1 
    525529                        pb.inc() 
     530                        #self.exportSheetProgress.setDoubleValue_(i) 
    526531                else: 
    527532                    if self.namespace.has_key("setup"): 
     
    542547                        self._frame += 1 
    543548                        pb.inc() 
    544  
     549                        #self.exportSheetProgress.setDoubleValue_(i) 
    545550            except KeyboardInterrupt: 
    546551                pass 
    547             del pb 
     552        pb.end() 
     553        del pb 
    548554        self._pageNumber = 1 
    549555        self._frame = 1 
     
    645651        movie = None 
    646652 
    647         pb = EasyDialogs.ProgressBar(title="Generating %s frames..." % frames, maxval=frames) 
     653        pb = ProgressBar(title="Generating %s frames..." % frames, maxval=frames) 
    648654        try: 
    649655            if not self.cleanRun(self._execScript): return 
     
    675681        except KeyboardInterrupt: 
    676682            pass 
     683        pb.end() 
     684        del pb 
    677685        movie.save() 
    678686        self._pageNumber = 1