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

#include <newfromtemplatedlg.h>

Inheritance diagram for NewFromTemplateDlg:
Collaboration diagram for NewFromTemplateDlg:

Public Member Functions

 NewFromTemplateDlg (TemplateOutputType initial, const wxArrayString &user_templates)
 
 ~NewFromTemplateDlg () override
 
ProjectTemplateLoaderGetTemplate ()
 
cbWizardPluginGetWizard ()
 
int GetWizardIndex () const
 
cbWizardPluginGetSelectedTemplate ()
 
bool SelectedUserTemplate () const
 
wxString GetSelectedUserTemplate () const
 
void EndModal (int retCode) override
 
- Public Member Functions inherited from wxScrollingDialog
 wxScrollingDialog ()
 
 wxScrollingDialog (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("dialogBox"))
 
- Public Member Functions inherited from wxDialog
virtual int ShowModal ()
 

Protected Member Functions

void FillTemplate (ProjectTemplateLoader *pt)
 
void BuildCategories ()
 
void BuildCategoriesFor (TemplateOutputType otype, wxChoice *cat)
 
void BuildList ()
 
void BuildListFor (TemplateOutputType otype, wxListCtrl *list, const wxChoice *cat)
 
void ClearList ()
 
void ClearListFor (wxListCtrl *list)
 
void OnListRightClick (wxListEvent &event)
 
void OnListActivate (wxListEvent &event)
 
void OnCategoryChanged (wxCommandEvent &event)
 
void OnEditScript (wxCommandEvent &event)
 
void OnDiscardScript (wxCommandEvent &event)
 
void OnEditGlobalScript (wxCommandEvent &event)
 
void OnViewChange (wxCommandEvent &event)
 
void OnHelp (wxCommandEvent &event)
 
void OnUpdateUI (wxUpdateUIEvent &event)
 
void ChangeView ()
 
void EditScript (const wxString &filename)
 
wxListCtrlGetVisibleListCtrl ()
 
wxChoiceGetVisibleCategory ()
 
TemplateOutputType GetVisibleOutputType () const
 

Private Attributes

ProjectTemplateLoaderm_Template
 
cbWizardPluginm_pWizard
 
int m_WizardIndex
 
PluginsArray m_Wizards
 

Detailed Description

Definition at line 19 of file newfromtemplatedlg.h.

Constructor & Destructor Documentation

◆ NewFromTemplateDlg()

NewFromTemplateDlg::NewFromTemplateDlg ( TemplateOutputType  initial,
const wxArrayString user_templates 
)

◆ ~NewFromTemplateDlg()

NewFromTemplateDlg::~NewFromTemplateDlg ( )
override

Definition at line 123 of file newfromtemplatedlg.cpp.

References wxIMAGE_LIST_NORMAL, and wxIMAGE_LIST_SMALL.

Member Function Documentation

◆ BuildCategories()

void NewFromTemplateDlg::BuildCategories ( )
protected

Definition at line 167 of file newfromtemplatedlg.cpp.

References totCustom, totFiles, totProject, and totTarget.

Referenced by GetWizardIndex().

◆ BuildCategoriesFor()

void NewFromTemplateDlg::BuildCategoriesFor ( TemplateOutputType  otype,
wxChoice cat 
)
protected

◆ BuildList()

void NewFromTemplateDlg::BuildList ( )
protected

Definition at line 221 of file newfromtemplatedlg.cpp.

References totCustom, totFiles, totProject, and totTarget.

Referenced by GetWizardIndex().

◆ BuildListFor()

void NewFromTemplateDlg::BuildListFor ( TemplateOutputType  otype,
wxListCtrl list,
const wxChoice cat 
)
protected

◆ ChangeView()

void NewFromTemplateDlg::ChangeView ( )
protected

Definition at line 384 of file newfromtemplatedlg.cpp.

References totCustom, totFiles, totProject, totTarget, wxLC_ICON, and wxLC_LIST.

Referenced by GetWizardIndex().

◆ ClearList()

void NewFromTemplateDlg::ClearList ( )
protected

Definition at line 147 of file newfromtemplatedlg.cpp.

Referenced by GetWizardIndex().

◆ ClearListFor()

void NewFromTemplateDlg::ClearListFor ( wxListCtrl list)
protected

◆ EditScript()

void NewFromTemplateDlg::EditScript ( const wxString filename)
protected

◆ EndModal()

void NewFromTemplateDlg::EndModal ( int  retCode)
override

◆ FillTemplate()

