Code::Blocks  SVN r11506
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
Wiz Class Reference

#include <wiz.h>

Inheritance diagram for Wiz:
Collaboration diagram for Wiz:

Public Member Functions

 Wiz ()
 
 ~Wiz ()
 
Wizoperator= (cb_unused const Wiz &rhs)
 
int GetCount () const
 
TemplateOutputType GetOutputType (int index) const
 
wxString GetTitle (int index) const
 
wxString GetDescription (int index) const
 
wxString GetCategory (int index) const
 
const wxBitmapGetBitmap (int index) const
 
wxString GetScriptFilename (int index) const
 
CompileTargetBaseLaunch (int index, wxString *pFilename=0)
 When this is called, the wizard must get to work ;). More...
 
CompileTargetBaseRunProjectWizard (wxString *pFilename)
 
CompileTargetBaseRunTargetWizard (wxString *pFilename)
 
CompileTargetBaseRunFilesWizard (wxString *pFilename)
 
CompileTargetBaseRunCustomWizard (wxString *pFilename)
 
void AddWizard (TemplateOutputType otype, const wxString &title, const wxString &cat, const wxString &script, const wxString &templatePNG, const wxString &wizardPNG, const wxString &xrc)
 
TemplateOutputType GetWizardType ()
 
void EnableWindow (const wxString &name, bool enable)
 
void CheckCheckbox (const wxString &name, bool check)
 
bool IsCheckboxChecked (const wxString &name)
 
void FillComboboxWithCompilers (const wxString &name)
 
void FillContainerWithSelectCompilers (const wxString &name, const wxString &validCompilerIDs)
 
void AppendContainerWithSelectCompilers (const wxString &name, const wxString &validCompilerIDs)
 
wxString GetCompilerFromCombobox (const wxString &name)
 
void FillContainerWithCompilers (const wxString &name, const wxString &compilerID, const wxString &validCompilerIDs)
 
wxString GetComboboxStringSelection (const wxString &name)
 
int GetComboboxSelection (const wxString &name)
 
void SetComboboxSelection (const wxString &name, int sel)
 
void SetComboboxValue (const wxString &name, const wxString &value)
 
wxString GetComboboxValue (const wxString &name)
 
int GetRadioboxSelection (const wxString &name)
 
void SetRadioboxSelection (const wxString &name, int sel)
 
int GetListboxSelection (const wxString &name)
 
wxString GetListboxSelections (const wxString &name)
 
wxString GetListboxStringSelections (const wxString &name)
 
void SetListboxSelection (const wxString &name, int sel)
 
wxString GetCheckListboxChecked (const wxString &name)
 
wxString GetCheckListboxStringChecked (const wxString &name)
 
bool IsCheckListboxItemChecked (const wxString &name, unsigned int item)
 
void CheckCheckListboxItem (const wxString &name, unsigned int item, bool check)
 
void SetTextControlValue (const wxString &name, const wxString &value)
 
wxString GetTextControlValue (const wxString &name)
 
void SetSpinControlValue (const wxString &name, int value)
 
int GetSpinControlValue (const wxString &name)
 
wxString GetProjectPath ()
 
wxString GetProjectName ()
 
wxString GetProjectFullFilename ()
 
wxString GetProjectTitle ()
 
wxString GetCompilerID ()
 
bool GetWantDebug ()
 
wxString GetDebugName ()
 
wxString GetDebugOutputDir ()
 
wxString GetDebugObjectOutputDir ()
 
bool GetWantRelease ()
 
wxString GetReleaseName ()
 
wxString GetReleaseOutputDir ()
 
wxString GetReleaseObjectOutputDir ()
 
wxString GetTargetCompilerID ()
 
bool GetTargetEnableDebug ()
 
wxString GetTargetName ()
 
wxString GetTargetOutputDir ()
 
wxString GetTargetObjectOutputDir ()
 
wxString GetFileName ()
 
wxString GetFileHeaderGuard ()
 
bool GetFileAddToProject ()
 
int GetFileTargetIndex ()
 
void SetFilePathSelectionFilter (const wxString &filter)
 
void SetCompilerDefault (const wxString &defCompilerID)
 
void SetDebugTargetDefaults (bool wantDebug, const wxString &debugName, const wxString &debugOut, const wxString &debugObjOut)
 
void SetReleaseTargetDefaults (bool wantRelease, const wxString &releaseName, const wxString &releaseOut, const wxString &releaseObjOut)
 
