Talk:Wizard scripts: Difference between revisions

From Code::Blocks
LETARTARE (talk | contribs)
script primitive functions
 
LETARTARE (talk | contribs)
No edit summary
Line 14: Line 14:


*'''bool SetupTarget (target, IsDebug)'''
*'''bool SetupTarget (target, IsDebug)'''
 
...




Line 20: Line 20:


*'''bool SetupTarget (target, IsDebug)'''
*'''bool SetupTarget (target, IsDebug)'''
...




Line 25: Line 26:


*'''bool SetupCustom ()'''
*'''bool SetupCustom ()'''
...




for file creation
for file creation


*'''wxString Createfiles ()'''
*'''wxString CreateFiles ()'''
...




Line 35: Line 38:


*'''wxString GetFilesDir ()'''
*'''wxString GetFilesDir ()'''
...




toget generated files in a project
to get generated files in a project


*'''wxString GetGeneratedFile(index)'''
*'''wxString GetGeneratedFile(index)'''
...






These functions will be performed by the manager wizard.
These functions will be performed by the manager wizard.

Revision as of 13:16, 11 February 2013

=> add into 'How do I create a new wizard?'


When creating a script wizard, it may contain basic primitive functions

  • void BeginWizard ()

mandatory for all wizards and which contains different entry pages


for a project :

  • bool SetupProject (project)
  • bool SetupTarget (target, IsDebug)

...


for a single target (within a project)

  • bool SetupTarget (target, IsDebug)

...


for an item to be defined by the user

  • bool SetupCustom ()

...


for file creation

  • wxString CreateFiles ()

...


to get the template files in a project

  • wxString GetFilesDir ()

...


to get generated files in a project

  • wxString GetGeneratedFile(index)

...


These functions will be performed by the manager wizard.