void NewFromTemplateDlg::FillTemplate ( ProjectTemplateLoader pt)
protected

Referenced by GetWizardIndex().

◆ GetSelectedTemplate()

cbWizardPlugin * NewFromTemplateDlg::GetSelectedTemplate ( )

◆ GetSelectedUserTemplate()

wxString NewFromTemplateDlg::GetSelectedUserTemplate ( ) const

Definition at line 346 of file newfromtemplatedlg.cpp.

References _T.

Referenced by GetWizardIndex(), and TemplateManager::NewProjectFromUserTemplate().

◆ GetTemplate()

ProjectTemplateLoader* NewFromTemplateDlg::GetTemplate ( )
inline

Definition at line 25 of file newfromtemplatedlg.h.

References m_Template.

◆ GetVisibleCategory()

wxChoice * NewFromTemplateDlg::GetVisibleCategory ( )
protected

Definition at line 292 of file newfromtemplatedlg.cpp.

References wxBookCtrlBase::GetSelection().

Referenced by GetWizardIndex().

◆ GetVisibleListCtrl()

wxListCtrl * NewFromTemplateDlg::GetVisibleListCtrl ( )
protected

Definition at line 277 of file newfromtemplatedlg.cpp.

References wxBookCtrlBase::GetSelection().

Referenced by GetWizardIndex().

◆ GetVisibleOutputType()

TemplateOutputType NewFromTemplateDlg::GetVisibleOutputType ( ) const
protected

Definition at line 307 of file newfromtemplatedlg.cpp.

References wxBookCtrlBase::GetSelection(), totCustom, totFiles, totProject, and totTarget.

Referenced by GetWizardIndex().

◆ GetWizard()

cbWizardPlugin* NewFromTemplateDlg::GetWizard ( )
inline

Definition at line 26 of file newfromtemplatedlg.h.

References m_pWizard.

Referenced by TemplateManager::NewFromTemplate().

◆ GetWizardIndex()

int NewFromTemplateDlg::GetWizardIndex ( ) const
inline

◆ OnCategoryChanged()

void NewFromTemplateDlg::OnCategoryChanged ( wxCommandEvent event)
protected

Definition at line 435 of file newfromtemplatedlg.cpp.

Referenced by GetWizardIndex().

◆ OnDiscardScript()

void NewFromTemplateDlg::OnDiscardScript ( wxCommandEvent event)
protected

◆ OnEditGlobalScript()

void NewFromTemplateDlg::OnEditGlobalScript ( wxCommandEvent event)
protected

Definition at line 477 of file newfromtemplatedlg.cpp.

References _(), _T, cbMessageBox(), and wxICON_INFORMATION.

Referenced by GetWizardIndex().

◆ OnEditScript()

void NewFromTemplateDlg::OnEditScript ( wxCommandEvent event)
protected

◆ OnHelp()

void NewFromTemplateDlg::OnHelp ( wxCommandEvent event)
protected

◆ OnListActivate()

void NewFromTemplateDlg::OnListActivate ( wxListEvent event)
protected

Definition at line 430 of file newfromtemplatedlg.cpp.

References ScriptBindings::EndModal(), and wxID_OK.

Referenced by GetWizardIndex().

◆ OnListRightClick()

void NewFromTemplateDlg::OnListRightClick ( wxListEvent event)
protected

◆ OnUpdateUI()

void NewFromTemplateDlg::OnUpdateUI ( wxUpdateUIEvent event)
protected

◆ OnViewChange()

void NewFromTemplateDlg::OnViewChange ( wxCommandEvent event)
protected

Definition at line 485 of file newfromtemplatedlg.cpp.

Referenced by GetWizardIndex().

◆ SelectedUserTemplate()

bool NewFromTemplateDlg::SelectedUserTemplate ( ) const

Member Data Documentation

◆ m_pWizard

cbWizardPlugin* NewFromTemplateDlg::m_pWizard
private

Definition at line 58 of file newfromtemplatedlg.h.

Referenced by GetWizard().

◆ m_Template

ProjectTemplateLoader* NewFromTemplateDlg::m_Template
private

Definition at line 57 of file newfromtemplatedlg.h.

Referenced by GetTemplate().

◆ m_WizardIndex

int NewFromTemplateDlg::m_WizardIndex
private

Definition at line 59 of file newfromtemplatedlg.h.

Referenced by GetWizardIndex().

◆ m_Wizards

PluginsArray NewFromTemplateDlg::m_Wizards
private

Definition at line 60 of file newfromtemplatedlg.h.


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