int FillContainerWithChoices (const wxString &name, const wxString &choices)
 
int AppendContainerWithChoices (const wxString &name, const wxString &choices)
 
wxString GetWizardScriptFolder (void)
 
void AddInfoPage (const wxString &pageId, const wxString &intro_msg)
 
void AddFilePathPage (bool showHeaderGuard)
 
void AddProjectPathPage ()
 
void AddCompilerPage (const wxString &compilerID, const wxString &validCompilerIDs, bool allowCompilerChange=true, bool allowConfigChange=true)
 
void AddBuildTargetPage (const wxString &targetName, bool isDebug, bool showCompiler=false, const wxString &compilerID=wxEmptyString, const wxString &validCompilerIDs=_T("*"), bool allowCompilerChange=true)
 
void AddGenericSingleChoiceListPage (const wxString &pageName, const wxString &descr, const wxString &choices, int defChoice)
 
void AddGenericSelectPathPage (const wxString &pageId, const wxString &descr, const wxString &label, const wxString &defValue)
 
void AddPage (const wxString &panelName)
 
void Finalize ()
 
void RegisterWizard ()
 
wxString FindTemplateFile (const wxString &filename)
 
- Public Member Functions inherited from cbWizardPlugin
 cbWizardPlugin ()
 
- Public Member Functions inherited from cbPlugin
 cbPlugin ()
 In default cbPlugin's constructor the associated PluginInfo structure is filled with default values. More...
 
 ~cbPlugin () override
 cbPlugin destructor. More...
 
virtual PluginType GetType () const
 The plugin must return its type on request. More...
 
virtual int GetConfigurationPriority () const
 Return the plugin's configuration priority. More...
 
virtual int GetConfigurationGroup () const
 Return the configuration group for this plugin. More...
 
virtual cbConfigurationPanelGetConfigurationPanel (cb_optional wxWindow *parent)
 Return plugin's configuration panel. More...
 
virtual cbConfigurationPanelGetProjectConfigurationPanel (cb_optional wxWindow *parent, cb_optional cbProject *project)
 Return plugin's configuration panel for projects. More...
 
virtual void BuildMenu (cb_optional wxMenuBar *menuBar)
 This method is called by Code::Blocks and is used by the plugin to add any menu items it needs on Code::Blocks's menu bar. More...
 
virtual void BuildModuleMenu (cb_optional const ModuleType type, cb_optional wxMenu *menu, cb_optional const FileTreeData *data=nullptr)
 This method is called by Code::Blocks core modules (EditorManager, ProjectManager etc) and is used by the plugin to add any menu items it needs in the module's popup menu. More...
 
virtual bool BuildToolBar (cb_optional wxToolBar *toolBar)
 This method is called by Code::Blocks and is used by the plugin to add any toolbar items it needs on Code::Blocks's toolbar. More...
 
virtual int GetToolBarPriority ()
 This method return the priority of the plugin's toolbar, the less value indicates a more preceding position when C::B starts with no configuration file. More...
 
virtual void CreateStatusField (cbStatusBar *statusBar)
 This method is called by Code::Blocks and is used by the plugin to add a field on Code::Blocks's statusbar. More...
 
bool IsAttached () const
 See whether this plugin is attached or not. More...
 
virtual bool CanDetach () const
 See whether this plugin can be detached (unloaded) or not. More...
 

Protected Member Functions

void OnAttach ()
 Any descendent plugin should override this virtual method and perform any necessary initialization. More...
 
void Clear ()
 
void CopyFiles (cbProject *theproject, const wxString &prjdir, const wxString &srcdir)
 
wxString GenerateFile (const wxString &basePath, const wxString &filename, const wxString &contents)
 
- Protected Member Functions inherited from cbPlugin
virtual void OnRelease (cb_optional bool appShutDown)
 Any descendent plugin should override this virtual method and perform any necessary de-initialization. More...
 
virtual void NotImplemented (const wxString &log) const
 This method logs a "Not implemented" message and is provided for convenience only. More...
 

Protected Attributes

Wizards m_Wizards
 
wxWizardm_pWizard
 
WizPages m_Pages
 
WizProjectPathPanelm_pWizProjectPathPanel
 
WizFilePathPanelm_pWizFilePathPanel
 
WizCompilerPanelm_pWizCompilerPanel
 
WizBuildTargetPanelm_pWizBuildTargetPanel
 
int m_LaunchIndex
 
wxString m_LastXRC
 
wxString m_DefCompilerID
 
bool m_WantDebug
 
