News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Codeblocks wizard script multiple compiler pages

Started by anandamu16, April 11, 2017, 01:36:33 PM

Previous topic - Next topic

anandamu16

Hi,

I am trying to create a wizard in codeblocks which will allow the user to select one out of multiple embedded development boards available (like in ARM Wizard) and based on the Development board selected, wizard will give different compiler options. (eg if user has selected development board "A", he will have the option to select only one of "x", and "Y" compilers. Similarly, if the if user has selected development board "B", he will have the option to select only one of "z", and "w" compilers).

By going through the documentation, I didn't get a way to do this.
It seems that only 1 compiler page is possible in 1 wizard.

Is there any way to create multiple compiler pages in single wizard, so that based on development board selection user will get the suitable compilers to select? Or is there any other way to achieve the same though?

P.S I am refering the below document http://wiki.codeblocks.org/index.php/Wizard_Scripting_Commands

anandamu16

Quote(eg if user has selected development board "A", he will have the option to select only one of "x", and "Y" compilers. Similarly, if the if user has selected development board "B", he will have the option to select only one of "z", and "w" compilers)
Is there anyone who can help me in this?


BlueHazzard

Can you elaborate the differences between the cbscriptedwizzard and this version https://github.com/ywx/cbScriptedWizardPlugin ? Just some quick summary, no details?

Pecan

Quote from: BlueHazzard on April 27, 2017, 07:12:12 PM
Can you elaborate the differences between the cbscriptedwizzard and this version https://github.com/ywx/cbScriptedWizardPlugin ? Just some quick summary, no details?

It's an extended scripted wizard allowing choice containers.


void Wiz::FillContainerWithSelCompilers( const wxString& name, const wxString& validCompilerIDs )
{ ... }

int Wiz::FillContainerWithChoices( const wxString& name, const wxString& choices )
{ ... }
            // extender
            func(&Wiz::FillContainerWithSelCompilers, "FillContainerWithSelCompilers").
            func(&Wiz::AppendContainerWithSelCompilers, "AppendContainerWithSelCompilers").
            func(&Wiz::FillContainerWithChoices, "FillContainerWithChoices").
            func(&Wiz::AppendContainerWithChoices, "AppendContainerWithChoices").
            func(&Wiz::GetWizardScriptFolder, "GetWizardScriptFolder");



oBFusCATed

@pecan: Have you looked if this could be reintegrated in the main plugin?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Pecan

Yes, it can. I'm using it myself.
Would you like me to integrate it to trunk?


oBFusCATed

Yes, in the original wizard, please. Can you show a patch before committing?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]