Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
exposing txtPrjPath in projectpathpanel.cpp
BtM:
it seams that the project path panel does no macro or variable expansion on the path (or Am I wrong)
So I tried to expose the the text control so it could be done in the script (ala the path panel that does expose the control)
all it takes (IMHO) is one line
txtPrjPath->SetName(_T("txtPrjPath")); // not such an original name :)
added after line 70 of
codeblocks\src\plugins\scriptedwizard\projectpathpanel.cpp
Does anyone know if the control box was left unexposed for a reason?
if not can anyone tell me how does one go about incorporating it into the code base
Thanks
_Ben
MortenMacFly:
--- Quote from: BtM on February 11, 2012, 08:34:37 pm ---it seams that the project path panel does no macro or variable expansion on the path (or Am I wrong)
--- End quote ---
C::B version? Platform? What path panel (we have many)? Steps to reproduce?
--- Quote from: BtM on February 11, 2012, 08:34:37 pm --- txtPrjPath->SetName(_T("txtPrjPath")); // not such an original name :)
--- End quote ---
This doesn't look good and I don't know what you are trying to "fix" with this.
Please report the "smart way" (http://catb.org/esr/faqs/smart-questions.html).
BtM:
--- Quote from: MortenMacFly on February 12, 2012, 10:19:57 am ---C::B version? Platform? What path panel (we have many)? Steps to reproduce?
--- End quote ---
Sorry should have known better :'( : Code::Blocks (svn 7671), Win7, Project Path Panel in New Project Wizard
I will demonstrate with new console project but the panel itself is used by many scripts
please see attached screen shots
--- Quote from: MortenMacFly on February 12, 2012, 10:19:57 am ---This doesn't look good and I don't know what you are trying to "fix" with this.
--- End quote ---
I need the Projects to be situated relative to the CB directory so if the text control holding the path has a "name" then I could expand the $(#cbtmp) variable in the script and create the project in a relative path and not absolute
[attachment deleted by admin]
BtM:
--- Quote from: MortenMacFly on February 12, 2012, 10:19:57 am ---C::B version? Platform? What path panel (we have many)? Steps to reproduce?
--- End quote ---
Sorry should have known better :'( : Code::Blocks (svn 7671), Win7, Project Path Panel in New Project Wizard
I will demonstrate with new console project but the panel itself is used by many scripts
please see attached screen shots in previous post
--- Quote from: MortenMacFly on February 12, 2012, 10:19:57 am ---This doesn't look good and I don't know what you are trying to "fix" with this.
--- End quote ---
I need the Projects to be situated relative to the CB directory so if the text control holding the path has a "name" then I could expand the $(#cbtmp) variable in the script and create the project in a relative path and not absolute
_Ben
MortenMacFly:
--- Quote from: BtM on February 14, 2012, 10:29:09 am ---I need the Projects to be situated relative to the CB directory so if the text control holding the path has a "name" then I could expand the $(#cbtmp) variable in the script and create the project in a relative path and not absolute
--- End quote ---
Ok, understood. But then your patch doen't do the right thing and won't help.
You have to replace macros using macrosmanager but keep track of the original entry so the macro doesn't get lost.
Navigation
[0] Message Index
[#] Next page
Go to full version