wxString m_DebugName
 
wxString m_DebugOutputDir
 
wxString m_DebugObjOutputDir
 
bool m_WantRelease
 
wxString m_ReleaseName
 
wxString m_ReleaseOutputDir
 
wxString m_ReleaseObjOutputDir
 
wxString m_WizardScriptFolder
 
- Protected Attributes inherited from cbPlugin
PluginType m_Type
 Holds the plugin's type. More...
 
bool m_IsAttached
 Holds the "attached" state. More...
 

Private Member Functions

 Wiz (cb_unused const Wiz &rhs)
 

Detailed Description

Definition at line 38 of file wiz.h.

Constructor & Destructor Documentation

◆ Wiz() [1/2]

Wiz::Wiz ( )

Definition at line 58 of file wiz.cpp.

◆ ~Wiz()

Wiz::~Wiz ( )

Definition at line 69 of file wiz.cpp.

◆ Wiz() [2/2]

Wiz::Wiz ( cb_unused const Wiz rhs)
private

Member Function Documentation

◆ AddBuildTargetPage()

void Wiz::AddBuildTargetPage ( const wxString targetName,
bool  isDebug,
bool  showCompiler = false,
const wxString compilerID = wxEmptyString,
const wxString validCompilerIDs = _T("*"),
bool  allowCompilerChange = true 
)

Definition at line 1339 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_pWizBuildTargetPanel, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddCompilerPage()

void Wiz::AddCompilerPage ( const wxString compilerID,
const wxString validCompilerIDs,
bool  allowCompilerChange = true,
bool  allowConfigChange = true 
)

Definition at line 1325 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_pWizCompilerPanel, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddFilePathPage()

void Wiz::AddFilePathPage ( bool  showHeaderGuard)

Definition at line 1297 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_pWizFilePathPanel, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddGenericSelectPathPage()

void Wiz::AddGenericSelectPathPage ( const wxString pageId,
const wxString descr,
const wxString label,
const wxString defValue 
)

Definition at line 1363 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddGenericSingleChoiceListPage()

void Wiz::AddGenericSingleChoiceListPage ( const wxString pageName,
const wxString descr,
const wxString choices,
int  defChoice 
)

Definition at line 1353 of file wiz.cpp.

References _T, GetArrayFromString(), m_LaunchIndex, m_Pages, m_pWizard, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddInfoPage()

void Wiz::AddInfoPage ( const wxString pageId,
const wxString intro_msg 
)

Definition at line 1287 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddPage()

void Wiz::AddPage ( const wxString panelName)

Definition at line 1373 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddProjectPathPage()

void Wiz::AddProjectPathPage ( )

Definition at line 1311 of file wiz.cpp.

References m_LaunchIndex, m_Pages, m_pWizard, m_pWizProjectPathPanel, m_Wizards, and WizPageBase::SkipPage().

Referenced by RegisterWizard().

◆ AddWizard()

void Wiz::AddWizard ( TemplateOutputType  otype,
const wxString title,
const wxString cat,
const wxString script,
const wxString templatePNG,
const wxString wizardPNG,
const wxString xrc 
)

◆ AppendContainerWithChoices()

int Wiz::AppendContainerWithChoices ( const wxString name,
const wxString choices 
)

◆ AppendContainerWithSelectCompilers()

void Wiz::AppendContainerWithSelectCompilers ( const wxString name,
const wxString validCompilerIDs 
)

◆ CheckCheckbox()

void Wiz::CheckCheckbox ( const wxString name,
bool  check 
)

Definition at line 1218 of file wiz.cpp.

References wxWizard::GetCurrentPage(), m_pWizard, and wxCheckBox::SetValue().

Referenced by RegisterWizard().

◆ CheckCheckListboxItem()

void Wiz::CheckCheckListboxItem ( const wxString name,
unsigned int  item,
bool  check 
)

Definition at line 1207 of file wiz.cpp.

References wxCheckListBox::Check(), wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ Clear()

void Wiz::Clear ( )
protected

◆ CopyFiles()

void Wiz::CopyFiles ( cbProject theproject,
const wxString prjdir,
const wxString srcdir 
)
protected

◆ EnableWindow()

void Wiz::EnableWindow ( const wxString name,
bool  enable 
)

Definition at line 985 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ FillComboboxWithCompilers()

void Wiz::FillComboboxWithCompilers ( const wxString name)

◆ FillContainerWithChoices()

int Wiz::FillContainerWithChoices ( const wxString name,
const wxString choices 
)

