void ProjectOptionsDlg::BuildScriptsTree() { wxTreeCtrl* tc = XRCCTRL(*this, "tcOverview", wxTreeCtrl); tc->DeleteAllItems(); wxTreeItemId root = tc->AddRoot(m_Project->GetTitle()); for (int x = 0; x < m_Project->GetBuildTargetsCount(); ++x) { ProjectBuildTarget* target = m_Project->GetBuildTarget(x); tc->AppendItem(root, target->GetTitle()); } tc->Expand(root); tc->SelectItem(root); FillScripts(); }
ScriptingSettingsDlg::ScriptingSettingsDlg(wxWindow* parent) : m_IgnoreTextEvents(false) { //ctor wxXmlResource::Get()->LoadObject(this, parent, _T("dlgScriptingSettings"),_T("wxScrollingDialog")); wxListCtrl* list = XRCCTRL(*this, "chkStartupScripts", wxListCtrl); list->InsertColumn(0, _("Script"), wxLIST_FORMAT_LEFT, 160); list->InsertColumn(1, _("Enabled"), wxLIST_FORMAT_LEFT, 64); list->InsertColumn(2, _("Menu"), wxLIST_FORMAT_LEFT, 160); FillScripts(); list = XRCCTRL(*this, "lstTrustedScripts", wxListCtrl); list->InsertColumn(0, _("Script"), wxLIST_FORMAT_LEFT, 160); list->InsertColumn(1, _("Signature")); list->InsertColumn(2, _("Temp?")); FillTrusts(); }
void ProjectOptionsDlg::OnScriptsOverviewSelChanged(wxTreeEvent& /*event*/) { FillScripts(); }