Hi,
I am trying to write a wizard script for wxsmith. I have created a directory wxsmith under templates\wizard directory. I just copied the wizard.script from wxwidgets into this newly created folder. I added the line RegisterWizard(wizProject, _T("wxSmith"), _T("wxSmith application"), _T("GUI"));
in the config.script file. When I try to open a new wxsmith project I still find only the old dialog.
I just checked the sources and I found that wxsmithwizard.cpp contains the following code
CompileTargetBase* wxSmithWizard::Launch(int Index, wxString* pFilename)
{
if ( !wxsPLUGIN() )
{
wxMessageBox(
_("wxSmith plugin is not enable. Please enable it before running wizard"));
return 0;
}
wxsWizard Dlg(0L);
Dlg.ShowModal();
return 0;
}
I think this calls wxswizard. How do I make this call my script? Thanks in advance for any help. I feel the code should call the script by default and if this fails should set some flag and based on the value set for this flag it should then call wxswizard (which is used currently). This would help someone to develop the script separately and plugin at any time in the future.
Regards,
Srinivasan.B