◆ FillContainerWithCompilers()

void Wiz::FillContainerWithCompilers ( const wxString name,
const wxString compilerID,
const wxString validCompilerIDs 
)

Definition at line 894 of file wiz.cpp.

References Wizard::FillCompilerControl(), wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ FillContainerWithSelectCompilers()

void Wiz::FillContainerWithSelectCompilers ( const wxString name,
const wxString validCompilerIDs 
)

◆ Finalize()

void Wiz::Finalize ( )

Definition at line 1382 of file wiz.cpp.

References wxWizardPageSimple::Chain(), wxWizard::GetPageAreaSizer(), m_Pages, and m_pWizard.

Referenced by Launch().

◆ FindTemplateFile()

wxString Wiz::FindTemplateFile ( const wxString filename)

Definition at line 859 of file wiz.cpp.

References _T, ConfigManager::GetFolder(), sdDataGlobal, sdDataUser, and wxFileExists().

Referenced by RegisterWizard().

◆ GenerateFile()

wxString Wiz::GenerateFile ( const wxString basePath,
const wxString filename,
const wxString contents 
)
protected

◆ GetBitmap()

const wxBitmap & Wiz::GetBitmap ( int  index) const
virtual
Parameters
indexthe wizard index.
Returns
the template's bitmap

Implements cbWizardPlugin.

Definition at line 180 of file wiz.cpp.

References cbAssert, GetCount(), and m_Wizards.

◆ GetCategory()

wxString Wiz::GetCategory ( int  index) const
virtual
Parameters
indexthe wizard index.
Returns
the template's category (GUI, Console, etc; free-form text). Try to adhere to standard category names...

Implements cbWizardPlugin.

Definition at line 171 of file wiz.cpp.

References cbAssert, GetCount(), and m_Wizards.

◆ GetCheckListboxChecked()

wxString Wiz::GetCheckListboxChecked ( const wxString name)

◆ GetCheckListboxStringChecked()

wxString Wiz::GetCheckListboxStringChecked ( const wxString name)

◆ GetComboboxSelection()

int Wiz::GetComboboxSelection ( const wxString name)

Definition at line 1052 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by GetCompilerFromCombobox(), and RegisterWizard().

◆ GetComboboxStringSelection()

wxString Wiz::GetComboboxStringSelection ( const wxString name)

Definition at line 1040 of file wiz.cpp.

References wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetComboboxValue()

wxString Wiz::GetComboboxValue ( const wxString name)

Definition at line 1018 of file wiz.cpp.

References wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetCompilerFromCombobox()

wxString Wiz::GetCompilerFromCombobox ( const wxString name)

◆ GetCompilerID()

wxString Wiz::GetCompilerID ( )

◆ GetCount()

int Wiz::GetCount ( ) const
virtual
Returns
the number of template wizards this plugin contains

Implements cbWizardPlugin.

Definition at line 140 of file wiz.cpp.

References m_Wizards.

Referenced by GetBitmap(), GetCategory(), GetDescription(), GetOutputType(), GetScriptFilename(), GetTitle(), GetWizardType(), and Launch().

◆ GetDebugName()

wxString Wiz::GetDebugName ( )

Definition at line 1506 of file wiz.cpp.

References WizCompilerPanel::GetDebugName(), m_DebugName, and m_pWizCompilerPanel.

Referenced by RegisterWizard(), and RunProjectWizard().

◆ GetDebugObjectOutputDir()

wxString Wiz::GetDebugObjectOutputDir ( )

◆ GetDebugOutputDir()

wxString Wiz::GetDebugOutputDir ( )

Definition at line 1513 of file wiz.cpp.

References WizCompilerPanel::GetDebugOutputDir(), m_DebugOutputDir, and m_pWizCompilerPanel.

Referenced by RegisterWizard().

◆ GetDescription()

wxString Wiz::GetDescription ( int  index) const
virtual
Parameters
indexthe wizard index.
Returns
the template's description

Implements cbWizardPlugin.

Definition at line 163 of file wiz.cpp.

References _(), cbAssert, and GetCount().

◆ GetFileAddToProject()

bool Wiz::GetFileAddToProject ( )

Definition at line 1604 of file wiz.cpp.

References WizFilePathPanel::GetAddToProject(), and m_pWizFilePathPanel.

Referenced by RegisterWizard().

◆ GetFileHeaderGuard()

wxString Wiz::GetFileHeaderGuard ( )

Definition at line 1597 of file wiz.cpp.

