Code::Blocks
SVN r11506
|
#include <newfromtemplatedlg.h>
Public Member Functions | |
NewFromTemplateDlg (TemplateOutputType initial, const wxArrayString &user_templates) | |
~NewFromTemplateDlg () override | |
ProjectTemplateLoader * | GetTemplate () |
cbWizardPlugin * | GetWizard () |
int | GetWizardIndex () const |
cbWizardPlugin * | GetSelectedTemplate () |
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) |
wxListCtrl * | GetVisibleListCtrl () |
wxChoice * | GetVisibleCategory () |
TemplateOutputType | GetVisibleOutputType () const |
Private Attributes | |
ProjectTemplateLoader * | m_Template |
cbWizardPlugin * | m_pWizard |
int | m_WizardIndex |
PluginsArray | m_Wizards |
Definition at line 19 of file newfromtemplatedlg.h.
NewFromTemplateDlg::NewFromTemplateDlg | ( | TemplateOutputType | initial, |
const wxArrayString & | user_templates | ||
) |
Definition at line 84 of file newfromtemplatedlg.cpp.
References _T, wxXmlResource::Get(), Manager::Get(), wxListbook::GetListView(), PluginManager::GetOffersFor(), Manager::GetPluginManager(), wxXmlResource::LoadObject(), ptWizard, wxBookCtrlBase::SetSelection(), SetSettingsIconsStyle(), sisNoIcons, wxIMAGE_LIST_NORMAL, and wxIMAGE_LIST_SMALL.
|
override |
Definition at line 123 of file newfromtemplatedlg.cpp.
References wxIMAGE_LIST_NORMAL, and wxIMAGE_LIST_SMALL.
|
protected |
Definition at line 167 of file newfromtemplatedlg.cpp.
References totCustom, totFiles, totProject, and totTarget.
Referenced by GetWizardIndex().
|
protected |
Definition at line 175 of file newfromtemplatedlg.cpp.
References _(), wxChoice::FindString(), cbWizardPlugin::GetCategory(), cbWizardPlugin::GetCount(), cbWizardPlugin::GetOutputType(), ListItemData::plugin, wxChoice::SetSelection(), and wxNOT_FOUND.
Referenced by GetWizardIndex().
|
protected |
Definition at line 221 of file newfromtemplatedlg.cpp.
References totCustom, totFiles, totProject, and totTarget.
Referenced by GetWizardIndex().
|
protected |
Definition at line 229 of file newfromtemplatedlg.cpp.
References _T, wxImageList::Add(), cbWizardPlugin::GetBitmap(), cbWizardPlugin::GetCategory(), cbWizardPlugin::GetCount(), ConfigManager::GetFolder(), wxListCtrl::GetImageList(), cbWizardPlugin::GetOutputType(), cbWizardPlugin::GetScriptFilename(), wxChoice::GetSelection(), cbWizardPlugin::GetTitle(), wxListCtrl::InsertItem(), ListItemData::ListItemData(), wxString::Matches(), ListItemData::plugin, wxImageList::RemoveAll(), sdDataUser, wxListCtrl::SetItemData(), wxListCtrl::SetItemTextColour(), wxListCtrl::SortItems(), SortTemplates(), wxFileExists(), wxIMAGE_LIST_NORMAL, wxIMAGE_LIST_SMALL, and wxRED.
Referenced by GetWizardIndex().
|
protected |
Definition at line 384 of file newfromtemplatedlg.cpp.
References totCustom, totFiles, totProject, totTarget, wxLC_ICON, and wxLC_LIST.
Referenced by GetWizardIndex().
|
protected |
Definition at line 147 of file newfromtemplatedlg.cpp.
Referenced by GetWizardIndex().
|
protected |
Definition at line 155 of file newfromtemplatedlg.cpp.
References wxListCtrl::ClearAll(), wxListCtrl::GetItemCount(), and wxListCtrl::GetItemData().
Referenced by GetWizardIndex().
|
protected |
Definition at line 352 of file newfromtemplatedlg.cpp.
References _(), _T, cbMessageBox(), CreateDirRecursively(), ScriptBindings::EndModal(), Manager::Get(), cbEditor::GetControl(), Manager::GetEditorManager(), ConfigManager::GetFolder(), wxString::IsEmpty(), EditorManager::Open(), sdDataGlobal, sdDataUser, EditorBase::SetFilename(), cbEditor::SetModified(), wxFileExists(), wxICON_ERROR, and wxID_CANCEL.
Referenced by GetWizardIndex().
|
override |
Definition at line 516 of file newfromtemplatedlg.cpp.
References _T, ScriptBindings::EndModal(), Manager::Get(), Manager::GetConfigManager(), and ConfigManager::Write().
Referenced by GetWizardIndex().
|
protected |
Referenced by GetWizardIndex().
cbWizardPlugin * NewFromTemplateDlg::GetSelectedTemplate | ( | ) |
Definition at line 322 of file newfromtemplatedlg.cpp.
References wxListCtrl::GetItemData(), wxListCtrl::GetNextItem(), ListItemData::plugin, ListItemData::wizPluginIndex, wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
Referenced by GetWizardIndex().
wxString NewFromTemplateDlg::GetSelectedUserTemplate | ( | ) | const |
Definition at line 346 of file newfromtemplatedlg.cpp.
References _T.
Referenced by GetWizardIndex(), and TemplateManager::NewProjectFromUserTemplate().
|
inline |
Definition at line 25 of file newfromtemplatedlg.h.
References m_Template.
|
protected |
Definition at line 292 of file newfromtemplatedlg.cpp.
References wxBookCtrlBase::GetSelection().
Referenced by GetWizardIndex().
|
protected |
Definition at line 277 of file newfromtemplatedlg.cpp.
References wxBookCtrlBase::GetSelection().
Referenced by GetWizardIndex().
|
protected |
Definition at line 307 of file newfromtemplatedlg.cpp.
References wxBookCtrlBase::GetSelection(), totCustom, totFiles, totProject, and totTarget.
Referenced by GetWizardIndex().
|
inline |
Definition at line 26 of file newfromtemplatedlg.h.
References m_pWizard.
Referenced by TemplateManager::NewFromTemplate().
|
inline |
Definition at line 27 of file newfromtemplatedlg.h.
References BuildCategories(), BuildCategoriesFor(), BuildList(), BuildListFor(), ChangeView(), ClearList(), ClearListFor(), EditScript(), EndModal(), FillTemplate(), GetSelectedTemplate(), GetSelectedUserTemplate(), GetVisibleCategory(), GetVisibleListCtrl(), GetVisibleOutputType(), m_WizardIndex, OnCategoryChanged(), OnDiscardScript(), OnEditGlobalScript(), OnEditScript(), OnHelp(), OnListActivate(), OnListRightClick(), OnUpdateUI(), OnViewChange(), and SelectedUserTemplate().
Referenced by TemplateManager::NewFromTemplate().
|
protected |
Definition at line 435 of file newfromtemplatedlg.cpp.
Referenced by GetWizardIndex().
|
protected |
Definition at line 453 of file newfromtemplatedlg.cpp.
References _(), _T, cbMessageBox(), wxSystemSettings::GetColour(), ConfigManager::GetFolder(), wxListCtrl::GetItemData(), wxListCtrl::GetNextItem(), cbWizardPlugin::GetScriptFilename(), ListItemData::plugin, sdDataUser, wxListCtrl::SetItemTextColour(), ListItemData::wizPluginIndex, wxFileExists(), wxICON_QUESTION, wxID_YES, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED, wxRemoveFile(), wxSYS_COLOUR_WINDOWTEXT, and wxYES_NO.
Referenced by GetWizardIndex().
|
protected |
Definition at line 477 of file newfromtemplatedlg.cpp.
References _(), _T, cbMessageBox(), and wxICON_INFORMATION.
Referenced by GetWizardIndex().
|
protected |
Definition at line 440 of file newfromtemplatedlg.cpp.
References wxListCtrl::GetItemData(), wxListCtrl::GetNextItem(), cbWizardPlugin::GetScriptFilename(), ListItemData::plugin, ListItemData::wizPluginIndex, wxLIST_NEXT_ALL, and wxLIST_STATE_SELECTED.
Referenced by GetWizardIndex().
|
protected |
Definition at line 490 of file newfromtemplatedlg.cpp.
References _(), _T, cbMessageBox(), ConfigManager::GetFolder(), sdDataUser, and wxICON_INFORMATION.
Referenced by GetWizardIndex().
|
protected |
Definition at line 430 of file newfromtemplatedlg.cpp.
References ScriptBindings::EndModal(), and wxID_OK.
Referenced by GetWizardIndex().
|
protected |
Definition at line 404 of file newfromtemplatedlg.cpp.
References _(), _T, wxMenu::Append(), wxMenu::AppendSeparator(), ConfigManager::GetFolder(), cbWizardPlugin::GetScriptFilename(), idDiscardWizardScript, idEditGlobalWizardScript, idEditWizardScript, idInfoWizardScript, ListItemData::plugin, sdDataUser, ListItemData::wizPluginIndex, and wxFileExists().
Referenced by GetWizardIndex().
|
protected |
Definition at line 508 of file newfromtemplatedlg.cpp.
References wxBookCtrlBase::GetPageCount(), and wxBookCtrlBase::GetSelection().
Referenced by GetWizardIndex().
|
protected |
Definition at line 485 of file newfromtemplatedlg.cpp.
Referenced by GetWizardIndex().
bool NewFromTemplateDlg::SelectedUserTemplate | ( | ) | const |
Definition at line 338 of file newfromtemplatedlg.cpp.
References wxBookCtrlBase::GetPageCount(), and wxBookCtrlBase::GetSelection().
Referenced by GetWizardIndex(), TemplateManager::New(), and TemplateManager::NewProjectFromUserTemplate().
|
private |
Definition at line 58 of file newfromtemplatedlg.h.
Referenced by GetWizard().
|
private |
Definition at line 57 of file newfromtemplatedlg.h.
Referenced by GetTemplate().
|
private |
Definition at line 59 of file newfromtemplatedlg.h.
Referenced by GetWizardIndex().
|
private |
Definition at line 60 of file newfromtemplatedlg.h.