From 9acad78dc292c608a129e106aa808ec18b9927cb Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 31 Jul 2012 12:58:18 +0000 Subject: [PATCH] 2012-07-31 14:50 UTC+0200 Viktor Szakats (harbour syenar.net) * contrib/hbide/projectwizard.prg ! '.hbptmplt' extension renamed to '.tpl'. First it doesn't have anything to do with hbmk2's .hbp file. It's reinvented version of a small subset of hbmk2 features using a brand new and incompatible, HBIDE and feature-specific format. 'tpl' is the standard abbreviation for 'template'. ; I suggest for any users needing such feature to simply stick with .hbm and .hbc files which were developed with the exact same idea in mind, but they fully support all hbmk2 features they work on all platforms and they work with any IDEs and in command line mode: --- mydefaultprojectsetting.hbm -w3 -es2 -warn=yes -gtwvt{win} # etc etc --- or --- mydefaultprojectsettings.hbc prgflags=-w3 -es2 warn=yes gt=wvt{win} # etc etc --- then: --- myproject.hbp mydefaultprojectsetting.hbm --- or --- myproject.hbp mydefaultprojectsetting.hbc --- respecitvely. --- harbour/ChangeLog | 47 +++++++++++++++++++++---- harbour/contrib/hbide/projectwizard.prg | 7 ++-- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 64e330b612..a4dcedf7a2 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,15 +16,50 @@ The license applies to all entries newer than 2009-04-28. */ +2012-07-31 14:50 UTC+0200 Viktor Szakats (harbour syenar.net) + * contrib/hbide/projectwizard.prg + ! '.hbptmplt' extension renamed to '.tpl'. First it doesn't + have anything to do with hbmk2's .hbp file. It's + reinvented version of a small subset of hbmk2 features using + a brand new and incompatible, HBIDE and feature-specific + format. 'tpl' is the standard abbreviation for 'template'. + ; I suggest for any users needing such feature to simply stick + with .hbm and .hbc files which were developed with the exact + same idea in mind, but they fully support all hbmk2 features + they work on all platforms and they work with any IDEs and + in command line mode: + --- mydefaultprojectsetting.hbm + -w3 -es2 + -warn=yes + -gtwvt{win} + # etc etc + --- + or + --- mydefaultprojectsettings.hbc + prgflags=-w3 -es2 + warn=yes + gt=wvt{win} + # etc etc + --- + then: + --- myproject.hbp + mydefaultprojectsetting.hbm + --- + or + --- myproject.hbp + mydefaultprojectsetting.hbc + --- + respecitvely. + 2012-07-31 02:53 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/projectwizard.prg * contrib/hbide/projectwizard.ui - + Implemented: the contents entered in the "New Project Wizard" are - saved in _thePathdesignatedForHbp_.hbptmplt. This will be the + + Implemented: the contents entered in the "New Project Wizard" are + saved in _thePathdesignatedForHbp_.hbptmplt. This will be the intermediate file from where .hbp will be created as per standardards - adopted so far and then loaded in HbIDE. If such template already - exists on the .hbp path asked for, it will be loaded in the - interface. How and what action will ask for loading/saving may + adopted so far and then loaded in HbIDE. If such template already + exists on the .hbp path asked for, it will be loaded in the + interface. How and what action will ask for loading/saving may change. for now examine the template file. 2012-07-30 21:01 UTC+0200 Viktor Szakats (harbour syenar.net) @@ -33,7 +68,7 @@ 2012-07-30 20:36 UTC+0200 Viktor Szakats (harbour syenar.net) * contrib/make.hb - - deleted TODO which is unimportant and works + - deleted TODO which is unimportant and works well in practice 2012-07-30 16:06 UTC+0200 Viktor Szakats (harbour syenar.net) diff --git a/harbour/contrib/hbide/projectwizard.prg b/harbour/contrib/hbide/projectwizard.prg index 37b34ab8e0..1820f2ddc6 100644 --- a/harbour/contrib/hbide/projectwizard.prg +++ b/harbour/contrib/hbide/projectwizard.prg @@ -712,7 +712,7 @@ METHOD IdeProjectWizard:loadDefaults() RETURN .f. ENDIF - IF hb_fileExists( cPath + cName + ".hbptmplt" ) + IF hb_fileExists( cPath + cName + ".tpl" ) lTmpltExists := .t. ELSEIF hb_fileExists( cProjPath ) MsgBox( "Project file already exists, cannot reload in wizard!" ) @@ -721,7 +721,7 @@ METHOD IdeProjectWizard:loadDefaults() ::cProjPath := cPath IF lTmpltExists - ::oProject:load( cPath + cName + ".hbptmplt" ) + ::oProject:load( cPath + cName + ".tpl" ) ::oProject:loadUI( Self, UI_LOAD_NORMAL ) ELSE ::oUI:editProjPath:setText( cProjPath ) @@ -741,7 +741,7 @@ METHOD IdeProjectWizard:saveProject() ::oProject:saveUI( Self ) hb_fNameSplit( ::oUI:editProjPath:text(), @cPath, @cFile, @cExt ) - ::oProject:save( cPath + cFile + ".hbptmplt" ) + ::oProject:save( cPath + cFile + ".tpl" ) RETURN Self @@ -1477,4 +1477,3 @@ METHOD IdeExProject:load( cPathTmplt ) RETURN Self /*----------------------------------------------------------------------*/ -