References WizFilePathPanel::GetHeaderGuard(), m_pWizFilePathPanel, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetFileName()

wxString Wiz::GetFileName ( )

Definition at line 1590 of file wiz.cpp.

References WizFilePathPanel::GetFilename(), m_pWizFilePathPanel, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetFileTargetIndex()

int Wiz::GetFileTargetIndex ( )

Definition at line 1611 of file wiz.cpp.

References WizFilePathPanel::GetTargetIndex(), and m_pWizFilePathPanel.

Referenced by RegisterWizard().

◆ GetListboxSelection()

int Wiz::GetListboxSelection ( const wxString name)

Definition at line 1087 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ GetListboxSelections()

wxString Wiz::GetListboxSelections ( const wxString name)

◆ GetListboxStringSelections()

wxString Wiz::GetListboxStringSelections ( const wxString name)

Definition at line 1121 of file wiz.cpp.

References _T, wxString::Append(), wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetOutputType()

TemplateOutputType Wiz::GetOutputType ( int  index) const
virtual
Parameters
indexthe wizard index.
Returns
the output type of the specified wizard at index

Implements cbWizardPlugin.

Definition at line 146 of file wiz.cpp.

References cbAssert, GetCount(), and m_Wizards.

◆ GetProjectFullFilename()

wxString Wiz::GetProjectFullFilename ( )

◆ GetProjectName()

wxString Wiz::GetProjectName ( )

Definition at line 1469 of file wiz.cpp.

References WizProjectPathPanel::GetName(), m_pWizProjectPathPanel, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetProjectPath()

wxString Wiz::GetProjectPath ( )

Definition at line 1462 of file wiz.cpp.

References WizProjectPathPanel::GetPath(), m_pWizProjectPathPanel, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetProjectTitle()

wxString Wiz::GetProjectTitle ( )

Definition at line 1483 of file wiz.cpp.

References WizProjectPathPanel::GetTitle(), m_pWizProjectPathPanel, and wxEmptyString.

Referenced by RegisterWizard(), and RunProjectWizard().

◆ GetRadioboxSelection()

int Wiz::GetRadioboxSelection ( const wxString name)

Definition at line 1064 of file wiz.cpp.

References wxWizard::GetCurrentPage(), wxRadioBox::GetSelection(), and m_pWizard.

Referenced by RegisterWizard().

◆ GetReleaseName()

wxString Wiz::GetReleaseName ( )

Definition at line 1534 of file wiz.cpp.

References WizCompilerPanel::GetReleaseName(), m_pWizCompilerPanel, and m_ReleaseName.

Referenced by RegisterWizard(), and RunProjectWizard().

◆ GetReleaseObjectOutputDir()

wxString Wiz::GetReleaseObjectOutputDir ( )

◆ GetReleaseOutputDir()

wxString Wiz::GetReleaseOutputDir ( )

◆ GetScriptFilename()

wxString Wiz::GetScriptFilename ( int  index) const
virtual
Parameters
indexthe wizard index.
Returns
this wizard's script filename (if this wizard is scripted).

Implements cbWizardPlugin.

Definition at line 188 of file wiz.cpp.

References cbAssert, GetCount(), and m_Wizards.

◆ GetSpinControlValue()

int Wiz::GetSpinControlValue ( const wxString name)

Definition at line 1275 of file wiz.cpp.

References wxWizard::GetCurrentPage(), wxSpinCtrl::GetValue(), and m_pWizard.

Referenced by RegisterWizard().

◆ GetTargetCompilerID()

wxString Wiz::GetTargetCompilerID ( )

◆ GetTargetEnableDebug()

bool Wiz::GetTargetEnableDebug ( )

Definition at line 1562 of file wiz.cpp.

References WizBuildTargetPanel::GetEnableDebug(), and m_pWizBuildTargetPanel.

Referenced by RegisterWizard(), and RunTargetWizard().

◆ GetTargetName()

wxString Wiz::GetTargetName ( )

◆ GetTargetObjectOutputDir()

wxString Wiz::GetTargetObjectOutputDir ( )

◆ GetTargetOutputDir()

wxString Wiz::GetTargetOutputDir ( )

◆ GetTextControlValue()

wxString Wiz::GetTextControlValue ( const wxString name)

Definition at line 1252 of file wiz.cpp.

References wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.

Referenced by RegisterWizard().

◆ GetTitle()

wxString Wiz::GetTitle ( int  index) const
virtual
Parameters
indexthe wizard index.
Returns
the template's title

