Update of /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20050 Modified Files: changelog.txt customDialogs.py helpAbout.rsrc.py newProjectWizard.rsrc.py newProjectWizardPage1.rsrc.py newProjectWizardPage2.rsrc.py newProjectWizardPage3.rsrc.py newProjectWizardPage4.rsrc.py outputWindow.rsrc.py prefsDialog.rsrc.py propertiesDialog.rsrc.py standaloneBuilder.py standaloneBuilder.rsrc.py Added Files: versionDialog.rsrc.py Removed Files: todo.txt Log Message: standaloneBuilder is now essentially complete. Tested on Linux and windows XP, all seems fine. Index: newProjectWizard.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/newProjectWizard.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** newProjectWizard.rsrc.py 1 Apr 2005 09:58:50 -0000 1.1 --- newProjectWizard.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 1,68 **** ! {'type':'CustomDialog', ! 'name':'Template', ! 'title':'New Project Wizard', ! 'position':(171, 401), ! 'size':(600, 330), ! 'components': [ ! ! {'type':'Image', ! 'name':'Image1', ! 'position':(-5, -5), ! 'size':(174, 324), ! 'file':'pixmaps/newproject.png', ! }, ! ! {'type':'Button', ! 'name':'backBtn', ! 'position':(340, 275), ! 'enabled':False, ! 'label':'< Back', ! }, ! ! {'type':'Button', ! 'name':'nextBtn', ! 'position':(415, 275), ! 'label':'Next >', ! }, ! ! {'type':'Button', ! 'id':5101, ! 'name':'cancelBtn', ! 'position':(510, 275), ! 'label':'Cancel', ! }, ! ! {'type':'StaticText', ! 'name':'page0text1', ! 'position':(175, 0), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 20}, ! 'text':'Welcome to the new project', ! 'userdata':'page0', ! }, ! ! {'type':'StaticText', ! 'name':'page0text2', ! 'position':(175, 30), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 20}, ! 'text':'wizard!', ! 'userdata':'page0', ! }, ! ! {'type':'StaticText', ! 'name':'page0text3', ! 'position':(175, 85), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 8}, ! 'text':'This will gather the information required to create a brand new project. Click Next to', ! 'userdata':'page0', ! }, ! ! {'type':'StaticText', ! 'name':'page0text4', ! 'position':(175, 100), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 8}, ! 'text':'continue, or Cancel to exit the wizard.', ! 'userdata':'page0', ! }, ! ! ] # end components ! } # end CustomDialog --- 1,68 ---- ! {'type':'CustomDialog', ! 'name':'Template', ! 'title':'New Project Wizard', ! 'position':(171, 401), ! 'size':(600, 330), ! 'components': [ ! ! {'type':'Image', ! 'name':'Image1', ! 'position':(-5, -5), ! 'size':(174, 324), ! 'file':'pixmaps/newproject.png', ! }, ! ! {'type':'Button', ! 'name':'backBtn', ! 'position':(330, 275), ! 'enabled':False, ! 'label':'< Back', ! }, ! ! {'type':'Button', ! 'name':'nextBtn', ! 'position':(415, 275), ! 'label':'Next >', ! }, ! ! {'type':'Button', ! 'id':5101, ! 'name':'cancelBtn', ! 'position':(510, 275), ! 'label':'Cancel', ! }, ! ! {'type':'StaticText', ! 'name':'page0text1', ! 'position':(175, 0), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 20}, ! 'text':'Welcome to the new project', ! 'userdata':'page0', ! }, ! ! {'type':'StaticText', ! 'name':'page0text2', ! 'position':(175, 30), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 20}, ! 'text':'wizard!', ! 'userdata':'page0', ! }, ! ! {'type':'StaticText', ! 'name':'page0text3', ! 'position':(175, 85), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 10}, ! 'text':'This will gather the information required to create a brand new project.', ! 'userdata':'page0', ! }, ! ! {'type':'StaticText', ! 'name':'page0text4', ! 'position':(175, 100), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 10}, ! 'text':'Click Next to continue, or Cancel to exit the wizard.', ! 'userdata':'page0', ! }, ! ! ] # end components ! } # end CustomDialog --- todo.txt DELETED --- Index: helpAbout.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/helpAbout.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** helpAbout.rsrc.py 9 Apr 2005 09:30:36 -0000 1.1 --- helpAbout.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 1,45 **** ! {'type':'CustomDialog', ! 'name':'dlgAbout', ! 'title':'About standaloneBuilder:', ! 'position':(129, 133), ! 'size':(680, 370), ! 'components': [ ! ! {'type':'Button', ! 'name':'AboutBtn', ! 'position':(10, 5), ! 'size':(-1, 32), ! 'label':'About', ! }, ! ! {'type':'Button', ! 'name':'AuthorBtn', ! 'position':(90, 5), ! 'size':(-1, 32), ! 'label':'Author', ! }, ! ! {'type':'Button', ! 'name':'LicenseBtn', ! 'position':(170, 5), ! 'size':(-1, 32), ! 'label':'License', ! }, ! ! {'type':'HtmlWindow', ! 'name':'HtmlWindow', ! 'position':(5, 40), ! 'size':(668, 255), ! 'backgroundColor':(255, 255, 255), ! }, ! ! {'type':'Button', ! 'id':5100, ! 'name':'btnOK', ! 'position':(590, 305), ! 'size':(-1, 32), ! 'label':'Close', ! }, ! ! ] # end components ! } # end CustomDialog --- 1,45 ---- ! {'type':'CustomDialog', ! 'name':'dlgAbout', ! 'title':'About standaloneBuilder:', ! 'position':(129, 133), ! 'size':(680, 370), ! 'components': [ ! ! {'type':'Button', ! 'name':'AboutBtn', ! 'position':(10, 5), ! 'size':(-1, 32), ! 'label':'About', ! }, ! ! {'type':'Button', ! 'name':'AuthorBtn', ! 'position':(90, 5), ! 'size':(-1, 32), ! 'label':'Author', ! }, ! ! {'type':'Button', ! 'name':'LicenseBtn', ! 'position':(170, 5), ! 'size':(-1, 32), ! 'label':'License', ! }, ! ! {'type':'HtmlWindow', ! 'name':'HtmlWindow', ! 'position':(5, 40), ! 'size':(668, 255), ! 'backgroundColor':(255, 255, 255), ! }, ! ! {'type':'Button', ! 'id':5100, ! 'name':'btnOK', ! 'position':(590, 305), ! 'size':(-1, 32), ! 'label':'Close', ! }, ! ! ] # end components ! } # end CustomDialog Index: changelog.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/changelog.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changelog.txt 9 Apr 2005 09:30:36 -0000 1.1 --- changelog.txt 15 Apr 2005 15:18:53 -0000 1.2 *************** *** 1,4 **** --- 1,8 ---- standaloneBuilder version Version 0.1.1 release date TBA --------------------------------------------------------------------------- + - Fixed a bug in the rebuild process which was causing the wrong + text fields to be shown when doing more than one rebuild in a + single session + - rebuild process now working under Linux, just builds a tarball - Help --> About dialog now works - The rebuild process now works 100% reliably Index: customDialogs.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/customDialogs.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** customDialogs.py 9 Apr 2005 09:30:36 -0000 1.2 --- customDialogs.py 15 Apr 2005 15:18:54 -0000 1.3 *************** *** 100,106 **** arg.append(os.path.join(dirname,item)) ! def OnCloseWindow(self, event): ! print "OnCloseWindow" ! self.Destroy() class HTMLHelp(CustomDialog): --- 100,129 ---- arg.append(os.path.join(dirname,item)) ! class versionDialog(CustomDialog): ! """Displays a dialog for the next release version number""" ! ! def __init__(self, aBg, currentVersion): ! path = os.path.join(aBg.application.applicationDirectory, 'versionDialog') ! aDialogRsrc = resource.ResourceFile(model.internationalResourceName(path)).getResource() ! CustomDialog.__init__(self, aBg, aDialogRsrc) ! self.parent = aBg ! ! vstring = string.split(currentVersion, '.') ! self.components.majorVersion.value = int(vstring[0]) ! self.components.minorVersion.value = int(vstring[1]) ! self.components.fixLevel.value = int(vstring[2]) + 1 ! ! def getVersion(self): ! vstring = [] ! vstring.append(str(self.components.majorVersion.value)) ! vstring.append(str(self.components.minorVersion.value)) ! vstring.append(str(self.components.fixLevel.value)) ! return vstring ! ! def on_btnOK_mouseClick(self, event): ! event.Skip() ! ! def on_btnCancel_mouseClick(self, event): ! event.Skip() class HTMLHelp(CustomDialog): *************** *** 157,161 **** resName = basename + pageref + '.rsrc.py' fd = open(resName, 'r') - print 'reading %s' % resName res = eval(fd.read()) for comp in res['components']: --- 180,183 ---- *************** *** 181,185 **** # enable the 'next' button if we have enough information to move # on to the next page - print '\nin setButtons, page count = %s' % self.pgCnt # back button is (almost) always enabled --- 203,206 ---- *************** *** 291,295 **** self.parent = aBg self.CONFIG_FILE = cfgfile - print 'in prefs, config file is %s' % self.CONFIG_FILE #if sys.platform.startswith('win'): self.fitToComponents(10,10) self.components.resEditPath.text = self.parent.cfg.get('ConfigData', 'reseditor') --- 312,315 ---- *************** *** 302,306 **** def on_btnOK_mouseClick(self, event): - print 'OK button!' self.parent.cfg.set('ConfigData', 'reseditor', self.components.resEditPath.text) self.parent.cfg.set('ConfigData', 'codeeditor', self.components.srcEditPath.text) --- 322,325 ---- *************** *** 316,320 **** def on_btnCancel_mouseClick(self, event): - print 'Cancel button!' event.Skip() --- 335,338 ---- *************** *** 387,397 **** #try: ! self.components.buildPath.text = self.parent.project.get('Project', 'buildfilespath') ! self.components.distPath.text = self.parent.project.get('Project', 'distfilespath') ! self.components.pixmapsPath.text = self.parent.project.get('Project', 'pixmapspath') ! self.components.tarballPath.text = self.parent.project.get('Project', 'tarballspath') self.components.appPublisher.text = self.parent.project.get('Project', 'publisher') self.components.appURL.text = self.parent.project.get('Project', 'appurl') ! self.components.appLicence.text = self.parent.project.get('Project', 'applicence') self.components.asciiChk.checked = self.parent.project.getboolean('Project', 'ascii') self.components.striplibsChk.checked = self.parent.project.getboolean('Project', 'striplib') --- 405,415 ---- #try: ! self.components.buildPath.text = self.parent.pathJoin(self.parent.project.get('Project', 'buildfilespath')) ! self.components.distPath.text = self.parent.pathJoin(self.parent.project.get('Project', 'distfilespath')) ! self.components.pixmapsPath.text = self.parent.pathJoin(self.parent.project.get('Project', 'pixmapspath')) ! self.components.tarballPath.text = self.parent.pathJoin(self.parent.project.get('Project', 'tarballspath')) self.components.appPublisher.text = self.parent.project.get('Project', 'publisher') self.components.appURL.text = self.parent.project.get('Project', 'appurl') ! self.components.appLicence.text = self.parent.pathJoin(self.parent.project.get('Project', 'applicence')) self.components.asciiChk.checked = self.parent.project.getboolean('Project', 'ascii') self.components.striplibsChk.checked = self.parent.project.getboolean('Project', 'striplib') *************** *** 408,480 **** def on_buildPathBtn_mouseClick(self, event): ! refpath = self.parent.components.baseDir.text ! p = self.parent.components.baseDir.text ! p = os.path.join(p, self.components.buildPath.text) title = 'Select path to project build directory' ! result = dialog.directoryDialog(self, title, p) if result.accepted: ! path = string.replace(result.path, refpath + os.sep, '') self.components.buildPath.text = path def on_distPathBtn_mouseClick(self, event): ! refpath = self.parent.components.baseDir.text ! p = os.path.join(refpath, self.components.distPath.text) title = 'Select path to project distribution directory' ! result = dialog.directoryDialog(self, title, p) if result.accepted: ! path = string.replace(result.path, refpath + os.sep, '') self.components.distPath.text = path def on_pixmapsPathBtn_mouseClick(self, event): ! refpath = self.parent.components.baseDir.text ! p = os.path.join(refpath, self.components.pixmapsPath.text) title = 'Select path to project pixmaps directory' ! result = dialog.directoryDialog(self, title, p) if result.accepted: ! path = string.replace(result.path, refpath + os.sep, '') self.components.pixmapsPath.text = path def on_tarballsPathBtn_mouseClick(self, event): ! refpath = self.parent.components.baseDir.text ! p = os.path.join(refpath, self.components.tarballsPath.text) title = 'Select path to project tarballs directory' ! result = dialog.directoryDialog(self, title, p) if result.accepted: ! path = string.replace(result.path, refpath + os.sep, '') self.components.tarballsPath.text = path def on_appLicenceBtn_mouseClick(self, event): ! refpath = self.parent.components.baseDir.text ! p = os.path.join(refpath, self.components.appLicence.text) title = 'Select path to project licence file' ! result = dialog.openFileDialog(self, title, p) ! print result.__dict__ if result.accepted: ! path = string.replace(result.paths[0], refpath + os.sep, '') self.components.appLicence.text = path def on_btnOK_mouseClick(self, event): old = copy.deepcopy(self.parent.project) ! self.parent.project.set('Project', 'buildfilespath', self.components.buildPath.text) ! self.parent.project.set('Project', 'distfilespath', self.components.distPath.text) ! self.parent.project.set('Project', 'pixmapspath', self.components.pixmapsPath.text) ! self.parent.project.set('Project', 'tarballspath', self.components.tarballPath.text) self.parent.project.set('Project', 'publisher', self.components.appPublisher.text) self.parent.project.set('Project', 'appurl', self.components.appURL.text) ! self.parent.project.set('Project', 'applicence', self.components.appLicence.text) ! self.parent.project.set('Project', 'ascii', int(self.components.asciiChk.checked)) ! self.parent.project.set('Project', 'striplib', int(self.components.striplibsChk.checked)) ! self.parent.project.set('Project', 'console', int(self.components.consoleChk.checked)) ! self.parent.project.set('Project', 'optimize', int(self.components.optimizeChk.checked)) ! self.parent.project.set('Project', 'compress', int(self.components.compressChk.checked)) ! self.parent.project.set('Project', 'debug', int(self.components.debugChk.checked)) if self.components.buildType.stringSelection == 'Single directory': ! self.parent.project.set('Project', 'onedir', 1) else: ! self.parent.project.set('Project', 'onedir', 0) if self.parent.project != old: self.parent.documentChanged = True event.Skip() def on_btnCancel_mouseClick(self, event): - print 'Cancel button!' event.Skip() --- 426,510 ---- def on_buildPathBtn_mouseClick(self, event): ! basepath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! basepath = os.path.join(basepath, self.components.buildPath.text) ! refpath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! title = 'Select path to project build directory' ! result = dialog.directoryDialog(self, title, basepath) ! if result.accepted: ! path = self.parent.getRelativePath(refpath, result.path) self.components.buildPath.text = path def on_distPathBtn_mouseClick(self, event): ! basepath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! basepath = os.path.join(basepath, self.components.distPath.text) ! refpath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! title = 'Select path to project distribution directory' ! result = dialog.directoryDialog(self, title, basepath) ! if result.accepted: ! path = self.parent.getRelativePath(refpath, result.path) self.components.distPath.text = path def on_pixmapsPathBtn_mouseClick(self, event): ! basepath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! basepath = os.path.join(basepath, self.components.pixmapsPath.text) ! refpath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! title = 'Select path to project pixmaps directory' ! result = dialog.directoryDialog(self, title, basepath) ! if result.accepted: ! path = self.parent.getRelativePath(refpath, result.path) self.components.pixmapsPath.text = path def on_tarballsPathBtn_mouseClick(self, event): ! basepath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! basepath = os.path.join(basepath, self.components.tarballsPath.text) ! refpath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! title = 'Select path to project tarballs directory' ! result = dialog.directoryDialog(self, title, refpath) ! if result.accepted: ! path = self.parent.getRelativePath(refpath, result.path) self.components.tarballsPath.text = path def on_appLicenceBtn_mouseClick(self, event): ! basepath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! basepath = os.path.join(basepath, self.components.appLicence.text) ! refpath = os.path.join(self.parent.cfg.get('ConfigData', 'projects'), self.parent.components.baseDir.text) ! title = 'Select path to project licence file' ! result = dialog.openFileDialog(self, title, refpath) ! if result.accepted: ! path = self.parent.getRelativePath(refpath, result.paths[0]) self.components.appLicence.text = path def on_btnOK_mouseClick(self, event): old = copy.deepcopy(self.parent.project) ! self.parent.project.set('Project', 'buildfilespath', self.parent.pathSplit(self.components.buildPath.text)) ! self.parent.project.set('Project', 'distfilespath', self.parent.pathSplit(self.components.distPath.text)) ! self.parent.project.set('Project', 'pixmapspath', self.parent.pathSplit(self.components.pixmapsPath.text)) ! self.parent.project.set('Project', 'tarballspath', self.parent.pathSplit(self.components.tarballPath.text)) self.parent.project.set('Project', 'publisher', self.components.appPublisher.text) self.parent.project.set('Project', 'appurl', self.components.appURL.text) ! self.parent.project.set('Project', 'applicence', self.parent.pathSplit(self.components.appLicence.text)) ! self.parent.project.set('Project', 'ascii', str(int(self.components.asciiChk.checked))) ! self.parent.project.set('Project', 'striplib', str(int(self.components.striplibsChk.checked))) ! self.parent.project.set('Project', 'console', str(int(self.components.consoleChk.checked))) ! self.parent.project.set('Project', 'optimize', str(int(self.components.optimizeChk.checked))) ! self.parent.project.set('Project', 'compress', str(int(self.components.compressChk.checked))) ! self.parent.project.set('Project', 'debug', str(int(self.components.debugChk.checked))) if self.components.buildType.stringSelection == 'Single directory': ! self.parent.project.set('Project', 'onedir', '1') else: ! self.parent.project.set('Project', 'onedir', '0') if self.parent.project != old: self.parent.documentChanged = True event.Skip() def on_btnCancel_mouseClick(self, event): event.Skip() Index: prefsDialog.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/prefsDialog.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** prefsDialog.rsrc.py 1 Apr 2005 09:58:50 -0000 1.1 --- prefsDialog.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 1,205 **** ! {'type':'CustomDialog', ! 'name':'prefsDialog', ! 'title':'Projectmanager Preferences', ! 'position':(541, 39), ! 'size':(495, 385), ! 'components': [ ! ! {'type':'TextField', ! 'name':'resEditPath', ! 'position':(10, 20), ! 'size':(410, -1), ! 'userdata':'Select the location on your computer where the PythonCard resource editor is installed.', ! }, ! ! {'type':'Button', ! 'name':'resEditPathBtn', ! 'position':(425, 20), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'resEditPathHelpBtn', ! 'position':(455, 20), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'srcEditPath', ! 'position':(10, 65), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where the PythonCard source code editor is installed.\n', ! }, ! ! {'type':'Button', ! 'name':'srcEditPathBtn', ! 'position':(425, 65), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'srcEditPathHelpBtn', ! 'position':(455, 65), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'pixmapEditPath', ! 'position':(10, 110), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where your preferred pixmap editor is installed.\n', ! }, ! ! {'type':'Button', ! 'name':'pixmapEditPathBtn', ! 'position':(425, 110), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'pixmapEditPathHelpBtn', ! 'position':(455, 110), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'installerPath', ! 'position':(10, 155), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where the McMillan installer software is installed. Note that projectmanager assumes that you have already configured this according to the documentation that comes with it.\n', ! }, ! ! {'type':'Button', ! 'name':'installerPathBtn', ! 'position':(425, 155), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'installerPathHelpBtn', ! 'position':(455, 155), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'compilerPath', ! 'position':(10, 200), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where the Inno setup compiler is installed.', ! }, ! ! {'type':'Button', ! 'name':'compilerPathBtn', ! 'position':(425, 200), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'compilerPathHelpBtn', ! 'position':(455, 200), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'appPublisher', ! 'position':(10, 245), ! 'size':(405, -1), ! 'userdata':"Defines the name which will be used to add an 'AppPublisher' entry to your Inno script file. This name will appear when someone does a right click on your standalone executable and selects 'properties'.", ! }, ! ! {'type':'Button', ! 'name':'appPublisherHelpBtn', ! 'position':(455, 245), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'projectsPath', ! 'position':(10, 295), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where you normally keep your PythonCard projects.', ! }, ! ! {'type':'Button', ! 'name':'projectsPathBtn', ! 'position':(425, 295), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'projectsPathHelpBtn', ! 'position':(455, 295), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'Button', ! 'id':5100, ! 'name':'btnOK', ! 'position':(10, 330), ! 'label':'OK', ! }, ! ! {'type':'Button', ! 'id':5101, ! 'name':'btnCancel', ! 'position':(90, 330), ! 'label':'Cancel', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText7', ! 'position':(10, 185), ! 'text':'Path to Inno setup compiler:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText6', ! 'position':(10, 230), ! 'text':'Your name as it will appear in finished applications properties:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText3', ! 'position':(10, 5), ! 'text':'Path to PythonCard resource editor:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText4', ! 'position':(10, 50), ! 'text':'Path to preferred code editor:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText5', ! 'position':(10, 95), ! 'text':'Path to preferred pixmap editor:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText1', ! 'position':(10, 140), ! 'text':'Path to McMillan Installer:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText2', ! 'position':(10, 280), ! 'text':'Path to your projects directory:', ! }, ! ! ] # end components ! } # end CustomDialog --- 1,205 ---- ! {'type':'CustomDialog', ! 'name':'prefsDialog', ! 'title':'Projectmanager Preferences', ! 'position':(541, 39), ! 'size':(495, 385), ! 'components': [ ! ! {'type':'TextField', ! 'name':'resEditPath', ! 'position':(10, 20), ! 'size':(410, -1), ! 'userdata':'Select the location on your computer where the PythonCard resource editor is installed.', ! }, ! ! {'type':'Button', ! 'name':'resEditPathBtn', ! 'position':(425, 20), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'resEditPathHelpBtn', ! 'position':(455, 20), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'srcEditPath', ! 'position':(10, 65), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where the PythonCard source code editor is installed.\n', ! }, ! ! {'type':'Button', ! 'name':'srcEditPathBtn', ! 'position':(425, 65), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'srcEditPathHelpBtn', ! 'position':(455, 65), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'pixmapEditPath', ! 'position':(10, 110), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where your preferred pixmap editor is installed.\n', ! }, ! ! {'type':'Button', ! 'name':'pixmapEditPathBtn', ! 'position':(425, 110), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'pixmapEditPathHelpBtn', ! 'position':(455, 110), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'installerPath', ! 'position':(10, 155), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where the McMillan installer software is installed. Note that projectmanager assumes that you have already configured this according to the documentation that comes with it.\n', ! }, ! ! {'type':'Button', ! 'name':'installerPathBtn', ! 'position':(425, 155), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'installerPathHelpBtn', ! 'position':(455, 155), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'compilerPath', ! 'position':(10, 200), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where the Inno setup compiler is installed.', ! }, ! ! {'type':'Button', ! 'name':'compilerPathBtn', ! 'position':(425, 200), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'compilerPathHelpBtn', ! 'position':(455, 200), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'appPublisher', ! 'position':(10, 245), ! 'size':(405, -1), ! 'userdata':"Defines the name which will be used to add an 'AppPublisher' entry to your Inno script file. This name will appear when someone does a right click on your standalone executable and selects 'properties'.", ! }, ! ! {'type':'Button', ! 'name':'appPublisherHelpBtn', ! 'position':(455, 245), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'TextField', ! 'name':'projectsPath', ! 'position':(10, 295), ! 'size':(405, -1), ! 'userdata':'Select the location on your computer where you normally keep your PythonCard projects.', ! }, ! ! {'type':'Button', ! 'name':'projectsPathBtn', ! 'position':(425, 295), ! 'size':(25, -1), ! 'label':'...', ! }, ! ! {'type':'Button', ! 'name':'projectsPathHelpBtn', ! 'position':(455, 295), ! 'size':(25, -1), ! 'label':'?', ! }, ! ! {'type':'Button', ! 'id':5100, ! 'name':'btnOK', ! 'position':(10, 330), ! 'label':'OK', ! }, ! ! {'type':'Button', ! 'id':5101, ! 'name':'btnCancel', ! 'position':(95, 330), ! 'label':'Cancel', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText7', ! 'position':(10, 185), ! 'text':'Path to Inno setup compiler:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText6', ! 'position':(10, 230), ! 'text':'Your name as it will appear in finished applications properties:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText3', ! 'position':(10, 5), ! 'text':'Path to PythonCard resource editor:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText4', ! 'position':(10, 50), ! 'text':'Path to preferred code editor:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText5', ! 'position':(10, 95), ! 'text':'Path to preferred pixmap editor:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText1', ! 'position':(10, 140), ! 'text':'Path to McMillan Installer:', ! }, ! ! {'type':'StaticText', ! 'name':'StaticText2', ! 'position':(10, 280), ! 'text':'Path to your projects directory:', ! }, ! ! ] # end components ! } # end CustomDialog Index: standaloneBuilder.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/standaloneBuilder.rsrc.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** standaloneBuilder.rsrc.py 9 Apr 2005 09:30:36 -0000 1.2 --- standaloneBuilder.rsrc.py 15 Apr 2005 15:18:54 -0000 1.3 *************** *** 6,10 **** 'title':'PythonCard standaloneBuilder', 'size':(800, 594), - 'position':(-1, -1), 'statusBar':1, --- 6,9 ---- *************** *** 127,130 **** --- 126,135 ---- 'components': [ + {'type':'StaticText', + 'name':'versionString', + 'position':(500, 125), + 'text':'n/a', + }, + {'type':'ImageButton', 'name':'newBtn', *************** *** 136,139 **** --- 141,145 ---- 'file':'pixmaps/new.png', 'toolTip':'Create a new project', + 'userdata':'frozen', }, *************** *** 147,150 **** --- 153,157 ---- 'file':'pixmaps/open.png', 'toolTip':'Open an existing project', + 'userdata':'frozen', }, *************** *** 158,161 **** --- 165,169 ---- 'file':'pixmaps/save.png', 'toolTip':'Save the current project', + 'userdata':'frozen', }, *************** *** 168,172 **** 'command':'prefsBtn', 'file':'pixmaps/prefs.png', ! 'toolTip':'ProjectManager preferences', }, --- 176,181 ---- 'command':'prefsBtn', 'file':'pixmaps/prefs.png', ! 'toolTip':'standaloneBuilder preferences', ! 'userdata':'frozen', }, *************** *** 180,188 **** 'file':'pixmaps/exit.png', 'toolTip':'Quit the program', }, {'type':'TextField', 'name':'projectName', ! 'position':(90, 60), 'size':(250, -1), }, --- 189,198 ---- 'file':'pixmaps/exit.png', 'toolTip':'Quit the program', + 'userdata':'frozen', }, {'type':'TextField', 'name':'projectName', ! 'position':(95, 60), 'size':(250, -1), }, *************** *** 203,207 **** {'type':'TextField', 'name':'baseDir', ! 'position':(90, 90), 'size':(250, -1), }, --- 213,217 ---- {'type':'TextField', 'name':'baseDir', ! 'position':(95, 90), 'size':(250, -1), }, *************** *** 209,213 **** {'type':'Button', 'name':'baseDirBtn', ! 'position':(345, 90), 'size':(22, 22), 'label':'...', --- 219,223 ---- {'type':'Button', 'name':'baseDirBtn', ! 'position':(350, 90), 'size':(22, 22), 'label':'...', *************** *** 222,226 **** {'type':'TextField', 'name':'mainScript', ! 'position':(90, 120), 'size':(250, -1), }, --- 232,236 ---- {'type':'TextField', 'name':'mainScript', ! 'position':(95, 120), 'size':(250, -1), }, *************** *** 228,266 **** {'type':'Button', 'name':'mainScriptBtn', ! 'position':(345, 120), 'size':(22, 22), 'label':'...', }, - {'type':'Spinner', - 'name':'majorVersion', - 'position':(535, 120), - 'size':(40, -1), - 'backgroundColor':(255, 255, 255), - 'max':100, - 'min':0, - 'value':99, - }, - - {'type':'Spinner', - 'name':'minorVersion', - 'position':(630, 120), - 'size':(40, -1), - 'backgroundColor':(255, 255, 255), - 'max':100, - 'min':1, - 'value':100, - }, - - {'type':'Spinner', - 'name':'fixNumber', - 'position':(710, 120), - 'size':(40, -1), - 'backgroundColor':(255, 255, 255), - 'max':100, - 'min':1, - 'value':1, - }, - {'type':'StaticBox', 'name':'StaticBox2', --- 238,246 ---- {'type':'Button', 'name':'mainScriptBtn', ! 'position':(350, 120), 'size':(22, 22), 'label':'...', }, {'type':'StaticBox', 'name':'StaticBox2', *************** *** 286,290 **** {'type':'Button', 'name':'scriptDelBtn', ! 'position':(95, 285), 'size':(-1, 22), 'label':'Remove', --- 266,270 ---- {'type':'Button', 'name':'scriptDelBtn', ! 'position':(100, 285), 'size':(-1, 22), 'label':'Remove', *************** *** 293,297 **** {'type':'Button', 'name':'scriptEditBtn', ! 'position':(175, 285), 'size':(-1, 22), 'label':'Edit...', --- 273,277 ---- {'type':'Button', 'name':'scriptEditBtn', ! 'position':(185, 285), 'size':(-1, 22), 'label':'Edit...', *************** *** 300,304 **** {'type':'Button', 'name':'scriptDelAllBtn', ! 'position':(300, 285), 'size':(-1, 22), 'label':'Clear all', --- 280,284 ---- {'type':'Button', 'name':'scriptDelAllBtn', ! 'position':(295, 285), 'size':(-1, 22), 'label':'Clear all', *************** *** 328,332 **** {'type':'Button', 'name':'resDelBtn', ! 'position':(495, 285), 'size':(-1, 22), 'label':'Remove', --- 308,312 ---- {'type':'Button', 'name':'resDelBtn', ! 'position':(500, 285), 'size':(-1, 22), 'label':'Remove', *************** *** 335,339 **** {'type':'Button', 'name':'resEditBtn', ! 'position':(575, 285), 'size':(-1, 22), 'label':'Edit...', --- 315,319 ---- {'type':'Button', 'name':'resEditBtn', ! 'position':(585, 285), 'size':(-1, 22), 'label':'Edit...', *************** *** 342,346 **** {'type':'Button', 'name':'resDelAllBtn', ! 'position':(700, 285), 'size':(-1, 22), 'label':'Clear all', --- 322,326 ---- {'type':'Button', 'name':'resDelAllBtn', ! 'position':(695, 285), 'size':(-1, 22), 'label':'Clear all', *************** *** 370,374 **** {'type':'Button', 'name':'pixmapDelBtn', ! 'position':(95, 440), 'size':(-1, 22), 'label':'Remove', --- 350,354 ---- {'type':'Button', 'name':'pixmapDelBtn', ! 'position':(100, 440), 'size':(-1, 22), 'label':'Remove', *************** *** 377,381 **** {'type':'Button', 'name':'pixmapEditBtn', ! 'position':(175, 440), 'size':(-1, 22), 'label':'Edit...', --- 357,361 ---- {'type':'Button', 'name':'pixmapEditBtn', ! 'position':(185, 440), 'size':(-1, 22), 'label':'Edit...', *************** *** 384,388 **** {'type':'Button', 'name':'pixmapDelAllBtn', ! 'position':(300, 440), 'size':(-1, 22), 'label':'Clear all', --- 364,368 ---- {'type':'Button', 'name':'pixmapDelAllBtn', ! 'position':(295, 440), 'size':(-1, 22), 'label':'Clear all', *************** *** 412,416 **** {'type':'Button', 'name':'docDelBtn', ! 'position':(495, 440), 'size':(-1, 22), 'label':'Remove', --- 392,396 ---- {'type':'Button', 'name':'docDelBtn', ! 'position':(500, 440), 'size':(-1, 22), 'label':'Remove', *************** *** 419,423 **** {'type':'Button', 'name':'docEditBtn', ! 'position':(575, 440), 'size':(-1, 22), 'label':'Edit...', --- 399,403 ---- {'type':'Button', 'name':'docEditBtn', ! 'position':(585, 440), 'size':(-1, 22), 'label':'Edit...', *************** *** 426,430 **** {'type':'Button', 'name':'docDelAllBtn', ! 'position':(700, 440), 'size':(-1, 22), 'label':'Clear all', --- 406,410 ---- {'type':'Button', 'name':'docDelAllBtn', ! 'position':(695, 440), 'size':(-1, 22), 'label':'Clear all', *************** *** 441,447 **** {'type':'Button', 'name':'changelogBtn', ! 'position':(95, 475), 'size':(-1, 22), ! 'command':'menuToolsLogEdit', 'label':'Changelog...', 'toolTip':'Edit the changelog file', --- 421,427 ---- {'type':'Button', 'name':'changelogBtn', ! 'position':(100, 475), 'size':(-1, 22), ! 'command':'changeLogBtn', 'label':'Changelog...', 'toolTip':'Edit the changelog file', *************** *** 450,454 **** {'type':'Button', 'name':'readmeBtn', ! 'position':(95, 500), 'size':(-1, 22), 'label':'README...', --- 430,434 ---- {'type':'Button', 'name':'readmeBtn', ! 'position':(100, 500), 'size':(-1, 22), 'label':'README...', *************** *** 458,462 **** {'type':'Button', 'name':'specBtn', ! 'position':(175, 475), 'size':(-1, 22), 'label':'Spec file...', --- 438,442 ---- {'type':'Button', 'name':'specBtn', ! 'position':(185, 475), 'size':(-1, 22), 'label':'Spec file...', *************** *** 466,470 **** {'type':'Button', 'name':'innoBtn', ! 'position':(175, 500), 'size':(-1, 22), 'label':'Inno script...', --- 446,450 ---- {'type':'Button', 'name':'innoBtn', ! 'position':(185, 500), 'size':(-1, 22), 'label':'Inno script...', *************** *** 474,489 **** {'type':'Button', 'name':'rebuildBtn', ! 'position':(700, 475), 'size':(-1, 22), 'label':'Rebuild', 'toolTip':'Rebuild the standalone version of your application', }, {'type':'Button', 'name':'releaseBtn', ! 'position':(700, 500), 'size':(-1, 22), 'label':'Release', 'toolTip':'Make a release of your finished application', }, --- 454,471 ---- {'type':'Button', 'name':'rebuildBtn', ! 'position':(695, 475), 'size':(-1, 22), 'label':'Rebuild', 'toolTip':'Rebuild the standalone version of your application', + 'userdata':'frozen', }, {'type':'Button', 'name':'releaseBtn', ! 'position':(695, 500), 'size':(-1, 22), 'label':'Release', 'toolTip':'Make a release of your finished application', + 'userdata':'frozen', }, *************** *** 503,519 **** {'type':'StaticText', 'name':'StaticText4', ! 'position':(405, 95), 'text':'Project description', }, {'type':'StaticText', - 'name':'StaticText1', - 'position':(690, 125), - 'text':'Fix', - }, - - {'type':'StaticText', 'name':'StaticText9', ! 'position':(440, 65), 'text':'Icon (Win)', }, --- 485,495 ---- {'type':'StaticText', 'name':'StaticText4', ! 'position':(395, 95), 'text':'Project description', }, {'type':'StaticText', 'name':'StaticText9', ! 'position':(435, 65), 'text':'Icon (Win)', }, *************** *** 521,525 **** {'type':'StaticText', 'name':'StaticText8', ! 'position':(455, 125), 'text':'Version', }, --- 497,501 ---- {'type':'StaticText', 'name':'StaticText8', ! 'position':(450, 125), 'text':'Version', }, *************** *** 537,552 **** }, - {'type':'StaticText', - 'name':'StaticText3', - 'position':(595, 125), - 'text':'Minor', - }, - - {'type':'StaticText', - 'name':'StaticText2', - 'position':(500, 125), - 'text':'Major', - }, - ] # end components } # end background --- 513,516 ---- Index: outputWindow.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/outputWindow.rsrc.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** outputWindow.rsrc.py 9 Apr 2005 09:30:36 -0000 1.2 --- outputWindow.rsrc.py 15 Apr 2005 15:18:54 -0000 1.3 *************** *** 1,107 **** ! {'application':{'type':'Application', ! 'name':'Template', ! 'backgrounds': [ ! {'type':'Background', ! 'name':'outputWindow', ! 'title':'Rebuild project', ! 'size':(400, 300), ! 'visible':0, ! ! 'components': [ ! ! {'type':'Button', ! 'name':'closeBtn', ! 'position':(10, 225), ! 'label':'Close', ! }, ! ! {'type':'StaticText', ! 'name':'txt5', ! 'position':(10, 90), ! 'text':'Returned messages:', ! }, ! ! {'type':'TextArea', ! 'name':'returnedText', ! 'position':(10, 105), ! 'size':(375, 110), ! }, ! ! {'type':'StaticText', ! 'name':'txt4c', ! 'position':(145, 70), ! 'text':'please wait...', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt4b', ! 'position':(145, 70), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt4a', ! 'position':(10, 70), ! 'text':'Rebuilding distributable:', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt3c', ! 'position':(145, 50), ! 'text':'please wait...', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt3b', ! 'position':(145, 50), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt3a', ! 'position':(10, 50), ! 'text':'Rebuilding application:', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt2b', ! 'position':(145, 30), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt2a', ! 'position':(10, 30), ! 'text':'Rebuilding versioninfo file:', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt1b', ! 'position':(145, 10), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt1a', ! 'position':(10, 10), ! 'text':'Rebuilding spec file:', ! 'visible':False, ! }, ! ! ] # end components ! } # end background ! ] # end backgrounds ! } } --- 1,107 ---- ! {'application':{'type':'Application', ! 'name':'Template', ! 'backgrounds': [ ! {'type':'Background', ! 'name':'outputWindow', ! 'title':'Rebuild project', ! 'size':(400, 300), ! 'visible':0, ! ! 'components': [ ! ! {'type':'Button', ! 'name':'closeBtn', ! 'position':(10, 225), ! 'label':'Close', ! }, ! ! {'type':'StaticText', ! 'name':'txt5', ! 'position':(10, 90), ! 'text':'Returned messages:', ! }, ! ! {'type':'TextArea', ! 'name':'returnedText', ! 'position':(10, 105), ! 'size':(375, 110), ! }, ! ! {'type':'StaticText', ! 'name':'txt4c', ! 'position':(145, 70), ! 'text':'please wait...', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt4b', ! 'position':(145, 70), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt4a', ! 'position':(10, 70), ! 'text':'Rebuilding distributable:', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt3c', ! 'position':(145, 50), ! 'text':'please wait...', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt3b', ! 'position':(145, 50), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt3a', ! 'position':(10, 50), ! 'text':'Rebuilding application:', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt2b', ! 'position':(145, 30), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt2a', ! 'position':(10, 30), ! 'text':'Rebuilding versioninfo file:', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt1b', ! 'position':(145, 10), ! 'font':{'style': 'bold', 'faceName': 'Verdana', 'family': 'sansSerif', 'size': 8}, ! 'text':'Done', ! 'visible':False, ! }, ! ! {'type':'StaticText', ! 'name':'txt1a', ! 'position':(10, 10), ! 'text':'Rebuilding spec file:', ! 'visible':False, ! }, ! ! ] # end components ! } # end background ! ] # end backgrounds ! } } Index: newProjectWizardPage4.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/newProjectWizardPage4.rsrc.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** newProjectWizardPage4.rsrc.py 9 Apr 2005 09:30:36 -0000 1.2 --- newProjectWizardPage4.rsrc.py 15 Apr 2005 15:18:54 -0000 1.3 *************** *** 1,74 **** ! {'type':'CustomDialog', ! 'name':'Template', ! 'title':'New Project Wizard', ! 'position':(171, 401), ! 'size':(600, 330), ! 'components': [ ! ! {'type':'Image', ! 'name':'Image1', ! 'position':(-5, -5), ! 'size':(174, 324), ! 'file':'pixmaps/newproject.png', ! }, ! ! {'type':'Button', ! 'name':'backBtn', ! 'position':(340, 275), ! 'enabled':False, ! 'label':'< Back', ! }, ! ! {'type':'Button', ! 'name':'nextBtn', ! 'position':(415, 275), ! 'label':'Next >', ! }, ! ! {'type':'Button', ! 'id':5101, ! 'name':'cancelBtn', ! 'position':(510, 275), ! 'label':'Cancel', ! }, ! ! {'type':'StaticText', ! 'name':'page4text1', ! 'position':(175, 0), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 20}, ! 'text':'Ready to create new project', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text3', ! 'position':(175, 85), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 8}, ! 'text':'We now have the information required to create a brand new project. Click Create to', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text4', ! 'position':(175, 100), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 8}, ! 'text':'continue, or Cancel to exit the wizard.', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text5', ! 'position':(175, 125), ! 'text':'After the project has been created, you should open the project properties page and', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text6', ! 'position':(175, 140), ! 'text':'ensure that the settings are to your liking.', ! 'userdata':'page4', ! }, ! ! ] # end components ! } # end CustomDialog --- 1,76 ---- ! {'type':'CustomDialog', ! 'name':'Template', ! 'title':'New Project Wizard', ! 'position':(175, 82), ! 'size':(600, 330), ! 'components': [ ! ! {'type':'Image', ! 'name':'Image1', ! 'position':(-5, -5), ! 'size':(174, 324), ! 'file':'pixmaps/newproject.png', ! }, ! ! {'type':'Button', ! 'name':'backBtn', ! 'position':(340, 275), ! 'enabled':False, ! 'label':'< Back', ! }, ! ! {'type':'Button', ! 'name':'nextBtn', ! 'position':(415, 275), ! 'label':'Next >', ! }, ! ! {'type':'Button', ! 'id':5101, ! 'name':'cancelBtn', ! 'position':(510, 275), ! 'label':'Cancel', ! }, ! ! {'type':'StaticText', ! 'name':'page4text1', ! 'position':(175, 0), ! 'font':{'faceName': 'Tahoma', 'family': 'sansSerif', 'size': 20}, ! 'text':'Ready to create new project', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text3', ! 'position':(175, 85), ! 'font':{'faceName': u'Tahoma', 'size': 10}, ! 'text':'We now have the information required to create a brand new project.', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text4', ! 'position':(175, 100), ! 'font':{'faceName': u'Tahoma', 'size': 10}, ! 'text':'Click Create to continue, or Cancel to exit the wizard.', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text5', ! 'position':(175, 125), ! 'font':{'faceName': u'Tahoma', 'size': 10}, ! 'text':'After the project has been created, you should open the project', ! 'userdata':'page4', ! }, ! ! {'type':'StaticText', ! 'name':'page4text6', ! 'position':(175, 140), ! 'font':{'faceName': u'Tahoma', 'size': 10}, ! 'text':'properties page and ensure that the settings are to your liking.', ! 'userdata':'page4', ! }, ! ! ] # end components ! } # end CustomDialog Index: standaloneBuilder.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/standaloneBuilder.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** standaloneBuilder.py 9 Apr 2005 09:30:36 -0000 1.2 --- standaloneBuilder.py 15 Apr 2005 15:18:54 -0000 1.3 *************** *** 1,5 **** #!/usr/bin/python # ! # PythonCard project manager - Phil Edwards <ph...@li...> # Copyright (c) 2001-2003 PythonCard developers # All rights reserved. --- 1,5 ---- #!/usr/bin/python # ! # PythonCard standaloneBuilder tool - Phil Edwards <ph...@li...> # Copyright (c) 2001-2003 PythonCard developers [...1880 lines suppressed...] ! pstatus = self.project.get('Project', 'status') ! ! if pstatus == 'frozen': ! title = 'Frozen project' ! txt = 'This release of the %s project has been frozen ready ' % self.project.get('Project', 'name') ! txt += 'for release. The project ' ! txt += 'should be rebuilt on all the platforms you are interested in.\n\nYou ' ! txt += 'should then click the release button to un-freeze the ' ! txt += 'project and initialize the next version.' ! bull = dialog.alertDialog(self, wrap_string(txt, 70), title) ! for comp in self.components.keys(): ! if self.components[comp].userdata != pstatus: ! self.components[comp].enabled = False ! ! if pstatus == 'open': ! for comp in self.components.keys(): self.components[comp].enabled = True if __name__ == '__main__': ! app = model.Application(standaloneBuilder) app.MainLoop() Index: newProjectWizardPage1.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/newProjectWizardPage1.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** newProjectWizardPage1.rsrc.py 1 Apr 2005 09:58:50 -0000 1.1 --- newProjectWizardPage1.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 23,27 **** {'type':'TextField', 'name':'projectName', ! 'position':(245, 55), 'size':(340, -1), 'userdata':'page1', --- 23,27 ---- {'type':'TextField', 'name':'projectName', ! 'position':(250, 55), 'size':(340, -1), 'userdata':'page1', --- NEW FILE: versionDialog.rsrc.py --- {'type':'CustomDialog', 'name':'nextVersion', 'title':'Next Release Version Number', 'position':(169, 114), 'size':(260, 145), 'components': [ {'type':'StaticText', 'name':'StaticText1', 'position':(10, 10), 'text':'Please confirm the next release version number:', }, {'type':'Spinner', 'name':'majorVersion', 'position':(10, 40), 'size':(47, -1), 'max':100, 'min':0, 'value':11, }, {'type':'Spinner', 'name':'minorVersion', 'position':(87, 40), 'size':(47, -1), 'max':100, 'min':0, 'value':0, }, {'type':'Spinner', 'name':'fixLevel', 'position':(164, 40), 'size':(47, -1), 'max':100, 'min':0, 'value':0, }, {'type':'Button', 'id':5100, 'name':'btnOK', 'position':(10, 90), 'default':1, 'label':'OK', }, {'type':'Button', 'id':5101, 'name':'btnCancel', 'position':(90, 90), 'label':'Cancel', }, ] # end components } # end CustomDialog Index: newProjectWizardPage2.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/newProjectWizardPage2.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** newProjectWizardPage2.rsrc.py 1 Apr 2005 09:58:50 -0000 1.1 --- newProjectWizardPage2.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 23,27 **** {'type':'TextField', 'name':'projectDesc', ! 'position':(270, 55), 'size':(315, -1), 'userdata':'page2', --- 23,27 ---- {'type':'TextField', 'name':'projectDesc', ! 'position':(275, 55), 'size':(315, -1), 'userdata':'page2', Index: newProjectWizardPage3.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/newProjectWizardPage3.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** newProjectWizardPage3.rsrc.py 1 Apr 2005 09:58:50 -0000 1.1 --- newProjectWizardPage3.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 23,28 **** {'type':'TextField', 'name':'baseDir', ! 'position':(250, 55), ! 'size':(305, -1), 'userdata':'page3', }, --- 23,28 ---- {'type':'TextField', 'name':'baseDir', ! 'position':(255, 55), ! 'size':(300, -1), 'userdata':'page3', }, *************** *** 31,35 **** 'name':'baseDirBtn', 'position':(560, 55), ! 'size':(25, -1), 'label':'...', 'userdata':'page3', --- 31,35 ---- 'name':'baseDirBtn', 'position':(560, 55), ! 'size':(25, 25), 'label':'...', 'userdata':'page3', Index: propertiesDialog.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/standaloneBuilder/propertiesDialog.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** propertiesDialog.rsrc.py 1 Apr 2005 09:58:50 -0000 1.1 --- propertiesDialog.rsrc.py 15 Apr 2005 15:18:54 -0000 1.2 *************** *** 1,198 **** ! {'type':'CustomDialog', ! 'name':'propertiesDialog', ! 'title':'Project properties', ! 'position':(555, 29), ! 'size':(430, 395), ! 'components': [ ! ! {'type':'TextField', ! 'name':'buildPath', ! 'position':(105, 5), ! 'size':(275, -1), ! }, ! ! {'type':'Button', ! 'name':'buildPathBtn', ! 'position':(385, 5), ! 'size':(30, -1), ! 'label':'...', ! }, ! ! {'type':'TextField', ! 'name':'distPath', ! 'position':(105, 40), ! 'size':(275, -1), ! }, ! ! {'type':'Button', ! 'name':'distPathBtn',... [truncated message content] |