Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

exposing txtPrjPath in projectpathpanel.cpp

<< < (2/2)

BtM:

--- Quote from: MortenMacFly on February 14, 2012, 10:59:47 am ---You have to replace macros using macrosmanager but keep track of the original entry so the macro doesn't get lost.

--- End quote ---
Thanks, I did think of doing it but decided against, let me explain me reasoning
1. I do not know the implication of changing the code and although I have been teaching C++ for 20 years or so, I am new to CB.
2. in principle I think the less you do to get your objective the better. combined that with the fact that the less you do the less mistakes you make  ;D

so I tried minimal intervention
If the text-control in the panel is exposed just like the text-control in:
SVN\codeblocks\src\plugins\scriptedwizard\genericselectpath.cpp

--- Code: --- // Set the control's name so that calls to wxWindow::FindWindowByName() succeed...
txtFolder->SetName(_T("txtFolder"));

--- End code ---
Then I can make my own scripted wizard and do the rest with minimal intervention in the actual code base
given that you know much much more about the code-base  what do you think is the right approach in this case
Thanks,
_Ben

MortenMacFly:

--- Quote from: BtM on February 14, 2012, 11:27:58 am ---so I tried minimal intervention
[...]
what do you think is the right approach in this case

--- End quote ---
If what you tried works for you, I'm fine. I thought you want to make this generally available to all wizards.

BtM:

--- Quote from: MortenMacFly on February 14, 2012, 11:47:59 am --- I thought you want to make this generally available to all wizards.

--- End quote ---
I will be more then happy to do it if you think it might be useful,
can you point me at the coding standards document you are using or any other thing I should know? 

MortenMacFly:

--- Quote from: BtM on February 14, 2012, 11:58:57 am ---can you point me at the coding standards document you are using or any other thing I should know? 

--- End quote ---
Here is for starters:
http://wiki.codeblocks.org/index.php?title=Coding_style

...and here the SDK documentation:
http://prdownload.berlios.de/codeblocks/codeblocks_sdk_doc_r7059.chm
(Its a bit outdated, but still current for your pruposes.)

...also, have a look at the core-code itself (if needed).

BtM:
thanks will get reading

Navigation

[0] Message Index

[*] Previous page

Go to full version