Implements cbWizardPlugin.

Definition at line 154 of file wiz.cpp.

References cbAssert, GetCount(), and m_Wizards.

◆ GetWantDebug()

bool Wiz::GetWantDebug ( )

Definition at line 1499 of file wiz.cpp.

References WizCompilerPanel::GetWantDebug(), m_pWizCompilerPanel, and m_WantDebug.

Referenced by RegisterWizard(), and RunProjectWizard().

◆ GetWantRelease()

bool Wiz::GetWantRelease ( )

Definition at line 1527 of file wiz.cpp.

References WizCompilerPanel::GetWantRelease(), m_pWizCompilerPanel, and m_WantRelease.

Referenced by RegisterWizard(), and RunProjectWizard().

◆ GetWizardScriptFolder()

wxString Wiz::GetWizardScriptFolder ( void  )

Definition at line 1713 of file wiz.cpp.

References m_WizardScriptFolder.

Referenced by RegisterWizard().

◆ GetWizardType()

TemplateOutputType Wiz::GetWizardType ( )

Definition at line 867 of file wiz.cpp.

References cbAssert, GetCount(), m_LaunchIndex, and m_Wizards.

Referenced by GetCompilerID(), and RegisterWizard().

◆ IsCheckboxChecked()

bool Wiz::IsCheckboxChecked ( const wxString name)

Definition at line 1229 of file wiz.cpp.

References wxWizard::GetCurrentPage(), wxCheckBox::IsChecked(), and m_pWizard.

Referenced by RegisterWizard().

◆ IsCheckListboxItemChecked()

bool Wiz::IsCheckListboxItemChecked ( const wxString name,
unsigned int  item 
)

Definition at line 1195 of file wiz.cpp.

References wxWizard::GetCurrentPage(), wxCheckListBox::IsChecked(), and m_pWizard.

Referenced by RegisterWizard().

◆ Launch()

CompileTargetBase * Wiz::Launch ( int  index,
wxString createdFilename = 0 
)
virtual

When this is called, the wizard must get to work ;).

Parameters
indexthe wizard index.
createdFilenameif provided, on return it should contain the main filename this wizard created. If the user created a project, that would be the project's filename. If the wizard created a build target, that would be an empty string. If the wizard created a file, that would be the file's name.
Returns
a pointer to the generated cbProject or ProjectBuildTarget. NULL for everything else (failure too). You should dynamic-cast this to the correct type based on GetOutputType() 's value.

Implements cbWizardPlugin.

Definition at line 214 of file wiz.cpp.

References _(), _T, cbAssert, cbMessageBox(), wxString::Clear(), Clear(), wxWizard::Create(), InfoWindow::Display(), ScriptingManager::DisplayErrors(), Finalize(), wxXmlResource::Get(), Manager::Get(), wxArrayString::GetCount(), GetCount(), wxFileName::GetDirs(), ConfigManager::GetFolder(), Manager::GetScriptingManager(), ScriptingManager::LoadBuffer(), m_LastXRC, m_LaunchIndex, m_Pages, m_pWizard, m_pWizProjectPathPanel, m_Wizards, m_WizardScriptFolder, RunCustomWizard(), RunFilesWizard(), RunProjectWizard(), RunTargetWizard(), wxWizard::RunWizard(), sdDataGlobal, sdDataUser, cbException::ShowErrorMessage(), totCustom, totFiles, totProject, totTarget, wxDEFAULT_DIALOG_STYLE, wxDefaultPosition, wxEmptyString, wxFileExists(), wxICON_ERROR, wxID_ANY, and wxRESIZE_BORDER.

◆ OnAttach()

void Wiz::OnAttach ( )
protectedvirtual

Any descendent plugin should override this virtual method and perform any necessary initialization.

This method is called by Code::Blocks (PluginManager actually) when the plugin has been loaded and should attach in Code::Blocks. When Code::Blocks starts up, it finds and loads all plugins but does not activate (attaches) them. It then activates all plugins that the user has selected to be activated on start-up.
This means that a plugin might be loaded but not activated...
Think of this method as the actual constructor...

Reimplemented from cbPlugin.

Definition at line 74 of file wiz.cpp.

