Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

WIP: Generic wizard plugin

<< < (2/3) > >>

mandrav:
The IsCpp variable there is used to keep the language selection. It's not something internal to the wizard.
This sample wizard has one XRC page to select the type of console app to create. It offers C and C++ (like the current console template).
If you update the XRC to include more languages, you just have to change IsCpp from bool to int so that it can hold the index to the selected language.

takeshimiya:
Yes, I know that. It was just an example. :)

I'd have to explain more then:
I'm suggesting to add a Wizard.GetLanguageID() function with the code above.

The language would be set previously with a screen before the Wizard takes action.

That screen would be a dialog simmilar to this:

tiwag:
i think the "final location" line (as shown in the pix above)
would be a very good idea to add to our CB wizard too,
and it would be good the project's path to be editable in an edit control
like the Build-options compiler's & linker's directories have it already !

takeshimiya:
In fact I think it should be almost exactly as that, but I would remove: the image, author, email, version, and license. They just clutter the dialog.

takeshimiya:
So here it is:



The blank space is a wxTreeCtrl.
I'm attaching the XRC.

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version