News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Project Wizards -> Customisation of the projects files

Started by kubiack, July 26, 2007, 03:19:39 PM

Previous topic - Next topic

kubiack

Hello

I am writing a wizard for creating a complex project layout, and I want the wizard script to change the "inside" of the template files (main.c etc) based on what the user selected during the creation on the project (project name, ...).

I like the "code snippet" plugin where specially formated variable names are replaced during the insertion of the text by user-specified values, this is this kind of functionnality I want to add in a project wizard.

Is there any [easy] way to do that from wizard script (or custom project or anything else)?

The wizard I am trying to write is supposed (when it's finished) to have similar functionnalities as "autoproject" or "acmkdir" linux tools; i.e. creating a whole project and files based on the autotools (automake, autoconf etc...). Maybe there is another already existing solution for doing this with codeblocks, but I haven't found it. If you have information about that... feel free to post ;)


Biplab

Quote from: kubiack on July 26, 2007, 03:19:39 PM
I am writing a wizard for creating a complex project layout, and I want the wizard script to change the "inside" of the template files (main.c etc) based on what the user selected during the creation on the project (project name, ...).

Have a look at the Code::Blocks Plugin Wizard or wxWidgets wizard. You'll find the answer of this question.

Quote from: kubiack on July 26, 2007, 03:19:39 PM
I like the "code snippet" plugin where specially formated variable names are replaced during the insertion of the text by user-specified values, this is this kind of functionnality I want to add in a project wizard.

Possibility of calling a plugin during wizard runtime depends on that plugin itself. If you want such implementation then you may discuss with Pecan to provide some hook. You can have a look at wxWidgets wizard for implementation details. Byo did that by providing one hook.

Quote from: kubiack on July 26, 2007, 03:19:39 PM
The wizard I am trying to write is supposed (when it's finished) to have similar functionnalities as "autoproject" or "acmkdir" linux tools; i.e. creating a whole project and files based on the autotools (automake, autoconf etc...). Maybe there is another already existing solution for doing this with codeblocks, but I haven't found it. If you have information about that... feel free to post ;)

I don't think you'll be able to do all the things which Autotools is able to do with wizard script. ;)
Be a part of the solution, not a part of the problem.