References _(), _T, cbMessageBox(), ScriptingManager::DisplayErrors(), Manager::Get(), CompilerFactory::GetDefaultCompilerID(), ConfigManager::GetFolder(), Manager::GetScriptingManager(), ScriptingManager::LoadScript(), m_DebugName, m_DebugObjOutputDir, m_DebugOutputDir, m_DefCompilerID, m_ReleaseName, m_ReleaseObjOutputDir, m_ReleaseOutputDir, m_WantDebug, m_WantRelease, RegisterWizard(), sdDataGlobal, sdDataUser, HTMLTags::sep, wxFileExists(), and wxICON_ERROR.

◆ operator=()

Wiz& Wiz::operator= ( cb_unused const Wiz rhs)
inline

◆ RegisterWizard()

void Wiz::RegisterWizard ( )

Definition at line 1722 of file wiz.cpp.

References AddBuildTargetPage(), AddCompilerPage(), AddFilePathPage(), AddGenericSelectPathPage(), AddGenericSingleChoiceListPage(), AddInfoPage(), AddPage(), AddProjectPathPage(), AddWizard(), AppendContainerWithChoices(), AppendContainerWithSelectCompilers(), CheckCheckbox(), CheckCheckListboxItem(), EnableWindow(), FillComboboxWithCompilers(), FillContainerWithChoices(), FillContainerWithCompilers(), FillContainerWithSelectCompilers(), FindTemplateFile(), GetCheckListboxChecked(), GetCheckListboxStringChecked(), GetComboboxSelection(), GetComboboxStringSelection(), GetComboboxValue(), GetCompilerFromCombobox(), GetCompilerID(), GetDebugName(), GetDebugObjectOutputDir(), GetDebugOutputDir(), GetFileAddToProject(), GetFileHeaderGuard(), GetFileName(), GetFileTargetIndex(), GetListboxSelection(), GetListboxSelections(), GetListboxStringSelections(), GetProjectFullFilename(), GetProjectName(), GetProjectPath(), GetProjectTitle(), GetRadioboxSelection(), GetReleaseName(), GetReleaseObjectOutputDir(), GetReleaseOutputDir(), GetSpinControlValue(), GetTargetCompilerID(), GetTargetEnableDebug(), GetTargetName(), GetTargetObjectOutputDir(), GetTargetOutputDir(), GetTextControlValue(), GetWantDebug(), GetWantRelease(), GetWizardScriptFolder(), GetWizardType(), IsCheckboxChecked(), IsCheckListboxItemChecked(), SetComboboxSelection(), SetComboboxValue(), SetCompilerDefault(), SetDebugTargetDefaults(), SetFilePathSelectionFilter(), SetListboxSelection(), SetRadioboxSelection(), SetReleaseTargetDefaults(), SetSpinControlValue(), and SetTextControlValue().

Referenced by OnAttach().

◆ RunCustomWizard()

CompileTargetBase * Wiz::RunCustomWizard ( wxString pFilename)

◆ RunFilesWizard()

CompileTargetBase * Wiz::RunFilesWizard ( wxString pFilename)

◆ RunProjectWizard()

CompileTargetBase * Wiz::RunProjectWizard ( wxString pFilename)

◆ RunTargetWizard()

CompileTargetBase * Wiz::RunTargetWizard ( wxString pFilename)

◆ SetComboboxSelection()

void Wiz::SetComboboxSelection ( const wxString name,
int  sel 
)

Definition at line 996 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ SetComboboxValue()

void Wiz::SetComboboxValue ( const wxString name,
const wxString value 
)

Definition at line 1007 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ SetCompilerDefault()

void Wiz::SetCompilerDefault ( const wxString defCompilerID)

Definition at line 1624 of file wiz.cpp.

References CompilerFactory::GetDefaultCompilerID(), and m_DefCompilerID.

Referenced by RegisterWizard().

◆ SetDebugTargetDefaults()

void Wiz::SetDebugTargetDefaults ( bool  wantDebug,
const wxString debugName,
const wxString debugOut,
const wxString debugObjOut 
)

Definition at line 1630 of file wiz.cpp.

References m_DebugName, m_DebugObjOutputDir, m_DebugOutputDir, and m_WantDebug.

Referenced by RegisterWizard().

◆ SetFilePathSelectionFilter()

void Wiz::SetFilePathSelectionFilter ( const wxString filter)

Definition at line 1618 of file wiz.cpp.

References m_pWizFilePathPanel, and WizFilePathPanel::SetFilePathSelectionFilter().

Referenced by RegisterWizard().

◆ SetListboxSelection()

void Wiz::SetListboxSelection ( const wxString name,
int  sel 
)

Definition at line 1142 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

◆ SetRadioboxSelection()

