Code::Blocks
SVN r11506
|
#include <wiz.h>
Public Member Functions | |
Wiz () | |
~Wiz () | |
Wiz & | operator= (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 wxBitmap & | GetBitmap (int index) const |
wxString | GetScriptFilename (int index) const |
CompileTargetBase * | Launch (int index, wxString *pFilename=0) |
When this is called, the wizard must get to work ;). More... | |
CompileTargetBase * | RunProjectWizard (wxString *pFilename) |
CompileTargetBase * | RunTargetWizard (wxString *pFilename) |
CompileTargetBase * | RunFilesWizard (wxString *pFilename) |
CompileTargetBase * | RunCustomWizard (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 cbConfigurationPanel * | GetConfigurationPanel (cb_optional wxWindow *parent) |
Return plugin's configuration panel. More... | |
virtual cbConfigurationPanel * | GetProjectConfigurationPanel (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 |
wxWizard * | m_pWizard |
WizPages | m_Pages |
WizProjectPathPanel * | m_pWizProjectPathPanel |
WizFilePathPanel * | m_pWizFilePathPanel |
WizCompilerPanel * | m_pWizCompilerPanel |
WizBuildTargetPanel * | m_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) | |
|
private |
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().
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().
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().
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().
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().
Definition at line 1287 of file wiz.cpp.
References m_LaunchIndex, m_Pages, m_pWizard, m_Wizards, and WizPageBase::SkipPage().
Referenced by RegisterWizard().
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().
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().
void Wiz::AddWizard | ( | TemplateOutputType | otype, |
const wxString & | title, | ||
const wxString & | cat, | ||
const wxString & | script, | ||
const wxString & | templatePNG, | ||
const wxString & | wizardPNG, | ||
const wxString & | xrc | ||
) |
Definition at line 1395 of file wiz.cpp.
References _(), _T, WizardInfo::cat, cbLoadBitmap(), wxBitmap::ConvertToImage(), LogManager::DebugLog(), F(), Manager::Get(), ConfigManager::GetFolder(), wxBitmap::GetHeight(), Manager::GetLogManager(), wxBitmap::GetWidth(), LogManager::LogWarning(), m_Wizards, WizardInfo::output_type, wxImage::Resize(), WizardInfo::script, sdDataGlobal, sdDataUser, WizardInfo::templatePNG, WizardInfo::title, totCustom, totFiles, totProject, totTarget, totUser, WizardInfo::wizardPNG, wxString::wx_str(), wxBITMAP_TYPE_PNG, wxFileExists(), and WizardInfo::xrc.
Referenced by RegisterWizard().
Definition at line 1679 of file wiz.cpp.
References _T, wxString::Find(), GetArrayFromString(), wxArrayString::GetCount(), wxWizard::GetCurrentPage(), wxString::IsEmpty(), m_pWizard, and wxNOT_FOUND.
Referenced by RegisterWizard().
void Wiz::AppendContainerWithSelectCompilers | ( | const wxString & | name, |
const wxString & | validCompilerIDs | ||
) |
Definition at line 943 of file wiz.cpp.
References _T, CompilerFactory::CompilerInheritsFrom(), wxString::Find(), GetArrayFromString(), CompilerFactory::GetCompiler(), CompilerFactory::GetCompilersCount(), wxArrayString::GetCount(), wxWizard::GetCurrentPage(), Compiler::GetName(), wxString::IsEmpty(), m_pWizard, and wxNOT_FOUND.
Referenced by RegisterWizard().
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().
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().
|
protected |
Definition at line 195 of file wiz.cpp.
References wxXmlResource::Get(), wxString::IsEmpty(), m_LastXRC, m_Pages, m_pWizard, m_pWizBuildTargetPanel, m_pWizCompilerPanel, m_pWizFilePathPanel, m_pWizProjectPathPanel, and wxXmlResource::Unload().
Referenced by Launch(), RunCustomWizard(), RunFilesWizard(), RunProjectWizard(), and RunTargetWizard().
|
protected |
Definition at line 791 of file wiz.cpp.
References _T, ProjectManager::AddFileToProject(), cbProject::BeginAddFiles(), cbMessageBox(), CreateDirRecursively(), cbProject::EndAddFiles(), wxFileName::FileExists(), Manager::Get(), wxDir::GetAllFiles(), cbProject::GetBuildTargetsCount(), wxArrayString::GetCount(), ConfigManager::GetFolder(), wxFileName::GetFullPath(), wxFileName::GetPath(), Manager::GetProjectManager(), wxFileName::MakeRelativeTo(), wxString::Printf(), wxString::Replace(), sdDataGlobal, sdDataUser, wxCopyFile(), wxDirExists(), wxICON_QUESTION, wxID_YES, wxNO_DEFAULT, and wxYES_NO.
Referenced by RunProjectWizard().
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().
void Wiz::FillComboboxWithCompilers | ( | const wxString & | name | ) |
Definition at line 873 of file wiz.cpp.
References CompilerFactory::GetCompiler(), CompilerFactory::GetCompilersCount(), wxWizard::GetCurrentPage(), CompilerFactory::GetDefaultCompiler(), Compiler::GetName(), and m_pWizard.
Referenced by RegisterWizard().
Definition at line 1654 of file wiz.cpp.
References _T, GetArrayFromString(), wxArrayString::GetCount(), wxWizard::GetCurrentPage(), wxString::IsEmpty(), and m_pWizard.
Referenced by RegisterWizard().
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().
void Wiz::FillContainerWithSelectCompilers | ( | const wxString & | name, |
const wxString & | validCompilerIDs | ||
) |
Definition at line 907 of file wiz.cpp.
References _T, CompilerFactory::CompilerInheritsFrom(), GetArrayFromString(), CompilerFactory::GetCompiler(), CompilerFactory::GetCompilersCount(), wxArrayString::GetCount(), wxWizard::GetCurrentPage(), CompilerFactory::GetDefaultCompiler(), Compiler::GetName(), wxString::IsEmpty(), and m_pWizard.
Referenced by RegisterWizard().
void Wiz::Finalize | ( | ) |
Definition at line 1382 of file wiz.cpp.
References wxWizardPageSimple::Chain(), wxWizard::GetPageAreaSizer(), m_Pages, and m_pWizard.
Referenced by Launch().
Definition at line 859 of file wiz.cpp.
References _T, ConfigManager::GetFolder(), sdDataGlobal, sdDataUser, and wxFileExists().
Referenced by RegisterWizard().
|
protected |
Definition at line 719 of file wiz.cpp.
References _T, cbMessageBox(), cbWrite(), LogManager::DebugLog(), F(), wxFileName::FileExists(), FileTypeOf(), ftCodeBlocksProject, ftCodeBlocksWorkspace, ftDynamicLib, ftExecutable, ftObject, ftResourceBin, ftStaticLib, Manager::Get(), wxFileName::GetDirs(), GetEOLStr(), wxFileName::GetFullName(), wxFileName::GetFullPath(), Manager::GetLogManager(), wxFileName::GetPath(), wxFileName::IsRelative(), wxFileName::MakeRelativeTo(), wxFileName::Mkdir(), wxString::Printf(), wxFile::write, wxString::wx_str(), wxEmptyString, wxFONTENCODING_UTF8, wxICON_QUESTION, wxID_NO, wxNO_DEFAULT, and wxYES_NO.
Referenced by RunProjectWizard().
|
virtual |
index | the wizard index. |
Implements cbWizardPlugin.
Definition at line 180 of file wiz.cpp.
References cbAssert, GetCount(), and m_Wizards.
|
virtual |
index | the wizard index. |
Implements cbWizardPlugin.
Definition at line 171 of file wiz.cpp.
References cbAssert, GetCount(), and m_Wizards.
Definition at line 1153 of file wiz.cpp.
References _T, wxString::Append(), wxString::Format(), wxCheckListBox::GetCount(), wxWizard::GetCurrentPage(), wxCheckListBox::IsChecked(), m_pWizard, and wxEmptyString.
Referenced by RegisterWizard().
Definition at line 1174 of file wiz.cpp.
References _T, wxString::Append(), wxString::Format(), wxCheckListBox::GetCount(), wxWizard::GetCurrentPage(), wxCheckListBox::GetString(), wxCheckListBox::IsChecked(), m_pWizard, wxString::wx_str(), and wxEmptyString.
Referenced by RegisterWizard().
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().
Definition at line 1040 of file wiz.cpp.
References wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.
Referenced by RegisterWizard().
Definition at line 1018 of file wiz.cpp.
References wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.
Referenced by RegisterWizard().
Definition at line 1031 of file wiz.cpp.
References GetComboboxSelection(), CompilerFactory::GetCompiler(), Compiler::GetID(), and wxEmptyString.
Referenced by RegisterWizard().
wxString Wiz::GetCompilerID | ( | ) |
Definition at line 1490 of file wiz.cpp.
References WizCompilerPanel::GetCompilerID(), WizBuildTargetPanel::GetCompilerID(), GetWizardType(), m_DefCompilerID, m_pWizBuildTargetPanel, m_pWizCompilerPanel, totProject, and totTarget.
Referenced by RegisterWizard(), and RunProjectWizard().
|
virtual |
Implements cbWizardPlugin.
Definition at line 140 of file wiz.cpp.
References m_Wizards.
Referenced by GetBitmap(), GetCategory(), GetDescription(), GetOutputType(), GetScriptFilename(), GetTitle(), GetWizardType(), and Launch().
wxString Wiz::GetDebugName | ( | ) |
Definition at line 1506 of file wiz.cpp.
References WizCompilerPanel::GetDebugName(), m_DebugName, and m_pWizCompilerPanel.
Referenced by RegisterWizard(), and RunProjectWizard().
wxString Wiz::GetDebugObjectOutputDir | ( | ) |
Definition at line 1520 of file wiz.cpp.
References WizCompilerPanel::GetDebugObjectOutputDir(), m_DebugObjOutputDir, and m_pWizCompilerPanel.
Referenced by RegisterWizard(), and RunProjectWizard().
wxString Wiz::GetDebugOutputDir | ( | ) |
Definition at line 1513 of file wiz.cpp.
References WizCompilerPanel::GetDebugOutputDir(), m_DebugOutputDir, and m_pWizCompilerPanel.
Referenced by RegisterWizard().
|
virtual |
index | the wizard index. |
Implements cbWizardPlugin.
Definition at line 163 of file wiz.cpp.
References _(), cbAssert, and GetCount().
bool Wiz::GetFileAddToProject | ( | ) |
Definition at line 1604 of file wiz.cpp.
References WizFilePathPanel::GetAddToProject(), and m_pWizFilePathPanel.
Referenced by RegisterWizard().
wxString Wiz::GetFileHeaderGuard | ( | ) |
Definition at line 1597 of file wiz.cpp.
References WizFilePathPanel::GetHeaderGuard(), m_pWizFilePathPanel, and wxEmptyString.
Referenced by RegisterWizard().
wxString Wiz::GetFileName | ( | ) |
Definition at line 1590 of file wiz.cpp.
References WizFilePathPanel::GetFilename(), m_pWizFilePathPanel, and wxEmptyString.
Referenced by RegisterWizard().
int Wiz::GetFileTargetIndex | ( | ) |
Definition at line 1611 of file wiz.cpp.
References WizFilePathPanel::GetTargetIndex(), and m_pWizFilePathPanel.
Referenced by RegisterWizard().
int Wiz::GetListboxSelection | ( | const wxString & | name | ) |
Definition at line 1087 of file wiz.cpp.
References wxWizard::GetCurrentPage(), and m_pWizard.
Referenced by RegisterWizard().
Definition at line 1100 of file wiz.cpp.
References _T, wxString::Append(), wxString::Format(), wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.
Referenced by RegisterWizard().
Definition at line 1121 of file wiz.cpp.
References _T, wxString::Append(), wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.
Referenced by RegisterWizard().
|
virtual |
index | the wizard index. |
index
Implements cbWizardPlugin.
Definition at line 146 of file wiz.cpp.
References cbAssert, GetCount(), and m_Wizards.
wxString Wiz::GetProjectFullFilename | ( | ) |
Definition at line 1476 of file wiz.cpp.
References WizProjectPathPanel::GetFullFileName(), m_pWizProjectPathPanel, and wxEmptyString.
Referenced by RegisterWizard(), and RunProjectWizard().
wxString Wiz::GetProjectName | ( | ) |
Definition at line 1469 of file wiz.cpp.
References WizProjectPathPanel::GetName(), m_pWizProjectPathPanel, and wxEmptyString.
Referenced by RegisterWizard().
wxString Wiz::GetProjectPath | ( | ) |
Definition at line 1462 of file wiz.cpp.
References WizProjectPathPanel::GetPath(), m_pWizProjectPathPanel, and wxEmptyString.
Referenced by RegisterWizard().
wxString Wiz::GetProjectTitle | ( | ) |
Definition at line 1483 of file wiz.cpp.
References WizProjectPathPanel::GetTitle(), m_pWizProjectPathPanel, and wxEmptyString.
Referenced by RegisterWizard(), and RunProjectWizard().
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().
wxString Wiz::GetReleaseName | ( | ) |
Definition at line 1534 of file wiz.cpp.
References WizCompilerPanel::GetReleaseName(), m_pWizCompilerPanel, and m_ReleaseName.
Referenced by RegisterWizard(), and RunProjectWizard().
wxString Wiz::GetReleaseObjectOutputDir | ( | ) |
Definition at line 1548 of file wiz.cpp.
References WizCompilerPanel::GetReleaseObjectOutputDir(), m_pWizCompilerPanel, and m_ReleaseObjOutputDir.
Referenced by RegisterWizard(), and RunProjectWizard().
wxString Wiz::GetReleaseOutputDir | ( | ) |
Definition at line 1541 of file wiz.cpp.
References WizCompilerPanel::GetReleaseOutputDir(), m_pWizCompilerPanel, and m_ReleaseOutputDir.
Referenced by RegisterWizard().
|
virtual |
index | the wizard index. |
Implements cbWizardPlugin.
Definition at line 188 of file wiz.cpp.
References cbAssert, GetCount(), and m_Wizards.
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().
wxString Wiz::GetTargetCompilerID | ( | ) |
Definition at line 1555 of file wiz.cpp.
References WizBuildTargetPanel::GetCompilerID(), m_pWizBuildTargetPanel, and wxEmptyString.
Referenced by RegisterWizard(), and RunTargetWizard().
bool Wiz::GetTargetEnableDebug | ( | ) |
Definition at line 1562 of file wiz.cpp.
References WizBuildTargetPanel::GetEnableDebug(), and m_pWizBuildTargetPanel.
Referenced by RegisterWizard(), and RunTargetWizard().
wxString Wiz::GetTargetName | ( | ) |
Definition at line 1569 of file wiz.cpp.
References WizBuildTargetPanel::GetTargetName(), m_pWizBuildTargetPanel, and wxEmptyString.
Referenced by RegisterWizard(), and RunTargetWizard().
wxString Wiz::GetTargetObjectOutputDir | ( | ) |
Definition at line 1583 of file wiz.cpp.
References WizBuildTargetPanel::GetTargetObjectOutputDir(), m_pWizBuildTargetPanel, and wxEmptyString.
Referenced by RegisterWizard(), and RunTargetWizard().
wxString Wiz::GetTargetOutputDir | ( | ) |
Definition at line 1576 of file wiz.cpp.
References WizBuildTargetPanel::GetTargetOutputDir(), m_pWizBuildTargetPanel, and wxEmptyString.
Referenced by RegisterWizard(), and RunTargetWizard().
Definition at line 1252 of file wiz.cpp.
References wxWizard::GetCurrentPage(), m_pWizard, and wxEmptyString.
Referenced by RegisterWizard().
|
virtual |
index | the wizard index. |
Implements cbWizardPlugin.
Definition at line 154 of file wiz.cpp.
References cbAssert, GetCount(), and m_Wizards.
bool Wiz::GetWantDebug | ( | ) |
Definition at line 1499 of file wiz.cpp.
References WizCompilerPanel::GetWantDebug(), m_pWizCompilerPanel, and m_WantDebug.
Referenced by RegisterWizard(), and RunProjectWizard().
bool Wiz::GetWantRelease | ( | ) |
Definition at line 1527 of file wiz.cpp.
References WizCompilerPanel::GetWantRelease(), m_pWizCompilerPanel, and m_WantRelease.
Referenced by RegisterWizard(), and RunProjectWizard().
wxString Wiz::GetWizardScriptFolder | ( | void | ) |
Definition at line 1713 of file wiz.cpp.
References m_WizardScriptFolder.
Referenced by RegisterWizard().
TemplateOutputType Wiz::GetWizardType | ( | ) |
Definition at line 867 of file wiz.cpp.
References cbAssert, GetCount(), m_LaunchIndex, and m_Wizards.
Referenced by GetCompilerID(), and RegisterWizard().
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().
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().
|
virtual |
When this is called, the wizard must get to work ;).
index | the wizard index. |
createdFilename | if 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. |
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.
|
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.
Definition at line 44 of file wiz.h.
References _T, WizardInfo::cat, cbThrow, WizardInfo::script, WizardInfo::templatePNG, WizardInfo::title, WizardInfo::wizardPNG, wxEmptyString, and WizardInfo::xrc.
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().
CompileTargetBase * Wiz::RunCustomWizard | ( | wxString * | pFilename | ) |
Definition at line 703 of file wiz.cpp.
References _(), cbMessageBox(), Clear(), ScriptingManager::DisplayErrors(), Manager::Get(), Manager::GetScriptingManager(), and wxICON_ERROR.
Referenced by Launch().
CompileTargetBase * Wiz::RunFilesWizard | ( | wxString * | pFilename | ) |
Definition at line 677 of file wiz.cpp.
References _(), _T, wxString::BeforeFirst(), cbMessageBox(), Clear(), ScriptingManager::DisplayErrors(), Manager::Get(), EditorManager::GetEditor(), Manager::GetEditorManager(), Manager::GetScriptingManager(), EditorBase::IsBuiltinEditor(), wxString::IsEmpty(), and wxICON_ERROR.
Referenced by Launch().
CompileTargetBase * Wiz::RunProjectWizard | ( | wxString * | pFilename | ) |
Definition at line 346 of file wiz.cpp.
References _(), _T, wxArrayString::Add(), cbProject::AddBuildTarget(), ProjectManager::AddFileToProject(), wxString::AfterFirst(), wxString::BeforeFirst(), cbProject::BeginAddFiles(), wxString::c_str(), cbMessageBox(), Clear(), CopyFiles(), CreateDirRecursively(), LogManager::DebugLog(), ScriptingManager::DisplayErrors(), cbProject::EndAddFiles(), wxTreeCtrl::Expand(), F(), wxString::Format(), GenerateFile(), Manager::Get(), GetArrayFromString(), CompileTargetBase::GetBasePath(), cbProject::GetBuildTargetsCount(), GetCompilerID(), wxArrayString::GetCount(), GetDebugName(), GetDebugObjectOutputDir(), CompilerFactory::GetDefaultCompilerID(), cbProject::GetFileByFilename(), CompileTargetBase::GetFilename(), Manager::GetLogManager(), wxFileName::GetPath(), GetProjectFullFilename(), Manager::GetProjectManager(), cbProject::GetProjectNode(), GetProjectTitle(), GetReleaseName(), GetReleaseObjectOutputDir(), Manager::GetScriptingManager(), cbProjectManagerUI::GetTree(), ProjectManager::GetUI(), GetWantDebug(), GetWantRelease(), wxString::IsEmpty(), ProjectManager::NewProject(), NULL, cbProjectManagerUI::RebuildTree(), cbProject::Save(), CompileTargetBase::SetCompilerID(), cbProject::SetCompilerID(), CompilerFactory::SetDefaultCompiler(), ProjectBuildTarget::SetIncludeInTargetAll(), CompileTargetBase::SetObjectOutput(), cbProject::SetTitle(), wxString::Trim(), wxString::wx_str(), and wxICON_ERROR.
Referenced by Launch().
CompileTargetBase * Wiz::RunTargetWizard | ( | wxString * | pFilename | ) |
Definition at line 547 of file wiz.cpp.
References _(), ProjectFile::AddBuildTarget(), cbProject::AddBuildTarget(), cbMessageBox(), Clear(), ScriptingManager::DisplayErrors(), Manager::Get(), ProjectManager::GetActiveProject(), CompileTargetBase::GetCompilerID(), CompilerFactory::GetDefaultCompilerID(), cbProject::GetFilesList(), Manager::GetProjectManager(), Manager::GetScriptingManager(), GetTargetCompilerID(), GetTargetEnableDebug(), GetTargetName(), GetTargetObjectOutputDir(), GetTargetOutputDir(), m_pWizBuildTargetPanel, CompileTargetBase::SetCompilerID(), ProjectBuildTarget::SetIncludeInTargetAll(), CompileTargetBase::SetObjectOutput(), CompileTargetBase::SetWorkingDir(), wxEmptyString, wxICON_ERROR, wxICON_INFORMATION, and wxOK.
Referenced by Launch().
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().
Definition at line 1007 of file wiz.cpp.
References wxWizard::GetCurrentPage(), and m_pWizard.
Referenced by RegisterWizard().
void Wiz::SetCompilerDefault | ( | const wxString & | defCompilerID | ) |
Definition at line 1624 of file wiz.cpp.
References CompilerFactory::GetDefaultCompilerID(), and m_DefCompilerID.
Referenced by RegisterWizard().
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().
void Wiz::SetFilePathSelectionFilter | ( | const wxString & | filter | ) |
Definition at line 1618 of file wiz.cpp.
References m_pWizFilePathPanel, and WizFilePathPanel::SetFilePathSelectionFilter().
Referenced by RegisterWizard().
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().
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().
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().
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().
Definition at line 1241 of file wiz.cpp.
References wxWizard::GetCurrentPage(), and m_pWizard.
Referenced by RegisterWizard().
|
protected |
Definition at line 192 of file wiz.h.
Referenced by GetDebugName(), OnAttach(), and SetDebugTargetDefaults().
|
protected |
Definition at line 194 of file wiz.h.
Referenced by GetDebugObjectOutputDir(), OnAttach(), and SetDebugTargetDefaults().
|
protected |
Definition at line 193 of file wiz.h.
Referenced by GetDebugOutputDir(), OnAttach(), and SetDebugTargetDefaults().
|
protected |
Definition at line 190 of file wiz.h.
Referenced by GetCompilerID(), OnAttach(), and SetCompilerDefault().
|
protected |
|
protected |
Definition at line 186 of file wiz.h.
Referenced by AddBuildTargetPage(), AddCompilerPage(), AddFilePathPage(), AddGenericSelectPathPage(), AddGenericSingleChoiceListPage(), AddInfoPage(), AddPage(), AddProjectPathPage(), GetWizardType(), and Launch().
|
protected |
Definition at line 181 of file wiz.h.
Referenced by AddBuildTargetPage(), AddCompilerPage(), AddFilePathPage(), AddGenericSelectPathPage(), AddGenericSingleChoiceListPage(), AddInfoPage(), AddPage(), AddProjectPathPage(), Clear(), Finalize(), and Launch().
|
protected |
Definition at line 180 of file wiz.h.
Referenced by AddBuildTargetPage(), AddCompilerPage(), AddFilePathPage(), AddGenericSelectPathPage(), AddGenericSingleChoiceListPage(), AddInfoPage(), AddPage(), AddProjectPathPage(), AppendContainerWithChoices(), AppendContainerWithSelectCompilers(), CheckCheckbox(), CheckCheckListboxItem(), Clear(), EnableWindow(), FillComboboxWithCompilers(), FillContainerWithChoices(), FillContainerWithCompilers(), FillContainerWithSelectCompilers(), Finalize(), GetCheckListboxChecked(), GetCheckListboxStringChecked(), GetComboboxSelection(), GetComboboxStringSelection(), GetComboboxValue(), GetListboxSelection(), GetListboxSelections(), GetListboxStringSelections(), GetRadioboxSelection(), GetSpinControlValue(), GetTextControlValue(), IsCheckboxChecked(), IsCheckListboxItemChecked(), Launch(), SetComboboxSelection(), SetComboboxValue(), SetListboxSelection(), SetRadioboxSelection(), SetSpinControlValue(), and SetTextControlValue().
|
protected |
Definition at line 185 of file wiz.h.
Referenced by AddBuildTargetPage(), Clear(), GetCompilerID(), GetTargetCompilerID(), GetTargetEnableDebug(), GetTargetName(), GetTargetObjectOutputDir(), GetTargetOutputDir(), and RunTargetWizard().
|
protected |
Definition at line 184 of file wiz.h.
Referenced by AddCompilerPage(), Clear(), GetCompilerID(), GetDebugName(), GetDebugObjectOutputDir(), GetDebugOutputDir(), GetReleaseName(), GetReleaseObjectOutputDir(), GetReleaseOutputDir(), GetWantDebug(), and GetWantRelease().
|
protected |
Definition at line 183 of file wiz.h.
Referenced by AddFilePathPage(), Clear(), GetFileAddToProject(), GetFileHeaderGuard(), GetFileName(), GetFileTargetIndex(), and SetFilePathSelectionFilter().
|
protected |
Definition at line 182 of file wiz.h.
Referenced by AddProjectPathPage(), Clear(), GetProjectFullFilename(), GetProjectName(), GetProjectPath(), GetProjectTitle(), and Launch().
|
protected |
Definition at line 196 of file wiz.h.
Referenced by GetReleaseName(), OnAttach(), and SetReleaseTargetDefaults().
|
protected |
Definition at line 198 of file wiz.h.
Referenced by GetReleaseObjectOutputDir(), OnAttach(), and SetReleaseTargetDefaults().
|
protected |
Definition at line 197 of file wiz.h.
Referenced by GetReleaseOutputDir(), OnAttach(), and SetReleaseTargetDefaults().
|
protected |
Definition at line 191 of file wiz.h.
Referenced by GetWantDebug(), OnAttach(), and SetDebugTargetDefaults().
|
protected |
Definition at line 195 of file wiz.h.
Referenced by GetWantRelease(), OnAttach(), and SetReleaseTargetDefaults().
|
protected |
Definition at line 179 of file wiz.h.
Referenced by AddBuildTargetPage(), AddCompilerPage(), AddFilePathPage(), AddGenericSelectPathPage(), AddGenericSingleChoiceListPage(), AddInfoPage(), AddPage(), AddProjectPathPage(), AddWizard(), GetBitmap(), GetCategory(), GetCount(), GetOutputType(), GetScriptFilename(), GetTitle(), GetWizardType(), and Launch().
|
protected |
Definition at line 199 of file wiz.h.
Referenced by GetWizardScriptFolder(), and Launch().