int __fastcall TItemList::GetSelected(RStringVec& items) { for (TElTreeItem* item = tvItems->GetNextSelected(0); item; item = tvItems->GetNextSelected(item)){ if (item->Hidden) continue; AnsiString nm; FHelper.MakeFullName(item,0,nm); items.push_back (nm.c_str()); } return items.size(); }
void TItemList::GetFolders(RStringVec& folders) { for (TElTreeItem* item=tvItems->Items->GetFirstNode(); item; item=item->GetNext()){ if (FHelper.IsFolder(item)){ AnsiString nm; FHelper.MakeFullName(item,0,nm); folders.push_back (AnsiString(nm+'\\').c_str()); } } }
void _SequenceToList(RStringVec& lst, LPCSTR in, char separator) { lst.clear (); int t_cnt = _GetItemCount(in,separator); xr_string T; for (int i=0; i<t_cnt; i++){ _GetItem(in,i,T,separator,0); _Trim (T); if (T.size()) lst.push_back(T.c_str()); } }