void Wiz::SetRadioboxSelection ( const wxString name,
int  sel 
)

Definition at line 1076 of file wiz.cpp.

References wxWizard::GetCurrentPage(), m_pWizard, and wxRadioBox::SetSelection().

Referenced by RegisterWizard().

◆ SetReleaseTargetDefaults()

void Wiz::SetReleaseTargetDefaults ( bool  wantRelease,
const wxString releaseName,
const wxString releaseOut,
const wxString releaseObjOut 
)

Definition at line 1642 of file wiz.cpp.

References m_ReleaseName, m_ReleaseObjOutputDir, m_ReleaseOutputDir, and m_WantRelease.

Referenced by RegisterWizard().

◆ SetSpinControlValue()

void Wiz::SetSpinControlValue ( const wxString name,
int  value 
)

Definition at line 1264 of file wiz.cpp.

References wxWizard::GetCurrentPage(), m_pWizard, and wxSpinCtrl::SetValue().

Referenced by RegisterWizard().

◆ SetTextControlValue()

void Wiz::SetTextControlValue ( const wxString name,
const wxString value 
)

Definition at line 1241 of file wiz.cpp.

References wxWizard::GetCurrentPage(), and m_pWizard.

Referenced by RegisterWizard().

Member Data Documentation

◆ m_DebugName

wxString Wiz::m_DebugName
protected

Definition at line 192 of file wiz.h.

Referenced by GetDebugName(), OnAttach(), and SetDebugTargetDefaults().

◆ m_DebugObjOutputDir

wxString Wiz::m_DebugObjOutputDir
protected

Definition at line 194 of file wiz.h.

Referenced by GetDebugObjectOutputDir(), OnAttach(), and SetDebugTargetDefaults().

◆ m_DebugOutputDir

wxString Wiz::m_DebugOutputDir
protected

Definition at line 193 of file wiz.h.

Referenced by GetDebugOutputDir(), OnAttach(), and SetDebugTargetDefaults().

◆ m_DefCompilerID

wxString Wiz::m_DefCompilerID
protected

Definition at line 190 of file wiz.h.

Referenced by GetCompilerID(), OnAttach(), and SetCompilerDefault().

◆ m_LastXRC

wxString Wiz::m_LastXRC
protected

Definition at line 187 of file wiz.h.

Referenced by Clear(), and Launch().

◆ m_LaunchIndex

int Wiz::m_LaunchIndex
protected

◆ m_Pages

WizPages Wiz::m_Pages
protected

◆ m_pWizard

wxWizard* Wiz::m_pWizard
protected

◆ m_pWizBuildTargetPanel

WizBuildTargetPanel* Wiz::m_pWizBuildTargetPanel
protected

◆ m_pWizCompilerPanel

WizCompilerPanel* Wiz::m_pWizCompilerPanel
protected

◆ m_pWizFilePathPanel

WizFilePathPanel* Wiz::m_pWizFilePathPanel
protected

◆ m_pWizProjectPathPanel

WizProjectPathPanel* Wiz::m_pWizProjectPathPanel
protected

◆ m_ReleaseName

wxString Wiz::m_ReleaseName
protected

Definition at line 196 of file wiz.h.

Referenced by GetReleaseName(), OnAttach(), and SetReleaseTargetDefaults().

◆ m_ReleaseObjOutputDir

wxString Wiz::m_ReleaseObjOutputDir
protected

Definition at line 198 of file wiz.h.

Referenced by GetReleaseObjectOutputDir(), OnAttach(), and SetReleaseTargetDefaults().

◆ m_ReleaseOutputDir

wxString Wiz::m_ReleaseOutputDir
protected

Definition at line 197 of file wiz.h.

Referenced by GetReleaseOutputDir(), OnAttach(), and SetReleaseTargetDefaults().

◆ m_WantDebug

bool Wiz::m_WantDebug
protected

Definition at line 191 of file wiz.h.

Referenced by GetWantDebug(), OnAttach(), and SetDebugTargetDefaults().

◆ m_WantRelease

bool Wiz::m_WantRelease
protected

Definition at line 195 of file wiz.h.

Referenced by GetWantRelease(), OnAttach(), and SetReleaseTargetDefaults().

◆ m_Wizards

Wizards Wiz::m_Wizards
protected

◆ m_WizardScriptFolder

wxString Wiz::m_WizardScriptFolder
protected

Definition at line 199 of file wiz.h.

Referenced by GetWizardScriptFolder(), and Launch().


The documentation for this class was generated from the following files: